/* =====================================================================
   AVENOR — design system
   ---------------------------------------------------------------------
   One stylesheet for the whole public site. It replaces the five <style>
   blocks that used to be pasted into every page template (~250 KB of
   duplicated CSS that could never be cached, and where the light theme
   was declared three times and fought itself with !important).

   Rules here:
     - tokens only in :root and body.light-theme
     - no !important
     - every size that reads as "premium" still has to be legible

   Sections
     01 tokens          07 hero + page headers    13 contact form
     02 reset + base    08 stat bars              14 case study
     03 layout          09 portal showcase        15 gallery + lightbox
     04 a11y            10 marquee                16 cta
     05 chrome          11 case cards             17 footer
     06 buttons         12 services/about/process 18 light theme
   ===================================================================== */

/* ── 01 tokens ────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;

  /* surfaces, darkest to lightest */
  --surface-0: #050810;
  --surface-1: #080d1a;
  --surface-2: #0d1525;
  --surface-3: #121e30;
  --surface-4: #1a2a40;
  --surface-5: #243650;

  /* text, strongest to faintest */
  --text-1: #ece5d8;
  --text-2: #94aabb;
  --text-3: #72879e;

  /* brand gold */
  --gold-1: #c8a46a;
  --gold-2: #e2c080;
  --gold-3: #f0d4a0;

  /* Decorative type — watermark numerals and faint labels. These used to be
     literal rgba() values inside each rule, so they never reacted to the
     theme and measured as low as 1.12:1 on cream. Tokenised and tuned per
     theme: 3:1 for the large watermark numerals, 4.5:1 for small labels. */
  --watermark:   rgba(226, 192, 128, .45);
  --label-faint: rgba(226, 192, 128, .62);

  /* hairlines */
  --line-1: rgba(200, 164, 106, .10);
  --line-2: rgba(200, 164, 106, .22);
  --line-3: rgba(200, 164, 106, .35);

  /* translucent fills */
  --fill-1: rgba(255, 255, 255, .02);
  --fill-2: rgba(255, 255, 255, .04);
  --glass-1: rgba(13, 21, 37, .60);
  --glass-2: rgba(20, 32, 52, .40);

  /* nav + form surfaces, so the light theme can retint them in one place */
  --nav-bg: rgba(8, 13, 26, .55);
  --nav-bg-scrolled: rgba(5, 8, 16, .78);
  --input-bg: rgba(255, 255, 255, .04);
  --placeholder: #8a9cad;
  --on-gold: #050810;

  /* status */
  --ok: #5dc48a;
  --ok-bg: rgba(76, 175, 125, .10);
  --ok-line: rgba(76, 175, 125, .30);
  --err: #e88b8b;
  --err-bg: rgba(220, 80, 80, .08);
  --err-line: rgba(220, 80, 80, .32);

  /* type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* metrics */
  --shell: 1280px;
  --pad-x: clamp(1.5rem, 5vw, 5rem);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 100px;

  --shadow-1: 0 20px 60px rgba(0, 0, 0, .35);
  --shadow-2: 0 28px 90px rgba(0, 0, 0, .45);

  --ease: cubic-bezier(.23, 1, .32, 1);

  /* legacy aliases — a handful of templates still use var(--gold) etc.
     inline. Keeping them mapped means markup never has to change twice. */
  --n0: var(--surface-0);  --n1: var(--surface-1);  --n2: var(--surface-2);
  --n3: var(--surface-3);  --n4: var(--surface-4);  --n5: var(--surface-5);
  --grey: var(--text-3);   --grey2: var(--text-2);
  --beige2: var(--text-1); --beige: var(--text-1);
  --gold: var(--gold-1);   --gold2: var(--gold-2);  --gold3: var(--gold-3);
  --border: var(--line-1); --border2: var(--line-2); --border3: var(--line-3);
  --glass: var(--glass-1); --glass2: var(--glass-2);
  --steel: var(--surface-5);
  --text: var(--text-1);   --text-soft: var(--text-2); --text-mute: var(--text-3);
}

/* ── 02 reset + base ──────────────────────────────────────────────── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--surface-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: clip;
  transition: background .35s, color .35s;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; }
a { color: inherit; }

::selection { background: rgba(200, 164, 106, .28); color: var(--text-1); }

/* Section eyebrow + heading, used on every page. */
.sec-tag, .ph-tag, .ds-tag, .cs-section-tag {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-1);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.sec-tag::before, .ph-tag::before, .cs-section-tag::before {
  content: ''; width: 24px; height: 1px; background: var(--gold-1); flex-shrink: 0;
}
.ds-tag { justify-content: center; }
.ds-tag::before, .ds-tag::after {
  content: ''; width: 24px; height: 1px; background: var(--gold-1);
}

.sec-h, .ds-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text-1);
}
/* Second line of a headline — "BRANDS THAT", "speak loudly", "One vision."
   These were outline-only (color: transparent + a text stroke). Even after
   the stroke was strengthened to 3:1 the effect stayed hard to read at any
   size, so the hierarchy now comes from colour weight instead: bright line,
   muted line, gold line. Fully legible at 8.3:1 dark / 7.0:1 light. */
.sec-h i, .ds-title i, .cs-section-title i {
  font-style: italic;
  color: var(--text-2);
}
.ghost {
  display: block;
  color: var(--text-2);
}

/* ── 03 layout ────────────────────────────────────────────────────── */

/* Full-bleed background, content centred at --shell. Saves wrapping every
   section in an extra div — the old templates had no container at all, so
   copy ran edge-to-edge on wide screens. */
#hero, .page-hero, .case-hero, .services-main, .about-body, .proc-body,
.contact-body, .work-body, #work-preview, #device-showcase, #portal-showcase, .cases-section,
.filter-bar, .cta-strip, .mq-bar, footer, .next-case, .cs-main, .error-body {
  padding-inline: max(var(--pad-x), (100% - var(--shell)) / 2);
}

section, main, .page-hero, .case-hero { position: relative; z-index: 1; }

.page-hero { padding-block: clamp(9rem, 16vh, 12rem) clamp(3.5rem, 7vh, 6rem); overflow: hidden; }
.page-hero::before, .case-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200, 164, 106, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 164, 106, .035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 0%, transparent 100%);
  pointer-events: none;
}

.about-body, .proc-body { padding-block: clamp(3rem, 7vh, 5rem) clamp(5rem, 10vh, 8rem); }
.services-main, .cases-section { padding-block: 0 clamp(5rem, 10vh, 8rem); }
.contact-body { padding-block: 2.5rem clamp(4rem, 8vh, 6rem); }

/* ── 04 accessibility ─────────────────────────────────────────────── */

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -150%);
  z-index: 9000;
  background: var(--gold-1); color: var(--on-gold);
  font-family: var(--font-ui); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 14px 28px; border-radius: 0 0 var(--radius) var(--radius);
  transition: transform .2s;
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* The custom cursor hides the native one, so a visible focus ring is the
   only way a keyboard user can tell where they are. */
:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ── 05 chrome: cursor, backdrop, nav ─────────────────────────────── */

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  body a, body button, body select, body input, body textarea, body label { cursor: none; }
}

#cur, #cur-trail { display: none; }
@media (hover: hover) and (pointer: fine) {
  #cur, #cur-trail {
    display: block; position: fixed; top: 0; left: 0;
    pointer-events: none; border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  #cur {
    width: 6px; height: 6px; background: var(--gold-2); z-index: 9999;
    transition: width .3s, height .3s, background .3s;
  }
  #cur-trail {
    width: 32px; height: 32px; border: 1px solid rgba(200, 164, 106, .4); z-index: 9998;
    transition: width .3s, height .3s, border-color .3s;
  }
  body.h #cur { width: 40px; height: 40px; background: rgba(200, 164, 106, .15); }
  body.h #cur-trail { width: 60px; height: 60px; border-color: rgba(200, 164, 106, .6); }
}

#mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(36, 54, 80, .55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 80%, rgba(18, 30, 48, .60) 0%, transparent 55%),
    var(--surface-0);
  transition: background .35s;
}
#orb1, #orb2, #orb3 {
  position: fixed; border-radius: 50%; pointer-events: none;
  filter: blur(80px); z-index: 0; opacity: .18;
}
#orb1 {
  width: 500px; height: 500px; top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(200, 164, 106, .5), transparent 70%);
  animation: orbFloat1 20s ease-in-out infinite;
}
#orb2 {
  width: 400px; height: 400px; bottom: -80px; right: -80px;
  background: radial-gradient(circle, rgba(30, 60, 100, .8), transparent 70%);
  animation: orbFloat2 24s ease-in-out infinite;
}
#orb3 {
  width: 300px; height: 300px; top: 50%; right: 20%;
  background: radial-gradient(circle, rgba(200, 164, 106, .25), transparent 70%);
  animation: orbFloat3 16s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%, 100% { transform: none } 50% { transform: translate(80px, 60px) scale(1.15) } }
@keyframes orbFloat2 { 0%, 100% { transform: none } 50% { transform: translate(-60px, -80px) scale(1.2) } }
@keyframes orbFloat3 { 0%, 100% { transform: none } 50% { transform: translate(40px, -50px) } }

/* nav */
#nav {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  display: flex; align-items: center; gap: 18px;
  width: min(1080px, 94vw);
  padding: 14px 16px 14px 28px;
  background: var(--nav-bg);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  transition: background .35s, border-color .35s, box-shadow .35s;
}
#nav.scrolled {
  background: var(--nav-bg-scrolled);
  border-color: var(--line-3);
  box-shadow: 0 20px 80px rgba(0, 0, 0, .5);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 300; letter-spacing: .18em;
  color: var(--text-1); text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.nav-logo b { color: var(--gold-1); font-weight: 300; }

.nav-links {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 30px);
  flex: 1; justify-content: center;
}
.nav-links a {
  font-family: var(--font-ui); font-weight: 500;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none;
  white-space: nowrap; transition: color .25s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-2); }

.nav-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-pill {
  background: var(--gold-1); color: var(--on-gold);
  padding: 10px 20px; border-radius: var(--radius-pill);
  font-family: var(--font-ui); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; transition: background .25s, transform .25s;
}
.nav-pill:hover { background: var(--gold-2); transform: scale(1.03); }
.nav-pill:active { transform: scale(.98); }

/* Language is a link, not a <select> — crawlable, and it carries you to the
   same page in the other language instead of resetting to the homepage. */
.lang-switch, .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; min-width: 38px; padding: 0 11px;
  border: 1px solid var(--line-2); border-radius: var(--radius-pill);
  background: var(--fill-2); color: var(--text-1);
  font-family: var(--font-ui); font-size: .66rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  backdrop-filter: blur(14px);
  transition: border-color .25s, color .25s, background .25s;
}
.lang-switch:hover, .theme-toggle:hover { border-color: var(--gold-1); color: var(--gold-1); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-sun { display: none; }
body.light-theme .theme-toggle .icon-sun { display: block; }
body.light-theme .theme-toggle .icon-moon { display: none; }

/* mobile menu */
.mobile-menu-toggle { display: none; }
.mobile-menu-scrim, .mobile-menu-panel { display: none; }

@media (max-width: 980px) {
  #nav { width: min(94vw, 720px); padding: 12px 14px 12px 20px; gap: 10px; }
  .nav-links, .nav-pill { display: none; }
  .nav-tools { margin-left: auto; }

  .mobile-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 34px;
    border: 1px solid var(--line-2); border-radius: var(--radius-pill);
    background: var(--fill-2); color: var(--text-1);
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-menu-bars, .mobile-menu-bars::before, .mobile-menu-bars::after {
    content: ''; display: block; width: 15px; height: 1.5px;
    border-radius: 999px; background: currentColor;
    transition: transform .28s, opacity .28s, background .28s;
  }
  .mobile-menu-bars { position: relative; }
  .mobile-menu-bars::before { position: absolute; top: -5px; left: 0; }
  .mobile-menu-bars::after { position: absolute; top: 5px; left: 0; }
  body.mobile-menu-open .mobile-menu-bars { background: transparent; }
  body.mobile-menu-open .mobile-menu-bars::before { transform: translateY(5px) rotate(45deg); }
  body.mobile-menu-open .mobile-menu-bars::after { transform: translateY(-5px) rotate(-45deg); }

  .mobile-menu-scrim {
    display: block; position: fixed; inset: 0; z-index: 4997;
    background: rgba(5, 8, 16, .45); backdrop-filter: blur(6px);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .mobile-menu-panel {
    display: block; position: fixed; top: 84px; left: 50%; z-index: 4998;
    width: min(94vw, 720px); padding: 16px;
    border: 1px solid var(--line-2); border-radius: 24px;
    background: rgba(8, 13, 26, .94);
    backdrop-filter: blur(24px) saturate(150%);
    box-shadow: var(--shadow-2);
    transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s;
  }
  body.mobile-menu-open { overflow: hidden; }
  body.mobile-menu-open .mobile-menu-scrim { opacity: 1; pointer-events: auto; }
  body.mobile-menu-open .mobile-menu-panel { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }

  .mobile-menu-links { display: flex; flex-direction: column; gap: 8px; }
  .mobile-menu-links a, .mobile-menu-cta {
    display: flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 16px; border-radius: 14px;
    font-family: var(--font-ui); font-size: .74rem;
    letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  }
  .mobile-menu-links a { color: var(--text-1); background: var(--fill-1); border: 1px solid var(--line-1); }
  .mobile-menu-links a[aria-current="page"] { border-color: var(--line-3); color: var(--gold-2); }
  .mobile-menu-cta { margin-top: 12px; background: var(--gold-1); color: var(--on-gold); font-weight: 700; }
}

/* ── 06 buttons + links ───────────────────────────────────────────── */

.mag-btn, .cta-btn, .fsub {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--gold-1); color: var(--on-gold);
  padding: 17px 42px; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.mag-btn::before, .cta-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .2), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.mag-btn:hover::before, .cta-btn:hover::before { opacity: 1; }
.mag-btn:hover, .cta-btn:hover, .fsub:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(200, 164, 106, .22);
}
.mag-btn:active, .cta-btn:active, .fsub:active { transform: translateY(0) scale(.99); }
.cta-btn .arr { transition: transform .3s; }
.cta-btn:hover .arr { transform: translateX(6px); }

.mag-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 42px; border-radius: var(--radius-sm);
  border: 1px solid rgba(220, 210, 196, .2);
  background: var(--fill-1); color: var(--text-1);
  font-family: var(--font-ui); font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  backdrop-filter: blur(8px);
  transition: border-color .25s, color .25s, background .25s;
}
.mag-ghost:hover { border-color: var(--gold-1); color: var(--gold-1); background: rgba(200, 164, 106, .06); }

.link-gold {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-1); text-decoration: none;
  font-family: var(--font-ui); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  transition: gap .25s;
}
.link-gold::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--gold-1); transition: width .3s var(--ease);
}
.link-gold:hover { gap: 14px; }
.link-gold:hover::after { width: 100%; }

/* ── 07 hero + page headers ───────────────────────────────────────── */

#hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(9rem, 18vh, 11rem) clamp(4rem, 9vh, 7rem);
  overflow: hidden;
}
.grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(200, 164, 106, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 164, 106, .04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 0%, transparent 100%);
}

.hero-badge, .avail-badge {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  background: rgba(200, 164, 106, .1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  padding: 7px 18px; margin-bottom: 32px;
  font-family: var(--font-ui); font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2);
}
.badge-dot, .avail-dot, .avc-fdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-1); flex-shrink: 0;
  animation: pulse 2.4s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 164, 106, .6) }
  50%      { box-shadow: 0 0 0 6px rgba(200, 164, 106, 0) }
}

