/* =========================================================
   CPH · BYGGE DESIGN — styles
   Space Grotesk (display) · IBM Plex Sans (body)
   ========================================================= */
:root {
  --bg: #F4F3EF;
  --ink: #0E0E0E;
  --muted: #8C8B86;
  --line: #DCDAD3;
  --accent: #FF3E3E;
  --stone: #E6E3DB;
  --dark: #0E0E0E;
  --on-dark: #F4F3EF;
  --gutter: clamp(16px, 2.2vw, 32px);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { padding-inline: var(--gutter); }
.small { font-size: 13px; line-height: 1.5; max-width: 34ch; }
.muted { color: var(--muted); }
.eyebrow { display: block; font: 500 11px/1.3 var(--display); letter-spacing: .02em; color: var(--muted); }
.dim { color: #B9B7B0; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo__mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
.logo__mark--md { width: 40px; height: 40px; }
.logo__cut { fill: var(--bg); }
.logo__word { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); }
.logo__word b { font-weight: 700; font-size: 25px; letter-spacing: -.06em; line-height: 1; }
.logo__word i { width: 4px; height: 4px; background: currentColor; }
.logo__word span { font-weight: 600; font-size: 8.5px; letter-spacing: .14em; line-height: 1.15; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  background: var(--ink); color: var(--bg); font: 500 12px/1 var(--display);
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: #3a3a38; z-index: -1;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--sm { height: 28px; padding: 0 11px; font-size: 11px; }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light::before { background: #fff; }


/* ---------- Start-a-project button (magnetic) ---------- */
.btn-start {
  --mx: 50%; --my: 50%; --ease-out: cubic-bezier(.23, 1, .32, 1);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 16px;
  height: 52px; min-width: 190px; padding: 0 6px 0 22px; border-radius: 999px;
  background: #121214; color: #F4F3EF;
  font: 500 16px/1 var(--display); letter-spacing: -.01em; white-space: nowrap;
  transition: scale 350ms var(--ease-out); will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.btn-start::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(140px circle at var(--mx) var(--my), rgba(255,255,255,.22), rgba(255,255,255,.06) 45%, transparent 70%);
  opacity: 0; transition: opacity 350ms var(--ease-out);
}
.btn-start:hover::before { opacity: 1; }
.btn-start:active { scale: .97; }
.btn-start__label { flex: 1; }
.btn-start__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; flex: none;
}
.btn-start__icon svg { width: 18px; height: 18px; transition: rotate 350ms var(--ease-out); }
.btn-start:hover .btn-start__icon svg, .btn-start:focus-visible .btn-start__icon svg { rotate: 45deg; }
.btn-start:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 12px var(--gutter); background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
/* Glass once the page scrolls */
.header.is-scrolled {
  padding-block: 9px;
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom-color: color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: 0 8px 30px -18px rgba(14, 14, 14, .25);
}
/* Compact "Start a project" docks into the nav once the hero button scrolls away */
.header__cta { display: inline-flex; max-width: 0; overflow: hidden; margin-left: -14px; transition: max-width .55s var(--ease), margin .55s var(--ease); }
.header__cta .btn-start { opacity: 0; transform: translateY(-10px) scale(.92); transition: opacity .35s, transform .55s var(--ease), scale 350ms var(--ease-out, ease); }
.header.has-cta .header__cta { max-width: 220px; margin-left: 0; }
.header.has-cta .header__cta .btn-start { opacity: 1; transform: none; }
/* once the red CTA is docked, the language switch steps aside */
.header .lang { max-width: 120px; overflow: hidden; white-space: nowrap; transition: max-width .55s var(--ease), opacity .35s, margin .55s var(--ease); }
.header.has-cta .lang { max-width: 0; opacity: 0; margin-right: -14px; pointer-events: none; }
.menu-open .header.has-cta .lang { max-width: 120px; opacity: 1; margin-right: 0; pointer-events: auto; }
.btn-start--sm { height: 38px; min-width: 0; gap: 12px; padding: 0 4px 0 16px; font-size: 13px; }
.btn-start--sm .btn-start__icon { width: 30px; height: 30px; }
.btn-start--sm .btn-start__icon svg { width: 14px; height: 14px; }
.brand { justify-self: start; display: flex; align-items: center; gap: 12px; }
.brand__tag { padding-left: 12px; border-left: 1px solid var(--line); font: 500 9.5px/1.25 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.header__meta { display: none; }
.nav { display: flex; gap: 22px; font: 500 12px/1 var(--display); }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__right { justify-self: end; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 4px; font: 500 11px/1 var(--display); color: var(--muted); }
.lang button { color: var(--muted); transition: color .2s; }
.lang button.is-active, .lang button:hover { color: var(--ink); }
.burger { display: none; width: 28px; height: 28px; position: relative; }
.burger span { position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.burger span:first-child { top: 10px; } .burger span:last-child { top: 17px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg); padding: 90px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 6px; font: 500 44px/1.05 var(--display); letter-spacing: -.04em;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu__foot { margin: auto calc(var(--gutter) * -1) -32px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 28px var(--gutter) 36px; background: var(--ink); color: #fff; font: 500 15px/1.4 var(--display); letter-spacing: 0; }
.mobile-menu__foot .btn-start { margin-bottom: 14px; background: #F4F3EF; color: #121214; }
.mobile-menu__foot .btn-start::before { background: radial-gradient(140px circle at var(--mx) var(--my), rgba(0,0,0,.10), transparent 70%); }
.mobile-menu__foot a:not(.btn-start) { padding-block: 8px; color: rgba(255,255,255,.72); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 24px; padding-top: clamp(14px, 2.4vw, 40px); padding-bottom: clamp(56px, 8vw, 120px); }
.hero__award { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 14px; font: 500 12px/1.4 var(--display); color: var(--muted); }
.hero__award i { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex: none; align-self: flex-start; margin-top: .45em; }
.hero__award b { color: var(--ink); font-weight: 600; }
.hero__title { font: 500 clamp(40px, 6.9vw, 112px)/.92 var(--display); letter-spacing: -.055em; min-height: calc(3 * .92em + .1em); white-space: nowrap; transition: opacity .5s var(--ease); }
.hero__probe { position: absolute; visibility: hidden; pointer-events: none; white-space: nowrap; font: 500 100px/.92 var(--display); letter-spacing: -.055em; }
/* rotating headline: lines leave upwards before the next one slides in */
.hero__title.is-out .line > span { transform: translateY(-105%); transition-duration: .6s; transition-delay: calc(var(--i, 0) * 50ms); }
.hero__top { position: relative; grid-column: 1; grid-row: 1; min-width: 0; }
.hero__title { max-width: 100%; }
.hero__aside { grid-column: 1; grid-row: 2; }
.hero__aside { display: flex; flex-direction: row; justify-content: flex-end; align-items: center; gap: clamp(20px, 3vw, 48px); text-align: right; padding-bottom: 8px; }
.hero__aside .small { max-width: 24ch; }
/* Scroll cue: a small mouse outline whose wheel dot keeps rolling down */
.hero { position: relative; }
.hero__scroll { position: absolute; left: 50%; bottom: clamp(8px, 2.5vw, 40px); transform: translateX(-50%); display: grid; place-items: center; width: 26px; height: 40px; border: 1.5px solid var(--ink); border-radius: 13px; }
.hero__scroll span { width: 3px; height: 8px; border-radius: 2px; background: var(--accent); animation: scroll-cue 1.8s var(--ease) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-8px); opacity: 0; } 30% { opacity: 1; } 80%, 100% { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll span { animation: none; } }

/* ---------- Row head ---------- */
.row-head { display: flex; justify-content: space-between; font: 500 11px/1 var(--display); color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* Image fallback (warm stone with tile grid) when a photo can't load */
.img-fallback {
  background-color: var(--stone) !important;
  background-image: linear-gradient(#fff6 1px, transparent 1px), linear-gradient(90deg, #fff6 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
}
.img-fallback img { visibility: hidden; }
.process .scrub .w { --on: var(--on-dark); --off: #3a3a37; }

/* Text fills with ink word by word (and left→right inside each word) as you scroll */
.scrub .w {
  --f: 0; --on: var(--ink); --off: #CDCBC4;
  background: linear-gradient(90deg, var(--on) calc(var(--f) * 100%), var(--off) calc(var(--f) * 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Work ---------- */
.mega { font: 500 clamp(52px, 9vw, 150px)/.9 var(--display); letter-spacing: -.065em; }
sup { font-size: .32em; letter-spacing: -.02em; vertical-align: top; position: relative; top: .25em; margin-left: .06em; }
.work { padding-bottom: clamp(80px, 10vw, 160px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px 0 22px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 500 15px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease); }
.btn-ghost svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-ghost:hover svg { transform: rotate(90deg); }
.btn-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.work__more { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 44px); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(20px, 2.4vw, 36px); }

/* Gallery: one horizontal strip on every screen; it drifts right to left, can be
   scrolled or swiped both ways, and the photo in the middle shows in colour */
.bento-wrap { overflow-x: auto; overflow-y: hidden; padding-inline: 0; max-width: none; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.bento-wrap::-webkit-scrollbar { display: none; }
.work__strip { position: relative; }
/* Transparent arrows over the strip: step one photo left or right */
.bento-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; margin-top: -28px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; transition: background .3s var(--ease), transform .3s var(--ease); }
.bento-nav svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.bento-nav:hover { background: rgba(255,255,255,.32); transform: scale(1.06); }
.bento-nav:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.bento-nav--prev { left: var(--gutter); }
.bento-nav--next { right: var(--gutter); }
@media (max-width: 640px) { .bento-nav { width: 44px; height: 44px; margin-top: -22px; } .bento-nav svg { width: 18px; height: 18px; } }
.bento { display: flex; gap: clamp(8px, .8vw, 14px); width: max-content; padding-left: var(--gutter); will-change: transform; }
.bento__item { position: relative; display: block; flex: none; width: clamp(240px, 24vw, 400px); aspect-ratio: 64 / 82; overflow: hidden; padding: 0; background: var(--stone); --cut: clamp(18px, 2.2vw, 34px); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.bento__item picture { display: block; height: 100%; }
.bento__item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.001); transition: filter .7s var(--ease), transform 1.2s var(--ease); }
.bento__item:hover img, .bento__item:focus-visible img, .bento__item.is-center img { filter: none; }
.bento__item:hover img { transform: scale(1.05); }
.bento__item:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 640px) {
  .bento { gap: 8px; padding-left: 16px; }
  .bento__item { width: 64vw; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(14,14,14,.97); color: var(--on-dark); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); align-items: center; gap: 12px; padding: 64px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); opacity: 0; transition: opacity .35s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox { overflow: hidden; }
.lightbox__stage { position: relative; height: 100%; min-width: 0; min-height: 0; margin: 0; }
/* 3D cover-flow wheel: focus photo large and flat, the rest angled back in depth */
.ring { --fw: min(50vw, 68vh); position: absolute; inset: 0; perspective: 1600px; perspective-origin: 50% 50%; }
.ring__spin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: scale(.94); transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.lightbox.is-open .ring__spin { transform: none; }
.ring__spin.no-anim, .ring__spin.no-anim .ring__face { transition: none; }
.ring__face {
  position: absolute; left: calc(var(--fw) / -2); top: calc(var(--fw) * -.625); width: var(--fw); aspect-ratio: 4 / 5; padding: 0;
  transform: translateX(var(--x, 0)) translateZ(var(--z, 0)) rotateY(var(--ry, 0deg));
  overflow: hidden; background: #1c1b19; box-shadow: 0 40px 90px -30px rgba(0,0,0,.85); cursor: pointer;
  transition: transform .9s cubic-bezier(.22, 1, .36, 1), opacity .7s var(--ease), filter .7s var(--ease);
}
.ring__face img { width: 100%; height: 100%; object-fit: cover; }
.ring__face[data-d="0"] { opacity: 1; cursor: default; }
.ring__face[data-d="1"] { opacity: .8; filter: brightness(.6); }
.ring__face[data-d="2"] { opacity: .5; filter: brightness(.45); }
.ring__face[data-d="3"] { opacity: .25; filter: brightness(.35); }
.ring__face[data-d="4"] { opacity: 0; pointer-events: none; }
.lightbox__nav, .lightbox__close { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(244,243,239,.08); transition: background .25s; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(244,243,239,.2); }
.lightbox__nav svg, .lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav { position: relative; z-index: 2; }
.lightbox__close { z-index: 3; position: absolute; top: 12px; right: max(16px, env(safe-area-inset-right, 0px)); }
.lightbox__count { z-index: 2; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font: 500 12px/1 var(--display); letter-spacing: .04em; color: #a9a8a2; font-variant-numeric: tabular-nums; }
.lightbox button:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }

/* ---------- About ---------- */
.about { padding-bottom: clamp(60px, 8vw, 120px); }
.about__title { font: 500 clamp(28px, 4vw, 64px)/.98 var(--display); letter-spacing: -.05em; margin: 10px 0 clamp(36px, 5vw, 72px); text-align: right; text-wrap: balance; }
.about__media { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr); gap: var(--gutter); margin-bottom: clamp(28px, 4vw, 64px); }
.about__photo { position: relative; min-height: 100%; max-width: 100%; overflow: hidden; background: var(--stone); margin: 0; --cut: clamp(18px, 2.2vw, 34px); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
/* Award certificate with its caption below; this column sets the row height and the team photo stretches to match */
.about__award { display: flex; flex-direction: column; gap: 12px; margin: 0; min-width: 0; }
.about__award-frame { position: relative; display: block; aspect-ratio: 922 / 1234; max-width: 100%; background: #fff; overflow: hidden; outline: 1px solid var(--line); outline-offset: -1px; }
.about__award img { width: 100%; height: 100%; object-fit: cover; }
.about__badge { display: flex; flex-direction: column; gap: 4px; }
.about__badge b { font: 600 13px/1.1 var(--display); letter-spacing: -.01em; display: flex; align-items: center; gap: 7px; }
.about__badge b::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex: none; }
.about__badge span { font: 400 11px/1.4 var(--body); color: var(--muted); }
.about__awards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; border-top: 1px solid var(--line); overflow: hidden; }
.about__awards li { display: flex; flex-direction: column; gap: 3px; padding: 9px 8px 0 0; }
.about__awards li + li { padding-left: 10px; border-left: 1px solid var(--line); }
.about__awards em { font: 600 15px/1 var(--display); font-style: normal; letter-spacing: -.02em; color: var(--ink); }
.about__awards li span { font: 500 10px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.about__awards li.is-win em, .about__awards li.is-win span { color: var(--accent); }
/* award years slide in one by one from the right when they scroll into view */
.about__awards li { opacity: 0; transform: translateX(48px); transition: opacity .6s var(--ease), transform .9s var(--ease); transition-delay: calc((3 - var(--n, 0)) * 140ms); }
.about__awards.is-in li { opacity: 1; transform: none; }
.about__awards li:nth-child(1) { --n: 0; } .about__awards li:nth-child(2) { --n: 1; } .about__awards li:nth-child(3) { --n: 2; } .about__awards li:nth-child(4) { --n: 3; }
/* the certificate catches a light glint each time it scrolls into view */
.about__award-frame::after { content: ""; position: absolute; inset: -20% auto -20% -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.85) 45%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.85) 55%, transparent); transform: skewX(-18deg); pointer-events: none; opacity: 0; }
.about__award-frame.is-shine::after { animation: glint 1.3s var(--ease) .25s; }
@keyframes glint { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }
.about__photo picture { display: block; position: absolute; inset: 0; }
/* the team says hi: speech bubbles pop up over their heads on hover */
.about__hi { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.about__hi span { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, 6px) scale(.6); transform-origin: 50% 100%; opacity: 0; padding: 7px 12px; border-radius: 14px 14px 14px 4px; background: #fff; color: var(--ink); font: 600 clamp(11px, 1vw, 14px)/1 var(--display); white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); transition: opacity .25s, transform .45s cubic-bezier(.34, 1.56, .64, 1); transition-delay: 0ms; }
.about__photo:hover .about__hi span, .about__photo.is-hi .about__hi span { opacity: 1; transform: translate(-50%, 0) scale(1); transition-delay: var(--d); }
.about__photo img { position: absolute; inset: -15% 0; width: 100%; height: 130%; will-change: transform; object-fit: cover; object-position: 50% 62%; filter: saturate(.88) contrast(1.03); transition: filter .8s var(--ease); }
.about__photo:hover img { filter: saturate(1) contrast(1.03); }
.about__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(14,14,14,.55)); }
.about__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: clamp(14px, 2vw, 28px); color: var(--on-dark); }
.about__cap { font: 500 clamp(20px, 2.6vw, 40px)/1 var(--display); letter-spacing: -.04em; max-width: 16ch; text-wrap: balance; }
.about__capmeta { font: 500 11px/1 var(--display); letter-spacing: .04em; opacity: .8; white-space: nowrap; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gutter); align-items: start; }
.about__text { display: flex; flex-direction: column; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 110px); border-top: 1px solid var(--ink); }
.stat { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 4vw, 64px); min-height: clamp(180px, 18vw, 280px); padding: 16px clamp(12px, 1.4vw, 24px) 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat::before { content: ""; position: absolute; top: -2px; left: 0; height: 3px; width: 0; background: var(--accent); transition: width 1.4s var(--ease); }
.stat:not(:first-child)::before { left: -1px; }
.stat.is-on::before { width: 44px; }
.stat dt { display: flex; justify-content: space-between; gap: 12px; order: 2; font: 500 clamp(13px, 1vw, 15px)/1.3 var(--display); color: var(--muted); }
.stat__i { order: 2; font-size: 11px; letter-spacing: .04em; color: var(--ink); }
.stat dd { order: 1; display: flex; align-items: flex-start; gap: .08em; font: 500 clamp(64px, 7.6vw, 132px)/.82 var(--display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.stat dd em { font-style: normal; color: var(--accent); font-size: .6em; line-height: 1; }
.stat dd small { align-self: flex-end; margin-left: .25em; font-size: clamp(13px, 1vw, 15px); line-height: 1.3; letter-spacing: 0; color: var(--muted); }

/* ---------- Pixel transitions ---------- */
.pixels { display: grid; grid-template-columns: repeat(var(--cols, 24), 1fr); width: 100%; }
/* Squares switch on instantly (no fade, no scale), in an irregular order driven by scroll */
.pixels i { aspect-ratio: 1; background: transparent; }
.pixels i.on { background: var(--dark); }

/* ---------- Process (dark) ---------- */
.process { background: var(--dark); color: var(--on-dark); padding: clamp(60px, 8vw, 120px) 0 clamp(16px, 2vw, 28px); margin: -1px 0; }
.process .eyebrow { color: #8a8984; }
.process__title { font: 500 clamp(30px, 4.4vw, 70px)/.98 var(--display); letter-spacing: -.05em; padding-left: 25%; margin-bottom: clamp(48px, 6vw, 96px); }
.indent { display: inline-block; padding-left: 1.6em; }
.process__grid { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gutter); }
.process__aside { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.process__cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: clamp(28px, 3vw, 44px); }
.process__cta .small { font: 500 clamp(18px, 1.6vw, 24px)/1.2 var(--display); letter-spacing: -.02em; max-width: none; }
.process .btn-start { background: #F4F3EF; color: #121214; }
.process .btn-start::before { background: radial-gradient(140px circle at var(--mx) var(--my), rgba(0,0,0,.10), transparent 70%); }
.steps { margin-top: 12px; border-top: 1px solid #2a2a28; }
.steps li { position: relative; cursor: pointer; display: grid; grid-template-columns: 50px 1fr 160px 34px; gap: 12px; align-items: start; padding: 18px 0; border-bottom: 1px solid #2a2a28; font: 500 14px/1.3 var(--display); transition: background .3s; }
.steps li p { font: 400 13px/1.6 var(--body); color: #a3a29c; max-width: 60ch; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .45s, margin .45s; }
.steps li.is-open p { max-height: 160px; opacity: 1; margin-top: 8px; }
.steps li span, .steps li b { transition: color .3s; }
.steps li:not(.is-open) b { color: #8a8984; }
.steps li.is-open span { color: var(--accent); }
/* Progress bar on the row's bottom line: fills over --step-dur, then the next step opens */
.steps__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.steps li.is-open .steps__bar { animation: step-fill var(--step-dur, 15s) linear forwards; }
.steps.is-paused li.is-open .steps__bar { animation-play-state: paused; }
.steps.is-manual .steps__bar { display: none; }
@keyframes step-fill { to { transform: scaleX(1); } }
.steps li span { color: #8a8984; }
.steps li em { font-style: normal; font-size: 11px; color: #8a8984; text-align: right; padding-top: 2px; }
/* Round dropdown toggle: white circle with a chevron that flips when the step is open */
.steps__toggle { width: 34px; height: 34px; margin-top: -7px; border-radius: 50%; display: grid; place-items: center; background: var(--on-dark); color: var(--dark); transition: transform .5s var(--ease), background .3s, color .3s; }
.steps__toggle svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.steps li:hover .steps__toggle { transform: scale(1.08); }
.steps li.is-open .steps__toggle { background: var(--accent); color: #fff; }
.steps li.is-open .steps__toggle svg { transform: rotate(180deg); }
.steps__toggle:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 3px; }

/* ---------- Partners ---------- */
.partners { padding-top: clamp(80px, 10vw, 150px); padding-bottom: clamp(80px, 10vw, 150px); }
.brands { display: flex; overflow: hidden; margin: 28px calc(var(--gutter) * -1) 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.brands__track { display: flex; flex: none; animation: brands-run 36s linear infinite; }
.brands:hover .brands__track { animation-play-state: paused; }
@keyframes brands-run { to { transform: translateX(-100%); } }
.brands li { display: grid; place-items: center; flex: none; height: clamp(90px, 9vw, 130px); padding-inline: clamp(28px, 4.2vw, 72px); font-size: clamp(20px, 2vw, 28px); white-space: nowrap; color: var(--ink); opacity: .85; transition: opacity .3s, transform .5s var(--ease); }
.brands li:hover { opacity: 1; transform: scale(1.06); }
.b1 { font: 700 1em var(--display); letter-spacing: .3em; }
.b2 { font: 500 1em var(--body); letter-spacing: -.02em; }
.b3 { font: 600 .9em var(--display); letter-spacing: .22em; }
.b4 { font: 600 1.05em Georgia, serif; font-style: italic; }
.b5 { font: 700 1.05em var(--display); letter-spacing: .06em; }
.b6 { font: 400 .95em var(--display); letter-spacing: .45em; }
.b7 { font: 600 1em var(--body); letter-spacing: -.03em; }
.b8 { font: 700 1.2em Georgia, serif; }

/* ---------- CTA ---------- */
.cta { padding-bottom: clamp(40px, 4.5vw, 64px); }
.cta__q { font: 500 clamp(30px, 4.4vw, 70px)/.98 var(--display); letter-spacing: -.05em; margin: 10px 0 0; padding-left: 25%; }
.btn-wa { display: inline-flex; align-items: center; gap: 16px; height: 52px; min-width: 190px; padding: 0 6px 0 22px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); font: 500 16px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease); }
.btn-wa span:first-child { flex: 1; }
.btn-wa__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #25D366; color: #fff; flex: none; }
.btn-wa__icon svg { width: 20px; height: 20px; }
.btn-wa:hover { background: var(--ink); color: var(--bg); }
.btn-wa:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cta__talk-row { display: flex; justify-content: flex-end; align-items: center; gap: clamp(16px, 2vw, 28px); flex-wrap: wrap; margin: clamp(20px, 3vw, 44px) 0 clamp(18px, 2vw, 28px); }
.cta__talk { text-align: right; font: 500 clamp(22px, 2.6vw, 40px)/1 var(--display); letter-spacing: -.04em; }
.cta__mail { display: inline-block; font: 500 clamp(30px, 7.4vw, 124px)/1 var(--display); letter-spacing: -.06em; border-bottom: clamp(2px, .3vw, 5px) solid currentColor; padding-bottom: .04em; word-break: break-all; transition: opacity .3s; }
.cta__mail:hover { opacity: .65; }
.cta__info { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 2.4vw, 36px) var(--gutter); padding-left: 25%; margin-top: clamp(32px, 4vw, 60px); font: 500 13px/1.4 var(--display); }
.cta__info .eyebrow { margin-bottom: 6px; }
.cta__addr { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark); padding-top: 0; overflow: hidden; }
.footer__legal { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; border-top: 1px solid #2a2a28; font: 500 10px/1 var(--display); color: #8a8984; text-transform: uppercase; letter-spacing: .04em; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 999px; background: var(--ink); color: var(--on-dark); font: 500 14px/1.3 var(--display); border: 1px solid #3a3a37; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); overflow-wrap: anywhere; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.footer__credit { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer__giant { display: flex; align-items: center; gap: 1.2vw; padding: clamp(8px, 1vw, 16px) var(--gutter) clamp(40px, 5vw, 80px); color: var(--on-dark); white-space: nowrap; }
.footer__giant svg { width: 8.6vw; height: 8.6vw; flex: none; }
.footer__giant span { font: 700 10.4vw/.8 var(--display); letter-spacing: -.075em; }
.footer__giant sup { font-size: .22em; top: .1em; font-weight: 500; letter-spacing: 0; }

/* ---------- Custom cursor ---------- */
/* Red dot replaces the system cursor on mouse/trackpad; it grows over links and opens into a labelled pill over images */
html.has-dot, html.has-dot * { cursor: none !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .25s; }
.cursor.is-visible { opacity: 1; }
.cursor span {
  display: grid; place-items: center; min-width: 10px; height: 10px; padding: 0; border-radius: 999px;
  transform: translate(-50%, -50%); background: var(--accent); color: #fff;
  font: 500 0/1 var(--display); white-space: nowrap;
  transition: min-width .35s var(--ease), height .35s var(--ease), padding .35s var(--ease), font-size .2s, background .25s, scale .2s var(--ease);
}
.cursor.is-link span { min-width: 34px; height: 34px; background: color-mix(in srgb, var(--accent) 25%, transparent); }
.cursor.is-on span { height: 34px; padding: 0 16px; font-size: 11px; background: var(--ink); color: #fff; }
.cursor.is-down span { scale: .8; }

/* ---------- Reveal animations ---------- */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.is-in .line > span { transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.loader { position: fixed; inset: 0; z-index: 200; background: var(--dark); display: grid; place-items: center; transition: clip-path 1s var(--ease) .1s; clip-path: inset(0 0 0 0); }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2.4vw, 30px); }
.loader__tag { color: rgba(255,255,255,.72); font: 500 clamp(11px, 1vw, 14px)/1 var(--display); letter-spacing: .32em; text-transform: uppercase; padding-left: .32em; animation: loader-in .9s var(--ease) .25s both; }
.loader__logo { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); color: #fff; animation: loader-in .9s var(--ease) both; }
.loader__logo .logo__mark { width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); color: #fff; }
.loader__logo .logo__cut { fill: var(--dark); }
.loader__logo .logo__word { gap: clamp(10px, 1vw, 14px); }
.loader__logo .logo__word b { font-size: clamp(54px, 6vw, 82px); }
.loader__logo .logo__word i { width: clamp(8px, .8vw, 12px); height: clamp(8px, .8vw, 12px); }
.loader__logo .logo__word span { font-size: clamp(18px, 1.9vw, 27px); }
@keyframes loader-in { from { opacity: 0; transform: translateY(14px); } }
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader.is-enter { clip-path: inset(100% 0 0 0); transition: none; }
@keyframes pulse { to { transform: scale(.88); opacity: .6; } }

@media (prefers-reduced-motion: reduce) {
  .bento { animation: none; }
  .bento-wrap { overflow-x: auto; }
  .ring__spin { transition: none; }
  .steps li p { max-height: none; opacity: 1; margin-top: 8px; }
  .steps__bar { display: none; }
  .about__awards li { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .line > span, .reveal { transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
/* One size for all section headings (h2) */
.mega, .process__title, .about__title, .cta__q { font-size: clamp(28px, 3.4vw, 52px); line-height: 1; letter-spacing: -.045em; }

@media (max-width: 1000px) {
  .hero__title.is-out { opacity: 0; }
  .nav { display: none; }
  .header { grid-template-columns: 1fr auto; }
  .burger { display: block; }
  .burger { order: 1; }
  .header__cta { order: 2; }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__grid > span[aria-hidden] { display: none; }
  .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stat { grid-column: span 2; }
  .stat:nth-child(n+4) { grid-column: span 3; }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .process__grid { grid-template-columns: 1fr; gap: 40px; }
  .cta__info { padding-left: 0; }
}
@media (max-width: 640px) {
  .hero { padding-top: 12px; }
  .mega, .process__title, .about__title, .cta__q { font-size: clamp(26px, 8vw, 34px); }
  .header__cta .btn-start__label { display: none; }
  .btn-start--sm { padding: 0 4px; gap: 0; }
  .brand { gap: 9px; }
  .brand__tag { padding-left: 9px; font-size: 8.5px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__aside { flex-direction: column; align-items: flex-end; text-align: right; gap: 24px; }
      .lightbox { grid-template-columns: 1fr; padding-inline: 0; }
  .lightbox__nav { position: absolute; bottom: 8px; }
  .ring { --fw: min(86vw, 64vh); perspective: 900px; }
  .lightbox__prev { left: 16px; } .lightbox__next { right: 16px; }
  .process__title, .cta__q { padding-left: 0; }
  .about__title br { display: none; }
  .indent { padding-left: 0; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { grid-template-columns: 1fr; }
  .about__photo { aspect-ratio: 4/3; min-height: 0; }
  .about__award { width: min(100%, 360px); justify-self: center; }
  .about__photo figcaption { flex-direction: column; align-items: flex-start; gap: 8px; }
  .steps li { grid-template-columns: 34px 1fr 34px; }
  .steps li em { grid-column: 2; grid-row: 2; text-align: left; }
  .steps__toggle { grid-column: 3; grid-row: 1; }
  .footer__legal { flex-wrap: wrap; }
  .cta__mail { font-size: 7.2vw; word-break: normal; }
}

/* ---------- Narrow phones: keep the header inside 360px ---------- */
@media (max-width: 400px) {
  .header { gap: 8px; }
  .header__right { gap: 6px; }
  .header__cta { margin-left: -6px; }
  .brand { gap: 8px; }
  .brand__tag { padding-left: 8px; font-size: 8px; }
}
/* phones: the docked CTA takes the tagline's place */

/* ---------- Touch: comfortable tap targets (44px) ---------- */
@media (pointer: coarse) {
  .lang button { padding: 16px 6px; margin-block: -16px; }
  .burger { width: 44px; height: 44px; }
  .burger span { left: 11px; right: 11px; }
  .burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
  .footer__legal a { padding-block: 14px; margin-block: -14px; }
  .cta__info a { display: inline-block; padding-block: 10px; margin-block: -10px; }
  .cta__info   .steps li { padding-block: 20px; }
}

/* About numbers on phones: the first figure across, the rest in pairs */
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 150px; gap: 28px; padding: 14px 12px 18px; border-left: 1px solid var(--line); }
  .stat, .stat:nth-child(n+4) { grid-column: auto; }
  .stat:first-child { grid-column: 1 / -1; }
  .stat:nth-child(2), .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+2) { border-top: 1px solid var(--line); }
  .stat:nth-child(2)::before, .stat:nth-child(4)::before { left: 0; }
  .stat dd { font-size: 68px; }
  .stat:first-child dd { font-size: 124px; }
}

/* Estimate form pop-up: centred card on desktop, bottom sheet on phones */
.quote { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 16px; background: rgba(14,14,14,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease); }
.quote[hidden] { display: none; }
.quote.is-open { opacity: 1; }
.quote__panel { position: relative; display: flex; flex-direction: column; width: min(100%, 680px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; background: #EBE8E1; border: 1px solid #CFCBC2; padding: clamp(18px, 3.4vh, 44px) clamp(22px, 4vw, 52px) clamp(20px, 4vh, 48px); transform: translateY(24px); transition: transform .5s var(--ease); }
.quote.is-open .quote__panel { transform: none; }
.quote__close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background .2s, transform .3s var(--ease); }
.quote__close:hover { background: rgba(0,0,0,.06); transform: rotate(90deg); }
.quote__close svg { width: 20px; height: 20px; }
.quote__title { margin: 6px 0 clamp(12px, 2.4vh, 28px); font: 500 clamp(22px, min(3vw, 4.2vh), 36px)/1.02 var(--display); letter-spacing: -.045em; padding-right: 40px; }
.quote__form { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto minmax(0, 1fr) auto auto; gap: clamp(10px, 2vh, 22px) 16px; }
.quote__field:nth-child(n+3), .quote__send, .quote__form .quote__note { grid-column: 1 / -1; }
.quote__field:has(textarea) { grid-template-rows: auto minmax(0, 1fr); }
.quote__field { display: grid; gap: clamp(6px, 1vh, 10px); }
.quote__field > span { font: 500 13px/1 var(--display); letter-spacing: .06em; color: #2B2A27; }
.quote__field input, .quote__field textarea { width: 100%; padding: clamp(9px, 1.6vh, 15px) 16px; background: #DFDCD5; border: 1.5px solid #C6C2B9; border-radius: 3px; font: 400 16px/1.45 var(--body); color: var(--ink); transition: border-color .2s, background .2s; }
.quote__field textarea { resize: none; height: 100%; min-height: 76px; max-height: 180px; }
.quote__field input::placeholder, .quote__field textarea::placeholder { color: #A3A098; }
.quote__field input:focus, .quote__field textarea:focus { outline: none; border-color: var(--ink); background: #E6E3DC; }
.quote__send { display: flex; align-items: center; justify-content: center; gap: 14px; position: relative; height: clamp(48px, 7vh, 60px); margin-top: 4px; border-radius: 4px; background: #1B1C1A; color: #fff; font: 500 17px/1 var(--display); letter-spacing: .04em; transition: background .25s; }
.quote__send:hover { background: #000; }
.quote__send:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.quote__form .quote__note { margin-top: 2px; }
.quote__note { text-align: center; font: 400 14px/1.5 var(--body); color: #8E8B84; }
.quote__done { padding: 12px 0 8px; }
.quote__done-t { font: 500 clamp(22px, 2.4vw, 30px)/1.1 var(--display); letter-spacing: -.035em; margin-bottom: 10px; }
.quote__done .quote__note { text-align: left; max-width: 44ch; }
@media (max-width: 640px) {
  .quote { place-items: end stretch; padding: 0; }
  .quote__panel { width: 100%; max-height: 100dvh; border-width: 1px 0 0; padding: clamp(16px, 3vh, 26px) 20px calc(clamp(16px, 3.5vh, 36px) + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); }
  .quote__form { grid-template-columns: 1fr; }
  .quote__field:nth-child(n+1) { grid-column: 1; }
  .quote__form { grid-template-rows: auto auto auto minmax(0, 1fr) auto auto; }
  .quote__close { top: 10px; right: 8px; }
}
.quote__form[hidden], .quote__done[hidden] { display: none; }

/* Contact CTAs on phones: the two buttons stack at the same full width */
@media (max-width: 640px) {
  .cta__talk-row { justify-content: flex-start; gap: 8px; }
  .cta__talk { flex: 0 0 100%; margin-bottom: 4px; text-align: right; }
  .cta__talk-row .btn-start, .cta__talk-row .btn-wa { min-width: 0; height: 50px; gap: 8px; padding-left: 16px; font-size: 14.5px; }
  .cta__talk-row .btn-start { flex: 1 1 auto; }
  .cta__talk-row .btn-wa { flex: 0 0 auto; }
  .cta__talk-row .btn-start__icon, .cta__talk-row .btn-wa__icon { width: 36px; height: 36px; }
}

/* phones: fewer, smaller hello bubbles so they don't overlap */
@media (max-width: 640px) {
  .about__hi span { padding: 5px 9px; font-size: 11px; }
  .about__hi span:nth-child(3), .about__hi span:nth-child(6) { display: none; }
}
