/* ==========================================================================
   Idea Web Design: "Built in layers" design system
   Layers: back (scene) · atmosphere (glow, grain) · type (HTML) · front (glass UI, real work)
   ========================================================================== */

@font-face { font-family: "Host Grotesk"; src: url("../fonts/host-grotesk-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "HG Fallback"; src: local("Arial"); size-adjust: 99%; ascent-override: 92%; descent-override: 24%; }

:root {
  --void: #000000;
  --chrome: #f5f6f7;
  --silver: #c8cbd0;
  --mist: #8b9099;
  --paper: #eeeeec;
  --graphite: #16171a;
  --graphite-2: #4a4d55;      /* secondary text on paper, 7.6:1 */
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --hair-dark: rgba(255, 255, 255, 0.12);
  --hair-light: rgba(22, 23, 26, 0.14);
  /* the one accent: spectral fringe, only on light edges, the CTA glow and focus */
  --spectrum: linear-gradient(100deg, rgba(255,120,120,.0), rgba(255,170,120,.55), rgba(240,240,160,.5), rgba(130,230,200,.5), rgba(120,170,255,.55), rgba(200,140,255,.0));

  --f-sans: "Host Grotesk", "HG Fallback", Arial, sans-serif;
  --f-serif: var(--f-sans);
  --f-mono: var(--f-sans);

  --fs-h1: clamp(3rem, 8.2vw, 10.5rem);
  --fs-h1-thin: clamp(1.6rem, 3.6vw, 4.6rem);
  --fs-h2: clamp(2.3rem, 5.2vw, 6rem);
  --fs-h2-thin: clamp(1.7rem, 3.4vw, 4rem);
  --fs-h3: clamp(1.35rem, 2.1vw, 2.2rem);
  --fs-lead: clamp(1.125rem, 1.25vw, 1.4rem);
  --fs-body: clamp(1.0625rem, 0.25vw + 1rem, 1.1875rem);
  --fs-ui: 0.9375rem;
  --fs-mono: 0.75rem;
  --fs-label: 0.8125rem;

  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem;
  --s-4: clamp(1.75rem, 2.5vw, 2.5rem);
  --s-5: clamp(2.5rem, 4vw, 4rem);
  --s-6: clamp(4rem, 7vw, 7.5rem);
  --s-7: clamp(5rem, 11vw, 11rem);
  --gutter: clamp(1.125rem, 2.6vw, 2.75rem);
  --wrap: 110rem;
  --header-h: clamp(4.25rem, 6vw, 5.5rem);
  --r-glass: 1.1rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}
@media (min-width: 1921px) { html { font-size: calc(16px + (100vw - 1920px) * 0.0078); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--void); color: var(--chrome);
  font: 300 var(--fs-body)/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--chrome); color: var(--void); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: var(--gutter); top: 0.75rem; z-index: 1000; padding: 0.75rem 1.1rem; background: var(--chrome); color: var(--void); border-radius: 999px; font: 500 var(--fs-ui)/1 var(--f-sans); text-decoration: none; transform: translateY(-160%); transition: transform .25s var(--ease); }
.skip-link:focus { transform: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.todo { font: 500 var(--fs-label)/1.4 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: #ffd28a; border: 1px dashed currentColor; border-radius: 4px; padding: 0.1em 0.4em; }

/* Film grain over every dark surface (one fixed layer, GPU-cheap) */
.grain {
  position: fixed; inset: -50%; z-index: 300; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(3) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { position: relative; padding-block: var(--s-7); }
.on-dark { background: var(--void); color: var(--chrome); }
.on-paper { background: var(--paper); color: var(--graphite); }
.on-paper ::selection { background: var(--graphite); color: var(--paper); }

/* ---------- Type roles: bold on top, the same family thin below ---------- */
.h1, .h2 { font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.thin { display: block; font-weight: 300; letter-spacing: -0.035em; text-wrap: balance; }
.h1 .thin { font-size: var(--fs-h1-thin); line-height: 1.05; margin-top: 0.18em; }
.h2 .thin { font-size: var(--fs-h2-thin); line-height: 1.04; margin-top: 0.14em; color: var(--silver); }
.on-paper .h2 .thin { color: var(--graphite-2); }
.h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.5; max-width: 44ch; color: var(--silver); }
.on-paper .lead { color: var(--graphite-2); }
.mono, .label { font: 500 var(--fs-label)/1.4 var(--f-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--mist); }
.on-paper .muted { color: var(--graphite-2); }
.label { color: var(--mist); display: inline-flex; align-items: center; gap: 0.7em; }
.on-paper .label { color: var(--graphite-2); }
.label::before { content: "//"; letter-spacing: 0; opacity: 0.8; }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }
.split-line { display: block; }
strong { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 3.25rem; padding: 0.95rem 1.6rem; border-radius: 999px;
  font: 600 var(--fs-label)/1 var(--f-sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  background: var(--chrome); color: var(--void); isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.btn::after { /* spectral edge, appears on hover only, very faint */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; padding: 1px;
  background: var(--spectrum); opacity: 0; filter: blur(6px); transition: opacity .5s var(--ease);
}
.btn svg { width: 0.9em; height: 0.9em; transition: transform .5s var(--ease); }
@media (hover: hover) { .btn:hover::after { opacity: 0.9; } .btn:hover svg { transform: rotate(45deg); } }
.btn--glass {
  background: var(--glass); color: var(--chrome); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
@media (hover: hover) { .btn--glass:hover { background: var(--glass-strong); } }
.on-paper .btn { background: var(--graphite); color: var(--paper); }
.on-paper .btn--glass { background: rgba(22,23,26,.04); color: var(--graphite); border-color: var(--hair-light); }
.link { font: 500 var(--fs-ui)/1.2 var(--f-sans); display: inline-flex; align-items: center; gap: 0.55em; min-height: 44px; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.6rem) / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
@media (hover: hover) { .link:hover { background-size: 0 1px; background-position: 100% calc(100% - 0.6rem); } }
.link svg { width: 0.85em; height: 0.85em; }

/* ---------- Header: two rows, like the current idea-webdesign.com ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: env(safe-area-inset-top); color: var(--chrome); transition: transform .6s var(--ease), color .35s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s, background-color .4s; background: rgba(0,0,0,.72); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid var(--hair-dark); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-paper { color: var(--graphite); }
.site-header.is-paper::before { background: rgba(238,238,236,.82); border-bottom-color: var(--hair-light); }
.site-header.is-hidden { transform: translateY(-105%); }
.hdr { display: grid; grid-template-columns: auto 1fr auto; align-items: center; height: var(--header-h); }
.hdr__brand { display: flex; align-items: center; height: 100%; padding-right: var(--s-4); }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand svg { width: clamp(7.6rem, 10vw, 10.4rem); aspect-ratio: 3355 / 1112; }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font: 600 var(--fs-label)/1 var(--f-sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.nav a::before { content: "//"; position: absolute; right: calc(100% + 0.35em); opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .4s var(--ease); font-weight: 300; }
.nav a[aria-current="page"]::before { opacity: .7; transform: none; }
@media (hover: hover) { .nav a:hover::before { opacity: .7; transform: none; } }
.header-cta { display: none; }
.btn--line { background: transparent; color: currentColor; border: 1px solid currentColor; border-color: rgba(255,255,255,.35); min-height: 3.4rem; padding-inline: 1.7rem 1.3rem; gap: 2.4rem; }
.is-paper .btn--line { border-color: rgba(22,23,26,.35); }
@media (hover: hover) { .btn--line:hover { background: var(--chrome); color: var(--void); border-color: var(--chrome); } .is-paper .btn--line:hover { background: var(--graphite); color: var(--paper); } }
.btn--line svg { width: 1.05em; height: 1.05em; }
.menu-toggle { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; font: 600 var(--fs-label)/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; position: relative; z-index: 2; }
.menu-toggle__lines { position: relative; width: 1.5rem; height: 0.6rem; }
.menu-toggle__lines::before, .menu-toggle__lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle__lines::before { top: 0; } .menu-toggle__lines::after { top: calc(100% - 1.5px); }
.menu-open .menu-toggle__lines::before { top: calc(50% - .75px); transform: rotate(45deg); }
.menu-open .menu-toggle__lines::after { top: calc(50% - .75px); transform: rotate(-45deg); }
/* row two: status, reach, socials (sits in the hero, scrolls away) */
.subbar { position: absolute; z-index: 5; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top)); border-top: 1px solid var(--hair-dark); }
.subbar__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 4.5rem; font-size: 0.9375rem; font-weight: 400; }
.subbar__status { padding-right: var(--s-4); display: inline-flex; align-items: center; gap: 0.75rem; }
.subbar__status::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--chrome); animation: live 2.4s ease-out infinite; }
.subbar__reach { padding-left: var(--s-4); display: inline-flex; align-items: center; gap: 0.6rem; color: var(--silver); }
.subbar__reach svg { width: 1rem; height: 1rem; }
.social { display: flex; align-items: center; gap: 0.25rem; }
.social li { display: flex; align-items: center; gap: 0.25rem; }
.social li + li::before { content: "/"; margin-inline: 0.9rem; opacity: .7; }
.social a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; font: 600 var(--fs-label)/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.social svg { width: 1rem; height: 1rem; }
@media (hover: hover) { .social a:hover { text-decoration: underline; text-underline-offset: .3em; } }
/* the logo column's vertical rule runs through both rows */
.hdr__brand, .subbar__status { position: relative; }
.hdr__brand::after, .subbar__status::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: var(--hair-dark); }
.subbar__status { width: var(--brand-col, auto); }
.subbar, .subbar__reach, .subbar__social { display: none; }
@media (max-width: 1023px) { .hdr { grid-template-columns: 1fr auto; } .hdr__brand::after { display: none; } }
@media (min-width: 1024px) {
  .nav, .header-cta { display: inline-flex; }
  .nav { padding-left: clamp(2rem, 4vw, 4rem); }
  .menu-toggle { display: none; }
  .subbar, .subbar__reach { display: flex; }
  .subbar { display: block; }
  .subbar__social { display: block; }
  .hdr__brand { width: var(--brand-col); }
  :root { --brand-col: clamp(12rem, 16vw, 15.5rem); }
}
@media (min-width: 1024px) { :root { --header-h: clamp(5.5rem, 8vw, 8.5rem); } }
.site-header.is-scrolled { --header-h: 4.75rem; }
.site-header.is-scrolled .hdr { height: 4.75rem; }
.hdr { transition: height .5s var(--ease); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + var(--s-3)) var(--gutter) calc(var(--s-4) + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s; overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.mobile-menu__list a { display: flex; align-items: baseline; justify-content: space-between; padding-block: 0.6rem; border-bottom: 1px solid var(--hair-dark); text-decoration: none; font: 600 clamp(2rem, 9vw, 3.6rem)/1.05 var(--f-sans); letter-spacing: -0.045em; }
.mobile-menu__list a span { font: 500 var(--fs-label)/1 var(--f-sans); color: var(--mist); letter-spacing: .08em; }
.mobile-menu__foot { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.mobile-menu__foot a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; font: 300 1rem/1.3 var(--f-sans); text-decoration: none; color: var(--silver); }
.menu-open .site-header { color: var(--chrome); }
.menu-open .site-header::before { opacity: 0; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- Hero: the mark, built from light ---------- */
.hero { position: relative; min-height: 100svh; min-height: 100dvh; overflow: hidden; isolation: isolate; background: var(--void); }
.hero__atmo { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(48% 60% at 70% 42%, rgba(255,255,255,.07), transparent 65%), radial-gradient(60% 50% at 10% 110%, rgba(255,255,255,.05), transparent 70%), var(--void); }
.hero__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero__poster { position: absolute; z-index: 1; pointer-events: none; right: 3vw; top: 50%; translate: 0 -50%; width: min(52vw, 92vh); aspect-ratio: 1020 / 1070; }
.hero__poster { height: auto; opacity: 0; transition: opacity 1s var(--ease); }
.hero__poster.is-drawn { opacity: 1; }
.hero__canvas { opacity: 0; transition: opacity 1s var(--ease); }
.hero.has-webgl .hero__canvas { opacity: 1; }
.hero.has-webgl .hero__poster { opacity: 0 !important; transition: opacity .5s ease; }
.hero__content { position: relative; z-index: 3; min-height: inherit; display: grid; align-content: end; gap: var(--s-4);
  padding-top: calc(var(--header-h) + var(--s-6)); padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__title { font-size: clamp(3.1rem, 11.2vw, 14.5rem); line-height: 0.86; letter-spacing: -0.06em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; }
.hero__title .thin { font-size: clamp(1.5rem, 3.3vw, 4.4rem); letter-spacing: -0.035em; margin-top: 0.25em; color: var(--chrome); }
.hero__row { display: grid; gap: var(--s-4); align-items: end; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__cta { min-height: 3.6rem; padding-inline: 2.2rem 1.6rem; gap: 3rem; }
.hero__scroll { display: none; }
@media (min-width: 1024px) {
  .hero__row { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); }
  .hero__scroll { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--mist); }
  .hero__scroll::before { content: ""; width: 1px; height: 2.6rem; background: linear-gradient(var(--chrome), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
/* phones: the mark sits centred in the upper half, the type below it */
@media (max-width: 1023px) {
  .hero__poster { right: auto; left: 50%; top: calc(var(--header-h) + 3svh); translate: -50% 0; width: min(82vw, 46svh); }
  .hero__content { padding-top: calc(var(--header-h) + 52vh); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero__content { padding-top: calc(var(--header-h) + var(--s-3)); }
  .hero__title { font-size: clamp(2.2rem, 7vw, 3.8rem); }
}
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 80%, 100% { box-shadow: 0 0 0 0.6rem rgba(255,255,255,0); } }

/* ---------- Marquee: what we do, in motion ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--hair-dark); padding-block: clamp(1.2rem, 2.4vw, 2.2rem); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item { display: inline-flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.6rem); padding-right: clamp(1.2rem, 2.4vw, 2.6rem); white-space: nowrap;
  font: 600 clamp(2.2rem, 6vw, 7.5rem)/1 var(--f-sans); letter-spacing: -0.05em; }
.marquee__item:nth-child(even) { font-weight: 300; color: var(--mist); }
.marquee__item svg { width: 0.55em; height: 0.55em; }

/* ---------- Selected work: layered compositions ---------- */
.work__head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
@media (min-width: 1024px) { .work__head { grid-template-columns: 7fr 5fr; align-items: end; } }
.case { position: relative; display: grid; gap: var(--s-4); padding-block: var(--s-5); border-top: 1px solid var(--hair-dark); }
.case__comp { position: relative; aspect-ratio: 16 / 10.5; }
.case__screen, .case__device { position: absolute; border-radius: var(--r-glass); overflow: hidden; will-change: transform; }
.case__screen { inset: 0 14% 12% 0; border: 1px solid var(--glass-edge); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.case__screen picture { display: block; height: 100%; }
.case__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.case__device { right: 0; bottom: 0; width: 50%; background: rgba(18,19,22,.5); border: 1px solid var(--glass-edge); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 0.5rem; }
.case__device img { width: 100%; height: auto; border-radius: calc(var(--r-glass) - 0.5rem); }
.case__body { display: grid; gap: var(--s-2); align-content: end; }
.case__name { font: 300 clamp(2.4rem, 5vw, 5.4rem)/0.95 var(--f-sans); letter-spacing: -0.045em; }
.case__sector { font-size: var(--fs-h2-thin); font-weight: 300; letter-spacing: -0.035em; line-height: 1.05; color: var(--silver); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { display: inline-flex; align-items: center; min-height: 2rem; padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid var(--hair-dark); font: 500 var(--fs-label)/1.4 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--silver); }
.on-paper .chip { border-color: var(--hair-light); color: var(--graphite-2); }
@media (hover: hover) and (pointer: fine) { .case:hover .case__screen img { transform: scale(1.04); } }
@media (min-width: 1024px) {
  .case { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--s-6); }
  .case:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .case:nth-of-type(even) .case__comp { order: 2; }
  .case:nth-of-type(even) .case__screen { inset: 0 0 12% 14%; }
  .case:nth-of-type(even) .case__device { right: auto; left: 0; }
}

/* ---------- Statement (paper) ---------- */
.statement__grid { display: grid; gap: var(--s-5); }
.statement__text { font: 300 clamp(2rem, 4.2vw, 4.8rem)/1.02 var(--f-sans); letter-spacing: -0.04em; max-width: 20ch; }
.statement__text .thin { display: inline; font-size: 1em; color: var(--graphite-2); }
.statement__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-glass); }
.facts { border-top: 1px solid var(--hair-light); }
.facts div { display: grid; grid-template-columns: 8rem 1fr; gap: var(--s-2); padding-block: 0.95rem; border-bottom: 1px solid var(--hair-light); }
.facts dt { font: 500 var(--fs-label)/1.4 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--graphite-2); }
.facts dd { font-size: 1rem; }
@media (min-width: 1024px) { .statement__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-6); align-items: start; } }