.hero-h, .ph-title, .case-hero-title {
  font-family: var(--font-display);
  font-weight: 300; line-height: .9;
  position: relative; z-index: 2;
}
.hero-h { font-size: clamp(3rem, 9vw, 10rem); line-height: .88; }
.ph-title, .case-hero-title { font-size: clamp(2.8rem, 8vw, 7.5rem); }
.hero-h .row, .ph-title .row { display: block; }
.hero-h .ghost, .ph-title .ghost { margin-left: 5vw; }
.hero-h .gld, .ph-title .gld { color: var(--gold-1); }

.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-top: clamp(2rem, 5vh, 3.5rem);
  position: relative; z-index: 2;
}
.hero-desc, .ph-desc, .ph-sub, .case-hero-sub {
  max-width: 46ch; color: var(--text-2); line-height: 1.8; font-size: 1rem;
}
.ph-desc, .ph-sub { margin-top: clamp(1.75rem, 4vh, 3rem); }
.hero-desc strong, .cta-desc strong, .about-p strong, .cs-body-text strong {
  color: var(--text-1); font-weight: 400;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }

.scroll-ind {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: .66rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
  z-index: 2;
}
.scroll-ind span {
  width: 1px; height: 44px;
  background: linear-gradient(var(--gold-2), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip {
  0%   { height: 0;    opacity: 0 }
  50%  { height: 44px; opacity: 1 }
  100% { height: 44px; opacity: 0 }
}

/* case study hero */
.case-hero {
  min-height: 70svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: clamp(9rem, 16vh, 11rem) clamp(3rem, 6vh, 5rem);
  overflow: hidden;
}
.breadcrumb {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-family: var(--font-ui); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}
.breadcrumb a { color: var(--text-3); text-decoration: none; transition: color .25s; }
.breadcrumb a:hover { color: var(--gold-1); }
.breadcrumb span { color: var(--line-3); }
.case-tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.case-industry {
  font-family: var(--font-ui); font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-1);
  background: rgba(200, 164, 106, .1);
  border: 1px solid var(--line-2);
  padding: 6px 16px; border-radius: var(--radius-pill);
}
.case-year { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .12em; color: var(--text-3); }
.case-hero-sub { margin-top: 26px; max-width: 60ch; }

/* ── 08 stat bars ─────────────────────────────────────────────────── */

.stats-bar, .hero-metrics {
  display: flex; flex-wrap: wrap;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  border: 1px solid var(--line-1); border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass-2); backdrop-filter: blur(20px);
  position: relative; z-index: 2;
}
.stat-item, .hm-item {
  flex: 1 1 180px; padding: 26px 30px;
  border-right: 1px solid var(--line-1);
  transition: background .3s;
}
.stat-item:last-child, .hm-item:last-child { border-right: none; }
.stat-item:hover, .hm-item:hover { background: rgba(200, 164, 106, .06); }
.stat-num, .hm-num {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 300; color: var(--gold-2); line-height: 1;
  transition: color .3s;
}
.stat-item:hover .stat-num { color: var(--gold-3); }
.stat-num sup, .hm-num sup { font-size: .38em; color: var(--gold-3); }
.stat-label, .hm-label {
  font-family: var(--font-ui); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); margin-top: 8px;
}

/* ── 08b reporting showcase (tablet) ──────────────────────────────── */
/* The auto-cycling tablet from the original homepage, kept by request.
   Two things changed: the numbers now come from the published case studies
   instead of an invented "€2.4M revenue", and the type inside the screen
   went from 0.36–0.5rem (roughly 6–8px, unreadable even on desktop) to
   0.68rem and up. */

#device-showcase {
  padding-block: clamp(4.5rem, 10vh, 8rem);
  background: var(--surface-1);
  overflow: hidden;
}
#device-showcase::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(36, 54, 80, .35) 0%, transparent 70%);
}

.ds-stage {
  display: grid;
  /* minmax(0, …) on both tracks: a grid item's default min-width is auto,
     which lets long words blow the track out and push the layout sideways. */
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}
.ds-stage > * { min-width: 0; }

/* Step list */
.ds-steps { display: flex; flex-direction: column; }
.ds-step {
  position: relative;
  display: block;                /* it is a <button>, so this is not free */
  width: 100%; max-width: 100%;
  padding: 20px 0 20px 26px;
  border-left: 1px solid var(--line-1);
  background: none; text-align: left;
  transition: padding-left .3s, border-color .3s;
}
/* The children are <span>s inside that button. Without this they lay out
   inline — the step number, heading and paragraph ran together as one
   block of text, and `max-height: 0` silently did nothing, so the collapsed
   paragraphs still took up their full height. */
.ds-step-num, .ds-step-h, .ds-step-p { display: block; }
.ds-step.active { border-left-color: var(--gold-1); padding-left: 32px; }
.ds-step-dot {
  position: absolute; left: -5px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface-1); border: 1px solid var(--line-2);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.ds-step.active .ds-step-dot {
  background: var(--gold-1); border-color: var(--gold-1);
  box-shadow: 0 0 12px rgba(200, 164, 106, .4);
}
.ds-step-num {
  font-family: var(--font-ui); font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-1); margin-bottom: 8px;
  opacity: 0; transition: opacity .3s;
}
.ds-step.active .ds-step-num { opacity: 1; }
.ds-step-h {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 300; font-style: italic; line-height: 1.2;
  color: var(--text-3); margin-bottom: 8px; transition: color .3s;
}
.ds-step.active .ds-step-h { color: var(--text-1); }
.ds-step-p {
  font-size: .86rem; line-height: 1.7; color: var(--text-3);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s, opacity .3s;
}
/* Generous ceiling — this only has to exceed the tallest paragraph for the
   reveal to complete; Turkish runs longer than the English source. */
.ds-step.active .ds-step-p { max-height: 240px; opacity: 1; }

/* Device */
.tablet-wrap { position: relative; justify-self: center; width: min(480px, 100%); }
.tablet-frame {
  position: relative;
  width: 100%; aspect-ratio: 3 / 4;
  padding: 14px;
  background: linear-gradient(160deg, #141c2e, #0a0f1a);
  border: 2px solid rgba(255, 255, 255, .1);
  border-bottom-width: 3px;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .04),
    0 50px 160px rgba(0, 0, 0, .85),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}
.tablet-cam {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(40, 55, 80, .9); border: 1px solid rgba(255, 255, 255, .06); z-index: 2;
}
.tablet-btn, .tablet-btn2 {
  position: absolute; right: -3px; width: 4px; border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #1a2a40, #243650);
}
.tablet-btn  { top: 22%; height: 60px; }
.tablet-btn2 { top: 38%; height: 40px; }
.tablet-left-btn {
  position: absolute; left: -3px; top: 20%; height: 50px; width: 4px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #1a2a40, #243650);
}
.tablet-screen {
  width: 100%; height: 100%;
  border-radius: 14px; overflow: hidden;
  position: relative; background: #040810;
}

.screen-panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 16px;
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
  background: linear-gradient(160deg, #060c1a, #040810);
}
.screen-panel.visible { opacity: 1; transform: none; pointer-events: auto; }

