/* =========================================================
   SAKS Networks - design system
   Shape rule: buttons & chips = pill, cards & media = 16px, inputs = 10px
   Motion: transform/opacity only, strong ease-out, UI < 300ms
   ========================================================= */

:root {
  /* Brand accent (from the logo: navy #072E5D, cyan #06B5FF): change these values to re-colour buttons, links and highlights */
  --brand: #0A74C9;            /* buttons, links, icons (light theme): logo cyan deepened for 4.8:1 on white */
  --brand-hover: #075EA6;
  --brand-dark-accent: #06B5FF; /* accent on dark surfaces (dark theme) = logo cyan */
  --brand-light: #7DD3FF;      /* highlights on navy: hero word, CTA button, eyebrow */
  --brand-light-hover: #B3E5FF;

  --font-display: 'Space Grotesk', 'Geist', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

  --accent-business: var(--brand-dark-accent);
  --accent-education: var(--brand-light);
  --accent: var(--accent-business);
  --accent-ink: #06101f;

  /* Navy scale: every dark surface (dark theme, hero, CTA band, brand panels) comes from here */
  --navy-950: #050d20;
  --navy-900: #0a1730;
  --navy-850: #0e1d3b;
  --navy-800: #142649;
  --on-navy: #eef2fa;
  --on-navy-2: #b9c6de;
  --on-navy-muted: #8a99b8;

  /* Dark theme: blue-tinted ink base; depth comes from light (glows, highlights), not from flat fills */
  --bg: #07090f;
  --bg-2: #0a0d16;
  --surface: #0e121c;
  --surface-2: #141a27;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #eceff5;
  --text-2: #a3acbd;
  --muted: #747e92;
  --glow: color-mix(in srgb, var(--brand-dark-accent) 22%, transparent);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  --grid-line: rgba(255, 255, 255, 0.03);
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --ink-gradient: linear-gradient(100deg, #7DD3FF 0%, #38BDF8 55%, #8AB4FF 100%);

  --r-card: 16px;
  --r-input: 10px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 160ms;
  --dur: 220ms;
  --dur-slow: 600ms;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-h: 72px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --line: rgba(10, 20, 40, 0.09);
  --line-2: rgba(10, 20, 40, 0.16);
  --text: #0e1d3b;
  --text-2: #45536b;
  --muted: #64728a;
  --glow: color-mix(in srgb, var(--brand) 16%, transparent);
  --shadow: 0 24px 60px -28px rgba(15, 22, 33, 0.25);
  --grid-line: rgba(10, 20, 40, 0.05);
  --accent-business: var(--brand);
  --accent-education: var(--brand);
  --accent-ink: #ffffff;
  color-scheme: light;
}

.theme-education, .theme-education .cta-band { --accent: var(--accent-education); --glow: color-mix(in srgb, var(--brand-light) 20%, transparent); }
.theme-business { --accent: var(--accent-business); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r-pill); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.mono { font-family: var(--font-mono); font-size: 0.8em; letter-spacing: 0.01em; }
.muted { color: var(--muted); }

/* Type scale */
.display-xl { font-size: clamp(2.5rem, 6.2vw, 5.4rem); line-height: 1.0; letter-spacing: -0.035em; font-weight: 600; }
.display { font-size: clamp(2.1rem, 4.6vw, 3.9rem); letter-spacing: -0.03em; }
.h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.h4 { font-size: 1.2rem; line-height: 1.25; }
.h5 { font-size: 0.95rem; letter-spacing: 0; font-family: var(--font-body); font-weight: 600; color: var(--text-2); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--text-2); max-width: 60ch; text-wrap: pretty; }
.display-xl em, .display em { font-style: normal; color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
.logos-title { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: var(--r-pill); font-weight: 600; font-size: 0.95rem; line-height: 1; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease, box-shadow var(--dur) ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn .icon { transition: transform var(--dur) var(--ease-out); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px var(--glow); }
.btn-outline { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost { color: var(--text-2); padding: 10px 6px; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); box-shadow: 0 14px 34px -12px var(--glow); }
  .btn-outline:hover { border-color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
  .btn-ghost:hover { color: var(--text); }
  .btn:hover .icon { transform: translateX(3px); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color var(--dur) ease, border-color var(--dur) ease, transform 320ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.site-header.hidden { transform: translateY(-100%); }
/* The header uses the full width (up to 1600px) rather than the 1240px content column, so the nav keeps one line */
.header-inner { width: min(1600px, 100% - 2 * var(--gutter)); height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 30px; width: auto; }
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }

.nav-desktop { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-item { position: relative; }
.nav-item > a { display: inline-block; white-space: nowrap; padding: 10px 14px; font-size: 0.92rem; font-weight: 500; color: var(--text-2); border-radius: var(--r-pill); transition: color var(--dur) ease, background-color var(--dur) ease; }
.nav-item > a.active { color: var(--text); }
.nav-item > a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); border-radius: 2px; }
@media (hover: hover) and (pointer: fine) { .nav-item > a:hover { color: var(--text); } }
.dropdown { position: absolute; top: calc(100% + 6px); left: 8px; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(6px) scale(0.98); transform-origin: top left; visibility: hidden;
  /* stays hoverable ~150ms after the pointer leaves, so a slightly diagonal move doesn't close it */
  transition: opacity var(--dur-fast) var(--ease-out) 120ms, transform var(--dur-fast) var(--ease-out) 120ms, visibility 0s linear 280ms; }
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; } /* bridges the gap under the link */
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.9rem; color: var(--text-2); }
.nav-item.has-children:hover .dropdown, .nav-item.has-children:focus-within .dropdown { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) { .dropdown a:hover { background: var(--surface-2); color: var(--text); } }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 2px; }
.lang-switch a { padding: 5px 10px; font-size: 0.75rem; font-weight: 600; font-family: var(--font-mono); color: var(--muted); border-radius: var(--r-pill); transition: color var(--dur) ease, background-color var(--dur) ease; }
.lang-switch a.active { background: var(--text); color: var(--bg); }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); position: relative; overflow: hidden; transition: border-color var(--dur) ease, color var(--dur) ease, transform var(--dur-fast) var(--ease-out); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle .sun, .theme-toggle .moon { position: absolute; display: grid; place-items: center; transition: transform 320ms var(--ease-out), opacity var(--dur) ease; }
.theme-toggle .moon { opacity: 0; transform: translateY(16px) rotate(-30deg); }
:root[data-theme="light"] .theme-toggle .sun { opacity: 0; transform: translateY(-16px) rotate(30deg); }
:root[data-theme="light"] .theme-toggle .moon { opacity: 1; transform: none; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 280ms var(--ease-out), top 280ms var(--ease-out); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* Overlay menu */
.overlay-menu { position: fixed; inset: 0; z-index: 45; visibility: hidden; pointer-events: none; }
.overlay-menu.open { visibility: visible; pointer-events: auto; }
.overlay-bg { position: absolute; inset: 0; background: var(--bg); transform: translateY(-100%); }
.overlay-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
.overlay-nav { display: flex; flex-direction: column; gap: 4px; }
.overlay-item { opacity: 0; transform: translateY(30px); }
.overlay-link { display: flex; align-items: baseline; gap: 18px; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 7vw, 4.2rem); letter-spacing: -0.03em; line-height: 1.15; color: var(--text-2); padding: 4px 0; transition: color var(--dur) ease; }
.overlay-link .num { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--muted); font-weight: 400; }
.overlay-link.active, .overlay-link:hover { color: var(--text); }
.overlay-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0 0 10px 56px; }
.overlay-sub a { color: var(--muted); font-size: 0.95rem; }
.overlay-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; opacity: 0; }
.overlay-contact { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: var(--text-2); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--header-h) + 3rem) 0 4rem; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-canvas.ready { opacity: 1; }
.hero-image { position: absolute; inset: 0; z-index: -1; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; opacity: 0.95; filter: saturate(1.5) contrast(1.15) brightness(1.12) hue-rotate(6deg); }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero-bg) 0%, color-mix(in srgb, var(--hero-bg) 85%, transparent) 28%, color-mix(in srgb, var(--hero-bg) 25%, transparent) 55%, transparent 75%), linear-gradient(to top, var(--hero-bg) 0%, transparent 22%); }
@media (max-width: 760px) { .hero-image::after { background: linear-gradient(90deg, color-mix(in srgb, var(--hero-bg) 75%, transparent) 0%, color-mix(in srgb, var(--hero-bg) 35%, transparent) 100%), linear-gradient(to top, var(--hero-bg) 0%, transparent 30%); } }
.hero-grid, .page-hero-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; width: min(var(--container), 100% - 2 * var(--gutter)); }
.hero-copy { max-width: 760px; }
.hero-eyebrow { margin-bottom: 1.6rem; }
.hero-lead { margin-top: 1.6rem; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.4rem; }
html.js .hero [data-hero] { opacity: 0; }
.display-xl .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.display-xl .word > span { display: inline-block; will-change: transform; }