/* ---------- Services index (paper) ---------- */
.services__head { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
@media (min-width: 1024px) { .services__head { grid-template-columns: 7fr 5fr; align-items: end; } }
.svc-list { border-top: 1px solid var(--hair-light); }
.svc { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0.35rem var(--s-3); align-items: center; padding-block: clamp(1.1rem, 2vw, 1.75rem); border-bottom: 1px solid var(--hair-light); text-decoration: none; isolation: isolate; }
.svc::before { content: ""; position: absolute; inset: 0.35rem calc(var(--gutter) * -0.5); z-index: -1; border-radius: var(--r-glass); background: var(--graphite); opacity: 0; transform: scale(.98); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.svc__name { font: 300 clamp(1.7rem, 3.6vw, 3.8rem)/1 var(--f-sans); letter-spacing: -0.04em; transition: transform .6s var(--ease); }
.svc__desc { grid-column: 1 / -1; color: var(--graphite-2); max-width: 50ch; font-size: 1rem; line-height: 1.5; transition: color .3s; }
.svc__go { grid-row: 1; grid-column: 2; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--hair-light); display: grid; place-items: center; transition: transform .6s var(--ease), background-color .3s, color .3s; }
.svc__go svg { width: 0.95rem; height: 0.95rem; }
@media (min-width: 900px) { .svc { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr) auto; } .svc__desc { grid-column: 2; grid-row: 1; } .svc__go { grid-column: 3; } }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { color: var(--chrome); }
  .svc:hover::before { opacity: 1; transform: none; }
  .svc:hover .svc__desc { color: var(--silver); }
  .svc:hover .svc__name { transform: translateX(clamp(0.6rem, 1.4vw, 1.4rem)); }
  .svc:hover .svc__go { transform: rotate(45deg); background: var(--chrome); color: var(--void); border-color: var(--chrome); }
}
.svc-preview { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; width: clamp(15rem, 21vw, 25rem); aspect-ratio: 16 / 10; border-radius: var(--r-glass); overflow: hidden; border: 1px solid var(--glass-edge); opacity: 0; scale: .9; transition: opacity .35s, scale .6s var(--ease); display: none; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.svc-preview.is-on { opacity: 1; scale: 1; }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.svc-preview img.is-active { opacity: 1; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) { .svc-preview { display: block; } }
.services__foot { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; }

/* ---------- SEO built in (dark, glass panel) ---------- */
.built__grid { display: grid; gap: var(--s-5); }
.built__fig { position: relative; border-radius: var(--r-glass); overflow: hidden; }
.built__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 50%; }
.panel { border-radius: var(--r-glass); background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.built__list { padding: var(--s-2) var(--s-4); }
.built__item { display: grid; gap: 0.35rem; padding-block: var(--s-3); border-bottom: 1px solid var(--hair-dark); }
.built__item:last-child { border-bottom: 0; }
.built__item h3 { font: 400 clamp(1.1rem, 1.4vw, 1.35rem)/1.25 var(--f-sans); letter-spacing: -0.015em; display: flex; gap: 0.8rem; align-items: baseline; }
.built__item h3 span { font: 500 var(--fs-label)/1.4 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.built__item p { color: var(--mist); font-size: 1rem; line-height: 1.55; max-width: 54ch; }
@media (min-width: 1024px) {
  .built__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); align-items: start; }
  .built__fig { position: sticky; top: calc(var(--header-h) + var(--s-3)); }
  .built__panel { margin-left: calc(var(--s-6) * -1.4); position: relative; z-index: 2; }
}