.sp-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line-1);
}
.sp-logo { font-family: var(--font-display); font-size: .95rem; letter-spacing: .12em; color: #e2c080; }
.sp-logo b { color: #c8a46a; font-weight: 300; }
.sp-title {
  font-family: var(--font-ui); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; color: #ece5d8;
}
.sp-meta {
  margin-left: auto; font-family: var(--font-ui); font-size: .66rem;
  color: #94aabb; white-space: nowrap;
}
.sp-body { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; }

.sp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-kpi {
  padding: 10px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07);
}
.sp-kpi.gold { background: rgba(200, 164, 106, .08); border-color: rgba(200, 164, 106, .2); }
.sp-kpi-l {
  font-family: var(--font-ui); font-size: .62rem;
  letter-spacing: .08em; text-transform: uppercase; color: #94aabb; margin-bottom: 4px;
}
.sp-kpi-n { font-family: var(--font-display); font-size: 1.5rem; color: #ece5d8; line-height: 1; }
.sp-kpi-n small { font-family: var(--font-ui); font-size: .62rem; color: #94aabb; }
.sp-kpi-d { font-size: .62rem; color: #5dc48a; margin-top: 3px; }

.sp-card {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  padding: 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .02); border: 1px solid rgba(255, 255, 255, .06);
}
.sp-card-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sp-card-t {
  font-family: var(--font-ui); font-size: .66rem;
  letter-spacing: .08em; text-transform: uppercase; color: #ece5d8;
}
.sp-card-s { font-size: .62rem; color: #94aabb; }
.sp-chart { flex: 1; min-height: 0; }
.sp-chart svg { width: 100%; height: 100%; display: block; }

.sp-rows { display: flex; flex-direction: column; gap: 8px; }
.sp-row { display: flex; align-items: center; gap: 10px; }
.sp-row-n { font-family: var(--font-ui); font-size: .66rem; color: #94aabb; width: 58px; flex-shrink: 0; }
.sp-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.sp-fill { height: 100%; border-radius: 3px; }
.sp-fill.gold  { background: linear-gradient(90deg, rgba(200, 164, 106, .95), rgba(200, 164, 106, .45)); }
.sp-fill.blue  { background: linear-gradient(90deg, rgba(120, 170, 230, .9), rgba(120, 170, 230, .35)); }
.sp-fill.green { background: linear-gradient(90deg, rgba(93, 196, 138, .9), rgba(93, 196, 138, .35)); }
.sp-row-v { font-family: var(--font-ui); font-size: .66rem; color: #ece5d8; width: 40px; text-align: right; flex-shrink: 0; }

.sp-case {
  padding: 12px; border-radius: 8px; margin-bottom: 8px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07);
}
.sp-case:last-child { margin-bottom: 0; }
.sp-case-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.sp-case-n { font-family: var(--font-display); font-size: 1.15rem; color: #ece5d8; }
.sp-tagline { font-family: var(--font-ui); font-size: .62rem; color: #94aabb; margin-bottom: 10px; }
.sp-pill {
  font-family: var(--font-ui); font-size: .6rem; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 100px;
  background: rgba(93, 196, 138, .14); border: 1px solid rgba(93, 196, 138, .3); color: #5dc48a;
  white-space: nowrap;
}
.sp-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sp-metric { padding: 7px 9px; border-radius: 6px; background: rgba(255, 255, 255, .04); }
.sp-metric-n { font-family: var(--font-display); font-size: 1.1rem; color: #e2c080; line-height: 1; }
.sp-metric-l {
  font-family: var(--font-ui); font-size: .6rem;
  letter-spacing: .06em; text-transform: uppercase; color: #94aabb; margin-top: 3px;
}

.sp-funnel { display: flex; flex-direction: column; gap: 9px; }
.sp-step { display: flex; align-items: center; gap: 10px; }
.sp-step-l { font-family: var(--font-ui); font-size: .64rem; color: #94aabb; width: 66px; flex-shrink: 0; }
.sp-step-bar { flex: 1; height: 12px; border-radius: 4px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.sp-step-fill { height: 100%; border-radius: 4px; }
/* The value sits beside the bar, not inside it. White-on-fill measured
   1.39:1 against the brightest gold — the number was invisible on the row
   it mattered most. */
.sp-step-v {
  font-family: var(--font-ui); font-size: .64rem; color: #ece5d8;
  width: 56px; text-align: right; flex-shrink: 0; white-space: nowrap;
}

.sp-kw { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.sp-kw:last-child { border-bottom: none; }
.sp-kw-t { font-size: .68rem; color: #ece5d8; }
.sp-kw-p { font-family: var(--font-ui); font-size: .66rem; color: #e2c080; font-weight: 600; }

/* Caption — says plainly that this is an illustration. */
.ds-note {
  margin-top: 22px; text-align: center;
  font-size: .82rem; color: var(--text-3);
}

/* Floating chips.
   Original: left:-28% of the tablet, which dropped them on top of the step
   list between roughly 960 and 1300px.
   First attempt: right:-4%…-8%, which anchors the chip's *right* edge just
   past the device — so the chip still extended back across the screen.
   Now: anchored to left:100%, i.e. they begin where the device ends and
   grow outward, so they never cover it. Shown only from 1440px, where the
   gutter beside the device is a reliable 208px. */
.chip { display: none; }
@media (min-width: 1440px) {
  .chip {
    position: absolute; z-index: 3;
    /* 170 + the largest margin below = 190px, against a gutter that settles
       at 208px from 1440px up. */
    left: 100%; right: auto;
    margin-left: 10px; max-width: 170px;
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: var(--radius-pill);
    background: var(--glass-1); border: 1px solid var(--line-2);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
    font-family: var(--font-ui); font-size: .7rem; line-height: 1.35;
    color: var(--text-1);
    opacity: 0; transform: translateY(12px);
    transition: opacity .5s, transform .5s;
  }
  .chip svg { flex-shrink: 0; color: var(--gold-1); }
  .chip.visible { opacity: 1; transform: none; }
  .chip-1 { top: 6%; }
  .chip-2 { top: 30%;    margin-left: 18px; }
  .chip-3 { top: 54%;    margin-left: 12px; }
  .chip-4 { bottom: 12%; margin-left: 20px; }
}

/* Progress dots */
.ds-progress { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.dp-dot {
  width: 26px; height: 4px; border-radius: 2px;
  background: rgba(200, 164, 106, .25);
  transition: background .4s, width .4s;
}
.dp-dot.active { background: var(--gold-1); width: 48px; }

body.light-theme .tablet-frame {
  background: linear-gradient(160deg, #ffffff, #e7dccb);
  border-color: rgba(45, 55, 72, .12);
  box-shadow: 0 40px 120px rgba(40, 30, 15, .18), inset 0 1px 0 rgba(255, 255, 255, .7);
}
body.light-theme .ds-step-dot { background: var(--surface-1); }

/* The screen keeps its dark UI in both themes — a product screenshot does
   not repaint itself because the page around it did. */

@media (max-width: 900px) {
  .ds-stage { grid-template-columns: 1fr; }
  .ds-steps { order: 2; }
  .tablet-wrap { order: 1; width: min(400px, 100%); }
}

/* ── 09 portal showcase ───────────────────────────────────────────── */
/* The client portal that actually exists at /portal. */

#portal-showcase {
  padding-block: clamp(4.5rem, 10vh, 8rem);
  background: var(--surface-1);
  overflow: hidden;
}
#portal-showcase::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(36, 54, 80, .35) 0%, transparent 70%);
}
.ds-header { text-align: center; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.ds-header .ds-title { margin-inline: auto; }
.ds-lede {
  max-width: 60ch; margin: 22px auto 0;
  color: var(--text-2); line-height: 1.85; font-size: 1rem;
}

.ps-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}

/* Feature list */
.ps-feature {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line-1);
}
.ps-feature:last-child { border-bottom: none; }
.ps-feature-ico {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: rgba(200, 164, 106, .09);
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-1);
}
.ps-feature-ico svg { width: 20px; height: 20px; }
.ps-feature h3 {
  font-family: var(--font-display); font-size: 1.45rem;
  font-weight: 300; color: var(--text-1); margin-bottom: 6px;
}
.ps-feature p { color: var(--text-2); font-size: .92rem; line-height: 1.75; }
.ps-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.ps-note { font-size: .85rem; color: var(--text-3); }

/* Browser frame around the portal screenshot / illustration */
.ps-frame {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(160deg, #141c2e, #0a0f1a);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.ps-frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: rgba(4, 8, 16, .8);
  border-bottom: 1px solid var(--line-1);
}
.ps-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(148, 170, 187, .28); }
.ps-frame-url {
  margin-left: 10px; padding: 4px 12px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .04);
  font-family: var(--font-ui); font-size: .66rem;
  letter-spacing: .06em; color: var(--text-3);
}
.ps-frame img { width: 100%; display: block; }

/* Text-based portal preview, used until real screenshots are uploaded.
   Everything here is legible — the old mock-up used 0.36rem type. */
.ps-preview { padding: 22px; background: linear-gradient(160deg, #060c1a, #040810); }
.ps-preview-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line-1);
}
.ps-preview-logo { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .14em; color: var(--gold-2); }
.ps-preview-logo b { color: var(--gold-1); font-weight: 300; }
.ps-preview-tag {
  font-family: var(--font-ui); font-size: .64rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}
.ps-preview-badge {
  margin-left: auto; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--ok-bg); border: 1px solid var(--ok-line);
  font-family: var(--font-ui); font-size: .64rem; color: var(--ok);
}
.ps-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ps-card {
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--fill-1); border: 1px solid var(--line-1);
}
.ps-card-l {
  font-family: var(--font-ui); font-size: .64rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px;
}
.ps-card-n { font-family: var(--font-display); font-size: 2rem; font-weight: 300; color: var(--text-1); line-height: 1; }
.ps-rows { border: 1px solid var(--line-1); border-radius: var(--radius); overflow: hidden; }
.ps-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line-1);
  font-size: .88rem; color: var(--text-2);
}
.ps-row:last-child { border-bottom: none; }
.ps-row-ico { color: var(--gold-1); display: flex; flex-shrink: 0; }
.ps-row-ico svg { width: 16px; height: 16px; }
.ps-row-meta { margin-left: auto; font-family: var(--font-ui); font-size: .68rem; color: var(--text-3); white-space: nowrap; }

/* ── 10 marquee ───────────────────────────────────────────────────── */

.mq-bar {
  overflow: hidden;
  border-block: 1px solid var(--line-1);
  padding-block: 16px;
  background: rgba(255, 255, 255, .015);
  position: relative; z-index: 2;
  padding-inline: 0;
}
.mq-track { display: flex; gap: 48px; width: max-content; animation: mq 40s linear infinite; }
@keyframes mq { from { transform: none } to { transform: translateX(-50%) } }
.mq-bar:hover .mq-track { animation-play-state: paused; }
.mq-item {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
  font-family: var(--font-ui); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
}
.mq-dot { width: 3px; height: 3px; background: var(--gold-1); border-radius: 50%; }

/* ── 11 case cards + rows ─────────────────────────────────────────── */

#work-preview { padding-block: clamp(4.5rem, 10vh, 8rem); background: var(--surface-0); }
.work-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.wh-right { max-width: 34ch; text-align: right; }
.wh-right p { color: var(--text-2); font-size: .92rem; line-height: 1.75; }

.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.case-card {
  position: relative; overflow: hidden; display: block;
  padding: 40px 36px;
  background: var(--fill-1); border: 1px solid var(--line-1);
  border-radius: var(--radius);
  color: inherit; text-decoration: none;
  transition: background .4s, transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.case-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
  transform: scaleX(0); transition: transform .6s var(--ease);
}
.case-card:hover::before { transform: scaleX(1); }
.case-card:hover {
  background: rgba(200, 164, 106, .03);
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.case-num {
  font-family: var(--font-display); font-size: 3.4rem; font-weight: 300;
  font-style: italic; color: var(--watermark); line-height: 1; margin-bottom: 16px;
}
.case-name { font-family: var(--font-display); font-size: 2.1rem; font-weight: 300; margin-bottom: 6px; }
.case-sub { color: var(--text-3); font-size: .84rem; line-height: 1.6; margin-bottom: 20px; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 20px; }
.cm-num { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-2); line-height: 1; }
.cm-label {
  font-family: var(--font-ui); font-size: .66rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-top: 3px;
}
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ctag {
  font-family: var(--font-ui); font-size: .68rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
  border: 1px solid var(--line-1); padding: 5px 11px; border-radius: 3px;
  transition: border-color .3s, color .3s;
}
.case-card:hover .ctag, .case-row:hover .ctag { border-color: var(--line-2); color: var(--gold-1); }
.case-arrow, .view-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-family: var(--font-ui); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-1);
  transition: gap .3s;
}
.case-card:hover .case-arrow, .case-row:hover .view-btn { gap: 14px; }

/* work page rows */
.case-list-full { display: flex; flex-direction: column; }
.case-row {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 72px 1fr auto;
  align-items: center; gap: 36px; padding: 34px 36px;
  border: 1px solid var(--line-1); border-bottom: none;
  background: var(--fill-1);
  color: inherit; text-decoration: none;
  transition: background .4s, transform .4s var(--ease);
}
.case-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.case-row:last-child { border-bottom: 1px solid var(--line-1); border-radius: 0 0 var(--radius) var(--radius); }
.case-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
  transform: scaleX(0); transition: transform .6s var(--ease);
}
.case-row:hover .case-line { transform: scaleX(1); }
.case-row:hover { background: rgba(200, 164, 106, .035); transform: translateX(6px); }
.case-idx {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 300;
  font-style: italic; color: var(--watermark); line-height: 1;
}
.case-body h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 300; margin-bottom: 4px; }
.case-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.case-right .case-tags { justify-content: flex-end; }

/* ── 12 services / about / process ────────────────────────────────── */

.svc-intro {
  display: grid; grid-template-columns: minmax(260px, 320px) 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
  margin-bottom: clamp(3rem, 7vh, 5rem);
}
.svc-intro-sticky { position: sticky; top: 120px; }
.svc-intro-sticky p { color: var(--text-2); line-height: 1.8; font-size: .95rem; margin: 20px 0 26px; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.svc-card {
  position: relative; overflow: hidden; display: block;
  padding: 34px 32px;
  background: var(--fill-1); border: 1px solid var(--line-1); border-radius: var(--radius);
  color: inherit; text-decoration: none;
  transition: background .4s, transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.svc-card:hover {
  background: var(--fill-2); border-color: var(--line-2);
  transform: translateY(-4px); box-shadow: var(--shadow-2);
}
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.svc-ico {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: rgba(200, 164, 106, .1);
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-1);
  transition: background .35s, border-color .35s, transform .35s;
}
.svc-ico svg { width: 21px; height: 21px; }
.svc-card:hover .svc-ico {
  background: rgba(200, 164, 106, .18); border-color: var(--line-3); transform: scale(1.06);
}
.svc-n {
  font-family: var(--font-ui); font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--label-faint);
}
.svc-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 300; margin-bottom: 10px; }
.svc-desc { color: var(--text-3); font-size: .88rem; line-height: 1.75; }
.svc-features { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.svc-features li {
  display: flex; align-items: flex-start; gap: 9px;
  color: var(--text-2); font-size: .85rem; line-height: 1.55;
}
.svc-features li::before { content: '—'; color: var(--gold-1); flex-shrink: 0; }
.svc-meta {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-1);
  display: flex; flex-wrap: wrap; gap: 6px 22px;
}
.svc-meta div { font-size: .82rem; color: var(--text-2); }
.svc-meta dt {
  font-family: var(--font-ui); font-size: .64rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px;
}
.svc-arrow {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-1); font-family: var(--font-ui); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; transition: gap .3s;
}
.svc-card:hover .svc-arrow { gap: 14px; }