/* Page hero (sub pages) */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem)) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; isolation: isolate; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .display, .page-hero .lead { max-width: 20ch; }
.page-hero .lead { max-width: 58ch; }
.page-hero.has-image { min-height: 60vh; display: flex; align-items: flex-end; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 115%; object-fit: cover; opacity: 0.32; transform: translateY(-7%); }
.page-hero.has-image::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--bg) 10%, color-mix(in srgb, var(--bg) 55%, transparent) 60%, transparent); }
.page-hero .display { margin-top: 0.6rem; }
.page-hero .lead { margin-top: 1.4rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); margin-bottom: 1.4rem; font-family: var(--font-mono); }
.crumbs a { color: var(--muted); transition: color var(--dur) ease; }
.crumbs a:hover { color: var(--text); }
.crumbs .current { color: var(--text-2); }
.display .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.display .word > span { display: inline-block; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 720px; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head .lead { margin-top: 0.8rem; }

/* Reveal (IntersectionObserver adds .in) */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0s); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* Gates */
.gates { padding-top: 0; margin-top: -2rem; }
.gates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gate { position: relative; min-height: 400px; border-radius: var(--r-card); border: 1px solid var(--line); overflow: hidden; display: flex; align-items: flex-end; padding: clamp(1.6rem, 3vw, 2.6rem); isolation: isolate; transition: border-color var(--dur) ease, transform 400ms var(--ease-out); }
.gate-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, var(--glow), transparent 60%), var(--surface); transition: opacity 400ms ease; }
.gate-business { --accent: var(--accent-business); --glow: color-mix(in srgb, var(--brand-dark-accent) 28%, transparent); }
.gate-education { --accent: var(--accent-education); --glow: color-mix(in srgb, var(--brand-light) 26%, transparent); }
.gate-content { position: relative; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.gate-content p { color: var(--text-2); }
.gate-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; margin-top: 6px; }
.gate-link .icon { transition: transform var(--dur) var(--ease-out); }
.gate-icon { position: absolute; right: 6%; top: 10%; color: var(--accent); opacity: 0.28; transition: transform 700ms var(--ease-out), opacity 400ms ease; }
@media (hover: hover) and (pointer: fine) {
  .gate:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
  .gate:hover .gate-icon { transform: translate(-6px, -6px) rotate(-6deg) scale(1.04); opacity: 0.5; }
  .gate:hover .gate-link .icon { transform: translateX(4px); }
}

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }

/* Cards (shared) */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color var(--dur) ease, transform 400ms var(--ease-out), box-shadow 400ms ease; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { color: var(--text-2); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); background: radial-gradient(80% 80% at 50% 0%, var(--glow), transparent 70%), var(--surface-2); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 0.74rem; }
.card-meta span + span::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); margin-right: 14px; vertical-align: middle; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-top: auto; }
.card-link .icon { transition: transform var(--dur) var(--ease-out); }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--font-display); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
  .card:hover .card-media img { transform: scale(1.04); }
  .card:hover .card-link .icon { transform: translateX(4px); }
}

/* Service cards: asymmetric grid + spotlight border */
.grid-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-service { padding: 1.8rem; gap: 14px; --mx: 50%; --my: 50%; }
.card-service::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: radial-gradient(240px circle at var(--mx) var(--my), var(--accent), transparent 70%); -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 var(--dur) ease; pointer-events: none; }
.card-service .card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.card-service h3 { margin-top: 4px; }
.card-service p { color: var(--text-2); font-size: 0.95rem; }
.grid-services .card-service:first-child { grid-column: span 2; padding: 2.2rem; }
.grid-services .card-service:first-child h3 { font-size: 1.6rem; }
.grid-services .card-service:first-child p { max-width: 52ch; font-size: 1.02rem; }
@media (hover: hover) and (pointer: fine) { .card-service:hover::before { opacity: 0.9; } }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-feature { display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: minmax(0, auto); gap: 18px; }
.grid-feature > :first-child { grid-row: span 2; }
.grid-feature > :first-child .card-media { aspect-ratio: auto; flex: 1; min-height: 260px; }
.grid-feature > :nth-child(n+2) { flex-direction: row; }
.grid-feature > :nth-child(n+2) .card-media { width: 38%; aspect-ratio: auto; flex: none; }
[data-filter-items] > div { display: contents; }
[data-filter-items] > div.hide { display: none; }

/* Horizontal scroll (projects) */
.hscroll { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 0 12px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll-track { display: flex; gap: 18px; width: max-content; min-width: 100%; margin-inline: 0; padding-inline: max(var(--gutter), (100% - var(--container)) / 2); }
.hscroll-track .card { width: clamp(300px, 32vw, 400px); scroll-snap-align: start; flex: none; }

/* Stats */
.section-stats { padding-block: clamp(3rem, 6vw, 5rem); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.stat-item { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; border-left: 1px solid var(--line-2); }
.stat-icon { color: var(--accent); margin-bottom: 6px; }
.stat-value { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-2); font-size: 0.95rem; }

/* Testimonials */
.testimonials { position: relative; max-width: 860px; }
.testimonial { position: absolute; inset: 0; margin: 0; opacity: 0; filter: blur(4px); transform: translateY(8px); transition: opacity 500ms var(--ease-out), filter 500ms var(--ease-out), transform 500ms var(--ease-out); pointer-events: none; }
.testimonial.active { position: relative; opacity: 1; filter: none; transform: none; pointer-events: auto; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote .icon { color: var(--accent); margin-bottom: 14px; }
.testimonial blockquote p { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; text-wrap: pretty; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; margin-top: 1.6rem; }
.testimonial figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption span { color: var(--muted); font-size: 0.9rem; }
.testimonial-nav { display: flex; gap: 8px; margin-top: 1.6rem; }
.testimonial-nav button { width: 28px; height: 3px; border-radius: 2px; background: var(--line-2); transition: background-color var(--dur) ease, width var(--dur) var(--ease-out); }
.testimonial-nav button.active { background: var(--accent); width: 44px; }

/* Quote cards (business page) */
.card-quote { padding: 1.6rem; gap: 12px; margin: 0; }
.card-quote > .icon { color: var(--accent); }
.card-quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--text); }
.card-quote figcaption { margin-top: auto; padding-top: 10px; font-size: 0.9rem; color: var(--muted); display: flex; flex-direction: column; }
.card-quote figcaption strong { color: var(--text); }