/* ---------- Process: a line of light draws down the stages ---------- */
.process__grid { display: grid; gap: var(--s-5); }
.process__intro { display: grid; gap: var(--s-3); align-content: start; }
.steps.steps { position: relative; padding-left: clamp(2.4rem, 4vw, 3.5rem); }
.steps::before { content: ""; position: absolute; left: 0.45rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--hair-dark); }
.steps::after { content: ""; position: absolute; left: 0.45rem; top: 0.6rem; width: 1px; height: calc(100% - 1.2rem); transform-origin: top; transform: scaleY(var(--p, 0)); background: linear-gradient(var(--chrome), rgba(245,246,247,.4)); box-shadow: 0 0 12px rgba(255,255,255,.6); }
.step { position: relative; display: grid; gap: 0.4rem; padding-block: clamp(1.1rem, 2vw, 1.8rem); }
.step::before { content: ""; position: absolute; left: calc(clamp(2.4rem, 4vw, 3.5rem) * -1 + 0.45rem - 0.3rem); top: calc(clamp(1.1rem, 2vw, 1.8rem) + 0.45rem); width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--void); border: 1px solid var(--mist); transition: background-color .5s, border-color .5s, box-shadow .5s; }
.step.is-active::before { background: var(--chrome); border-color: var(--chrome); box-shadow: 0 0 14px rgba(255,255,255,.7); }
.step__n { font: 500 var(--fs-label)/1.4 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.step__title { font: 300 clamp(1.5rem, 2.6vw, 2.6rem)/1.05 var(--f-sans); letter-spacing: -0.035em; }
.step__text { color: var(--mist); font-size: 1rem; max-width: 50ch; }
@media (min-width: 1024px) { .process__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); } .process__intro { position: sticky; top: calc(var(--header-h) + var(--s-4)); align-self: start; } }