/* four-up strip */
.process-strip {
  background: var(--surface-1);
  border-block: 1px solid var(--line-1);
  padding-block: clamp(3rem, 7vh, 5rem);
  padding-inline: max(var(--pad-x), (100% - var(--shell)) / 2);
  margin-inline: calc(50% - 50vw);
  margin-block: clamp(3rem, 7vh, 5rem);
}
.ps-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.ps-step { padding-right: 32px; border-right: 1px solid var(--line-1); }
.ps-step:last-child { border-right: none; }
.ps-num {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 300;
  font-style: italic; color: var(--watermark); line-height: 1; margin-bottom: 10px;
}
.ps-h { font-family: var(--font-display); font-size: 1.3rem; font-weight: 300; color: var(--text-1); margin-bottom: 8px; }
.ps-p { color: var(--text-3); font-size: .86rem; line-height: 1.7; }

/* about */
.about-intro {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
  margin-bottom: clamp(4rem, 9vh, 7rem);
}
.about-p { color: var(--text-2); line-height: 1.85; font-size: .98rem; margin-bottom: 18px; max-width: 62ch; }

.avc-primary {
  background: rgba(13, 21, 37, .92);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 34px 40px 30px; position: relative; overflow: hidden;
}
.avc-primary::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 106, .6), transparent);
}
.avc-est {
  font-family: var(--font-ui); font-size: .66rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-1); margin-bottom: 8px;
}
.avc-rule { height: 1px; margin: 14px 0 18px; background: linear-gradient(90deg, rgba(200, 164, 106, .3), transparent); }
.avc-bignum { font-family: var(--font-display); font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 300; color: var(--gold-1); line-height: .9; }
.avc-biglabel {
  font-family: var(--font-ui); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: 10px;
}
.avc-metrics { background: rgba(13, 21, 37, .82); border: 1px solid var(--line-1); border-top: none; }
.avc-metric { padding: 18px 40px 16px; }
.avc-metric-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.avc-mn { font-family: var(--font-display); font-size: 2.3rem; font-weight: 300; color: var(--text-1); line-height: 1; }
.avc-mn sup { font-size: .45em; color: var(--gold-1); }
.avc-badge {
  font-family: var(--font-ui); font-size: .6rem;
  letter-spacing: .09em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-pill);
}
.avc-badge-up { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.avc-badge-gold { background: rgba(200, 164, 106, .1); color: var(--gold-2); border: 1px solid var(--line-2); }
.avc-ml {
  font-family: var(--font-ui); font-size: .66rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px;
}
.avc-mbar { height: 3px; background: rgba(255, 255, 255, .07); border-radius: 2px; overflow: hidden; }
.avc-mfill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, rgba(200, 164, 106, .6), rgba(200, 164, 106, .18)); }
.avc-sep { height: 1px; background: rgba(200, 164, 106, .09); margin-inline: 40px; }
.avc-foot {
  background: rgba(13, 21, 37, .72);
  border: 1px solid var(--line-1); border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 13px 40px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: .66rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-3);
}

