/* ==========================================================================
   FlowVexa Digital Water Solutions — Design System
   Concept: "Signal & Flow" — deep navy, fine line-art strokes (from the logo),
   teal → blue → violet gradient, engineering-grid details, mono data labels.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand (sampled from the logo) */
  --navy-990: #040b16;
  --navy-950: #061224;
  --navy-900: #091b31;            /* logo background */
  --navy-850: #0c223d;
  --navy-800: #0f2a4a;
  --navy-700: #16375f;
  --teal: #6eecde;                 /* mark highlights */
  --aqua: #7fceda;                 /* tagline */
  --blue: #5fa0ea;                 /* mark mid-tones */
  --violet: #ad87f6;               /* wordmark */
  --grad: linear-gradient(90deg, #6eecde 0%, #5fa0ea 52%, #ad87f6 100%);
  --grad-diag: linear-gradient(135deg, #6eecde 0%, #5fa0ea 50%, #ad87f6 100%);
  --grad-soft: linear-gradient(135deg, rgba(110,236,222,.16), rgba(95,160,234,.10) 50%, rgba(173,135,246,.16));

  /* text on dark */
  --ink-0: #f2f7fd;
  --ink-1: #d5e1ef;
  --ink-2: #9fb3cc;
  --ink-3: #6f86a3;
  --line: rgba(127, 206, 218, .14);
  --line-strong: rgba(127, 206, 218, .28);

  /* light surfaces */
  --paper: #f3f6fb;
  --paper-2: #e8eef6;
  --paper-ink: #0b1a2e;
  --paper-ink-2: #43546d;
  --paper-line: rgba(11, 26, 46, .10);
  --teal-deep: #0f8f86;            /* accessible teal on light */
  --violet-deep: #6a45c9;

  /* type */
  --font-display: "Sora", "Lexend", "Segoe UI", system-ui, sans-serif;
  --font-accent: "Instrument Serif", "Iowan Old Style", Georgia, serif;   /* italic accent: the "flow" in the headline */
  --font-wide: "Lexend Exa", "Lexend", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.2rem;
  --fs-xl: clamp(1.35rem, 1.1rem + .9vw, 1.7rem);
  --fs-2xl: clamp(1.7rem, 1.25rem + 1.6vw, 2.4rem);
  --fs-3xl: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-hero: clamp(2.5rem, 1.5rem + 4.2vw, 5rem);

  /* layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 20px 60px -20px rgba(2, 8, 20, .65);
  --shadow-light: 0 18px 50px -24px rgba(11, 26, 46, .28);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 76px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink-1);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ink-0);
  margin: 0 0 .6em;
}
h1 { font-size: var(--fs-hero); font-weight: 300; }
h2 { font-size: var(--fs-3xl); font-weight: 300; }
h3 { font-size: var(--fs-xl); font-weight: 400; }
h4 { font-size: var(--fs-lg); font-weight: 500; }
strong { color: var(--ink-0); font-weight: 700; }
::selection { background: rgba(110, 236, 222, .3); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 999; background: var(--teal); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1440px; }
.section { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--deep { background: var(--navy-950); }
.section--dark { background: var(--navy-900); }
.section--raised { background: var(--navy-850); }
.section--grid { background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top; }
.section--grid::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, transparent 0%, var(--navy-900) 75%); }
.section--grid > * { position: relative; }

/* light "paper" sections for long-form reading */
.section--light { background: var(--paper); color: var(--paper-ink-2); }
.section--light h1, .section--light h2, .section--light h3, .section--light h4, .section--light strong { color: var(--paper-ink); }
.section--light .eyebrow { color: var(--teal-deep); }
.section--light .eyebrow::before { background: var(--teal-deep); }
.section--light .lead { color: var(--paper-ink-2); }
.section--light .card { background: #fff; border-color: var(--paper-line); box-shadow: var(--shadow-light); }
.section--light .card p, .section--light .card li { color: var(--paper-ink-2); }
.section--light .chip { background: #fff; border-color: var(--paper-line); color: var(--paper-ink); }
.section--light .check-list li::before { background: var(--teal-deep); }
.section--light .grad-text { background: linear-gradient(90deg, var(--teal-deep), #2f6fc0 50%, var(--violet-deep)); -webkit-background-clip: text; background-clip: text; }
.section--light .muted { color: var(--paper-ink-2); }
.section--light .divider { background: var(--paper-line); }
.section--light a.text-link { color: var(--teal-deep); }

.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split > *, .grid > *, .vtabs > * { min-width: 0; }
.split--top { align-items: start; }
.split--reverse > :first-child { order: 2; }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.center .lead, .center .section-head__lead { margin-inline: auto; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 2rem; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--aqua);
  margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Signature: inside headlines and statements the highlighted words switch to a flowing serif italic.
   Engineering geometry (Sora) + fluid calligraphy (Instrument Serif) = water meets the digital layer. */
h1 .grad-text, h2 .grad-text, .statement .grad-text, .cta-band h2 .grad-text {
  font-family: var(--font-accent); font-style: italic; font-weight: 400;
  font-size: 1.12em; line-height: .9; letter-spacing: -.005em;
  padding: 0 .07em .06em 0; margin-right: -.07em; /* room for the italic overhang under background-clip, no visual gap */
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { font-size: var(--fs-lg); line-height: 1.7; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.mono { font-family: var(--font-mono); }
.wide { font-family: var(--font-wide); letter-spacing: .04em; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; }
.section-head__lead { color: var(--ink-2); font-size: var(--fs-lg); max-width: 62ch; }
.section--light .section-head__lead { color: var(--paper-ink-2); }
.divider { height: 1px; background: var(--line); border: 0; margin: 2.5rem 0; }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-2xl); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 2em 0; padding: 1.2em 1.6em; border-left: 2px solid var(--teal); background: var(--grad-soft); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: var(--fs-lg); color: var(--ink-0); }
.section--light .prose blockquote { color: var(--paper-ink); border-left-color: var(--teal-deep); }

/* ---------- 5. Buttons & links ---------- */
.btn {
  --b-bg: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--font-display); font-size: .98rem; font-weight: 500; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--grad); color: var(--navy-950); box-shadow: 0 10px 30px -10px rgba(110, 236, 222, .55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(173, 135, 246, .6); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink-0); background: rgba(255,255,255,.02); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.section--light .btn--ghost { color: var(--paper-ink); border-color: rgba(11,26,46,.22); }
.section--light .btn--ghost:hover { color: var(--teal-deep); border-color: var(--teal-deep); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; line-height: 1.35; max-width: 100%; } }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-family: var(--font-display); font-weight: 500; }
.text-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- 6. Header & navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(6, 18, 36, .82); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1400px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font-family: var(--font-display); font-size: .95rem; color: var(--ink-1); background: none; border: 0; cursor: pointer;
  transition: color .2s, background .2s;
}
.nav__link svg { width: 14px; height: 14px; transition: transform .25s; opacity: .7; }
.nav__link:hover, .nav__item:focus-within > .nav__link { color: var(--ink-0); background: rgba(127, 206, 218, .08); }
.nav__link[aria-current="page"] { color: var(--teal); }
.nav__item:hover > .nav__link svg, .nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.nav__cta { margin-left: 10px; }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px);
  width: max-content; max-width: min(92vw, 980px);
  background: rgba(8, 22, 42, .97); backdrop-filter: blur(18px); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item:hover > .mega, .nav__item.is-open > .mega, .nav__item:focus-within > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(220px, 1fr)); gap: 28px; }