/* ---------- Industries (paper) ---------- */
.industries__head { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
@media (min-width: 1024px) { .industries__head { grid-template-columns: 7fr 5fr; align-items: end; } }
.ind-grid { display: grid; gap: var(--gutter); }
.ind { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: var(--s-3); min-height: clamp(17rem, 26vw, 24rem); padding: var(--s-4); border-radius: var(--r-glass); border: 1px solid var(--hair-light); background: rgba(255,255,255,.45); text-decoration: none; overflow: hidden; isolation: isolate; transition: border-color .4s; }
.ind__img { position: absolute; z-index: -1; right: -6%; bottom: -18%; width: 58%; border-radius: 0.8rem; overflow: hidden; opacity: .9; transform: rotate(-5deg); transition: transform .9s var(--ease), bottom .9s var(--ease); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.ind__img--mark { background: var(--void); padding: 8%; }
.ind__text, .ind__top { position: relative; z-index: 1; }
.ind__text { max-width: 30ch !important; }
.ind__img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top; }
.ind__top { display: flex; justify-content: space-between; gap: var(--s-2); align-items: start; }
.ind__name { font: 300 clamp(1.8rem, 3vw, 3rem)/1 var(--f-sans); letter-spacing: -0.04em; max-width: 11ch; }
.ind__go { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--hair-light); display: grid; place-items: center; transition: transform .6s var(--ease), background-color .3s, color .3s; }
.ind__go svg { width: 0.9rem; height: 0.9rem; }
.ind__text { max-width: 36ch; font-size: 1rem; color: var(--graphite-2); }
.ind__proof { font: 500 var(--fs-label)/1.4 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--graphite-2); }
@media (hover: hover) and (pointer: fine) {
  .ind:hover { border-color: rgba(22,23,26,.35); }
  .ind:hover .ind__img { transform: rotate(0deg); bottom: -8%; }
  .ind:hover .ind__go { transform: rotate(45deg); background: var(--graphite); color: var(--paper); }
}
@media (min-width: 768px) { .ind-grid { grid-template-columns: repeat(12, 1fr); } .ind:nth-child(1) { grid-column: span 7; } .ind:nth-child(2) { grid-column: span 5; } .ind:nth-child(3) { grid-column: span 5; } .ind:nth-child(4) { grid-column: span 7; } }

/* ---------- Band ---------- */
.band { position: relative; height: clamp(26rem, 80vh, 60rem); overflow: hidden; }
.band picture { position: absolute; inset: 0; }
.band img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: 40% 30%; }
.band__cap { position: absolute; z-index: 2; inset: auto 0 0 0; padding-block: var(--s-6) var(--s-4); background: linear-gradient(180deg, transparent, rgba(0,0,0,.88) 62%); }
.band__cap p { font: 300 clamp(1.9rem, 4.4vw, 5rem)/1 var(--f-sans); letter-spacing: -0.04em; max-width: 18ch; }

/* ---------- FAQ (paper) ---------- */
.faq__grid { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); } }
.faq__intro { display: grid; gap: var(--s-3); align-content: start; }
.faq-item { border-top: 1px solid var(--hair-light); }
.faq-item:last-child { border-bottom: 1px solid var(--hair-light); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding-block: clamp(1.1rem, 2vw, 1.5rem); min-height: 44px; font: 400 clamp(1.1rem, 1.6vw, 1.45rem)/1.25 var(--f-sans); letter-spacing: -0.015em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon { position: relative; flex: none; width: 2.25rem; height: 2.25rem; border: 1px solid currentColor; border-radius: 50%; opacity: .7; }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.75rem; height: 1px; background: currentColor; translate: -50% -50%; transition: rotate .45s var(--ease); }
.faq-item__icon::after { rotate: 90deg; }
.faq-item[open] .faq-item__icon::after { rotate: 0deg; }
.faq-item__body { padding-bottom: var(--s-3); max-width: 62ch; color: var(--graphite-2); }