.team-section, .values-section { margin-bottom: clamp(4rem, 9vh, 7rem); }
.team-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 40px; }
.tm {
  text-align: center; padding: 30px 24px;
  background: var(--fill-1); border: 1px solid var(--line-1); border-radius: var(--radius);
  transition: background .35s, transform .35s, box-shadow .35s;
}
.tm:hover { background: rgba(200, 164, 106, .04); transform: translateY(-4px); box-shadow: var(--shadow-1); }
.tm-av {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem;
  color: #ece5d8;
}
.av1 { background: linear-gradient(135deg, #121e30, #2e4a6a); }
.av2 { background: linear-gradient(135deg, #3d2418, #7a4a2a); }
.av3 { background: linear-gradient(135deg, #1a2d1a, #2a5a2a); }
.tm-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-1); }
.tm-role {
  font-family: var(--font-ui); font-size: .66rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-top: 4px;
}
.tm-bio { font-size: .86rem; color: var(--text-3); line-height: 1.65; margin-top: 12px; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 40px; }
.val-card {
  padding: 34px 30px; position: relative; overflow: hidden;
  background: var(--fill-1); border: 1px solid var(--line-1); border-radius: var(--radius);
  transition: background .35s;
}
.val-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-1), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s;
}
.val-card:hover::before { transform: scaleX(1); }
.val-card:hover { background: rgba(200, 164, 106, .03); }
.val-ico { color: var(--gold-1); margin-bottom: 16px; }
.val-ico svg { width: 26px; height: 26px; }
.val-h { font-family: var(--font-display); font-size: 1.45rem; font-weight: 300; color: var(--text-1); margin-bottom: 10px; }
.val-p { color: var(--text-3); font-size: .88rem; line-height: 1.75; }

/* process */
.proc-steps { margin-bottom: clamp(4rem, 9vh, 7rem); }
.proc-step {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vh, 3.75rem);
  border-bottom: 1px solid var(--line-1);
  align-items: start; transition: padding-left .35s;
}
.proc-step:first-child { border-top: 1px solid var(--line-1); }
.proc-step:hover { padding-left: 12px; }
.ps-num-big {
  font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300; font-style: italic; color: var(--watermark); line-height: 1;
}
.proc-step .ps-h { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.ps-sub {
  font-family: var(--font-ui); font-size: .68rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--gold-1); margin-bottom: 16px;
}
.proc-step .ps-p { color: var(--text-2); font-size: .92rem; line-height: 1.8; }
.ps-deliverables { display: flex; flex-direction: column; gap: 9px; }
.ps-deliverables li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-2); font-size: .87rem; line-height: 1.6;
  padding: 11px 14px;
  background: var(--fill-1); border: 1px solid var(--line-1); border-radius: var(--radius-sm);
  transition: border-color .3s, background .3s;
}
.ps-deliverables li:hover { border-color: var(--line-2); background: rgba(200, 164, 106, .03); }
.ps-deliverables li::before { content: '→'; color: var(--gold-1); flex-shrink: 0; }
.ps-duration {
  font-family: var(--font-ui); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-1);
}

.testi-section { margin-bottom: clamp(3rem, 7vh, 5rem); }
.testi-stack { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin-top: 40px; }
.testi {
  padding: 30px 32px; position: relative; overflow: hidden;
  background: var(--glass-2); border: 1px solid var(--line-1); border-radius: var(--radius);
  backdrop-filter: blur(20px);
  transition: background .35s, border-color .35s;
}
.testi::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 106, .3), transparent);
  opacity: 0; transition: opacity .35s;
}
.testi:hover { background: rgba(200, 164, 106, .04); border-color: var(--line-2); }
.testi:hover::before { opacity: 1; }
.t-q {
  font-family: var(--font-display); font-size: 1.3rem; font-style: italic;
  font-weight: 300; line-height: 1.5; color: var(--text-1); margin-bottom: 12px;
}
.t-role { font-size: .88rem; color: var(--text-2); line-height: 1.75; }

/* ── 13 contact ───────────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(2rem, 5vw, 3.75rem); align-items: start; }
.avail-badge { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.avail-dot { background: var(--ok); animation: none; }
.ci-title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 300; line-height: 1.25; margin-bottom: 16px; }
.ci-desc { color: var(--text-2); line-height: 1.8; margin-bottom: 32px; font-size: .95rem; }
.ci-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.ci-ico {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--input-bg); border: 1px solid var(--line-2); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--gold-1);
}
.ci-ico svg { width: 18px; height: 18px; }
.ci-l {
  font-family: var(--font-ui); font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px;
}
.ci-v { color: var(--text-1); font-size: .94rem; line-height: 1.5; }
.ci-v a { color: var(--text-1); text-decoration: none; border-bottom: 1px solid var(--line-2); transition: color .2s, border-color .2s; }
.ci-v a:hover { color: var(--gold-1); border-color: var(--gold-1); }

.form-wrap {
  position: relative; overflow: hidden;
  background: var(--fill-1); border: 1px solid var(--line-1); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-1);
}
.form-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-3), transparent);
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.fl { font-family: var(--font-ui); font-size: .66rem; letter-spacing: .11em; text-transform: uppercase; color: var(--text-3); }
.fi, .fta, .fsel {
  width: 100%; padding: 12px 14px;
  background: var(--input-bg); border: 1px solid var(--line-1); border-radius: var(--radius-sm);
  color: var(--text-1); font-family: var(--font-body); font-size: .95rem;
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.fi::placeholder, .fta::placeholder { color: var(--placeholder); }
.fi:hover, .fta:hover, .fsel:hover { border-color: rgba(200, 164, 106, .28); }
.fi:focus-visible, .fta:focus-visible, .fsel:focus-visible {
  outline: none;
  border-color: var(--line-3);
  box-shadow: 0 0 0 3px rgba(200, 164, 106, .18);
}
.fta { resize: vertical; min-height: 130px; line-height: 1.6; }
.fsel {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.fsel option { background: var(--surface-0); color: var(--text-1); }
.fsub { width: 100%; margin-top: 18px; }

.form-feedback {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .93rem;
  background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok);
}
.form-feedback--error { background: var(--err-bg); border-color: var(--err-line); color: var(--err); }
.ff-icon { font-weight: 700; font-size: 1.05rem; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ── 14 case study body ───────────────────────────────────────────── */

