/* ThinkBridge static preview: phone first, desktop adjustments at the bottom */
:root {
  --bg: #faf9f6; --surface: #fff; --ink: #14141a; --soft: #57565f; --line: #e8e6df;
  --accent: #2bce98; --band: #14141a; --blue: #006273; /* blue from the Checkout Ireland logo */
  --serif: 'Fraunces', Georgia, serif; --sans: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(.25, .46, .45, .94); --pad: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
section[id] { scroll-margin-top: 72px; }

.header { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) var(--pad) 12px; color: #fff; transition: background .4s var(--ease), color .4s var(--ease); }
.header.scrolled { background: rgba(20, 20, 26, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 600 20px/1 var(--serif); }
.logo i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.desk-nav { display: none; }

/* menu button: label flips, two lines turn into an X */
.toggle { display: flex; align-items: center; gap: 12px; height: 44px; background: none; border: 0; cursor: pointer; font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.toggle-label { display: grid; overflow: hidden; height: 1em; }
.toggle-label > span { grid-area: 1 / 1; transition: transform .5s var(--ease); }
.toggle-label > span + span { transform: translateY(110%); }
.burger { position: relative; width: 28px; height: 14px; }
.burger i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: top .35s var(--ease), transform .35s var(--ease) .1s; }
.burger i:first-child { top: 2px; } .burger i:last-child { top: 10px; }
.menu-open .toggle-label > span:first-child { transform: translateY(-110%); }
.menu-open .toggle-label > span + span { transform: none; }
.menu-open .burger i { top: 6px; transition: top .35s var(--ease), transform .35s var(--ease) .25s; }
.menu-open .burger i:first-child { transform: rotate(45deg); }
.menu-open .burger i:last-child { transform: rotate(-45deg); }
.menu-open { overflow: hidden; }
.menu-open .header { color: var(--ink); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .header .logo i { background: var(--ink); }

/* menu panel slides in from the right, links drop in one by one */
.menu { position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; padding: calc(100px + env(safe-area-inset-top)) var(--pad) 32px; overflow-y: auto; background: var(--accent); color: var(--ink); transform: translateX(100%); visibility: hidden; transition: transform .7s var(--ease), visibility 0s .7s; }
.menu-open .menu { transform: none; visibility: visible; transition: transform .7s var(--ease), visibility 0s; }
.menu ul { list-style: none; }
.menu li { overflow: hidden; }
.menu li a { display: block; font: 400 clamp(46px, 14vw, 66px)/1.12 var(--serif); letter-spacing: -.03em; }
.menu li a span { display: inline-block; transform: translateY(-110%); transition: transform .6s var(--ease); }
.menu-open .menu li a span { transform: none; }
.menu-open .menu li:nth-child(1) span { transition-delay: .3s; }
.menu-open .menu li:nth-child(2) span { transition-delay: .38s; }
.menu-open .menu li:nth-child(3) span { transition-delay: .46s; }
.menu-open .menu li:nth-child(4) span { transition-delay: .54s; }
.menu-cta { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: 34px; padding: 22px; font: 400 25px/1.2 var(--serif); }
.menu-cta .frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.menu-cta .frame rect { width: calc(100% - 2px); height: calc(100% - 2px); }
.menu-cta rect, .menu-cta path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .2s; }
.menu-cta .arrow { width: 56px; height: 16px; }
.menu-open .menu-cta rect { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease) .75s; }
.menu-open .menu-cta path { stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease) 1.5s; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; justify-content: center; padding: 14px 24px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 600; font-size: 14px; transition: transform .2s var(--ease); }
.btn:active { transform: scale(.96); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }

/* hero: photo settles from a zoom, headline lines rise out of a mask */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; overflow: hidden; color: #fff; background: var(--band); }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: 62% center; animation: settle 3.2s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,26,.55) 0%, rgba(20,20,26,.42) 25%, rgba(20,20,26,.84) 60%, rgba(20,20,26,.96) 100%); }
.hero-copy { position: relative; z-index: 1; width: 100%; padding: 100px var(--pad) calc(34px + env(safe-area-inset-bottom)); }
h1 { margin: 18px 0 22px; font: 600 clamp(40px, 12.4vw, 56px)/1.04 var(--serif); letter-spacing: -.025em; }
h1 em { font-style: normal; color: var(--accent); }
h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.js h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) .25s forwards; }
.js h1 .line:nth-child(2) > span { animation-delay: .43s; }
.js h1 .line:nth-child(3) > span { animation-delay: .61s; }
.js h1 .line:nth-child(4) > span { animation-delay: .79s; }
.js .hero .eyebrow { opacity: 0; animation: rise-in .8s var(--ease) .1s forwards; }
.js .hero-foot { opacity: 0; animation: rise-in .9s var(--ease) 1.45s forwards; }
.hero-foot p { max-width: 440px; margin-bottom: 22px; color: rgba(255,255,255,.82); }
@keyframes settle { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes rise { to { transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.marquee { padding: 26px 0; background: var(--blue); color: var(--accent); }
/* the names fade in and out at the page's text margins, not at the screen edges */
.marquee .window { overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--pad) - 8px), #000 calc(var(--pad) + 40px), #000 calc(100% - var(--pad) - 40px), transparent calc(100% - var(--pad) + 8px));
  mask-image: linear-gradient(90deg, transparent calc(var(--pad) - 8px), #000 calc(var(--pad) + 40px), #000 calc(100% - var(--pad) - 40px), transparent calc(100% - var(--pad) + 8px)); }
.track { display: inline-flex; align-items: center; animation: marquee 46s linear infinite; }
.track span { font: 400 24px/1.3 var(--serif); padding: 0 36px; }
.track i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 64px var(--pad); }
.band { background: var(--band); color: #fff; }
h2 { margin: 14px 0 30px; font: 600 clamp(31px, 8.6vw, 44px)/1.1 var(--serif); letter-spacing: -.02em; }

/* headings wipe in left to right */
.js h2 > .wipe { display: block; clip-path: inset(0 100% 0 0); transform: translateX(-20px); transition: clip-path 1.5s var(--ease), transform 1.5s var(--ease); }
.js h2.in > .wipe { clip-path: inset(-.1em -.1em -.2em -.1em); transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

.work-grid { display: grid; gap: 16px; }
.work-card { position: relative; display: block; width: 100%; overflow: hidden; border: 0; border-radius: 18px; background: var(--band); color: #fff; text-align: left; cursor: pointer; }
.work-card .photo { display: block; aspect-ratio: 4 / 3.4; overflow: hidden; }
.work-card .photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 1.8s var(--ease); }
.work-card.in .photo img { transform: scale(1); }
.work-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(20,20,26,.92)); }
.work-meta { position: absolute; z-index: 1; left: 18px; right: 66px; bottom: 16px; display: flex; flex-direction: column; gap: 3px; }
.work-num { font-size: 11px; letter-spacing: .14em; color: var(--accent); font-weight: 600; }
.work-name { font: 600 24px/1.15 var(--serif); }
.work-tag { font-size: 12.5px; opacity: .75; }
.work-go { position: absolute; z-index: 1; right: 16px; bottom: 18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink); }

.rule-wrap { opacity: 1 !important; transform: none !important; }
.rule { display: block; width: 240px; max-width: 80%; margin: -8px 0 30px; overflow: visible; color: var(--accent); }
.rule .rl { fill: none; stroke: currentColor; stroke-width: 1.3; }
.rule .rd { fill: currentColor; transform-origin: center; transform-box: fill-box; }
.js .rule .rl { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) .3s; }
.js .rule .rd { transform: scale(0); transition: transform .6s var(--ease); }
.js .in .rule .rl { stroke-dashoffset: 0; }
.js .in .rule .rd { transform: none; }