.mega__title { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--aqua); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mega__list { list-style: none; display: grid; gap: 2px; }
.mega__list a { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; transition: background .2s; }
.mega__list a:hover { background: rgba(127, 206, 218, .08); }
.mega__list a svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--teal); margin-top: 2px; }
.mega__list strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--ink-0); line-height: 1.3; }
.mega__list span { display: block; font-size: .82rem; color: var(--ink-3); line-height: 1.45; }
.mega__feature { border-radius: var(--radius); padding: 22px; background: var(--grad-soft); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.mega__feature p { font-size: .9rem; color: var(--ink-2); margin: 0; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-0); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 20px; height: 1.5px; background: currentColor; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.is-open .nav-toggle span { background: transparent; }
.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  /* backdrop-filter would make the fixed menu panel size itself to the header: disable while open */
  .site-header.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--navy-950); }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 40px; background: var(--navy-950); overflow-y: auto;
    transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
  }
  .is-open .nav { transform: none; visibility: visible; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.08rem; border-radius: 0; }
  .nav__link:hover { background: none; }
  .nav__link--lang { justify-content: flex-start; gap: 10px; }
  .mega { position: static; transform: none; opacity: 1; visibility: visible; display: none; width: auto; max-width: none; padding: 4px 0 18px; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
  .nav__item:hover > .mega, .nav__item:focus-within > .mega { transform: none; }
  .nav__item.is-open > .mega { display: block; transform: none; }
  .mega::before { display: none; }
  .mega__grid { grid-template-columns: 1fr; gap: 18px; }
  .mega__feature { display: none; }
  .nav__cta { margin: 24px 0 0; }
  .nav__cta .btn { width: 100%; }
  body.nav-locked { overflow: hidden; }
}
@media (max-width: 480px) { .brand img { height: 38px; } }