.cs-main { padding-block: 0 clamp(4rem, 9vh, 7rem); }
.cs-section { margin-bottom: clamp(3.5rem, 8vh, 6rem); }
.cs-section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300; line-height: 1.12; margin-bottom: 28px;
}
.cs-body-text { color: var(--text-2); line-height: 1.9; font-size: .98rem; margin-bottom: 18px; max-width: 72ch; }

.cs-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 40px; }
.cs-col-card {
  position: relative; overflow: hidden;
  background: var(--fill-1); border: 1px solid var(--line-1); border-radius: var(--radius-lg);
  padding: 32px 34px;
}
.cs-col-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 106, .4), transparent);
}
.cs-col-label { font-family: var(--font-ui); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-1); margin-bottom: 14px; }
.cs-col-title { font-family: var(--font-display); font-size: 1.55rem; font-weight: 300; color: var(--text-1); margin-bottom: 12px; }
.cs-col-p { color: var(--text-2); line-height: 1.8; font-size: .9rem; }
.cs-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.cs-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: .9rem; line-height: 1.6; }
.cs-list li::before { content: '—'; color: var(--gold-1); flex-shrink: 0; }

.strategy-steps { margin-top: 40px; }
.strat-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 28px;
  padding-block: 28px; border-bottom: 1px solid var(--line-1);
  align-items: start; transition: padding-left .3s;
}
.strat-step:first-child { border-top: 1px solid var(--line-1); }
.strat-step:hover { padding-left: 8px; }
.strat-num {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700; color: var(--gold-1);
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.strat-step:hover .strat-num {
  background: var(--gold-1); color: var(--on-gold);
  border-color: var(--gold-1); box-shadow: 0 0 20px rgba(200, 164, 106, .3);
}
.strat-h { font-family: var(--font-display); font-size: 1.45rem; font-weight: 300; margin-bottom: 8px; color: var(--text-1); }
.strat-p { color: var(--text-3); font-size: .89rem; line-height: 1.75; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 40px; }
.result-card {
  padding: 34px 30px; position: relative; overflow: hidden;
  background: var(--fill-1); border: 1px solid var(--line-1); border-radius: var(--radius);
  transition: background .35s;
}
.result-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-1), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s;
}
.result-card:hover::before { transform: scaleX(1); }
.result-card:hover { background: rgba(200, 164, 106, .04); }
.result-num { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 300; color: var(--gold-2); line-height: 1; margin-bottom: 8px; }
.result-label { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-1); margin-bottom: 8px; }
.result-desc { color: var(--text-3); font-size: .86rem; line-height: 1.65; }

.cs-quote {
  margin-block: clamp(3rem, 7vh, 5rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative; overflow: hidden;
  background: var(--fill-1); border: 1px solid var(--line-1); border-radius: var(--radius-lg);
}
.cs-quote::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
}
.quote-text {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-style: italic; font-weight: 300; color: var(--text-1);
  line-height: 1.45; margin-bottom: 16px;
}
.q-name { font-size: .92rem; color: var(--text-1); font-weight: 400; }
.q-role { font-family: var(--font-ui); font-size: .66rem; letter-spacing: .08em; color: var(--text-3); }

.next-case {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: clamp(3rem, 7vh, 5rem);
  border-top: 1px solid var(--line-1);
  text-decoration: none; color: inherit;
  transition: background .35s;
}
.next-case:hover { background: rgba(200, 164, 106, .02); }
.nc-label { font-family: var(--font-ui); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.nc-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; color: var(--text-1); transition: color .3s; }
.next-case:hover .nc-title { color: var(--gold-2); }
.nc-arrow { font-size: 2.5rem; color: var(--gold-1); opacity: .4; transition: opacity .3s, transform .3s; }
.next-case:hover .nc-arrow { opacity: 1; transform: translateX(10px); }

/* ── 15 gallery + lightbox ────────────────────────────────────────── */
/* The old gallery shipped six empty tiles with public "Upload Image"
   buttons. This one only renders when there are real images to show;
   uploading moved to /admin/case-media. */

.gallery-section { margin-bottom: clamp(3.5rem, 8vh, 6rem); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px; margin-top: 28px;
}
.gallery-item {
  position: relative; overflow: hidden; display: block;
  border: 1px solid var(--line-1); border-radius: var(--radius);
  background: var(--fill-1);
  aspect-ratio: 16 / 10;
  transition: border-color .35s, transform .35s;
}
.gallery-item.wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.gallery-item:hover { border-color: var(--line-2); transform: translateY(-2px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(5, 8, 16, .85));
  font-family: var(--font-ui); font-size: .7rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2);
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3, 5, 11, .92); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox[open], .lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-caption {
  margin-top: 16px; text-align: center;
  font-family: var(--font-ui); font-size: .74rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-2);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2);
  color: var(--text-1); font-size: 1.2rem;
  transition: background .25s, border-color .25s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(200, 164, 106, .16); border-color: var(--gold-1); }
.lightbox-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox-prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lightbox-next { right: clamp(.5rem, 2vw, 1.5rem); }

/* ── 16 cta ───────────────────────────────────────────────────────── */

.cta-strip {
  padding-block: clamp(4rem, 9vh, 6.5rem);
  background: var(--surface-1);
  border-top: 1px solid var(--line-2);
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(200, 164, 106, .04) 0%, transparent 70%);
}
.cta-gold-rule {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1) 25%, var(--gold-2) 50%, var(--gold-1) 75%, transparent);
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(2rem, 5vw, 3.5rem); position: relative; z-index: 2;
}
.cta-headline {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300; color: var(--text-1); line-height: 1.08;
}
.cta-headline em {
  display: block; font-style: italic;
  color: var(--gold-1);
}
.cta-right-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 42ch; }
.cta-desc { color: var(--text-2); line-height: 1.8; font-size: .95rem; }

/* ── 17 footer ────────────────────────────────────────────────────── */

footer {
  background: var(--surface-0);
  border-top: 1px solid var(--line-1);
  padding-block: clamp(3.5rem, 8vh, 5rem) 2.25rem;
  position: relative; z-index: 1;
}
.ft {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 5vh, 3.5rem);
}
.fl-logo {
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 300;
  letter-spacing: .18em; color: var(--text-1); text-decoration: none;
  display: inline-block; margin-bottom: 12px;
}
.fl-logo b { color: var(--gold-1); font-weight: 300; }
.fl-desc { color: var(--text-3); font-size: .88rem; line-height: 1.7; max-width: 34ch; }
.fc h2, .fc h5 {
  font-family: var(--font-ui); font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-1); margin-bottom: 16px;
}
.fc a {
  position: relative; display: inline-block; width: fit-content;
  color: var(--text-3); text-decoration: none; font-size: .88rem;
  margin-bottom: 9px; transition: color .25s;
}
.fc a::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1px; background: var(--text-1); transition: width .3s;
}
.fc a:hover { color: var(--text-1); }
.fc a:hover::after { width: 100%; }
.fb {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 24px;
  border-top: 1px solid var(--line-1);
  color: var(--text-3); font-size: .78rem;
}
.fs { display: flex; flex-wrap: wrap; gap: 10px; }
.fs a {
  width: 38px; height: 38px;
  border: 1px solid var(--line-1); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); text-decoration: none;
  transition: border-color .25s, color .25s, background .25s;
}
.fs a svg { width: 16px; height: 16px; }
.fs a:hover { border-color: var(--gold-1); color: var(--gold-1); background: rgba(200, 164, 106, .08); }