.about { max-width: 560px; margin-bottom: 30px; color: rgba(255,255,255,.72); }
.about-lead { margin-bottom: 14px; color: #fff; font: 400 22px/1.4 var(--serif); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { padding: 22px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; }
.stat b { display: block; font: 600 42px/1.1 var(--serif); font-variant-numeric: tabular-nums; color: var(--accent); }
.stat span { font-size: 12.5px; color: rgba(255,255,255,.7); }
.stat:nth-child(even) { transition-delay: .12s; }

/* new technology panel under the stats */
.tech { margin-top: 34px; padding: 26px 20px; border: 1px solid rgba(43,206,152,.4); border-radius: 18px; background: linear-gradient(160deg, rgba(43,206,152,.14), rgba(43,206,152,.02) 70%); }
.tech h3 { margin: 14px 0 12px; font: 600 25px/1.2 var(--serif); }
.tech p { color: rgba(255,255,255,.72); }
.tech ul { display: grid; margin-top: 18px; list-style: none; }
.tech li { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: baseline; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.tech b { font: 600 18px/1.3 var(--serif); color: var(--accent); }
.tech li span { font-size: 13.5px; color: rgba(255,255,255,.72); }

.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; list-style: none; cursor: pointer; font: 600 19px/1.3 var(--serif); }
.svc summary::-webkit-details-marker { display: none; }
.svc summary i { position: relative; flex: none; width: 14px; height: 14px; }
.svc summary i::before, .svc summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--accent); transition: transform .35s var(--ease); }
.svc summary i::after { transform: rotate(90deg); }
.svc[open] summary i::after { transform: none; }
.svc p { padding: 0 0 20px; color: var(--soft); }
.svc[open] p { animation: rise-in .5s var(--ease); }