/* ---------- 7. Heroes ---------- */
.hero {
  position: relative; min-height: min(100svh, 1000px); display: flex; align-items: center; overflow: hidden;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px; isolation: isolate;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(95,160,234,.16), transparent 60%),
              radial-gradient(ellipse 60% 50% at 20% 80%, rgba(173,135,246,.12), transparent 60%), var(--navy-950);
}
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,18,36,.88) 0%, rgba(6,18,36,.55) 38%, transparent 62%); }
@media (max-width: 860px) { .hero::before { background: linear-gradient(180deg, rgba(6,18,36,.55) 0%, rgba(6,18,36,.9) 22%, rgba(6,18,36,.92) 80%, rgba(6,18,36,.45) 100%); } }
.hero__fade { position: absolute; inset: auto 0 0 0; height: 220px; z-index: -1; background: linear-gradient(transparent, var(--navy-900)); pointer-events: none; }
.hero__content { max-width: 820px; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
.hero__formula { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 44px; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.hero__formula b { color: var(--teal); font-weight: 400; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-3); text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--teal), transparent); animation: scrollcue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(64px, 8vw, 104px);
  background: radial-gradient(ellipse 70% 80% at 85% 0%, rgba(95,160,234,.18), transparent 60%),
              radial-gradient(ellipse 50% 60% at 0% 100%, rgba(173,135,246,.12), transparent 60%), var(--navy-950);
  border-bottom: 1px solid var(--line);
}
.page-hero__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .8; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,18,36,.92) 0%, rgba(6,18,36,.7) 45%, rgba(6,18,36,.15) 75%, transparent 100%); }
@media (max-width: 860px) { .page-hero::before { background: rgba(6,18,36,.72); } }
.page-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.2rem); max-width: 18ch; }
.page-hero .lead { max-width: 64ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 28px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a:hover { color: var(--teal); }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* ---------- 8. Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22, 55, 95, .38), rgba(12, 34, 61, .28));
  border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  overflow: hidden;
}
.card h3 { font-size: 1.28rem; margin-bottom: .2em; }
.card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.card--hover:hover, a.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
a.card:hover .text-link svg { transform: translateX(4px); }
.card--glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad-diag); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.card--glow:hover::after { opacity: 1; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--teal); margin-bottom: 8px; }
.card__icon svg { width: 26px; height: 26px; stroke-width: 1.5; }
.section--light .card__icon { color: var(--teal-deep); background: linear-gradient(135deg, rgba(15,143,134,.10), rgba(106,69,201,.10)); border-color: var(--paper-line); }
.card__num { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; color: var(--ink-3); }
.card__foot { margin-top: auto; padding-top: 14px; }
.card--feature { padding: clamp(28px, 3.2vw, 44px); background: var(--grad-soft), var(--navy-850); border-color: var(--line-strong); }