/* ---------- Closing CTA ---------- */
.cta { position: relative; overflow: hidden; padding-block: var(--s-7) var(--s-6); isolation: isolate; }
.cta__glow { position: absolute; z-index: -1; left: 50%; top: 58%; width: min(90vw, 70rem); aspect-ratio: 2; translate: -50% -50%; background: radial-gradient(closest-side, rgba(255,255,255,.14), transparent); filter: blur(20px); }
.cta__mark { position: absolute; z-index: -1; right: -6vw; top: 8%; width: min(46vw, 34rem); opacity: .55; }
.cta__title { font-size: clamp(3rem, 10.5vw, 13rem); }
.cta__title .thin { font-size: 0.42em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--s-5); }
.cta__btn { min-height: 4rem; padding-inline: 2.2rem; font-size: 1.05rem; }
.cta__row { display: grid; gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--hair-dark); }
.cta__contact { display: grid; gap: 0.3rem; }
.cta__contact a { font: 400 clamp(1.1rem, 1.8vw, 1.6rem)/1.25 var(--f-sans); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
@media (hover: hover) { .cta__contact a:hover { text-decoration: underline; } }
.inline-list { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
@media (min-width: 768px) { .cta__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--s-6) calc(var(--s-4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair-dark); }
.footer__grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; display: grid; gap: var(--s-3); align-content: start; }
.footer__brand svg { width: clamp(9rem, 13vw, 12rem); aspect-ratio: 3355 / 1112; }
.footer__brand p { color: var(--mist); max-width: 34ch; font-size: 1rem; }
.footer__col h2 { font: 500 var(--fs-label)/1.4 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); margin-bottom: var(--s-2); }
.footer__col a { display: inline-flex; align-items: center; min-height: 44px; font: 400 var(--fs-ui)/1.25 var(--f-sans); text-decoration: none; }
@media (hover: hover) { .footer__col a:hover { text-decoration: underline; } }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--hair-dark); color: var(--mist); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 0 var(--s-3); }
.footer__bottom a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
@media (max-width: 767px) { .footer__col:last-child { grid-column: 1 / -1; } }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .footer__grid { grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); } .footer__brand { grid-column: auto; } }

/* ---------- Mobile contact bar ---------- */
.mbar { position: fixed; z-index: 95; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); display: flex; gap: 0.5rem; padding: 0.4rem; border-radius: 999px; background: rgba(12,12,14,.6); border: 1px solid var(--glass-edge); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); transform: translateY(160%); transition: transform .6s var(--ease); }
.mbar { visibility: hidden; }
.mbar.is-on { transform: none; visibility: visible; }
@media (max-width: 1023px) { .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); } }
.mbar .btn { flex: 1; min-height: 3rem; padding-inline: 1rem; }
@media (min-width: 1024px) { .mbar { display: none; } }