/* Logos marquee */
.section-logos { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-item { display: grid; place-items: center; height: 44px; opacity: 0.55; filter: grayscale(1) brightness(1.4); transition: opacity var(--dur) ease, filter var(--dur) ease; }
:root[data-theme="light"] .logo-item { filter: grayscale(1); }
.logo-item:hover { opacity: 1; filter: none; }
.logo-item img { max-height: 40px; width: auto; max-width: 150px; }
.logo-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--text-2); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* CTA band */
.cta-band { position: relative; margin: 0; padding: clamp(3rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; isolation: isolate; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner .lead { margin-top: 0.8rem; }
.cta-glow { position: absolute; z-index: -1; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.site-footer + * { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) 0 2rem; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; }
.footer-text { color: var(--text-2); margin: 1.2rem 0; max-width: 36ch; font-size: 0.95rem; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); transition: border-color var(--dur) ease, color var(--dur) ease, transform var(--dur-fast) var(--ease-out); }
.socials a:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .socials a:hover { border-color: var(--accent); color: var(--accent); } }
.footer-col h4 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--text); letter-spacing: 0.02em; margin-bottom: 1rem; }
.footer-col li { margin-bottom: 8px; font-size: 0.95rem; }
.footer-col a { color: var(--text-2); transition: color var(--dur) ease; }
.footer-col a:hover { color: var(--text); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.footer-contact .icon { flex: none; margin-top: 4px; color: var(--muted); }
.footer-legal-info li { color: var(--text-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); } .footer-links a:hover { color: var(--text); }

/* ---------- Lists & detail pages ---------- */
.service-list { display: flex; flex-direction: column; }
.service-row { display: grid; grid-template-columns: 64px 1fr 48px; gap: 28px; align-items: start; padding: clamp(1.6rem, 3vw, 2.4rem) 0; border-top: 1px solid var(--line); transition: padding-left 320ms var(--ease-out); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.service-text { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.service-text p { color: var(--text-2); }
.service-arrow { color: var(--muted); transition: transform 320ms var(--ease-out), color var(--dur) ease; margin-top: 12px; }
@media (hover: hover) and (pointer: fine) { .service-row:hover .service-arrow { transform: translate(4px, -4px); color: var(--accent); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips li { font-size: 0.78rem; padding: 5px 11px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--text-2); font-family: var(--font-mono); }
.chips.tags { margin-top: 2rem; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.detail-side { order: 2; }
.detail-layout > :not(.detail-side) { order: 1; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.6rem; display: flex; flex-direction: column; gap: 18px; }
.side-card.sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.side-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--text-2); }
.check-list .icon { color: var(--accent); flex: none; margin-top: 2px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.side-nav a { padding: 8px 10px; border-radius: 8px; font-size: 0.92rem; color: var(--text-2); transition: background-color var(--dur) ease, color var(--dur) ease; }
.side-nav a.active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); }
.side-nav a:hover { color: var(--text); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 0.95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts dd a { color: var(--accent); }
.facts .price { font-size: 1.2rem; }
.instructor { padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.instructor-row { display: flex; align-items: center; gap: 12px; }
.instructor-row small { display: block; color: var(--muted); }
.avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--accent) 15%, var(--surface-2)); display: grid; place-items: center; color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 48px; height: 48px; font-size: 1rem; }
.avatar.xs { width: 28px; height: 28px; font-size: 0.75rem; display: inline-grid; vertical-align: middle; margin-right: 8px; }

.prose { font-size: 1.05rem; line-height: 1.75; color: var(--text-2); max-width: 72ch; }
.prose > * + * { margin-top: 1.2em; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 2em; }
.prose h2 { font-size: 1.7rem; } .prose h3 { font-size: 1.35rem; } .prose h4 { font-size: 1.1rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose img { border-radius: 12px; }
.prose blockquote { margin: 1.6em 0; padding-left: 1.2em; border-left: 2px solid var(--accent); color: var(--text); font-family: var(--font-display); font-size: 1.2em; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; overflow-x: auto; font-family: var(--font-mono); font-size: 0.88rem; color: var(--text); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose pre code { background: none; padding: 0; }

/* Accordion */
.accordion { display: flex; flex-direction: column; }
.acc-item { border-top: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 1.2rem 0; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }
.acc-head > span:not(.num) { flex: 1; }
.acc-head .num { color: var(--muted); font-size: 0.8rem; }
.acc-head .icon { flex: none; color: var(--muted); transition: transform 280ms var(--ease-out), color var(--dur) ease; }
.acc-head[aria-expanded="true"] .icon { transform: rotate(45deg); color: var(--accent); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.acc-head[aria-expanded="true"] + .acc-body { grid-template-rows: 1fr; }
.acc-content { overflow: hidden; color: var(--text-2); line-height: 1.65; }
.acc-head[aria-expanded="true"] + .acc-body .acc-content { padding-bottom: 1.2rem; }
.curriculum { margin-top: 3rem; }
.curriculum h2 { margin-bottom: 1rem; }

/* Workshops */
.workshop-list { display: flex; flex-direction: column; gap: 14px; }
.card-workshop { flex-direction: row; align-items: center; gap: 24px; padding: 1.3rem 1.5rem; }
.card-workshop .card-body { padding: 0; gap: 6px; }
.card-workshop p { -webkit-line-clamp: 2; }
.date-badge { flex: none; width: 72px; height: 72px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--accent); line-height: 1; }
.date-badge strong { font-family: var(--font-display); font-size: 1.6rem; }
.date-badge span { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; margin-top: 4px; }
.card-arrow { color: var(--muted); transition: transform 320ms var(--ease-out), color var(--dur) ease; }
@media (hover: hover) and (pointer: fine) { .card-workshop:hover .card-arrow { transform: translate(3px, -3px); color: var(--accent); } }
.workshop-list.past .card { opacity: 0.6; }

/* Team */
.card-team { padding: 1.6rem; align-items: flex-start; gap: 6px; }
.card-team .avatar { margin-bottom: 10px; }
.card-team .role { color: var(--accent); font-size: 0.9rem; font-weight: 500; }
.card-team p { color: var(--text-2); font-size: 0.92rem; margin-top: 8px; -webkit-line-clamp: 4; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.team-links { display: flex; gap: 6px; margin-top: auto; padding-top: 14px; }
.team-links a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); }
.team-links a:hover { border-color: var(--accent); color: var(--accent); }

/* Partners grid */
.partners-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.partner-tile { height: 120px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 20px; transition: border-color var(--dur) ease, transform 320ms var(--ease-out); }
.partner-tile img { max-height: 48px; width: auto; max-width: 100%; filter: grayscale(1) brightness(1.4); opacity: 0.7; transition: filter var(--dur) ease, opacity var(--dur) ease; }
:root[data-theme="light"] .partner-tile img { filter: grayscale(1); }
@media (hover: hover) and (pointer: fine) { .partner-tile:hover { border-color: var(--line-2); transform: translateY(-2px); } .partner-tile:hover img { filter: none; opacity: 1; } }

/* Resources */
.resource-list { display: flex; flex-direction: column; gap: 10px; }
.resource-list a { display: grid; grid-template-columns: 48px 1fr auto 20px; gap: 18px; align-items: center; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color var(--dur) ease, transform 320ms var(--ease-out); }
.resource-list a:hover { border-color: var(--accent); transform: translateX(4px); }
.res-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.res-text { display: flex; flex-direction: column; min-width: 0; }
.res-text small { color: var(--muted); }
.res-meta { color: var(--muted); }
.resource-list .icon:last-child { color: var(--muted); }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; }
.filter-bar button, .filter-bar a { padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: 0.88rem; font-weight: 500; color: var(--text-2); transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, transform var(--dur-fast) var(--ease-out); }
.filter-bar button:active { transform: scale(0.97); }
.filter-bar .active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { padding: 1.6rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.value p { color: var(--text-2); font-size: 0.95rem; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.facts.compact { font-size: 0.9rem; gap: 6px 14px; }

/* Article */
.article-head { padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 2rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 1.4rem; color: var(--muted); font-size: 0.9rem; }
.article-meta .author { display: inline-flex; align-items: center; color: var(--text-2); }
.article-cover { margin: 2.5rem 0 0; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 21 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
article .container.narrow .lead { margin: 2rem 0 1.5rem; font-size: 1.25rem; }
article .container.narrow .prose { max-width: none; }
article + .section { margin-top: var(--section); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 2rem; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list small { display: block; color: var(--muted); font-size: 0.8rem; }
.contact-list a, .contact-list span:not(.ci) { font-size: 1.05rem; font-weight: 500; }
.ci { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.4rem, 3vw, 2.4rem); }
.map { height: 420px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); opacity: 0.9; }
:root[data-theme="dark"] .map iframe { filter: grayscale(1) invert(0.92) hue-rotate(180deg) contrast(1.05); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.field input, .field textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-input); color: var(--text); padding: 12px 14px; font: inherit; outline: 0; transition: border-color var(--dur) ease, box-shadow var(--dur) ease; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field textarea { resize: vertical; min-height: 120px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--text-2); cursor: pointer; }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notice { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 500; border: 1px solid; }
.notice.success { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.35); color: #4ade80; }
.notice.error { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.35); color: #f87171; }
:root[data-theme="light"] .notice.success { color: #15803d; } :root[data-theme="light"] .notice.error { color: #b91c1c; }
.apply-box { margin-top: 3rem; padding: clamp(1.4rem, 3vw, 2.4rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); scroll-margin-top: 100px; }
.apply-box h2 { margin-bottom: 1.4rem; }
.form .btn { align-self: flex-start; }

/* Error page */
.error-page { min-height: 100dvh; display: flex; align-items: center; padding: calc(var(--header-h) + 2rem) 0 4rem; }
.error-page .container { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.error-code { font-size: 1rem; color: var(--accent); }
.error-page .btn { margin-top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .detail-side { order: 1; }
  .detail-layout > :not(.detail-side) { order: 2; }
  .side-card.sticky { position: static; }
}
/* Header: the one-line nav needs ~1320px of viewport next to the wordmark; compact it first, then switch to the burger */
@media (max-width: 1400px) {
  .header-inner { gap: 16px; }
  .nav-item > a { padding: 10px 11px; }
  .nav-item > a.active::after { left: 11px; right: 11px; }
  .site-header .logo img { height: 26px; }
}
@media (max-width: 1240px) {
  .nav-desktop, .header-cta { display: none; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  .grid-3, .grid-services { grid-template-columns: repeat(2, 1fr); }
  .grid-services .card-service:first-child { grid-column: span 2; }
  .grid-feature { grid-template-columns: 1fr; }
  .grid-feature > :first-child { grid-row: auto; }
  .grid-feature > :first-child .card-media { aspect-ratio: 16 / 10; min-height: 0; }
  .grid-feature > :nth-child(n+2) { flex-direction: column; }
  .grid-feature > :nth-child(n+2) .card-media { width: 100%; aspect-ratio: 16 / 10; }
  .gates-grid, .intro-grid { grid-template-columns: 1fr; }
  .gate { min-height: 300px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: 10px; }
  .service-row { grid-template-columns: 52px 1fr; }
  .service-icon { width: 52px; height: 52px; }
  .service-arrow { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .site-header .logo img { height: 24px; }
  .grid-3, .grid-4, .grid-services, .values-grid { grid-template-columns: 1fr; }
  .grid-services .card-service:first-child { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-switch { display: none; }
  .overlay-menu .lang-switch { display: inline-flex; }
  .hero { padding-top: calc(var(--header-h) + 2rem); }
  .hero-actions .btn { width: 100%; }
  .card-workshop { flex-direction: column; align-items: flex-start; }
  .resource-list a { grid-template-columns: 40px 1fr 20px; }
  .res-meta { display: none; }
  .stat-item { padding-left: 14px; }
  .testimonial figcaption { align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js .hero [data-hero] { opacity: 1; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .hero-canvas { opacity: 1; }
}


/* ---------- Client content sections (26 Oct 2026) ---------- */
/* Home hero is always dark, like the brand concept, even in the light theme */
.hero { --hero-bg: var(--navy-950); --bg: var(--hero-bg); --text: var(--on-navy); --text-2: var(--on-navy-2); --muted: var(--on-navy-muted); --line: rgba(255,255,255,0.1); --line-2: rgba(255,255,255,0.22); --grid-line: rgba(255,255,255,0.035); --accent: var(--brand-light); --accent-ink: #06101f; background: var(--hero-bg); color: var(--text); }
.hero .eyebrow { color: var(--brand-light); } .hero .eyebrow::before { background: var(--brand-light); }
.hero .display-xl em { color: var(--brand-light); font-style: normal; }
.hero .btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--brand) 60%, transparent); }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.35); }
.hero .btn-outline:hover { border-color: #fff; }
:root[data-theme="light"] .hero::after { display: none; }
:root[data-theme="light"] body:has(.hero, .page-hero.has-image) .site-header:not(.scrolled):not(.menu-open) { --text: var(--on-navy); --text-2: var(--on-navy-2); --line-2: rgba(255,255,255,0.3); color: var(--on-navy); }
:root[data-theme="light"] body:has(.hero, .page-hero.has-image) .site-header:not(.scrolled):not(.menu-open) .logo-dark { display: inline; } :root[data-theme="light"] body:has(.hero, .page-hero.has-image) .site-header:not(.scrolled):not(.menu-open) .logo-light { display: none; }
:root[data-theme="light"] .page-home .gates { margin-top: clamp(2rem, 5vw, 4rem); padding-top: 0; }

.section-head.split .side-lead { max-width: 44ch; margin: 0; color: var(--text-2); }
.h2 em, .h1 em { color: var(--accent); font-style: normal; }

/* 4 equal service cards */
.grid-services.grid-services-even { grid-template-columns: repeat(4, 1fr); }
.grid-services.grid-services-even .card-service:first-child { grid-column: auto; padding: 1.8rem; }
.grid-services.grid-services-even .card-service:first-child h3 { font-size: inherit; }
.grid-services.grid-services-even .card-service:first-child p { font-size: 0.95rem; max-width: none; }

/* Industry tiles */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--line); }
.tile { display: flex; flex-direction: column; gap: 12px; padding: clamp(1.4rem, 2.4vw, 2rem); background: var(--surface); transition: background-color var(--dur) ease; }
.tile p { color: var(--text-2); font-size: 0.95rem; }
.tile-num { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 0.78rem; letter-spacing: 0.06em; }
.tile-num .icon { transition: transform var(--dur) var(--ease-out); }
.tile h3 { margin-top: 10px; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { background: var(--surface-2); }
  .tile:hover .tile-num .icon { transform: translate(2px, -2px); }
}
.value .tile-num { margin-bottom: 6px; }

/* Approach steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); }
.step { border-top: 1px solid var(--line-2); padding-top: 1.4rem; display: flex; flex-direction: column; gap: 12px; }
.step-num { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.08em; }
.step h3 { margin-top: 8px; }
.step p { color: var(--text-2); font-size: 0.95rem; }

/* About band */
.band-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.band-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.band-copy .lead { color: var(--text-2); }
.brand-plate { position: relative; min-height: 320px; border-radius: var(--r-card); background: var(--navy-850); color: var(--brand-light); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; overflow: hidden; isolation: isolate; }
.brand-plate strong { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.6rem); letter-spacing: -0.05em; font-weight: 600; line-height: 1; }
.brand-plate-sub { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-navy-2); }
.brand-plate-ring { position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand-light) 35%, transparent); left: -200px; top: 90px; z-index: -1; }
.brand-plate-ring.second { left: auto; right: -190px; top: -170px; }