/* ---------- 9. Lists, chips, tags ---------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: .86rem; color: var(--ink-1); background: rgba(127, 206, 218, .06); border: 1px solid var(--line); white-space: nowrap; }
@media (max-width: 480px) { .chip { white-space: normal; } }
.chip--accent { color: var(--navy-950); background: var(--teal); border-color: var(--teal); font-weight: 600; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--ink-1); }
.section--light .check-list li { color: var(--paper-ink-2); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-radius: 2px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='M0 4h12M9 1l3 3-3 3' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='M0 4h12M9 1l3 3-3 3' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  background: var(--teal); }
.check-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 640px) { .check-list--2col { grid-template-columns: 1fr; } }

/* ---------- 10. Tabs (horizontal + vertical) ---------- */
.tabs__nav { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(127, 206, 218, .05); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; margin-bottom: clamp(28px, 4vw, 48px); }
.tabs__nav::-webkit-scrollbar { display: none; }
.tabs__btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 0; background: none; cursor: pointer; font-family: var(--font-display); font-size: .95rem; color: var(--ink-2); transition: color .25s, background .25s; }
.tabs__btn svg { width: 18px; height: 18px; }
.tabs__btn:hover { color: var(--ink-0); }
.tabs__btn[aria-selected="true"] { background: var(--grad); color: var(--navy-950); font-weight: 500; }
.section--light .tabs__nav { background: #fff; border-color: var(--paper-line); }
.section--light .tabs__btn { color: var(--paper-ink-2); }
.section--light .tabs__btn[aria-selected="true"] { color: var(--navy-950); }
.tabs__panel { animation: tabin .5s var(--ease); }
.tabs__panel[hidden] { display: none; }
@keyframes tabin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.vtabs { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.vtabs .tabs__nav { flex-direction: column; width: 100%; border-radius: var(--radius-lg); padding: 10px; position: sticky; top: calc(var(--header-h) + 80px); max-height: calc(100vh - var(--header-h) - 100px); overflow-y: auto; }
.vtabs .tabs__btn { justify-content: flex-start; border-radius: 12px; padding: 13px 16px; text-align: left; white-space: normal; }
.vtabs > .tabs__panel { min-width: 0; }
.vtabs .tabs__btn .tabs__idx { font-family: var(--font-mono); font-size: 11px; opacity: .6; min-width: 22px; }
@media (max-width: 960px) {
  .vtabs { grid-template-columns: minmax(0, 1fr); }
  .vtabs .tabs__nav { position: static; flex-direction: row; border-radius: 999px; width: auto; max-width: 100%; max-height: none; overflow-x: auto; }
  .vtabs .tabs__btn { white-space: nowrap; border-radius: 999px; }
}

/* ---------- 11. Accordion / FAQ ---------- */
.accordion { display: grid; gap: 12px; }
.accordion details { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(22, 55, 95, .22); transition: border-color .3s; }
.accordion details[open] { border-color: var(--line-strong); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-family: var(--font-display); font-size: 1.08rem; color: var(--ink-0); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; color: var(--teal); transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .accordion__body { padding: 0 24px 22px; color: var(--ink-2); }
.section--light .accordion details { background: #fff; border-color: var(--paper-line); }
.section--light .accordion summary { color: var(--paper-ink); }
.section--light .accordion summary::after { color: var(--teal-deep); }
.section--light .accordion .accordion__body { color: var(--paper-ink-2); }

/* ---------- 12. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: rgba(6, 18, 36, .5); }
.stat { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--font-display); font-weight: 200; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.8rem); line-height: 1; letter-spacing: -.03em; }
.stat__value .grad-text { font-weight: 300; }
.stat__label { margin-top: 12px; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2n) { border-right: 0; } .stat { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0; } }

/* ---------- 13. Process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 24px 8px 0; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .16em; color: var(--teal); margin-bottom: 18px; }
.step::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.step__dot { position: absolute; top: -5px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--navy-900); border: 2px solid var(--teal); z-index: 1; box-shadow: 0 0 0 6px rgba(110,236,222,.08); }
.step h3 { font-size: 1.5rem; font-weight: 300; }
.step p { color: var(--ink-2); font-size: .98rem; }
.section--light .step::after { background: var(--paper-line); }
.section--light .step::before { color: var(--teal-deep); }
.section--light .step__dot { background: var(--paper); border-color: var(--teal-deep); }
.section--light .step p { color: var(--paper-ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 14. Timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--teal), var(--violet)); }
.timeline li { position: relative; padding-bottom: 36px; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--navy-900); border: 2px solid var(--teal); }
.timeline__tag { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); }
.timeline h3 { margin: 6px 0 8px; }
.timeline p { color: var(--ink-2); }
.section--light .timeline li::before { background: var(--paper); border-color: var(--teal-deep); }
.section--light .timeline__tag { color: var(--teal-deep); }
.section--light .timeline p { color: var(--paper-ink-2); }

/* ---------- 15. Panels / visuals ---------- */
.panel { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(22,55,95,.55), rgba(6,18,36,.75)); padding: clamp(22px, 3vw, 36px); overflow: hidden; box-shadow: var(--shadow); }
.panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(110,236,222,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(110,236,222,.5); } 70% { box-shadow: 0 0 0 10px rgba(110,236,222,0); } 100% { box-shadow: 0 0 0 0 rgba(110,236,222,0); } }
.readout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.readout__cell { padding: 14px 16px; border-radius: 12px; background: rgba(6,18,36,.6); border: 1px solid var(--line); }
.readout__k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.readout__v { font-family: var(--font-display); font-weight: 300; font-size: 1.7rem; color: var(--ink-0); line-height: 1.2; margin-top: 4px; }
.readout__v small { font-size: .8rem; color: var(--ink-2); margin-left: 4px; }
.spark { width: 100%; height: 60px; margin-top: 8px; }
.spark path { fill: none; stroke: url(#fvGrad); stroke-width: 1.6; }
.figure-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); background: var(--navy-850); }
.figure-frame img { width: 100%; height: 100%; object-fit: cover; }
.flow-svg { width: 100%; height: auto; }
.flow-svg .flow-line { stroke-dasharray: 6 10; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }

/* ---------- 16. Quote / statement ---------- */
.statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3rem); line-height: 1.25; color: var(--ink-0); letter-spacing: -.02em; max-width: 26ch; }
.section--light .statement { color: var(--paper-ink); }
.quote-card { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--grad-soft), var(--navy-850); border: 1px solid var(--line-strong); }
.quote-card blockquote { margin: 0 0 20px; font-family: var(--font-display); font-weight: 300; font-size: var(--fs-xl); line-height: 1.45; color: var(--ink-0); }
.quote-card cite { font-style: normal; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); }