/* ---------- Preloader / page transition ---------- */
.curtain { display: none; }
.is-first-visit .curtain, .is-arriving .curtain, .is-leaving .curtain { display: grid; place-items: center; position: fixed; inset: 0; z-index: 500; background: var(--void); color: var(--chrome); pointer-events: none; }
.curtain__mark { width: clamp(3.5rem, 7vw, 5.5rem); }
.curtain__mark path { fill: none; stroke: currentColor; stroke-width: 6; stroke-dasharray: 4200; stroke-dashoffset: 4200; }
.is-first-visit .curtain__mark path { animation: draw 1s var(--ease) .05s forwards, fillin .3s ease .85s forwards; }
.is-first-visit .curtain { animation: lift .9s var(--ease-io) 1.15s forwards; }
.is-arriving .curtain__mark path { stroke-dashoffset: 0; fill: currentColor; }
.is-arriving .curtain { animation: lift .7s var(--ease-io) .05s forwards; }
.is-leaving .curtain { animation: drop .5s var(--ease-io) forwards; }
.is-leaving .curtain__mark path { stroke-dashoffset: 0; fill: currentColor; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill: currentColor; } }
@keyframes lift { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes drop { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Hero entrance: CSS, so the H1 paints immediately (LCP-safe) */
.hero__title .line > span { animation: rise 1.1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .08s; }
.hero__title .line:nth-child(3) > span { animation-delay: .16s; }
.is-first-visit .hero__title .line > span { animation-delay: calc(var(--d, 0s) + 1.3s); }
.is-first-visit .hero__title .line:nth-child(2) > span { --d: .08s; }
.is-first-visit .hero__title .line:nth-child(3) > span { --d: .16s; }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }

.js [data-reveal] { opacity: 0; transform: translateY(1.75rem); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }

/* ---------- Cursor (fine pointers only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; width: 0.7rem; height: 0.7rem; margin: -0.35rem 0 0 -0.35rem; border-radius: 50%; background: rgba(255,255,255,.9); mix-blend-mode: difference; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, opacity .3s; }
  .cursor__label { font: 600 0.7rem/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--chrome); opacity: 0; transition: opacity .2s; }
  .has-cursor .cursor.is-link { width: 2.6rem; height: 2.6rem; margin: -1.3rem 0 0 -1.3rem; }
  .has-cursor .cursor.is-view { width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem; mix-blend-mode: normal; background: rgba(18,19,22,.55); border: 1px solid var(--glass-edge); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .has-cursor .cursor.is-view .cursor__label { opacity: 1; }
  .has-cursor .cursor.is-hidden { opacity: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .is-first-visit .curtain, .is-arriving .curtain { display: none; }
}
@media print { .site-header, .mobile-menu, .curtain, .cursor, .grain, .mbar, .svc-preview, .hero__stage { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- Services: four panels; the one you point at opens ---------- */
.xp { display: grid; gap: 0.75rem; }
.xp__item { position: relative; border-radius: var(--r-glass); overflow: hidden; border: 1px solid var(--hair-dark); background: #0b0b0c; isolation: isolate; }
.xp__link { position: relative; display: grid; align-content: end; min-height: 100%; height: 100%; text-decoration: none; padding: clamp(1.25rem, 2.2vw, 2.2rem); }
.xp__media { position: absolute; inset: 0; z-index: -1; }
.xp__media picture { display: block; width: 100%; height: 100%; }
.xp__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .8s var(--ease), opacity .8s var(--ease); }
.xp__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.88) 100%); }
.xp__n { position: absolute; top: clamp(1.25rem, 2.2vw, 2.2rem); left: clamp(1.25rem, 2.2vw, 2.2rem); font: 600 var(--fs-label)/1 var(--f-sans); letter-spacing: .08em; color: var(--silver); }
.xp__body { display: grid; gap: 0.75rem; }
.xp__name { font: 600 clamp(1.6rem, 2.6vw, 3rem)/1 var(--f-sans); letter-spacing: -0.045em; max-width: 16ch; }
.xp__desc { color: var(--silver); max-width: 40ch; font-size: 1rem; line-height: 1.5; }
.xp__more { display: inline-flex; align-items: center; gap: 0.6rem; font: 600 var(--fs-label)/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; min-height: 44px; }
.xp__more svg { width: 1rem; height: 1rem; transition: transform .5s var(--ease); }
/* phones and tablets: horizontal swipe cards, image on top */
@media (max-width: 1199px) {
  .xp { grid-auto-flow: column; grid-auto-columns: min(82vw, 26rem); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; padding-bottom: 0.25rem; }
  .xp::-webkit-scrollbar { display: none; }
  .xp__item { scroll-snap-align: start; }
  .xp__link { align-content: start; padding: 0; }
  .xp__media { position: relative; z-index: 0; aspect-ratio: 4 / 3; }
  .xp__media::after { display: none; }
  .xp__n { top: 1rem; left: 1rem; z-index: 1; padding: .45rem .65rem; border-radius: 999px; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .xp__body { padding: 1.25rem 1.25rem 1rem; }
}
/* desktop: four tall panels, the active one widens and shows its image in full */
@media (min-width: 1200px) {
  .xp { display: flex; height: clamp(32rem, 72vh, 46rem); }
  .xp__item { flex: 1 1 0; min-width: 0; transition: flex 0.9s var(--ease), border-color .4s; }
  .xp__item.is-open { flex: 3.4 1 0; border-color: rgba(255,255,255,.28); }
  .xp__media img { filter: grayscale(1) brightness(.45); transform: scale(1.12); }
  .xp__item.is-open .xp__media img { filter: none; transform: scale(1); }
  .xp__desc, .xp__more { opacity: 0; transform: translateY(0.75rem); transition: opacity .5s var(--ease), transform .7s var(--ease); }
  .xp__item.is-open .xp__desc, .xp__item.is-open .xp__more { opacity: 1; transform: none; transition-delay: .25s; }
  .xp__item:not(.is-open) .xp__name { font-size: clamp(1.25rem, 1.6vw, 1.7rem); }
  .xp__item.is-open .xp__more svg { transform: translateX(4px); }
}
.services__foot { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; }

/* ---------- Statement on white: the one big contrast moment ---------- */
.statement__text { font-weight: 600; letter-spacing: -0.05em; }
.ind__proof { position: relative; z-index: 1; justify-self: start; align-self: end; padding: .45rem .7rem; border-radius: 999px; background: rgba(238,238,236,.92); border: 1px solid var(--hair-light); }
.ind__img--mark { width: 40%; bottom: -10%; }

/* industries on phones: the project screenshot becomes a clean strip at the foot of each tile */
@media (max-width: 767px) {
  .ind { grid-template-rows: auto auto auto auto; padding-bottom: 0; }
  .ind__img { position: relative; z-index: 0; right: auto; bottom: auto; width: auto; margin: 0 calc(var(--s-4) * -1); border-radius: 0; transform: none; opacity: 1; box-shadow: none; border-top: 1px solid var(--hair-light); order: 4; }
  .ind__img img { aspect-ratio: 16 / 7; }
  .ind__proof { order: 3; margin-bottom: var(--s-3); }
}

@media (min-width: 1280px) { .hero__row { grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s-6); } }
@media (max-width: 1279px) { .hero__scroll { display: none !important; } .subbar__reach { display: none !important; } }
@media (min-width: 1024px) and (max-width: 1279px) { .subbar__row { grid-template-columns: auto 1fr; } .subbar__social { justify-self: end; } .nav ul { gap: 1.1rem; } }
@media (max-width: 1023px) { .site-footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); } .mbar { background: rgba(12,12,14,.78); } }