/* Education focus band */
.focus-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.focus-grid .h1 { margin-top: 1rem; }
.prose .prose-title { margin-top: 0; margin-bottom: 1.2rem; color: var(--text); }
.detail-side .side-card .h5 { line-height: 1.45; font-weight: 500; }

/* Industries page rows */
.industry-list { display: flex; flex-direction: column; }
.industry-row { display: grid; grid-template-columns: 120px 1fr; gap: clamp(1.2rem, 3vw, 3rem); padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.industry-row:last-child { border-bottom: 1px solid var(--line); }
.industry-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.industry-num { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.08em; }
.industry-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.industry-text { display: flex; flex-direction: column; gap: 12px; max-width: 64ch; }
.industry-text .lead { color: var(--text); }
.industry-text p { color: var(--text-2); }
.industry-text .card-link { margin-top: 6px; }
.industry-row:has(.industry-media) { grid-template-columns: 120px 1fr 320px; }
.industry-media img { width: 100%; border-radius: var(--r-card); aspect-ratio: 4 / 3; object-fit: cover; }

.footer-contact small.muted, .footer-registration { color: var(--muted); font-size: 0.8rem; }
.footer-registration { margin-top: 6px; max-width: 28ch; line-height: 1.4; }
.form .field select { width: 100%; }

@media (max-width: 1024px) {
  .grid-services.grid-services-even, .tile-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .band-grid, .focus-grid { grid-template-columns: 1fr; }
  .brand-plate { min-height: 240px; }
  .industry-row, .industry-row:has(.industry-media) { grid-template-columns: 1fr; gap: 1rem; }
  .industry-head { flex-direction: row; align-items: center; }
  .industry-media { max-width: 420px; }
}
@media (max-width: 640px) {
  .grid-services.grid-services-even, .tile-grid, .steps { grid-template-columns: 1fr; }
  .section-head.split .side-lead { max-width: none; }
}


/* ---------- Design pass 2 (26 Oct 2026): rhythm, hierarchy, light theme polish ---------- */
/* Section heads: one focused message, stacked (no split header) */
.section-head:has(.side-lead) { display: block; max-width: 760px; }
.section-head .side-lead { margin-top: 1rem; max-width: 56ch; }
.page-hero-grid { display: none; }
.page-hero::after { content: ''; position: absolute; right: -12vw; top: -40%; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); z-index: -1; pointer-events: none; box-shadow: inset 0 0 0 60px color-mix(in srgb, var(--accent) 4%, transparent), 0 0 0 90px color-mix(in srgb, var(--accent) 3%, transparent); }
.page-hero.has-image::after { display: none; }