/* ---------- 17. Filters (insights / projects) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter-btn { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-family: var(--font-display); font-size: .9rem; cursor: pointer; transition: all .25s; }
.filter-btn:hover { color: var(--ink-0); border-color: var(--line-strong); }
.filter-btn[aria-pressed="true"] { background: var(--ink-0); color: var(--navy-950); border-color: var(--ink-0); }
[data-filter-item].is-hidden { display: none; }
.section--light .filter-btn { color: var(--paper-ink-2); border-color: var(--paper-line); }
.section--light .filter-btn[aria-pressed="true"] { background: var(--paper-ink); color: #fff; }

/* ---------- 18. Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); background: rgba(127,206,218,.05); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--ink-0); font-weight: 600; }
.section--light .table-wrap { border-color: var(--paper-line); background: #fff; }
.section--light .table th { color: var(--teal-deep); background: var(--paper); }
.section--light .table th, .section--light .table td { border-color: var(--paper-line); }
.section--light .table td:first-child { color: var(--paper-ink); }

/* ---------- 19. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: clamp(20px, 3vw, 32px); padding: clamp(40px, 6vw, 80px); background: radial-gradient(ellipse at 100% 0%, rgba(173,135,246,.35), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(110,236,222,.28), transparent 55%), var(--navy-800); border: 1px solid var(--line-strong); }
.cta-band__lines { position: absolute; inset: 0; opacity: .35; pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 20ch; }

/* ---------- 20. Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink-0); background: rgba(6,18,36,.6); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(110,236,222,.12); }
.field select option { background: var(--navy-900); }
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-grid label { position: relative; cursor: pointer; }
.checkbox-grid input { position: absolute; opacity: 0; }
.checkbox-grid span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .88rem; color: var(--ink-1); transition: all .2s; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.checkbox-grid input:checked + span { background: var(--teal); color: var(--navy-950); border-color: var(--teal); font-weight: 600; }
.checkbox-grid input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.form__note { font-size: .85rem; color: var(--ink-3); }

/* ---------- 21. Footer ---------- */
.site-footer { position: relative; background: var(--navy-990); border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 100px) 0 32px; overflow: hidden; }
.site-footer__lines { position: absolute; inset: auto 0 0 0; height: 260px; opacity: .25; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 22px; }
.footer-brand p { color: var(--ink-2); font-size: .95rem; max-width: 34ch; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social__link { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink-1); transition: all .25s var(--ease); }
.social__link svg { width: 20px; height: 20px; }
.social__link:hover { color: var(--navy-950); background: var(--grad); border-color: transparent; transform: translateY(-2px); }
.footer-col h4 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--aqua); font-weight: 500; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--teal); }
.footer-formula { position: relative; margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-wide); font-size: clamp(.8rem, .6rem + .6vw, 1.05rem); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.footer-formula b { color: var(--teal); font-weight: 400; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 26px; font-size: .86rem; color: var(--ink-3); }
.footer-bottom a:hover { color: var(--teal); }
.footer-bottom nav { display: flex; gap: 20px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 22. Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span { font-family: var(--font-wide); font-size: clamp(.9rem, .7rem + .6vw, 1.15rem); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 23. Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 24. Back to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(6,18,36,.85); backdrop-filter: blur(8px); color: var(--teal); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); transition: all .3s var(--ease); pointer-events: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 25. Misc ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; background: rgba(110,236,222,.1); color: var(--teal); border: 1px solid rgba(110,236,222,.25); }
.badge--violet { background: rgba(173,135,246,.1); color: var(--violet); border-color: rgba(173,135,246,.3); }
.section--light .badge { color: var(--teal-deep); background: rgba(15,143,134,.08); border-color: rgba(15,143,134,.25); }
.anchor-nav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(6,18,36,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.anchor-nav ul { display: flex; gap: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav a { display: block; padding: 8px 16px; border-radius: 999px; font-family: var(--font-display); font-size: .9rem; color: var(--ink-2); white-space: nowrap; transition: all .2s; }
.anchor-nav a:hover, .anchor-nav a.is-active { color: var(--navy-950); background: var(--teal); }
.icon-inline { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }
.media-placeholder { aspect-ratio: 4/3; border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); display: grid; place-items: center; color: var(--ink-3); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; background: var(--grad-soft); }

/* ---------- 26. Photography ---------- */
/* Page hero with a photograph: image under a navy veil, flow lines kept on top */
.page-hero--photo { background: var(--navy-950); }
.page-hero__photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, center); filter: saturate(.9) contrast(1.05); transform: scale(1.04); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.page-hero--photo::before { background:
    linear-gradient(90deg, rgba(6,18,36,.94) 0%, rgba(6,18,36,.8) 38%, rgba(6,18,36,.45) 70%, rgba(6,18,36,.25) 100%),
    linear-gradient(0deg, rgba(6,18,36,.9) 0%, transparent 35%); }