/* tablet refinements */
@media (min-width: 600px) and (max-width: 1023px) {
  .statement__grid aside { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-4); align-items: start; }
  .statement__grid aside .facts { margin-top: 0 !important; }
  .built__fig { max-width: 34rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .ind:nth-child(n) { grid-column: auto; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero__poster { left: auto; right: 3vw; top: 52%; translate: 0 -50%; width: min(38vw, 80svh); }
  .hero__content { max-width: 62vw; margin-left: var(--gutter); }
}

/* =====================================================================
   2026-11-14 refinements
   ===================================================================== */

/* ---- Type: no more touching letters or clipped descenders anywhere ---- */
.h1, .h2 { letter-spacing: -0.035em; line-height: 0.96; }
.thin { letter-spacing: -0.025em; }
.hero__title { font-size: clamp(2.7rem, 8.4vw, 10.8rem); line-height: 0.95; letter-spacing: -0.035em; }
.hero__title .line { padding-bottom: 0.2em; margin-bottom: -0.2em; }
.hero__title .thin { font-size: clamp(1.4rem, 2.9vw, 3.8rem); letter-spacing: -0.025em; margin-top: 0.3em; }
.split-line, .split-line-mask, [class*="split-line-mask"] { padding-bottom: 0.2em; margin-bottom: -0.2em; }
.case__name, .xp__name, .svc__name, .scard__name, .step__title, .indx__name, .footer__line { letter-spacing: -0.03em; }
.statement__text, .cta__title { letter-spacing: -0.035em; }
@media (max-width: 1023px) { .hero__content { padding-top: calc(var(--header-h) + 50vh); } }

/* ---- Marquee: room for the mark, nothing clipped ---- */
.marquee { padding-block: clamp(1.4rem, 2.6vw, 2.4rem); }
.marquee__item { line-height: 1.12; padding-block: 0.08em; letter-spacing: -0.035em; }
.marquee__item svg { flex: none; overflow: visible; width: 0.5em; height: 0.55em; transform: translateY(0.04em); }

/* ---- About ---- */
.about { overflow: hidden; isolation: isolate; }
.about__ghost { position: absolute; z-index: -1; right: -4vw; top: 6%; font: 700 clamp(9rem, 30vw, 34rem)/0.8 var(--f-sans); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08); pointer-events: none; white-space: nowrap; }
.about::before { content: ""; position: absolute; z-index: -1; left: -10%; top: 10%; width: 60%; height: 70%; background: radial-gradient(closest-side, rgba(255,255,255,.07), transparent); pointer-events: none; }
.about__grid { display: grid; gap: var(--s-6); align-items: center; }
.about__intro { display: grid; gap: var(--s-3); align-content: start; }
.about__quote { font-size: var(--fs-lead); font-weight: 300; border-left: 1px solid var(--hair-dark); padding-left: var(--s-3); max-width: 40ch; }
.about__visual { position: relative; aspect-ratio: 1 / 0.92; }
.about__img { position: absolute; margin: 0; border-radius: var(--r-glass); overflow: hidden; border: 1px solid var(--glass-edge); box-shadow: 0 50px 90px -40px rgba(0,0,0,.95); will-change: transform; }
.about__img picture, .about__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about__img--a { inset: 0 18% 22% 0; }
.about__img--b { right: 0; bottom: 0; width: 52%; aspect-ratio: 3 / 2.2; }
.about__badge { position: absolute; left: 6%; bottom: 4%; display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1.2rem 0.8rem 0.8rem; border-radius: 999px; background: rgba(14,14,16,.6); border: 1px solid var(--glass-edge); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); will-change: transform; }
.about__badge > span:last-child { display: grid; gap: 0.1rem; font-size: 0.875rem; line-height: 1.3; }
.about__badge strong { font-weight: 600; font-size: 1rem; }
.about__badge-mark { width: 3rem; height: 3rem; border-radius: 50%; background: #000; display: grid; place-items: center; overflow: hidden; flex: none; }
.about__badge-mark img { width: 74%; height: auto; }
.js .about__img { clip-path: inset(100% 0 0 0); }
.js .about__img.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-6); border-top: 1px solid var(--hair-dark); }
.stat { position: relative; display: grid; gap: 0.6rem; padding: var(--s-4) var(--s-3) var(--s-4) 0; border-bottom: 1px solid var(--hair-dark); }
.stat:nth-child(odd) { padding-right: var(--s-3); border-right: 1px solid var(--hair-dark); }
.stat:nth-child(even) { padding-left: var(--s-3); }
.stat::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--chrome); box-shadow: 0 0 14px rgba(255,255,255,.75); }
.stat:nth-child(even)::before { left: calc(var(--s-3) - 3px); }
.stat__n { font: 600 clamp(2.4rem, 5.4vw, 5.6rem)/1 var(--f-sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat__t { color: var(--mist); font-size: 0.95rem; line-height: 1.45; }
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat, .stat:nth-child(odd), .stat:nth-child(even) { padding: var(--s-4) var(--s-3); border-right: 1px solid var(--hair-dark); border-bottom: 0; }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
  .stat::before, .stat:nth-child(even)::before { left: auto; right: -4px; }
  .stat:first-child::before { left: 0; right: auto; }
  .stat:last-child::before { display: none; }
}
@media (max-width: 599px) {
  .about__visual { aspect-ratio: 1 / 1.05; }
  .about__img--a { inset: 0 8% 26% 0; }
  .about__img--b { width: 62%; }
  .about__badge { left: 0; bottom: -2%; }
  .stat__n { font-size: clamp(2rem, 11vw, 2.8rem); }
}

/* ---- Industries: list + sticky browser ---- */
.indx { display: grid; gap: var(--s-5); }
.indx__item { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); padding-block: var(--s-4); border-top: 1px solid var(--hair-light); transition: opacity .5s var(--ease); }
.indx__item:last-child { border-bottom: 1px solid var(--hair-light); }
.indx__n { font: 500 var(--fs-label)/1.6 var(--f-sans); letter-spacing: .08em; color: var(--graphite-2); padding-top: 0.6em; }
.indx__body { display: grid; gap: var(--s-2); justify-items: start; }
.indx__name { font: 600 clamp(1.9rem, 3.4vw, 3.6rem)/1 var(--f-sans); letter-spacing: -0.035em; }
.indx__text { color: var(--graphite-2); max-width: 46ch; }
.indx__proof { font-size: 0.95rem; color: var(--graphite-2); }
.indx__proof strong { color: var(--graphite); font-weight: 600; }
.indx__mob { margin: 0.5rem 0 0; width: 100%; border-radius: 0.9rem; overflow: hidden; border: 1px solid var(--hair-light); box-shadow: 0 30px 60px -36px rgba(0,0,0,.5); }
.indx__mob img { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; object-position: top; }
.indx__stage { display: none; }
@media (min-width: 1024px) {
  .indx { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-6); align-items: start; }
  .indx__mob { display: none; }
  .indx__item { min-height: 62vh; align-content: center; opacity: .32; }
  .indx__item.is-active { opacity: 1; }
  .indx__stage { display: block; position: sticky; top: calc(var(--header-h) + 8vh); }
}
.browser { border-radius: 1rem; overflow: hidden; background: #0d0d0f; border: 1px solid rgba(22,23,26,.2); box-shadow: 0 60px 120px -50px rgba(0,0,0,.55), 0 20px 40px -30px rgba(0,0,0,.4); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: 30% 50%; transition: transform 1s var(--ease); }
.browser:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.browser__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 0.75rem 1rem; color: var(--silver); background: #151517; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 0.8125rem; }
.browser__dots { display: flex; gap: 0.4rem; }
.browser__dots i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: rgba(255,255,255,.22); }
.browser__url { justify-self: center; padding: 0.35rem 1rem; border-radius: 999px; background: rgba(255,255,255,.07); min-width: 50%; text-align: center; }
.browser__count { font-weight: 500; letter-spacing: .08em; color: var(--mist); }
.browser__view { position: relative; aspect-ratio: 16 / 9.6; overflow: hidden; }
.browser__shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.browser__shot.is-active { opacity: 1; transform: none; }
.browser__shot picture, .browser__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---- SEO built in: text never sits on the tablet ---- */
@media (min-width: 1024px) {
  .built__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .built__panel { margin-left: 0; }
  .built__fig { margin-left: calc((100vw - min(100vw - 2 * var(--gutter), var(--wrap))) / -2); border-radius: 0 var(--r-glass) var(--r-glass) 0; }
  .built__fig img { object-position: 30% 50%; }
}