/* Gates: two different materials, business in ink, education in mint */
.page-home .gates { margin-top: 2.5rem; }
.gate-business { background: var(--navy-850); color: var(--on-navy); --text-2: var(--on-navy-2); --accent: var(--brand-light); border-color: transparent; }
.gate-business .gate-bg { background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand-light) 28%, transparent), transparent 60%), var(--navy-850); }
.gate-business .gate-link { color: var(--brand-light); }
.gate-business .gate-icon { color: var(--brand-light); opacity: 0.35; }
:root[data-theme="light"] .gate-education .gate-bg { background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand-light) 60%, transparent), transparent 60%), #eef3fb; }
.gate-img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.gate-business .gate-img { opacity: 0.5; mix-blend-mode: luminosity; }

/* Service cards: two tinted, two plain (bento diversity) */
.grid-services-even .card-service { padding: 2rem 1.8rem; gap: 16px; }
.grid-services-even .card-service:nth-child(2), .grid-services-even .card-service:nth-child(3) { background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 70%); }
.grid-services-even .card-service .card-icon { width: 56px; height: 56px; border-radius: 16px; }
.grid-services-even .card-service h3 { font-size: 1.3rem; margin-top: 10px; }
.grid-services-even .card-service p { font-size: 0.98rem; line-height: 1.6; }

/* Industries on the home page: sticky headline + feature list */
.industry-feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.industry-feature .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; }
.industry-feature .section-head .btn { margin-top: 1.4rem; }
.feature-list { display: flex; flex-direction: column; }
.feature-row { display: grid; grid-template-columns: 56px 1fr 24px; gap: 20px; align-items: start; padding: 1.5rem 0; border-top: 1px solid var(--line-2); color: inherit; transition: padding-left 320ms var(--ease-out); }
.feature-row:last-child { border-bottom: 1px solid var(--line-2); }
.feature-row .feature-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.feature-row h3 { margin-bottom: 6px; }
.feature-row p { color: var(--text-2); font-size: 0.98rem; }
.feature-row .icon-go { color: var(--muted); margin-top: 16px; transition: transform var(--dur) var(--ease-out), color var(--dur) ease; }
@media (hover: hover) and (pointer: fine) {
  .feature-row:hover { padding-left: 8px; }
  .feature-row:hover .icon-go { color: var(--accent); transform: translate(3px, -3px); }
}