.page-hero--photo .page-hero__canvas { opacity: .45; }
@media (max-width: 860px) { .page-hero--photo::before { background: linear-gradient(180deg, rgba(6,18,36,.7), rgba(6,18,36,.88)); } }

/* Figures */
.photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); background: var(--navy-850); box-shadow: var(--shadow); isolation: isolate; }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ar, 4 / 3); transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.035); }
.photo--wide { --ar: 16 / 9; }
.photo--cinema { --ar: 21 / 9; }
.photo--tall { --ar: 4 / 5; }
.photo--square { --ar: 1 / 1; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; font-size: .85rem; color: var(--ink-1); background: linear-gradient(transparent, rgba(4,11,22,.88)); }
.photo figcaption .mono { color: var(--aqua); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.photo--tint::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(110,236,222,.10), rgba(173,135,246,.12)); mix-blend-mode: screen; pointer-events: none; }
.section--light .photo { border-color: var(--paper-line); box-shadow: var(--shadow-light); }

/* Photo with an overlapping data panel (photo + .panel) */
.photo-stack { position: relative; }
.photo-stack .panel { position: absolute; right: -6%; bottom: -10%; width: min(70%, 360px); }
@media (max-width: 860px) { .photo-stack .panel { position: relative; right: auto; bottom: auto; width: auto; margin: -48px 16px 0; } }