.contact { text-align: center; }
.contact .rule { margin: 0 auto 18px; }
.contact p { max-width: 380px; margin: -12px auto 26px; color: rgba(255,255,255,.7); }
footer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px var(--pad) calc(30px + env(safe-area-inset-bottom)); background: var(--band); color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
footer .logo { color: #fff; }

/* project sheet slides up from the bottom */
.sheet { width: 100%; max-width: 640px; height: 92vh; height: 92dvh; max-height: none; margin: auto auto 0; border: 0; border-radius: 22px 22px 0 0; overflow: hidden; background: var(--bg); color: var(--ink); transform: translateY(100%); transition: transform .5s var(--ease); }
.sheet.show { transform: none; }
.sheet::backdrop { background: rgba(20,20,26,.65); }
.sheet-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.sheet-close { position: sticky; top: 12px; z-index: 2; float: right; width: 44px; height: 44px; margin: 12px 12px -56px 0; border: 0; border-radius: 50%; background: rgba(20,20,26,.75); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.sheet-cover { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sheet-body { padding: 26px var(--pad) calc(34px + env(safe-area-inset-bottom)); }
.sheet h3 { margin: 12px 0; font: 600 30px/1.15 var(--serif); }
.sheet p { color: var(--soft); }
.sheet-logo { margin: 22px 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.sheet-logo img { width: 100%; max-width: 300px; margin: 0 auto; }
.sheet .note { margin: 22px 0 14px; font-size: 12.5px; font-style: italic; }
.sheet-gallery { display: grid; gap: 12px; margin-bottom: 26px; }
.sheet-gallery img { width: 100%; aspect-ratio: 700 / 465; object-fit: cover; border-radius: 14px; }
body:has(.sheet[open]) { overflow: hidden; }

@media (min-width: 761px) {
  :root { --pad: max(32px, calc((100vw - 1080px) / 2)); }
  .toggle, .menu { display: none; }
  .desk-nav { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
  .section { padding-top: 96px; padding-bottom: 96px; }
  h1 { font-size: clamp(56px, 6.4vw, 84px); }
  .hero-copy { max-width: none; padding-bottom: 80px; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .tech { padding: 38px; }
  .tech p { max-width: 640px; }
  .tech ul { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .tech li { grid-template-columns: 1fr; gap: 6px; }
  .sheet-body, .sheet .note { --pad: 32px; }
  .sheet-body { padding-left: 32px; padding-right: 32px; }
}

/* taller header bar (logo and menu text keep their normal size), a little tighter once scrolled */
.header { padding-top: calc(22px + env(safe-area-inset-top)); padding-bottom: 22px; transition: background .4s var(--ease), color .4s var(--ease), padding .4s var(--ease); }
.header.scrolled { padding-top: calc(15px + env(safe-area-inset-top)); padding-bottom: 15px; }
.menu { padding-top: calc(120px + env(safe-area-inset-top)); }

/* phone menu: a line draws under each link after it drops in */
.menu li { position: relative; padding-bottom: 8px; margin-bottom: 6px; }
.menu li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); opacity: .35; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.menu-open .menu li::after { transform: none; transition: transform .9s var(--ease); }
.menu-open .menu li:nth-child(1)::after { transition-delay: .55s; }
.menu-open .menu li:nth-child(2)::after { transition-delay: .67s; }
.menu-open .menu li:nth-child(3)::after { transition-delay: .79s; }
.menu-open .menu li:nth-child(4)::after { transition-delay: .91s; }

@media (min-width: 761px) {
  .header { padding-top: 30px; padding-bottom: 30px; }
  .header.scrolled { padding-top: 18px; padding-bottom: 18px; }
  /* nav lines: sweep across once on load, draw on hover, and stay under the section you're in */
  .desk-nav a { position: relative; padding: 10px 0; }
  .desk-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); animation: nav-sweep 1.3s var(--ease) 1.1s; }
  .desk-nav a:nth-child(2)::after { animation-delay: 1.28s; }
  .desk-nav a:nth-child(3)::after { animation-delay: 1.46s; }
  .desk-nav a:nth-child(4)::after { animation-delay: 1.64s; }
  .desk-nav a:hover::after, .desk-nav a:focus-visible::after, .desk-nav a.active::after { transform: scaleX(1); transform-origin: left; }
}
@keyframes nav-sweep {
  0% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(1); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* "Start a project" button in the header */
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cta { visibility: visible; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease), transform .2s var(--ease); }
.header-cta:hover { transform: translateY(-1px); }
/* the open menu has its own framed button, so the header one steps aside */
.menu-open .header-cta { opacity: 0; visibility: hidden; }
/* phones: the word "Menu" makes way for the button, leaving the two lines */
@media (max-width: 760px) { .toggle-label { display: none; } .toggle { width: 36px; justify-content: flex-end; } .burger { width: 30px; } }
@media (min-width: 761px) { .header-cta { min-height: 46px; padding: 0 24px; font-size: 14px; } }

/* email and phone cards at the foot of the phone menu */
.menu-contact { display: grid; gap: 10px; margin-top: auto; padding-top: 30px; }
.menu-contact a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; opacity: 0; transform: translateY(18px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.menu-contact svg { flex: none; width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--accent); fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu-contact span { font-size: 16px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.menu-contact small { display: block; color: var(--accent); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.menu-open .menu-contact a { opacity: 1; transform: none; transition: opacity .6s var(--ease) .95s, transform .6s var(--ease) .95s; }
.menu-open .menu-contact a + a { transition-delay: 1.08s; }
.menu-contact a:active { transform: scale(.98); transition-delay: 0s; }

/* shorter phones: tighten the menu so everything fits without running under the header */
@media (max-height: 740px) {
  .menu { padding-top: calc(92px + env(safe-area-inset-top)); padding-bottom: 18px; }
  .menu li a { font-size: min(10vw, 38px); }
  .menu li { padding-bottom: 4px; margin-bottom: 2px; }
  .menu-cta { margin-top: 16px; padding: 13px 18px; font-size: 21px; }
  .menu-contact { gap: 8px; padding-top: 16px; }
  .menu-contact a { padding: 8px 12px; }
  .menu-contact svg { width: 38px; height: 38px; padding: 10px; }
}

/* project request form */
.request { display: grid; gap: 14px; max-width: 640px; margin: 0 auto; text-align: left; }
.request label span { display: block; margin-bottom: 6px; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 500; }
.request select, .request input, .request textarea { width: 100%; padding: 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background-color: rgba(255,255,255,.06); color: #fff; font: 400 16px/1.4 var(--sans); -webkit-appearance: none; appearance: none; transition: border-color .25s; }
.request select { padding-right: 44px; text-overflow: ellipsis; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%232bce98' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.request option { color: var(--ink); }
.request textarea { resize: vertical; }
.request select:focus, .request input:focus, .request textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.request .btn { margin-top: 6px; border: 0; padding: 17px 24px; font: 600 15px/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.contact .request .hint { max-width: none; margin: 0; font-size: 12.5px; text-align: center; }
.hint a { text-decoration: underline; }
@media (min-width: 761px) { .request { grid-template-columns: 1fr 1fr; gap: 18px; } .request .wide { grid-column: 1 / -1; } }

/* language switch: EN / ES on desktop, a picker with a bottom sheet on phones */
.lang { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lang a { padding: 8px 2px; opacity: .6; transition: opacity .3s; }
.lang a[aria-current], .lang a:hover { opacity: 1; }
.lang a[aria-current] { box-shadow: inset 0 -2px var(--accent); }
.lang span { opacity: .4; }
.menu-open .lang a[aria-current] { box-shadow: inset 0 -2px var(--ink); }
.lang-trigger { display: none; align-items: center; gap: 4px; height: 40px; padding: 0 2px; background: none; border: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
.lang-trigger svg { width: 10px; height: 7px; }
.lang-sheet { width: 100%; max-width: 520px; margin: auto auto 0; padding: 24px 22px calc(26px + env(safe-area-inset-bottom)); border: 0; border-radius: 22px 22px 0 0; background: var(--bg); color: var(--ink); transform: translateY(100%); transition: transform .45s var(--ease); }
.lang-sheet.show { transform: none; }
.lang-sheet::backdrop { background: rgba(20,20,26,.65); }
.lang-sheet p { margin-bottom: 14px; color: var(--soft); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.lang-sheet a { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font: 600 22px/1.2 var(--serif); }
.lang-sheet a small { font: 600 12px/1 var(--sans); color: var(--soft); }
.lang-sheet a[aria-current] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 760px) { .js .lang { display: none; } .js .lang-trigger { display: inline-flex; } }
/* Spanish runs longer: keep the framed menu button on one line */
html[lang="es"] .menu-cta { font-size: min(5.6vw, 22px); white-space: nowrap; }

/* phones: no header "Start a project" (the hero and menu have it); the language picker
   takes its place, as a green button beside the menu icon */
@media (max-width: 760px) {
  .header .header-cta { display: none; }
  .header-actions { gap: 12px; }
  /* a small tag-sized button that sits with the menu icon; the invisible ::after keeps it easy to tap */
  .js .lang-trigger { position: relative; justify-content: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 12px; transition: background .3s var(--ease), transform .2s var(--ease); }
  .js .lang-trigger svg { width: 8px; height: 6px; }
  .js .lang-trigger::after { content: ""; position: absolute; inset: -8px -6px; }
  .js .lang-trigger:active { transform: scale(.96); }
  .menu-open .lang-trigger { background: var(--ink); }
}
html[lang="es"] .hero .btns .btn { padding-left: 18px; padding-right: 18px; }

/* tapping the phone number offers WhatsApp first */
.call-sheet { width: 100%; max-width: 520px; margin: auto auto 0; padding: 30px 22px calc(26px + env(safe-area-inset-bottom)); border: 0; border-radius: 22px 22px 0 0; background: var(--bg); color: var(--ink); text-align: center; transform: translateY(100%); transition: transform .45s var(--ease); }
.call-sheet.show { transform: none; }
.call-sheet::backdrop { background: rgba(20,20,26,.65); }
.call-sheet h3 { margin: 8px 30px 12px; font: 600 28px/1.15 var(--serif); }
.call-sheet p { max-width: 340px; margin: 0 auto 22px; color: var(--soft); }
.call-sheet .btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; padding-top: 17px; padding-bottom: 17px; }
.call-sheet .call-wa { background: var(--accent); color: var(--ink); }
.call-sheet .call-wa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.call-sheet .call-tel { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.call-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--soft); font-size: 24px; line-height: 1; cursor: pointer; }
body:has(.call-sheet[open]) { overflow: hidden; }
@media (min-width: 761px) { .call-sheet { margin: auto; padding-bottom: 28px; border-radius: 22px; transform: translateY(24px); opacity: 0; transition: transform .4s var(--ease), opacity .3s; } .call-sheet.show { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .track { animation: none; }
}