/* ---- Brands we have worked with ---- */
.brands { overflow: hidden; }
.brands__head { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
@media (min-width: 1024px) { .brands__head { grid-template-columns: 7fr 5fr; align-items: end; } }
.brands__stage { perspective: 1800px; padding-inline: var(--gutter); }
.brands__wall { position: relative; width: min(100%, 92rem); margin-inline: auto; border-radius: 1.2rem; overflow: hidden; transform-origin: 50% 0; transform: rotateX(18deg) scale(.94); will-change: transform; box-shadow: 0 80px 120px -60px rgba(0,0,0,1); --x: 50%; --y: 50%; --r: 0px; }
.brands__layer picture, .brands__layer img { display: block; width: 100%; height: auto; }
.brands__layer--mono img { filter: grayscale(1) contrast(1.05) brightness(.62); }
.brands__layer--color { position: absolute; inset: 0; -webkit-mask: radial-gradient(circle var(--r) at var(--x) var(--y), #000 60%, transparent 100%); mask: radial-gradient(circle var(--r) at var(--x) var(--y), #000 60%, transparent 100%); }
.brands__wall::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 70%, rgba(0,0,0,.55)); }
.brands__foot { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; margin-top: var(--s-5); }
@media (max-width: 767px) { .brands__stage { padding-inline: 0; } .brands__wall { width: 150%; margin-left: -25%; border-radius: 0; } }

/* ---- FAQ: the left column carries a contact card ---- */
.ask { margin-top: var(--s-4); display: grid; gap: var(--s-2); padding: clamp(1.5rem, 2.6vw, 2.4rem); border-radius: var(--r-glass); background: var(--void); color: var(--chrome); position: relative; overflow: hidden; isolation: isolate; }
.ask::before { content: ""; position: absolute; z-index: -1; right: -20%; top: -30%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255,255,255,.12), transparent); }
.ask__mark { width: 4.5rem; }
.ask__mark img { width: 100%; height: auto; }
.ask__title { font: 600 clamp(1.5rem, 2.2vw, 2.2rem)/1.05 var(--f-sans); letter-spacing: -0.03em; }
.ask__text { color: var(--silver); font-size: 1rem; max-width: 40ch; }
.ask__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.ask .btn--line { color: var(--chrome); border-color: rgba(255,255,255,.35); }
.ask__meta { color: var(--mist); font-size: 0.875rem; }
@media (min-width: 1024px) { .faq__intro { position: sticky; top: calc(var(--header-h) + var(--s-4)); align-self: start; } }

/* ---- Footer: the mark in light ---- */
.cta { padding-bottom: var(--s-5); }
.site-footer { padding-top: 0; border-top: 0; }
.footer__show { position: relative; height: clamp(26rem, 78vh, 46rem); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--hair-dark); margin-bottom: var(--s-6); background: radial-gradient(50% 60% at 72% 50%, rgba(255,255,255,.06), transparent 70%); }
.footer__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.footer__fallback { position: absolute; z-index: 0; right: 6%; top: 50%; translate: 0 -50%; width: min(36vw, 60vh); opacity: .85; transition: opacity .8s; }
.footer__fallback img { width: 100%; height: auto; }
.footer__show.has-webgl .footer__fallback { opacity: 0; }
.footer__slogan { position: relative; z-index: 1; height: 100%; display: grid; align-content: end; justify-items: start; gap: var(--s-4); padding-bottom: var(--s-5); pointer-events: none; }
.footer__slogan a { pointer-events: auto; }
.footer__line { font: 600 clamp(2.4rem, 6.4vw, 7.6rem)/0.98 var(--f-sans); letter-spacing: -0.035em; max-width: 12ch; }
.footer__line .thin { font-size: 0.62em; color: var(--silver); margin-top: 0.15em; }
@media (max-width: 1023px) {
  .footer__show { height: auto; min-height: 34rem; }
  .footer__fallback { right: auto; left: 50%; top: 8%; translate: -50% 0; width: min(64vw, 22rem); }
  .footer__slogan { padding-top: 22rem; }
  .site-footer { padding-bottom: calc(var(--s-4) + env(safe-area-inset-bottom)); }
}

/* ---- Floating buttons (WhatsApp bottom-left, back to top bottom-right) ---- */
.mbar { display: none !important; }
.fab { position: fixed; z-index: 95; bottom: calc(1rem + env(safe-area-inset-bottom)); width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; color: var(--chrome); background: rgba(14,14,16,.7); border: 1px solid var(--glass-edge); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transform: translateY(1rem); transition: opacity .4s, transform .5s var(--ease), visibility 0s linear .4s, background-color .3s, color .3s; }
.fab.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .4s, transform .5s var(--ease), visibility 0s, background-color .3s, color .3s; }
.fab svg { width: 1.35rem; height: 1.35rem; }
.fab--wa { left: 1rem; }
.fab--top { right: 1rem; }
@media (hover: hover) { .fab:hover { background: var(--chrome); color: var(--void); } }
.menu-open .fab { opacity: 0; visibility: hidden; }

/* tablet tidy */
@media (min-width: 600px) and (max-width: 1023px) { .about__visual { max-width: 40rem; } }
@media (min-width: 1024px) { .footer__canvas { left: 42%; width: 58%; } }
@media (max-width: 1023px) { .footer__canvas { height: 22rem; bottom: auto; } }
.ask__mark { width: 3rem; height: 3.3rem; color: var(--chrome); }
.about__badge-mark svg { width: 55%; height: auto; color: var(--chrome); }
.footer__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--mist); font-size: 0.95rem; }
.footer__col a { overflow-wrap: anywhere; }
/* brands: a calmer, cinematic frame */
.brands__wall { width: min(100%, 78rem); aspect-ratio: 16 / 8; }
.brands__layer { position: absolute; inset: 0; }
.brands__layer picture, .brands__layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.brands__layer--mono img { filter: grayscale(1) contrast(1.08) brightness(.78); }
@media (max-width: 767px) { .brands__wall { aspect-ratio: 4 / 3.4; } }
@media (max-width: 767px) {
  .brands__stage { padding-inline: var(--gutter); }
  .brands__wall { width: 100%; margin-left: 0; border-radius: 0.9rem; aspect-ratio: 4 / 3.6; }
  .about__ghost { display: none; }
}
@media (max-width: 599px){.fab{width:2.9rem;height:2.9rem;}}
@media (min-width: 1024px) {
  .indx__item { opacity: 1; position: relative; }
  .indx__item .indx__name { color: var(--graphite-2); transition: color .5s var(--ease); }
  .indx__item.is-active .indx__name { color: var(--graphite); }
  .indx__item::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--graphite); transition: width .9s var(--ease); }
  .indx__item.is-active::before { width: 100%; }
}
.live { display: inline-flex; align-items: center; gap: 0.6em; } .live::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; animation: live 2.4s ease-out infinite; }