/* Cards with images */
.card--photo { padding: 0; }
.card--photo .card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card--photo .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card--photo .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(9,27,49,.65)); }
.card--photo:hover .card__media img { transform: scale(1.05); }
.card--photo .card__body { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.2vw, 28px); flex: 1; }
.card--photo .card__icon { margin-top: -50px; position: relative; z-index: 1; background: var(--navy-850); }
.section--light .card--photo .card__icon { background: #fff; }

/* Full-bleed photo band with statement */
.photo-band { position: relative; min-height: clamp(360px, 52vw, 620px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.photo-band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,18,36,.92) 0%, rgba(6,18,36,.65) 50%, rgba(6,18,36,.25) 100%); }
.photo-band--center::before { background: radial-gradient(ellipse at center, rgba(6,18,36,.55), rgba(6,18,36,.88)); }
.photo-band .statement { max-width: 22ch; }
@supports (animation-timeline: view()) {
  .photo-band > img { animation: bandParallax linear both; animation-timeline: view(); }
  @keyframes bandParallax { from { transform: translateY(-6%) scale(1.12); } to { transform: translateY(6%) scale(1.12); } }
}

/* Mosaic gallery */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 16vw, 220px); gap: clamp(8px, 1.2vw, 16px); }
.mosaic .photo { box-shadow: none; }
.mosaic .photo img { aspect-ratio: auto; }
.mosaic .m-wide { grid-column: span 2; }
.mosaic .m-tall { grid-row: span 2; }
.mosaic .m-big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); } .mosaic .m-big { grid-column: span 2; } }

/* Credits */
.credits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.credit-card { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--navy-850); }
.credit-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.credit-card figcaption { padding: 12px 14px; font-size: .85rem; color: var(--ink-2); }
.credit-card a { color: var(--teal); }

@media (prefers-reduced-motion: reduce) {
  .page-hero__photo { animation: none; transform: none; }
  .photo-band > img { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .to-top, .hero__canvas, .page-hero__canvas { display: none !important; }
  body { background: #fff; color: #000; }
}