/* Approach: numbered steps along one line */
.steps { position: relative; gap: clamp(1.4rem, 3vw, 2.4rem); }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--line-2); }
.step { border-top: 0; padding-top: 0; gap: 14px; }
.step-num { width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); font-size: 0.8rem; letter-spacing: 0; position: relative; }
.section-approach .steps { margin-top: 0.5rem; }
.step h3 { margin-top: 10px; }

/* Industry tiles and value cards: icon instead of a counter */
.tile-icon, .value-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tile h3, .value h3 { margin-top: 6px; }

/* CTA band: one deliberate ink block before the footer (light theme) */
:root[data-theme="light"] .cta-band { background: var(--navy-900); color: var(--on-navy); border-top: 0; --text-2: var(--on-navy-2); --glow: color-mix(in srgb, var(--brand-light) 28%, transparent); }
:root[data-theme="light"] .cta-band .lead { color: var(--on-navy-2); }
:root[data-theme="light"] .cta-band .btn-primary { background: var(--brand-light); color: #06101f; box-shadow: none; }
:root[data-theme="light"] .cta-band .btn-primary:hover { background: var(--brand-light-hover); }
:root[data-theme="light"] .site-footer { border-top: 0; }

/* Light theme materials: tinted resting shadow instead of flat borders */
:root[data-theme="light"] .card, :root[data-theme="light"] .side-card { box-shadow: 0 1px 0 rgba(14, 29, 59, 0.03), 0 14px 36px -28px rgba(14, 29, 59, 0.25); }
:root[data-theme="light"] .section-alt { background: #f3f6fb; }
:root[data-theme="light"] .section-focus { background: #e8eef9; }

/* Industries page rows */
.industry-row { grid-template-columns: 72px 1fr; }
.industry-row:has(.industry-media) { grid-template-columns: 72px 1fr 320px; }
.industry-num { display: none; }

@media (max-width: 1024px) {
  .industry-feature { grid-template-columns: 1fr; gap: 2rem; }
  .industry-feature .section-head { position: static; }
  .steps::before { display: none; }
  .step { border-top: 1px solid var(--line-2); padding-top: 1.2rem; }
  .page-hero::after { display: none; }
  .industry-row, .industry-row:has(.industry-media) { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feature-row { grid-template-columns: 44px 1fr; }
  .feature-row .feature-icon { width: 44px; height: 44px; border-radius: 12px; }
  .feature-row .icon-go { display: none; }
}

/* pass 2 fixes */
.grid-services.grid-services-even .card-service:first-child { padding: 2rem 1.8rem; }
.grid-services.grid-services-even .card-service:first-child h3 { font-size: 1.3rem; }
.industry-feature .section-head .h2 br { display: none; }


/* ---------- Photography (26 Oct 2026) ---------- */
/* Sub-page hero with a photo: ink background in both themes, photo dimmed, text light */
.page-hero.has-image { --hero-bg: var(--navy-950); --bg: var(--hero-bg); --text: var(--on-navy); --text-2: var(--on-navy-2); --muted: var(--on-navy-muted); --accent: var(--brand-light); background: var(--hero-bg); color: var(--text); min-height: 56vh; padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); }
.page-hero.has-image .page-hero-media img { opacity: 0.6; }
.page-hero.has-image::before { background: linear-gradient(90deg, var(--hero-bg) 0%, color-mix(in srgb, var(--hero-bg) 88%, transparent) 35%, color-mix(in srgb, var(--hero-bg) 45%, transparent) 65%, color-mix(in srgb, var(--hero-bg) 10%, transparent) 100%), linear-gradient(to top, var(--hero-bg) 0%, transparent 40%); }
.page-hero.has-image .crumbs, .page-hero.has-image .crumbs a { color: var(--on-navy-muted); }
.page-hero.has-image .crumbs .current { color: var(--on-navy-2); }
.page-hero.has-image .lead { color: var(--on-navy-2); }

/* Gate photos */
.gate-img { opacity: 0.55; }
.gate-business .gate-img { opacity: 0.45; mix-blend-mode: normal; }
.gate-business .gate-bg { background: linear-gradient(90deg, var(--navy-850) 30%, rgba(14, 29, 59, 0.55) 70%, rgba(14, 29, 59, 0.2)), radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand-light) 28%, transparent), transparent 60%); z-index: 0; }
.gate-business .gate-img { z-index: -1; }
.gate-business .gate-content, .gate-business .gate-icon { z-index: 1; }
.gate-education .gate-img { opacity: 0.5; }
.gate-education .gate-bg { background: linear-gradient(90deg, #eef3fb 32%, color-mix(in srgb, #eef3fb 60%, transparent) 70%, color-mix(in srgb, #eef3fb 15%, transparent)); z-index: 0; }
:root[data-theme="dark"] .gate-education .gate-bg { background: linear-gradient(90deg, var(--surface) 32%, color-mix(in srgb, var(--surface) 60%, transparent) 70%, transparent); }
.gate-education .gate-img { z-index: -1; }
.gate-education .gate-content, .gate-education .gate-icon { z-index: 1; }
.gate { min-height: 420px; }

/* Home about band: photo inside the ink plate */
.brand-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; z-index: -2; }

/* Education focus band with photo */
.focus-grid.has-media { grid-template-columns: 1.1fr 1fr; align-items: center; }
.focus-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; }
.focus-media img { width: 100%; height: 100%; object-fit: cover; }
.focus-grid.has-media .lead { margin-top: 1.2rem; }

/* Service cards and tiles with photos */
.card-service .card-photo { margin: -2rem -1.8rem 0.4rem; aspect-ratio: 16 / 9; overflow: hidden; }
.card-service .card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.card-service .card-photo + .card-icon { margin-top: -28px; position: relative; background: var(--surface); box-shadow: 0 0 0 4px var(--surface); }
@media (hover: hover) and (pointer: fine) { .card-service:hover .card-photo img { transform: scale(1.04); } }
.tile .tile-photo { margin: calc(-1 * clamp(1.4rem, 2.4vw, 2rem)) calc(-1 * clamp(1.4rem, 2.4vw, 2rem)) 0.6rem; aspect-ratio: 16 / 9; overflow: hidden; }
.tile .tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-row .feature-thumb { width: 96px; height: 72px; border-radius: 12px; overflow: hidden; flex: none; }
.feature-row .feature-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-row.has-thumb { grid-template-columns: 96px 1fr 24px; }
.industry-media img { aspect-ratio: 4 / 3; }

@media (max-width: 640px) {
  .feature-row.has-thumb { grid-template-columns: 1fr; }
  .feature-row .feature-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .gate { min-height: 320px; }
  .page-hero.has-image { min-height: 0; }
}