/* compact footer used on case study pages */
.fb-links { display: flex; flex-wrap: wrap; gap: 22px; }
.fb-links a {
  color: var(--text-3); text-decoration: none;
  font-family: var(--font-ui); font-size: .7rem;
  letter-spacing: .09em; text-transform: uppercase; transition: color .25s;
}
.fb-links a:hover { color: var(--gold-1); }

/* ── 404 ──────────────────────────────────────────────────────────── */

.error-body {
  min-height: 70svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(9rem, 18vh, 12rem) clamp(4rem, 9vh, 7rem);
}
.error-code {
  font-family: var(--font-display); font-size: clamp(5rem, 16vw, 12rem);
  font-weight: 300; font-style: italic; line-height: .9;
  color: var(--gold-1);
}
.error-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ── scroll reveal ────────────────────────────────────────────────── */

.sr, .sl, .sr2, .ex {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.sr  { transform: translateY(40px); }
.sl  { transform: translateX(-40px); }
.sr2 { transform: translateX(40px); }
.ex  { transform: translateY(30px) scale(.98); }
.sr.on, .sl.on, .sr2.on, .ex.on { opacity: 1; transform: none; }

.d1 { transition-delay: .06s } .d2 { transition-delay: .12s } .d3 { transition-delay: .18s }
.d4 { transition-delay: .24s } .d5 { transition-delay: .30s } .d6 { transition-delay: .36s }

/* Entrance animations for above-the-fold copy. */
.hero-badge, .hero-h, .hero-bottom, .stats-bar, .scroll-ind,
.ph-tag, .ph-title, .ph-desc, .ph-sub,
.breadcrumb, .case-tag-row, .case-hero-title, .case-hero-sub, .hero-metrics {
  animation: up .9s var(--ease) both;
}
.hero-badge, .ph-tag, .breadcrumb { animation-delay: .1s }
.hero-h, .ph-title, .case-tag-row  { animation-delay: .25s }
.case-hero-title                   { animation-delay: .35s }
.hero-bottom, .ph-desc, .ph-sub, .case-hero-sub { animation-delay: .5s }
.stats-bar, .hero-metrics          { animation-delay: .65s }
.scroll-ind                        { animation-delay: .9s }
@keyframes up { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: none } }

/* ── 18 light theme ───────────────────────────────────────────────── */
/* One block. The old site declared this three times in three different
   golds and settled it with !important. */

body.light-theme {
  color-scheme: light;

  --surface-0: #f8f5ef;
  --surface-1: #f1ece3;
  --surface-2: #ebe3d6;
  --surface-3: #dfd3c2;
  --surface-4: #d1c1ac;
  --surface-5: #b9a993;

  --text-1: #111827;
  --text-2: #465568;
  --text-3: #556171;

  /* Darker than the dark-theme gold so text on cream still clears 4.5:1,
     and so white on the gold button clears it too. */
  --gold-1: #8a6420;
  --gold-2: #74521a;
  --gold-3: #5b3f12;

  --line-1: rgba(45, 55, 72, .14);
  --line-2: rgba(138, 100, 32, .30);
  --line-3: rgba(138, 100, 32, .48);

  --fill-1: rgba(255, 255, 255, .58);
  --fill-2: rgba(255, 255, 255, .72);
  --glass-1: rgba(255, 255, 255, .72);
  --glass-2: rgba(255, 255, 255, .60);

  --nav-bg: rgba(255, 255, 255, .74);
  --nav-bg-scrolled: rgba(255, 255, 255, .90);
  --input-bg: rgba(255, 255, 255, .82);
  --placeholder: #6a7584;
  --on-gold: #ffffff;

  --ok: #1f7a4d;
  --ok-bg: rgba(31, 122, 77, .10);
  --ok-line: rgba(31, 122, 77, .30);
  --err: #b02525;
  --err-bg: rgba(176, 37, 37, .07);
  --err-line: rgba(176, 37, 37, .30);

  --shadow-1: 0 20px 60px rgba(30, 35, 45, .08);
  --shadow-2: 0 28px 90px rgba(30, 35, 45, .12);

  background: var(--surface-0);
  color: var(--text-1);
}

body.light-theme #mesh {
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(226, 192, 128, .26) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 80%, rgba(148, 170, 187, .24) 0%, transparent 55%),
    var(--surface-0);
}
body.light-theme #orb1, body.light-theme #orb2, body.light-theme #orb3 { opacity: .14; }

/* Decorative type, retuned for cream. Same targets as the dark theme. */
body.light-theme {
  --watermark:   rgba(107, 74, 21, .62);
  --label-faint: rgba(107, 74, 21, .80);
}
body.light-theme .avc-primary, body.light-theme .avc-metrics, body.light-theme .avc-foot {
  background: rgba(255, 255, 255, .66);
}
body.light-theme .mobile-menu-panel { background: rgba(255, 255, 255, .96); }
body.light-theme .lightbox { background: rgba(248, 245, 239, .95); }
body.light-theme .ps-frame { background: linear-gradient(160deg, #ffffff, #efe7da); }
body.light-theme .ps-preview { background: linear-gradient(160deg, #fffdf8, #f4efe4); }
body.light-theme .ps-frame-bar { background: rgba(255, 255, 255, .7); }
body.light-theme .gallery-caption { background: linear-gradient(transparent, rgba(20, 16, 10, .78)); color: #f4e6c8; }

/* ── responsive ───────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .svc-intro { grid-template-columns: 1fr; }
  .svc-intro-sticky { position: static; }
  .ps-stage { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .hero-bottom, .work-head, .cta-inner { flex-direction: column; align-items: flex-start; }
  .wh-right { text-align: left; max-width: none; }
  #hero { min-height: auto; justify-content: flex-start; }
  .stats-bar, .hero-metrics { flex-direction: column; }
  .stat-item, .hm-item { border-right: none; border-bottom: 1px solid var(--line-1); }
  .stat-item:last-child, .hm-item:last-child { border-bottom: none; }
  .case-row { grid-template-columns: 1fr; gap: 20px; }
  .case-idx { display: none; }
  .case-right { align-items: flex-start; }
  .case-right .case-tags { justify-content: flex-start; }
  .proc-step { grid-template-columns: 1fr; }
  .ps-num-big { display: none; }
  .ps-step { border-right: none; padding-right: 0; }
  .next-case { flex-direction: column; align-items: flex-start; gap: 16px; }
  .scroll-ind { display: none; }
}

@media (max-width: 620px) {
  .hero-h .ghost, .ph-title .ghost { margin-left: 0; }
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .mag-btn, .mag-ghost, .cta-btn { width: 100%; }
  .hero-btns { width: 100%; }
  .ft { grid-template-columns: 1fr; }
  .fb { flex-direction: column; align-items: flex-start; }
  .avc-metric, .avc-foot, .avc-primary { padding-inline: 26px; }
  .avc-sep { margin-inline: 26px; }
  .case-row, .case-card, .svc-card, .val-card, .result-card, .tm, .cs-col-card { padding: 26px 22px; }
}

/* ── motion + print ───────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .sr, .sl, .sr2, .ex { opacity: 1; transform: none; }
  #orb1, #orb2, #orb3, .mq-track, .badge-dot, .scroll-ind span { animation: none; }
  #cur, #cur-trail { display: none; }
  body { cursor: auto; }
}

@media print {
  #nav, #cur, #cur-trail, #mesh, #orb1, #orb2, #orb3,
  .scroll-ind, .mq-bar, .cta-strip, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .sr, .sl, .sr2, .ex { opacity: 1; transform: none; }
}