/* header over dark hero: give the lang switch and toggle dark-theme tokens */
:root[data-theme="light"] body:has(.hero, .page-hero.has-image) .site-header:not(.scrolled):not(.menu-open) { --bg: var(--navy-950); --surface: var(--navy-900); --surface-2: var(--navy-800); --line: rgba(255,255,255,0.14); }
.gate-education .gate-img { opacity: 0.75; }
.gate-education .gate-bg { background: linear-gradient(90deg, #eef3fb 36%, color-mix(in srgb, #eef3fb 70%, transparent) 62%, color-mix(in srgb, #eef3fb 10%, transparent)); }
.brand-plate img { opacity: 0.45; }

/* ---------- Homepage polish (27 Oct 2026) ---------- */
/* Page transitions between documents (Chromium/Safari; others fall back to a plain load) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 240ms; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }

/* Reading progress in the header */
.scroll-progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--accent); transform-origin: left center; transform: scaleX(0); pointer-events: none; opacity: 0.9; }
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: scroll-progress-grow linear both; animation-timeline: scroll(root); }
  @keyframes scroll-progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Area strip under the hero */
.area-strip { position: relative; z-index: 2; margin-top: -2.4rem; }
.area-strip-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 24px 60px -30px rgba(5, 13, 32, 0.45); }
.area-strip a { display: flex; align-items: center; gap: 12px; padding: 1.1rem 1.2rem; font-weight: 600; font-size: 0.92rem; color: var(--text); border-right: 1px solid var(--line); transition: background-color var(--dur) ease, color var(--dur) ease; }
.area-strip a:last-child { border-right: 0; }
.area-strip a > .icon:first-child { color: var(--accent); flex: none; }
.area-strip a span { flex: 1; }
.area-strip a .go { color: var(--muted); opacity: 0; transform: translate(-4px, 4px); transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out); }
.area-strip a.is-edu { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
@media (hover: hover) and (pointer: fine) {
  .area-strip a:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
  .area-strip a:hover .go { opacity: 1; transform: none; color: var(--accent); }
}
/* Desktop scroll-linked reveal (main.js tweens --reveal 0 -> 1). The card stays fully opaque;
   the clip opens from the top down, with 80px of slack so the drop shadow is not cut off. */
.area-strip-inner.is-scrubbed { clip-path: inset(-80px -80px calc((1 - var(--reveal, 1)) * (100% + 80px) - 80px) -80px); will-change: transform, clip-path; }
.page-home .gates { margin-top: clamp(2.5rem, 5vw, 4rem); }
:root[data-theme="light"] .page-home .gates { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Industries: image preview follows the hovered row */
.industry-preview { position: relative; margin-top: 1.8rem; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.industry-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 520ms var(--ease-out), transform 1200ms var(--ease-out); }
.industry-preview img.active { opacity: 1; transform: none; }
.feature-row.is-current { padding-left: 8px; }
.feature-row.is-current .icon-go { color: var(--accent); transform: translate(3px, -3px); }

/* Approach: the line draws itself as the steps scroll into view */
.steps::before { display: none; }
.steps-line { position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--line-2); }
.steps-line-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; transform: scaleX(0); }
.step-num { transition: background-color 400ms ease, color 400ms ease, box-shadow 400ms ease; }
.step.is-on .step-num { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
html:not(.js) .steps-line-fill, .reduce-motion .steps-line-fill { transform: none; }

@media (max-width: 1024px) {
  .area-strip { margin-top: 0; padding-top: 1.5rem; }
  .area-strip-inner { grid-template-columns: 1fr 1fr; }
  .area-strip a { border-bottom: 1px solid var(--line); }
  .industry-preview { display: none; }
  .steps-line { display: none; }
}
@media (max-width: 640px) { .area-strip-inner { grid-template-columns: 1fr; } .area-strip a { border-right: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-progress { animation: none; transform: none; opacity: 0; } .steps-line-fill { transform: none; } }

/* Industries: headline on top, then image + list at equal height */
.industry-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.industry-head > div { max-width: 760px; }
.industry-head .btn { flex: none; margin-bottom: 4px; }
.industry-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
.industry-body.has-preview { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.industry-body .industry-preview { margin: 0; aspect-ratio: auto; height: 100%; min-height: 320px; }
.industry-body .feature-list { display: flex; flex-direction: column; justify-content: stretch; }
.industry-body .feature-row { flex: 1; align-items: center; }
@media (max-width: 1024px) {
  .industry-head { flex-direction: column; align-items: flex-start; }
  .industry-body.has-preview { grid-template-columns: 1fr; }
}

/* ---------- Dark theme finish (1 Nov 2026) ----------
   Ink base + light-driven depth: sections are lit from above instead of filled,
   surfaces are glassy with a top edge highlight, brand panels get a navy-to-ink gradient. */
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .page-hero.has-image { --hero-bg: #060914; }
:root[data-theme="dark"] .section-alt,
:root[data-theme="dark"] .cta-band { background: radial-gradient(70% 60% at 50% 0%, rgba(6, 181, 255, 0.075), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
:root[data-theme="dark"] .section-alt { border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .cta-band { background: radial-gradient(60% 140% at 88% 50%, rgba(129, 140, 248, 0.2), transparent 60%), radial-gradient(50% 120% at 10% 100%, rgba(6, 181, 255, 0.12), transparent 60%), linear-gradient(180deg, #0b1124, #07090f); }
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .side-card,
:root[data-theme="dark"] .area-strip-inner,
:root[data-theme="dark"] .resource-list a { background: var(--sheen), var(--bg); box-shadow: var(--edge); }
:root[data-theme="dark"] .card:hover { border-color: rgba(125, 211, 255, 0.28); box-shadow: var(--edge), 0 30px 70px -34px rgba(10, 116, 201, 0.35); }
:root[data-theme="dark"] .card-media img, :root[data-theme="dark"] .card-photo img, :root[data-theme="dark"] .focus-media img { filter: brightness(0.9) saturate(1.05); }
:root[data-theme="dark"] .focus-media { border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(10, 116, 201, 0.35); }
:root[data-theme="dark"] .gate-business,
:root[data-theme="dark"] .brand-plate { background: linear-gradient(155deg, #10204a 0%, #0a1024 55%, #07090f 100%); border: 1px solid var(--line); box-shadow: var(--edge); }
:root[data-theme="dark"] .gate-business .gate-bg { background: linear-gradient(90deg, #0b1430 30%, rgba(11, 20, 48, 0.55) 70%, rgba(11, 20, 48, 0.15)), radial-gradient(120% 90% at 100% 0%, rgba(129, 140, 248, 0.25), transparent 60%); }
:root[data-theme="dark"] .h1 em, :root[data-theme="dark"] .h2 em, :root[data-theme="dark"] .display em, :root[data-theme="dark"] .stat-value {
  background: var(--ink-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .field input, :root[data-theme="dark"] .field textarea, :root[data-theme="dark"] .field select { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); }
:root[data-theme="dark"] .site-footer { background: linear-gradient(180deg, var(--bg), #05070c); }

/* ---------- Studio hero (1 Nov 2026) ----------
   Copy + proof numbers left, photo collage with live cards right.
   Motion: photos open like a curtain, cards settle in and drift; pointer adds depth (translate only). */
.hero-studio { min-height: min(100dvh, 980px); padding: calc(var(--header-h) + 3rem) 0 6rem; background: var(--hero-bg); }
.studio-aura { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 60% at 78% 42%, rgba(99, 102, 241, 0.26), transparent 65%),
    radial-gradient(40% 50% at 96% 96%, rgba(56, 189, 248, 0.12), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(10, 116, 201, 0.16), transparent 70%); }
.studio-aura::after { content: ''; position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: center; }
.hero-studio .display-xl { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.02; }
.hero-studio .hero-lead { font-size: 1.12rem; max-width: 46ch; }
.studio-proof { display: flex; gap: clamp(1.4rem, 3vw, 2.6rem); margin: 3rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.studio-proof div { display: flex; flex-direction: column-reverse; gap: 4px; }
.studio-proof dt { font-size: 0.82rem; color: var(--muted); }
.studio-proof dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(100deg, #ffffff 10%, #a5b4fc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.studio-visual { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1 / 1; margin-left: auto; --px: 0; --py: 0; }
.studio-visual::before { content: ''; position: absolute; inset: 12% 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(99, 102, 241, 0.35), transparent); filter: blur(30px); z-index: -1; }
.studio-shot, .studio-chip { position: absolute; translate: calc(var(--px) * var(--depth) * -1px) calc(var(--py) * var(--depth) * -1px); transition: translate 1s var(--ease-out); }
.studio-shot { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); background: #0b1226; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.8); }
.studio-shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-a { right: 0; top: 6%; width: 60%; height: 76%; }
.shot-b { left: 0; top: 0; width: 44%; height: 40%; }
.shot-c { left: 8%; bottom: 2%; width: 44%; height: 44%; }
.studio-chip { display: flex; align-items: center; gap: 12px; max-width: 330px; padding: 12px 18px 12px 12px; border-radius: 18px; color: var(--text);
  background: rgba(12, 18, 38, 0.62); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 50px -24px rgba(0, 0, 0, 0.8); }
.chip-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #0b1226; background: linear-gradient(135deg, var(--brand-light), #a5b4fc); }
.chip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chip-text small { white-space: nowrap; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.chip-text strong { font-size: 0.92rem; font-weight: 600; line-height: 1.25; }
.chip-course { left: 22%; top: 43%; }
.chip-project { right: -3%; bottom: 10%; }

@media (prefers-reduced-motion: no-preference) {
  html.js .studio-shot { animation: studio-curtain 1.3s var(--ease-out) var(--delay) both; }
  html.js .studio-shot img { animation: studio-settle 1.8s var(--ease-out) var(--delay) both; }
  html.js .studio-chip { animation: studio-pop 0.9s var(--ease-out) var(--delay) both, studio-drift 7s ease-in-out calc(var(--delay) + 0.9s) infinite; }
  html.js .chip-project { animation-duration: 0.9s, 8.5s; }
}
@keyframes studio-curtain { from { clip-path: inset(100% 0 0 0 round 22px); } to { clip-path: inset(0 0 0 0 round 22px); } }
@keyframes studio-settle { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes studio-pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes studio-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (max-width: 960px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-visual { max-width: 560px; margin: 0 auto; aspect-ratio: 5 / 4; }
  .hero-studio { min-height: 0; padding-bottom: 4rem; }
}
@media (max-width: 560px) {
  .studio-proof { gap: 1rem; justify-content: space-between; }
  .studio-proof dt { font-size: 0.75rem; }
  .chip-text small { white-space: normal; }
  .studio-visual { aspect-ratio: 1 / 1; }
  .chip-course { left: 4%; top: auto; bottom: 0; }
  .chip-project { display: none; }
  .studio-chip { max-width: 250px; }
}

/* ---------- Animated hero variants (1 Nov 2026): globe | wave | streams | aurora ---------- */
.hero-motion { background: var(--hero-bg); }
.motion-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.4s ease; }
.motion-canvas.ready { opacity: 1; }
.motion-veil { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-copy.is-centered { margin-inline: auto; text-align: center; max-width: 900px; }
.hero-copy.is-centered .hero-lead { margin-inline: auto; }
.hero-copy.is-centered .hero-actions { justify-content: center; }
.hero-copy.is-centered .hero-eyebrow { justify-content: center; }

/* Globe: copy left, globe right */
.v-globe { background: radial-gradient(55% 70% at 75% 50%, rgba(49, 46, 129, 0.45), transparent 70%), var(--hero-bg); }
.v-globe .motion-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; width: min(var(--container), 100% - 2 * var(--gutter)); }
.v-globe .display-xl { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.motion-globe { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 640px; margin-left: auto; }
.motion-globe .motion-canvas { position: absolute; inset: -8%; width: 116%; height: 116%; }
@media (max-width: 960px) {
  .v-globe .motion-grid { grid-template-columns: minmax(0, 1fr); }
  .motion-globe { max-width: 460px; margin: 0 auto; }
}

/* Wave: centred copy above a dot field */
.v-wave { align-items: flex-start; padding-top: calc(var(--header-h) + clamp(3rem, 9vh, 7rem)); }
.v-wave .motion-veil { background: radial-gradient(55% 40% at 50% 32%, rgba(5, 9, 20, 0.7), transparent 75%); }
.v-wave::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: radial-gradient(70% 100% at 50% 100%, rgba(99, 102, 241, 0.22), transparent 70%); z-index: -1; }

/* Streams: copy left, fibres across the whole hero */
.v-streams .motion-veil { background: linear-gradient(90deg, var(--hero-bg) 0%, color-mix(in srgb, var(--hero-bg) 80%, transparent) 30%, transparent 60%); }

/* Aurora: drifting colour clouds behind big centred type */
.v-aurora { overflow: hidden; }
.aurora { position: absolute; inset: -20%; z-index: 0; pointer-events: none; filter: blur(70px) saturate(130%); }
.aurora span { position: absolute; width: 55%; height: 60%; border-radius: 50%; mix-blend-mode: screen; opacity: 0.7; }
.aurora span:nth-child(1) { left: 5%; top: 15%; background: radial-gradient(closest-side, #2563eb, transparent); }
.aurora span:nth-child(2) { right: 0; top: 5%; background: radial-gradient(closest-side, #7c3aed, transparent); }
.aurora span:nth-child(3) { left: 30%; bottom: 0; background: radial-gradient(closest-side, #0891b2, transparent); }
.aurora span:nth-child(4) { right: 15%; bottom: 15%; width: 40%; height: 45%; background: radial-gradient(closest-side, #818cf8, transparent); }
.v-aurora .motion-veil { background: radial-gradient(60% 50% at 50% 50%, rgba(5, 9, 20, 0.55), transparent 80%);
  background-image: radial-gradient(60% 50% at 50% 50%, rgba(5, 9, 20, 0.55), transparent 80%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: no-preference) {
  .aurora span:nth-child(1) { animation: aurora-a 22s ease-in-out infinite alternate; }
  .aurora span:nth-child(2) { animation: aurora-b 26s ease-in-out infinite alternate; }
  .aurora span:nth-child(3) { animation: aurora-c 30s ease-in-out infinite alternate; }
  .aurora span:nth-child(4) { animation: aurora-d 18s ease-in-out infinite alternate; }
}
@keyframes aurora-a { to { transform: translate(35%, 20%) scale(1.25); } }
@keyframes aurora-b { to { transform: translate(-40%, 25%) scale(0.85); } }
@keyframes aurora-c { to { transform: translate(-25%, -35%) scale(1.2); } }
@keyframes aurora-d { to { transform: translate(-50%, -20%) scale(1.3); } }
