/* ==========================================================================
   mirtuono.it — design system & layout
   Midnight laboratory: deep ink, signal cyan, depth violet, a human amber.
   Type: Archivo (display, variable width) · Inter (text) · Newsreader (editorial)
         · JetBrains Mono (instrument labels)
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-ext.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-017F; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------------ tokens */
:root {
  --ink-0: #05070d;
  --ink-1: #070b15;
  --ink-2: #0b111f;
  --ink-3: #111a2d;
  --line: rgba(170, 190, 255, 0.085);
  --line-2: rgba(170, 190, 255, 0.15);
  --line-3: rgba(170, 190, 255, 0.24);
  --text: #eef2fa;
  --text-2: #b3bdd3;
  --text-3: #8591ab;
  --text-4: #7b87a1;
  --cyan: #5ce1ff;
  --cyan-2: #a8f0ff;
  --blue: #3d7bff;
  --violet: #8b7cff;
  --orchid: #b48cff;
  --amber: #ffb36b;
  --copper: #e0895a;
  --accent: var(--cyan);

  --sb-w: clamp(264px, 18.5vw, 312px);
  --gutter: clamp(22px, 4.4vw, 80px);
  --maxw: 1360px;
  --radius: 16px;
  --bar-h: 62px;

  --f-display: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text-2);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  line-height: 1.68;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { /* ambient light */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 8%, rgba(139, 124, 255, .07), transparent 70%),
    radial-gradient(50vw 50vh at 10% 95%, rgba(92, 225, 255, .045), transparent 70%),
    linear-gradient(180deg, var(--ink-0), var(--ink-1) 50%, var(--ink-0));
}
body::after { /* film grain */
  content: ""; position: fixed; inset: -50%; z-index: 300; pointer-events: none;
  background-image: url("../img/noise.png");
  background-size: 160px 160px;
  opacity: .055; mix-blend-mode: overlay;
}
img, svg, video, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
strong, b { font-weight: 600; color: var(--text); }
em { font-style: italic; }
::selection { background: var(--cyan); color: var(--ink-0); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 400; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--ink-0); font-weight: 600; transform: translateY(-160%); transition: transform .3s var(--ease-out); }
.skip-link:focus-visible { transform: none; }
.i { width: 16px; height: 16px; flex: none; }

/* ------------------------------------------------------------------ type primitives */
.mono-label { font-family: var(--f-mono); font-size: 11px; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; color: var(--text-4); font-weight: 450; }
.figcap { font-family: var(--f-mono); font-size: 10.5px; line-height: 1.55; letter-spacing: .06em; color: var(--text-4); }
.kicker { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.kicker-idx { color: var(--accent); font-weight: 500; }
.kicker-rule { width: 46px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.section-title {
  margin-top: 22px; color: var(--text);
  font-family: var(--f-display); font-weight: 300; font-stretch: 108%;
  font-size: clamp(2.5rem, 1.2rem + 4.2vw, 5.6rem); line-height: 1.0; letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-title em, .contact-title em, .page-title em, .curtain-title em {
  font-family: var(--f-serif); font-style: italic; font-weight: 340; font-stretch: normal; letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--cyan-2) 0%, var(--cyan) 40%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.section-intro { margin-top: 26px; max-width: 58ch; font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); color: var(--text-2); line-height: 1.62; }
.lead { font-family: var(--f-serif); font-weight: 360; font-size: clamp(1.55rem, 1.05rem + 1.55vw, 2.55rem); line-height: 1.2; letter-spacing: -0.012em; color: var(--text); text-wrap: pretty; }
.prose p { margin-top: 1.15em; max-width: 64ch; line-height: 1.74; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); background: rgba(255, 255, 255, .02); line-height: 1.3; }
.chips--quiet .chip { color: var(--text-3); border-color: var(--line); }
.chips--big .chip { font-family: var(--f-body); font-size: 14px; letter-spacing: 0; padding: 10px 16px; color: var(--text); }
.pulse-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(92, 225, 255, .6); animation: pulse 2.4s var(--ease-soft) infinite; vertical-align: middle; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(92, 225, 255, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(92, 225, 255, 0); } }

/* corner registration marks */
.corner { position: absolute; width: 14px; height: 14px; border: 0 solid var(--cyan); opacity: .8; pointer-events: none; }
.corner--tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.corner--tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.corner--bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.corner--br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px; border-radius: 999px; font-size: 14.5px; font-weight: 500; letter-spacing: .005em; border: 1px solid transparent; transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out); will-change: transform; }
.btn .i { transition: transform .5s var(--ease-out); }
.btn--primary { background: var(--text); color: var(--ink-0); }
.btn--primary:hover { background: var(--cyan); box-shadow: 0 0 0 6px rgba(92, 225, 255, .12), 0 12px 40px -8px rgba(92, 225, 255, .55); }
.btn--primary:hover .i { transform: translateY(3px); }
.btn--ghost { color: var(--text); border-color: rgba(220, 230, 255, .22); background: rgba(10, 14, 26, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan-2); }
.btn--ghost:hover .i { transform: translateX(4px); }

/* ------------------------------------------------------------------ layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
main { position: relative; display: block; }
main:focus { outline: none; }
.section { position: relative; padding-block: clamp(96px, 15vh, 190px); }
.section-head { max-width: 1000px; margin-bottom: clamp(48px, 7vh, 92px); }

@media (min-width: 1100px) {
  main, .site-footer { margin-left: var(--sb-w); }
  .mobilebar, .menu { display: none !important; }
}

/* ================================================================== SIDEBAR */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 60; width: var(--sb-w);
  display: flex; flex-direction: column; padding: 34px 30px 24px 32px;
  background: linear-gradient(180deg, rgba(6, 9, 18, .66), rgba(6, 9, 18, .78));
  -webkit-backdrop-filter: blur(22px) saturate(1.35); backdrop-filter: blur(22px) saturate(1.35);
  border-right: 1px solid var(--line);
}
.sidebar::after { /* inner light edge */
  content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(92, 225, 255, .35) 30%, rgba(139, 124, 255, .25) 70%, transparent);
  opacity: .55; pointer-events: none;
}
.brand { display: grid; gap: 14px; justify-items: start; }
.brand-mark { display: block; color: var(--text); }
.brand-mark .monogram { height: 22px; width: auto; }
.brand-name { font-family: var(--f-display); font-weight: 640; font-stretch: 118%; font-size: 15.5px; line-height: 1.04; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.brand-meta { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-4); line-height: 1.6; }
.brand:hover .brand-name { color: var(--cyan-2); }
.sidebar-tagline { margin-top: 18px; font-family: var(--f-serif); font-style: italic; font-size: 15.5px; line-height: 1.4; color: var(--text-3); max-width: 22ch; }

.nav { position: relative; margin: auto 0 0; padding-left: 18px; }
.nav::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.nav-link { position: relative; display: grid; grid-template-columns: 30px 1fr; align-items: center; padding: 7px 0; color: var(--text-3); transition: color .35s var(--ease-out); }
.nav-idx { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--text-4); transition: color .35s var(--ease-out); }
.nav-label { font-size: 14.5px; font-weight: 450; letter-spacing: .005em; transition: transform .45s var(--ease-out); }
.nav-bar { position: absolute; left: 30px; right: 0; bottom: 2px; height: 1px; background: transparent; overflow: hidden; }
.nav-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cyan), rgba(139, 124, 255, .6)); transform: scaleX(0); transform-origin: left; }
.nav-link:hover { color: var(--text); }
.nav-link:hover .nav-label { transform: translateX(4px); }
.nav-link:hover .nav-idx { color: var(--text-2); }
.nav-link[aria-current] { color: var(--text); }
.nav-link:not([aria-current]) .nav-bar i { opacity: 0; }
.nav-bar i { transition: opacity .4s; }
.nav-link[aria-current] .nav-idx { color: var(--cyan); }
.nav-indicator { position: absolute; left: -4px; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-0); border: 1.5px solid var(--nav-acc, var(--cyan)); box-shadow: 0 0 12px 2px color-mix(in srgb, var(--nav-acc, var(--cyan)) 55%, transparent); transition: transform .7s var(--ease-out), border-color .6s, box-shadow .6s; transform: translateY(var(--y, 15px)); pointer-events: none; }
.nav-indicator i { position: absolute; inset: 1.5px; border-radius: 50%; background: var(--nav-acc, var(--cyan)); transition: background-color .6s; }

.sidebar-foot { display: grid; gap: 18px; }
.lang-switch { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: max-content; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; isolation: isolate; }
.lang-switch a { position: relative; z-index: 1; padding: 5px 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--text-3); text-align: center; transition: color .35s var(--ease-out); border-radius: 999px; }
.lang-switch a[aria-current] { color: var(--ink-0); }
.lang-switch a:not([aria-current]):hover { color: var(--text); }
.lang-pill { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--text); transition: transform .5s var(--ease-out); }
html[data-lang="it"] .lang-switch:not(.lang-switch--menu) .lang-pill { transform: translateX(100%); }
.sidebar-links { display: flex; align-items: center; gap: 16px; }
.sidebar-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); transition: color .3s; }
.sidebar-links a:hover { color: var(--cyan-2); }
.sidebar-links .i { width: 17px; height: 17px; }
.sidebar-contact { font-size: 13.5px; margin-left: auto; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.sidebar-contact .i { width: 13px; height: 13px; }
.sidebar-clock { display: flex; align-items: center; gap: 9px; color: var(--text-4); }
.sidebar-clock time { color: var(--text-2); }
.sidebar-ruler { position: absolute; top: 0; right: 0; bottom: 0; width: 14px; overflow: hidden; pointer-events: none; }
.sidebar-ruler-ticks { position: absolute; left: 0; right: 0; top: -200px; bottom: -200px; transform: translateY(var(--ruler, 0px)); background:
  repeating-linear-gradient(180deg, rgba(190, 205, 255, .22) 0 1px, transparent 1px 48px) right 0 top 0 / 9px 100% no-repeat,
  repeating-linear-gradient(180deg, rgba(190, 205, 255, .12) 0 1px, transparent 1px 8px) right 0 top 0 / 5px 100% no-repeat; }
.sidebar-ruler-mark { position: absolute; right: 0; top: 0; transform: translateY(var(--mark, 40px)); width: 14px; height: 1px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.sidebar-ruler-mark span { position: absolute; right: 18px; top: -7px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; color: var(--cyan); font-weight: 500; }
@media (max-width: 1099.98px) { .sidebar { display: none; } }
@media (max-height: 760px) and (min-width: 1100px) {
  .sidebar { padding-top: 24px; padding-bottom: 18px; }
  .sidebar-tagline { display: none; }
  .nav-link { padding: 5px 0; }
}

/* ================================================================== MOBILE BAR & MENU */
.mobilebar { position: fixed; inset: 0 0 auto 0; z-index: 70; height: var(--bar-h); display: flex; align-items: center; gap: 14px; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
  background: rgba(5, 7, 13, .72); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid var(--line); }
.mobilebar-brand { display: flex; align-items: center; gap: 12px; color: var(--text); min-width: 0; }
.mobilebar-brand .monogram { height: 16px; width: auto; }
.mobilebar-name { font-family: var(--f-display); font-weight: 620; font-stretch: 112%; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.mobilebar-section { margin-left: auto; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mobilebar-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; }
.mobilebar-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); transform: scaleX(var(--p, 0)); transform-origin: left; }
.menu { position: fixed; inset: 0; z-index: 65; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--bar-h) + 6vh) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: rgba(5, 7, 13, .965); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); overflow-y: auto; }
.menu-list { display: grid; gap: 2px; }
.menu-list a { display: flex; align-items: baseline; gap: 16px; padding: 8px 0; font-family: var(--f-display); font-weight: 300; font-stretch: 112%; font-size: clamp(1.9rem, 8vw, 3rem); line-height: 1.05; letter-spacing: -.03em; color: var(--text); }
.menu-list a .nav-idx { font-size: 11px; color: var(--text-4); min-width: 22px; }
.menu-list a[aria-current] { color: var(--cyan-2); }
.menu-list a[aria-current] .nav-idx { color: var(--cyan); }
.menu-foot { display: grid; gap: 18px; margin-top: 32px; }
.lang-switch--menu { grid-auto-columns: auto; }
.lang-switch--menu a { font-size: 12px; padding: 8px 16px; }
.lang-switch--menu a[aria-current] { background: var(--text); color: var(--ink-0); }
.lang-switch--menu .lang-pill { display: none; }
.menu-foot a { color: var(--text-2); }
@media (max-width: 1099.98px) {
  main { padding-top: 0; }
  html { scroll-padding-top: calc(var(--bar-h) + 12px); }
}

/* ================================================================== HERO */
.s-hero { min-height: 100vh; min-height: 100svh; padding: clamp(26px, 5vh, 56px) var(--gutter) clamp(28px, 5.5vh, 64px); display: grid; grid-template-rows: auto 1fr auto; overflow: clip; isolation: isolate; }
@media (min-width: 1100px) {
  .s-hero { margin-left: calc(-1 * var(--sb-w)); padding-left: calc(var(--sb-w) + var(--gutter)); }
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ink-0); }
.hero-parallax { position: absolute; inset: -2.5%; will-change: transform; }
.hero-picture, .hero-picture img { width: 100%; height: 100%; }
.hero-picture img { object-fit: cover; object-position: 50% 50%; }
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; pointer-events: none; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(5, 7, 13, .80) 0%, rgba(5, 7, 13, .40) 30%, rgba(5, 7, 13, 0) 52%),
  linear-gradient(0deg, rgba(5, 7, 13, .94) 0%, rgba(5, 7, 13, .55) 22%, rgba(5, 7, 13, 0) 48%),
  linear-gradient(180deg, rgba(5, 7, 13, .55) 0%, rgba(5, 7, 13, 0) 18%); }
.hero-hud { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hud { position: absolute; display: grid; gap: 3px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-4); }
.hud b { font-weight: 500; color: var(--text-2); }
.hud--tl { top: clamp(26px, 5vh, 56px); right: calc(var(--gutter) + 210px); text-align: right; }
.hud--tr { top: clamp(26px, 5vh, 56px); right: var(--gutter); text-align: right; }
.hero-frame { position: absolute; inset: 14px 14px 14px 14px; }
@media (min-width: 1100px) { .hero-frame { left: calc(var(--sb-w) + 14px); } }
.hero-frame .corner { opacity: .45; }
.hero-content { position: relative; z-index: 2; grid-row: 3; max-width: min(1500px, 100%); }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px 3px rgba(92, 225, 255, .6); }
.hero-title { margin-top: clamp(14px, 2.4vh, 26px); color: var(--text); font-family: var(--f-display); text-transform: uppercase; font-size: clamp(3.1rem, 0.9rem + 6.9vw, 12rem); line-height: .86; letter-spacing: -0.045em; }
.hero-name { display: block; font-stretch: 125%; white-space: nowrap; }
.hero-name--1 { font-weight: 190; color: rgba(238, 242, 250, .92); }
.hero-name--2 { font-weight: 760; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-top: clamp(22px, 4vh, 48px); }
.hero-lede { grid-column: 1; font-family: var(--f-serif); font-weight: 380; font-size: clamp(1.32rem, 1rem + 1vw, 1.95rem); line-height: 1.22; letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
.hero-sub { grid-column: 1; max-width: 54ch; font-size: 15px; line-height: 1.62; color: var(--text-2); }
.hero-ctas { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: 12px; align-self: end; justify-self: start; }
.hero-cap { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(28px, 5.5vh, 64px); max-width: 32ch; text-align: right; }
.hero-scroll { position: absolute; z-index: 2; right: var(--gutter); bottom: calc(clamp(28px, 5.5vh, 64px) + 64px); display: grid; justify-items: end; gap: 10px; color: var(--text-3); }
.hero-scroll i { position: relative; width: 1px; height: 54px; background: var(--line-3); overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--cyan); animation: scrollcue 2.2s var(--ease-io) infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); } 100% { transform: translateY(350%); } }
@media (max-width: 1280px) { .hero-copy { grid-template-columns: minmax(0, 1fr); } .hero-ctas { grid-column: 1; grid-row: auto; margin-top: 10px; } .hud--tl { display: none; } }
@media (max-width: 1640px) { .hero-cap { display: none; } .hero-scroll { bottom: clamp(28px, 5.5vh, 64px); } }
@media (max-width: 1099.98px) {
  .s-hero { padding-top: calc(var(--bar-h) + 22px); }
  .hud--tr { top: calc(var(--bar-h) + 18px); }
  .hero-cap { display: none; }
  .hero-scroll { display: none; }
}
@media (max-aspect-ratio: 4/5) {
  .hero-shade { background:
    linear-gradient(0deg, rgba(5, 7, 13, .97) 0%, rgba(5, 7, 13, .82) 30%, rgba(5, 7, 13, .2) 52%, rgba(5, 7, 13, 0) 62%),
    linear-gradient(180deg, rgba(5, 7, 13, .6) 0%, rgba(5, 7, 13, 0) 16%); }
  .hero-title { font-size: min(12.4vw, 6.2rem); }
  .hero-lede { font-size: clamp(1.2rem, 5.2vw, 1.5rem); }
  .hero-sub { font-size: 14.5px; }
  .hud--tr { display: none; }
}
@media (max-width: 420px) { .btn { height: 46px; padding: 0 18px; font-size: 14px; } .hero-sub { font-size: 14px; } .hero-ctas { gap: 10px; } .hero-eyebrow { font-size: 10px; letter-spacing: .14em; } }
@media (max-width: 600px) and (max-height: 760px) { .hero-sub { display: none; } }

/* ================================================================== ABOUT */
.s-about { --accent: var(--amber); }
.about-grid { display: grid; grid-template-columns: minmax(260px, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.portrait { position: relative; max-width: 420px; }
.portrait-frame { position: relative; aspect-ratio: 498 / 517; overflow: hidden; border-radius: 6px; background: var(--ink-2); border: 1px solid var(--line-2); isolation: isolate; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.06) brightness(.97); transform: scale(1.02); transition: transform 1.6s var(--ease-out), filter 1.2s var(--ease-out); }
.portrait-frame::before { /* dot matrix */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(5, 7, 13, .55) 0.9px, transparent 1.3px) 0 0 / 4px 4px; mix-blend-mode: multiply; opacity: .55; transition: opacity 1s var(--ease-out);
}
.portrait-frame::after { /* cool cast at the edges */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(200deg, rgba(92, 225, 255, .16), transparent 40%), linear-gradient(0deg, rgba(5, 7, 13, .55), transparent 35%);
}
.portrait:hover .portrait-frame img { transform: scale(1.045); }
.portrait:hover .portrait-frame::before { opacity: .25; }
.portrait-frame .corner { z-index: 2; border-color: var(--amber); }
.portrait-scan { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 179, 107, .85); box-shadow: 0 0 18px 3px rgba(255, 179, 107, .35); opacity: 0; }
.portrait.is-in .portrait-scan { animation: scan 5.5s var(--ease-io) .4s infinite; }
@keyframes scan { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 46% { opacity: 1; } 54% { top: 100%; opacity: 0; } 100% { top: 100%; opacity: 0; } }
.portrait .figcap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.portrait--empty .portrait-frame { display: grid; place-items: center; color: var(--text-3); }
.portrait--empty .monogram { width: 50%; }
.about-text .lead { max-width: 26ch; }
.about-text .prose { margin-top: clamp(26px, 4vh, 40px); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(60px, 9vh, 104px); border-top: 1px solid var(--line-2); }
.fact { padding: 22px 22px 6px 0; border-right: 1px solid var(--line); }
.fact + .fact { padding-left: 22px; }
.fact:last-child { border-right: 0; }
.fact dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.fact dd { display: grid; gap: 4px; margin-top: 12px; }
.fact-v { font-family: var(--f-display); font-weight: 520; font-stretch: 104%; font-size: 1.08rem; line-height: 1.25; color: var(--text); }
.fact-d { font-size: .9rem; color: var(--text-3); }
.about-quote { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr) minmax(0, 1.4fr); gap: 20px clamp(24px, 4vw, 64px); align-items: end; margin-top: clamp(70px, 11vh, 130px); padding-top: 34px; border-top: 1px solid var(--line); }
.about-quote .mono-label { color: var(--amber); align-self: start; }
.about-quote blockquote p { font-family: var(--f-serif); font-style: italic; font-weight: 330; font-size: clamp(2rem, 1rem + 3.2vw, 3.9rem); line-height: 1.04; letter-spacing: -0.02em; color: var(--text); }
.about-quote .about-quote-tr { margin-top: 12px; font-family: var(--f-mono); font-style: normal; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); line-height: 1.5; }
.about-quote-note { font-size: .95rem; color: var(--text-3); max-width: 36ch; }
@media (max-width: 1099.98px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; }
  .about-quote { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(3) { padding-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .fact { border-right: 0; padding-left: 0 !important; } .fact + .fact { border-top: 1px solid var(--line); } }

/* ================================================================== JOURNEY */
.s-journey { --accent: var(--violet); }
.lane-research { --lane-c: var(--violet); }
.lane-engineering { --lane-c: var(--cyan); }
.lane-leadership { --lane-c: var(--amber); }
.jr { display: grid; grid-template-columns: minmax(250px, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 80px); align-items: start; }
.jr-map { position: sticky; top: 8vh; height: 84vh; max-height: 840px; }
.jr-map-inner { position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding: 18px 16px 14px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(80% 60% at 50% 30%, rgba(139, 124, 255, .07), transparent 70%), rgba(255, 255, 255, .012); }
.jr-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-left: 6px; }
.jr-legend li { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.jr-swatch { display: inline-block; width: 14px; height: 2px; background: var(--lane-c); box-shadow: 0 0 8px var(--lane-c); flex: none; }
.jr-svg { width: 100%; height: 100%; min-height: 0; overflow: visible; }
.jr-year line { stroke: rgba(170, 190, 255, .10); stroke-width: 1; }
.jr-year text { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; fill: var(--text-4); }
.jr-lane-line { stroke: var(--lane-c); stroke-opacity: .16; stroke-width: 1; stroke-dasharray: 2 5; }
.jr-route-base { fill: none; stroke: rgba(170, 190, 255, .16); stroke-width: 1.4; }
.jr-route-live { fill: none; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(139, 124, 255, .6)); transition: stroke-dashoffset 1.1s var(--ease-out); }
.jr-span { stroke: var(--lane-c); stroke-opacity: .28; stroke-width: 7; stroke-linecap: round; transition: stroke-opacity .6s; }
.jr-span.is-on { stroke-opacity: .55; }
.jr-dot-ring { fill: var(--ink-0); stroke: var(--lane-c); stroke-width: 1.6; transition: fill .5s, transform .6s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.jr-dot-core { fill: var(--lane-c); opacity: 0; transition: opacity .5s; }
.jr-dot.is-on .jr-dot-core { opacity: 1; }
.jr-dot.is-active .jr-dot-ring { transform: scale(1.45); fill: color-mix(in srgb, var(--lane-c) 25%, var(--ink-0)); }
.jr-dot-pulse { fill: none; stroke: var(--amber); stroke-width: 1; opacity: .6; transform-box: fill-box; transform-origin: center; animation: ring 2.6s var(--ease-soft) infinite; }
@keyframes ring { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.jr-nowline line { stroke: rgba(255, 179, 107, .5); stroke-width: 1; stroke-dasharray: 3 4; }
.jr-nowline text { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; fill: var(--amber); }
.jr-list { display: grid; gap: 14px; counter-reset: jr; }
.jr-item { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 10px clamp(16px, 2vw, 28px); padding: 26px 0; border-top: 1px solid var(--line); transition: opacity .6s var(--ease-out); }
.jr-meta { display: grid; gap: 10px; align-content: start; justify-items: start; padding-top: 2px; }
.jr-when time { font-family: var(--f-display); font-weight: 560; font-stretch: 112%; font-size: 1.06rem; letter-spacing: .01em; color: var(--text); font-variant-numeric: tabular-nums; }
.jr-lane-tag { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--lane-c); line-height: 1.4; }
.jr-now { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-0); background: var(--amber); padding: 3px 9px; border-radius: 999px; }
.jr-card { position: relative; }
.jr-title { font-family: var(--f-display); font-weight: 500; font-stretch: 103%; font-size: clamp(1.2rem, 1.05rem + .45vw, 1.45rem); line-height: 1.2; letter-spacing: -.015em; color: var(--text); }
.jr-org { margin-top: 6px; font-size: .94rem; color: var(--text-2); }
.jr-summary { margin-top: 12px; max-width: 62ch; font-size: .98rem; line-height: 1.65; color: var(--text-2); }
.jr-photo { margin-top: 20px; max-width: 560px; }
.jr-photo img { border-radius: 10px; border: 1px solid var(--line-2); }
.jr-photo .figcap { margin-top: 8px; color: var(--text-3); }
.js:not(.reduced-motion) .jr-item:not(.is-active) .jr-card { opacity: .86; transition: opacity .7s var(--ease-out); }
.js:not(.reduced-motion) .jr-item.is-active .jr-card { opacity: 1; transition: opacity .7s var(--ease-out); }
.jr-item.is-active { border-top-color: color-mix(in srgb, var(--lane-c) 45%, transparent); }
.jr-item.is-current .jr-title { color: var(--text); }
@media (max-width: 1099.98px) {
  .jr { grid-template-columns: 1fr; }
  .jr-map { display: none; }
  .jr-item { grid-template-columns: 1fr; padding: 22px 0 22px 18px; border-top: 0; border-left: 2px solid color-mix(in srgb, var(--lane-c) 55%, transparent); }
  .jr-meta { grid-auto-flow: column; align-items: center; gap: 14px; }
  .js:not(.reduced-motion) .jr-item:not(.is-active) .jr-card { opacity: 1; }
}

/* ================================================================== IMPACT */
.s-impact { --accent: var(--cyan); }
.impact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.impact-aside { position: sticky; top: 8vh; }
.impact-aside .section-head { margin-bottom: 0; }
.impact-figure { margin-top: clamp(30px, 5vh, 56px); }
.impact-figure picture { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); }
.impact-figure img { width: 100%; height: 100%; object-fit: cover; }
.impact-figure .figcap { margin-top: 10px; }
.impact-list { counter-reset: impact; }
.impact-item { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 10px; padding: clamp(28px, 4vh, 40px) 0; border-top: 1px solid var(--line); }
.impact-item:last-child { border-bottom: 1px solid var(--line); }
.impact-code { font-family: var(--f-display); font-weight: 160; font-stretch: 125%; font-size: 2.7rem; line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(168, 240, 255, .45); transition: color .6s var(--ease-out), -webkit-text-stroke-color .6s; }
.impact-item:hover .impact-code { color: var(--cyan); -webkit-text-stroke-color: transparent; }
.impact-title { font-family: var(--f-display); font-weight: 500; font-stretch: 104%; font-size: clamp(1.3rem, 1.05rem + .6vw, 1.6rem); line-height: 1.15; letter-spacing: -.015em; color: var(--text); }
.impact-body p { margin-top: 12px; color: var(--text-2); }
.impact-body .chips { margin-top: 16px; }
.rigor { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 80px); align-items: end; margin-top: clamp(80px, 13vh, 150px); padding: clamp(28px, 4vw, 60px); border-radius: 24px; border: 1px solid rgba(255, 179, 107, .26); background: radial-gradient(70% 90% at 0% 0%, rgba(255, 179, 107, .10), transparent 60%), rgba(255, 255, 255, .012); }
.rigor .mono-label { grid-column: 1 / -1; color: var(--amber); }
.rigor-text { font-family: var(--f-serif); font-weight: 360; font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); line-height: 1.45; color: var(--text); }
.rigor-text strong { color: var(--amber); font-weight: 500; }
.rigor-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rigor-stats dd { display: grid; gap: 10px; }
.rigor-num { font-family: var(--f-display); font-weight: 170; font-stretch: 125%; font-size: clamp(3.6rem, 2rem + 4.4vw, 7rem); line-height: .86; letter-spacing: -.04em; color: var(--amber); font-variant-numeric: tabular-nums; }
.rigor-lab { font-size: .88rem; line-height: 1.45; color: var(--text-3); max-width: 24ch; }
@media (max-width: 1099.98px) {
  .impact-grid { grid-template-columns: 1fr; }
  .impact-aside { position: relative; top: 0; }
  .rigor { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .impact-item { grid-template-columns: 3.6rem minmax(0, 1fr); } .impact-code { font-size: 2rem; } }

/* ================================================================== RESEARCH */
.s-research { --accent: var(--violet); padding-top: clamp(30px, 5vh, 60px); }
.chips--themes { margin-top: 0 !important; }
.research-cap { margin-top: 48px; }
.chips--themes { margin-top: 30px; }
.chips--themes .chip { color: var(--text-2); border-color: rgba(139, 124, 255, .32); background: rgba(139, 124, 255, .05); }
.research-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 100px); margin-top: clamp(56px, 8vh, 96px); }
.col-title { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-family: var(--f-mono); font-weight: 450; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.col-title::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.research-side .col-title + * { margin-bottom: 52px; }
.pub { display: grid; grid-template-columns: 3.8rem minmax(0, 1fr) auto; gap: 8px 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pub-year { font-family: var(--f-display); font-weight: 520; font-stretch: 110%; font-size: .98rem; color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.pub-title { display: inline; font-family: var(--f-display); font-weight: 480; font-stretch: 102%; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.01em; color: var(--text); background-image: linear-gradient(var(--cyan), var(--cyan)); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .6s var(--ease-out), color .4s; }
a.pub-title:hover { color: var(--cyan-2); background-size: 100% 1px; }
.pub-title .i { display: inline-block; width: 13px; height: 13px; margin-left: 6px; vertical-align: -1px; color: var(--cyan); }
.pub-authors { margin-top: 8px; font-size: .86rem; line-height: 1.5; color: var(--text-3); }
.pub-authors b { color: var(--text); font-weight: 600; }
.pub-venue { margin-top: 4px; font-family: var(--f-serif); font-style: italic; font-size: 1rem; color: var(--text-2); line-height: 1.45; }
.pub-doi { font-family: var(--f-mono); font-style: normal; font-size: 10.5px; letter-spacing: .04em; color: var(--text-4); }
.pub-type { align-self: start; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--orchid); padding: 4px 9px; border: 1px solid rgba(180, 140, 255, .3); border-radius: 999px; white-space: nowrap; }
.thesis { padding: 18px 0; border-bottom: 1px solid var(--line); }
.thesis-kind { color: var(--violet); }
.thesis-title { margin-top: 8px; font-family: var(--f-serif); font-size: 1.18rem; line-height: 1.35; color: var(--text); }
.thesis-title a:hover { color: var(--cyan-2); }
.thesis-title .i { display: inline-block; width: 13px; height: 13px; margin-left: 4px; vertical-align: -1px; color: var(--cyan); }
.pdf-tag { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; vertical-align: 2px; margin-left: 4px; }
.thesis-where { margin-top: 6px; font-size: .86rem; color: var(--text-3); }
.confs li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.confs p { font-size: .88rem; line-height: 1.55; color: var(--text-3); }
.confs p b { color: var(--text-2); }
@media (max-width: 1099.98px) { .research-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pub { grid-template-columns: minmax(0, 1fr); } .pub-type { justify-self: start; } }

/* ================================================================== PERSPECTIVES */
.s-perspectives { --accent: var(--amber); }
.draft-notice { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 14px; border: 1px dashed rgba(255, 179, 107, .45); border-radius: 999px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--amber); }
.draft-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.persp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 28px); }
.persp-link { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(14, 19, 34, .8), rgba(8, 11, 21, .9)); transition: border-color .6s var(--ease-out), transform .8s var(--ease-out), box-shadow .8s var(--ease-out); }
.persp-link:hover { border-color: rgba(255, 179, 107, .38); transform: translateY(-6px); box-shadow: 0 30px 80px -40px rgba(255, 179, 107, .35); }
.persp-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.persp-art, .persp-art img { width: 100%; height: 100%; }
.persp-art img { object-fit: cover; transform: scale(1.03); transition: transform 1.6s var(--ease-out), filter 1s; filter: saturate(.9) brightness(.9); }
.persp-link:hover .persp-art img { transform: scale(1.1); filter: saturate(1.05) brightness(1); }
.persp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 11, 21, .9), transparent 55%); }
.persp-num { position: absolute; z-index: 1; left: 18px; bottom: 14px; font-family: var(--f-display); font-weight: 200; font-stretch: 125%; font-size: 2.4rem; line-height: 1; color: var(--text); }
.persp-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.persp-status { align-self: start; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.persp-status.is-draft { color: var(--amber); border: 1px dashed rgba(255, 179, 107, .55); }
.persp-status.is-pub { color: var(--cyan); border: 1px solid rgba(92, 225, 255, .4); }
.persp-title { margin-top: 16px; font-family: var(--f-serif); font-weight: 450; font-size: clamp(1.45rem, 1.1rem + .8vw, 1.85rem); line-height: 1.1; letter-spacing: -.012em; color: var(--text); text-wrap: balance; }
.persp-dek { margin-top: 10px; font-size: .96rem; line-height: 1.55; color: var(--text-2); }
.persp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--text-4); }
.persp-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 500; font-size: 14px; color: var(--amber); }
.persp-cta .i { transition: transform .5s var(--ease-out); }
.persp-link:hover .persp-cta .i { transform: translateX(5px); }
@media (max-width: 1099.98px) { .persp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .persp-grid { grid-template-columns: 1fr; } }

/* ================================================================== EXPLORING */
.s-exploring { --accent: var(--cyan); padding-top: clamp(40px, 8vh, 90px); }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(14px, 2.2vh, 24px); margin-bottom: clamp(70px, 11vh, 130px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; transform: translate3d(var(--mx, 0px), 0, 0); will-change: transform; }
.marquee-track span { flex: none; padding-right: .5em; font-family: var(--f-display); font-weight: 220; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2.6rem, 1rem + 5.4vw, 7rem); line-height: 1.05; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(190, 205, 255, .3); white-space: nowrap; }
.no-js .marquee-track, .reveal-fallback .marquee-track { animation: marquee 60s linear infinite; }
@keyframes marquee { to { transform: translate3d(-33.333%, 0, 0); } }
.explore-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.explore-item { grid-column: span 2; position: relative; isolation: isolate; padding: clamp(24px, 2.4vw, 34px); border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .014); overflow: hidden; transition: border-color .6s var(--ease-out), background-color .6s; }
.explore-item:nth-child(n+4) { grid-column: span 3; }
.explore-item::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(92, 225, 255, .14), transparent 65%); opacity: 0; transition: opacity .8s var(--ease-out); pointer-events: none; }
.explore-item:hover { border-color: rgba(92, 225, 255, .3); }
.explore-item:hover::before { opacity: 1; }
.explore-idx { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--cyan); }
.explore-title { margin-top: 18px; font-family: var(--f-display); font-weight: 520; font-stretch: 108%; font-size: 1.28rem; letter-spacing: -.01em; color: var(--text); }
.explore-q { margin-top: 12px; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.2rem, 1rem + .5vw, 1.42rem); line-height: 1.3; color: var(--text); }
.explore-text { margin-top: 14px; font-size: .95rem; color: var(--text-3); }
@media (max-width: 1099.98px) { .explore-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .explore-item, .explore-item:nth-child(n+4) { grid-column: span 1; } .explore-item:last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .explore-list { grid-template-columns: 1fr; } .explore-item:last-child { grid-column: auto; } }

/* ================================================================== FOOTER */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); font-size: .88rem; color: var(--text-3); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 32px 48px; align-items: start; }
.footer-brand { display: grid; gap: 10px; }
.footer-brand .monogram { height: 18px; width: auto; color: var(--text); }
.footer-privacy { color: var(--text-4); }
.footer-colophon p:last-child { margin-top: 8px; line-height: 1.6; }
.footer-actions { display: grid; gap: 14px; justify-items: end; }
.footer-top { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.footer-top .i { transform: rotate(-90deg); }
.footer-top:hover { color: var(--cyan-2); }
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.motion-toggle-track { position: relative; width: 30px; height: 16px; border-radius: 999px; border: 1px solid var(--line-3); }
.motion-toggle-track i { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); transition: transform .4s var(--ease-out), background-color .4s; transform: translateX(14px); }
.motion-toggle[aria-pressed="true"] .motion-toggle-track i { transform: none; background: var(--text-4); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } .footer-actions { justify-items: start; } }

/* ================================================================== READER (overlay) & ARTICLE PAGES */
.reader-article { width: min(100% - 2 * var(--gutter), 720px); margin: 0 auto; padding: clamp(90px, 14vh, 150px) 0 clamp(100px, 16vh, 180px); }
.article-head { padding-bottom: 36px; border-bottom: 1px solid var(--line-2); }
.article-head .persp-status { display: inline-block; }
.article-title { margin-top: 22px; font-family: var(--f-serif); font-weight: 420; font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.2rem); line-height: 1.02; letter-spacing: -.025em; color: var(--text); text-wrap: balance; }
.article-dek { margin-top: 18px; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.35; color: var(--text-2); }
.article-meta { margin-top: 22px; }
.article-body { margin-top: 40px; font-family: var(--f-serif); font-size: clamp(1.12rem, 1.05rem + .3vw, 1.27rem); line-height: 1.72; color: #d3dae7; }
.article-body p + p { margin-top: 1.05em; }
.article-body h2, .article-body h3 { margin: 2.1em 0 .7em; font-family: var(--f-display); font-weight: 540; font-stretch: 104%; font-size: 1.32rem; line-height: 1.2; letter-spacing: -.01em; color: var(--text); }
.article-body em { color: var(--text); }
.article-body blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 2px solid var(--amber); color: var(--text); font-style: italic; }
.article-body a { color: var(--cyan-2); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 1em 0 1em 1.2em; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-page { background: var(--ink-0); }
.article-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 var(--gutter); background: rgba(5, 7, 13, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.article-back, .article-lang, .article-foot a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.article-back:hover, .article-lang:hover, .article-foot a:hover { color: var(--cyan-2); }
.article-brand .monogram { height: 18px; width: auto; color: var(--text); }
.article-main .reader-article { padding-top: clamp(60px, 10vh, 120px); }
.article-foot { display: flex; justify-content: space-between; gap: 16px; padding: 30px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--text-4); }

/* ================================================================== SIDEBAR · more pages */
.nav-more { margin: 26px 0 auto; padding-left: 48px; }
.nav-group-label { margin-bottom: 6px; font-size: 10px; }
.nav-pages { display: grid; }
.nav-page { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; color: var(--text-3); transition: color .35s var(--ease-out); }
.nav-page .nav-label { font-size: 14px; }
.nav-page .i { width: 12px; height: 12px; opacity: .45; transition: transform .45s var(--ease-out), opacity .3s; }
.nav-page:hover { color: var(--text); }
.nav-page:hover .nav-label { transform: translateX(4px); }
.nav-page:hover .i { opacity: 1; transform: translateX(3px); color: var(--cyan); }
.nav-page[aria-current] { color: var(--cyan-2); }
.nav-page[aria-current] .i { opacity: 1; color: var(--cyan); }
@media (max-height: 760px) and (min-width: 1100px) { .nav-more { margin-top: 14px; } .nav-page { padding: 4px 0; } }
.menu-pages { display: grid; gap: 2px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.menu-pages a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-family: var(--f-display); font-weight: 400; font-stretch: 108%; font-size: clamp(1.25rem, 5vw, 1.7rem); color: var(--text-2); }
.menu-pages a[aria-current] { color: var(--cyan-2); }
.menu-pages .i { width: 16px; height: 16px; color: var(--cyan); }

/* ================================================================== HERO · domains */
.hero-lede { font-size: clamp(1.45rem, 1rem + 1.35vw, 2.35rem); max-width: 26ch; }
.hero-lede em { font-style: italic; color: var(--cyan-2); }
.hero-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hero-chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--text-2); background: rgba(6, 9, 18, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .4s var(--ease-out), color .4s, background-color .4s, transform .5s var(--ease-out); }
.hero-chip-idx { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; color: var(--amber); }
.hero-chip:hover { border-color: rgba(255, 179, 107, .55); color: var(--text); background: rgba(255, 179, 107, .08); transform: translateY(-2px); }
@media (max-aspect-ratio: 4/5) { .hero-chip { font-size: 12.5px; padding: 6px 11px 6px 9px; } .hero-lede { font-size: clamp(1.25rem, 5.6vw, 1.6rem); } }
@media (max-width: 600px) and (max-height: 760px) { .hero-chips { display: none; } }

/* ================================================================== WHAT I DO */
.s-work { --accent: var(--cyan); }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 22px); }
.work-card { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2vw, 30px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(14, 19, 34, .72), rgba(8, 11, 21, .45)); overflow: hidden; isolation: isolate; transition: border-color .6s var(--ease-out), transform .8s var(--ease-out), box-shadow .8s var(--ease-out); }
.work-card::before, .explore-item::after, .persp-link::before { content: ""; position: absolute; z-index: -1; left: var(--gx, 50%); top: var(--gy, 0); width: 380px; height: 380px; margin: -190px 0 0 -190px; border-radius: 50%; background: radial-gradient(circle, rgba(92, 225, 255, .13), transparent 62%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.work-card:hover::before, .explore-item:hover::after, .persp-link:hover::before { opacity: 1; }
.work-card:hover { border-color: rgba(92, 225, 255, .3); transform: translateY(-4px); box-shadow: 0 30px 70px -40px rgba(92, 225, 255, .35); }
.work-icon { width: 64px; height: 64px; color: var(--cyan); }
.work-icon svg { width: 100%; height: 100%; overflow: visible; }
.work-icon path, .work-icon circle { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.work-icon .wi-hot { stroke: var(--amber); fill: rgba(255, 179, 107, .25); }
.work-icon .wi-box { stroke: var(--amber); stroke-dasharray: 3 3; }
.work-icon .wi-scan { stroke: var(--cyan-2); opacity: .9; filter: drop-shadow(0 0 3px var(--cyan)); }
.work-icon .wi-cells { fill: rgba(92, 225, 255, .35); stroke-width: 1; }
.work-icon .wi-cone, .work-icon .wi-links { stroke-dasharray: 2 4; }
.work-icon .wi-node { fill: var(--ink-0); }
.wi-detect .wi-scan, .wi-read .wi-scan { animation: wiScanY 3.4s var(--ease-io) infinite; }
.wi-systems .wi-scan { animation: wiBlink 2.6s steps(2, jump-none) infinite; }
.wi-systems .wi-box { animation: wiBelt 4s var(--ease-io) infinite; stroke-dasharray: none; stroke: var(--cyan-2); }
.wi-detect .wi-hot, .wi-lead .wi-hot { transform-box: fill-box; transform-origin: center; animation: wiPulse 2.2s var(--ease-soft) infinite; }
.wi-cone, .wi-links { animation: wiFlow 1.8s linear infinite; }
.wi-read .wi-cells { animation: wiFlicker 3.4s steps(4, jump-none) infinite; }
@keyframes wiScanY { 0%, 100% { transform: translateY(-22px); opacity: 0; } 12%, 88% { opacity: 1; } 50% { transform: translateY(22px); } }
@keyframes wiPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.45); } }
@keyframes wiFlow { to { stroke-dashoffset: -12; } }
@keyframes wiBelt { 0% { transform: translateX(-18px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(18px); opacity: 0; } }
@keyframes wiBlink { 50% { opacity: .15; } }
@keyframes wiFlicker { 0% { opacity: .35; } 50% { opacity: 1; } 100% { opacity: .6; } }
.work-idx { position: absolute; top: 22px; right: 24px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--text-4); }
.work-title { margin-top: 26px; font-family: var(--f-display); font-weight: 500; font-stretch: 104%; font-size: clamp(1.2rem, 1rem + .45vw, 1.4rem); line-height: 1.15; letter-spacing: -.015em; color: var(--text); text-wrap: balance; }
.work-text { margin-top: 12px; font-size: .95rem; line-height: 1.6; color: var(--text-2); }
.work-card .chips { margin-top: auto; padding-top: 22px; }
.principles { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 3.4fr); gap: 20px clamp(24px, 4vw, 64px); margin-top: clamp(56px, 8vh, 96px); padding-top: 30px; border-top: 1px solid var(--line); }
.principles-label { color: var(--cyan); }
.principles-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); }
.pr-idx { font-family: var(--f-mono); font-size: 11px; color: var(--text-4); }
.pr-title { margin-top: 8px; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 1.1rem + .7vw, 1.85rem); line-height: 1.1; color: var(--text); }
.principles-list p { margin-top: 10px; font-size: .95rem; color: var(--text-2); }
@media (max-width: 1280px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } .principles-list { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }

/* ================================================================== WHAT I INSPECT */
.s-inspect { --accent: var(--amber); }
.ins { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 clamp(28px, 4vw, 72px); align-items: start; }
.ins-steps { grid-column: 1; grid-row: 1; }
.ins-stage-col { grid-column: 2; grid-row: 1; align-self: stretch; }
.ins-stage { position: sticky; top: max(40px, calc(50vh - 21vw)); }
.ins-step { display: flex; flex-direction: column; justify-content: center; min-height: 76vh; padding: 6vh 0; transition: opacity .7s var(--ease-out); }
.ins-step-title, .ins-step-text { transition: color .6s var(--ease-out); }
.js:not(.reveal-fallback) .ins-step:not(.is-active) .ins-step-title { color: var(--text-3); }
.js:not(.reveal-fallback) .ins-step:not(.is-active) .ins-step-text { color: var(--text-3); }
.ins-step-idx { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--text-4); }
.ins-step-idx span { color: var(--amber); }
.ins-step-title { margin-top: 14px; font-family: var(--f-display); font-weight: 360; font-stretch: 108%; font-size: clamp(1.9rem, 1.1rem + 2vw, 3.1rem); line-height: 1.02; letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
.ins-step-text { margin-top: 16px; max-width: 46ch; color: var(--text-2); }
.ins-step-label { margin: 24px 0 10px; color: var(--amber); }
.ins-step .chips .chip { border-color: rgba(255, 179, 107, .25); }
.ins-step-media { display: none; margin-top: 22px; }
.ins-step-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; border: 1px solid var(--line-2); }
.ins-step-art, .ins-step-art img { width: 100%; height: 100%; }
.ins-step-art img { object-fit: cover; }
.ins-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); background: var(--ink-1); isolation: isolate; box-shadow: 0 40px 120px -60px rgba(92, 225, 255, .35); }
.ins-pic { position: absolute; inset: 0; opacity: 0; z-index: 0; transition: opacity .5s; }
.ins-pic.is-prev { opacity: 1; z-index: 1; transition: none; }
.ins-pic.is-active { opacity: 1; z-index: 2; }
.ins-pic-art, .ins-pic-art img { width: 100%; height: 100%; }
.ins-pic-art img { object-fit: cover; transform-origin: var(--ox, 50%) var(--oy, 50%); transform: scale(var(--z, 1)); }
.ins-gl { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.ins-frame.gl-ready .ins-gl { opacity: 1; }
.ins-frame.gl-ready .ins-wipe { display: none; }
.ins-wipe { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.ins-wipe i { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--cyan); box-shadow: 0 0 22px 4px rgba(92, 225, 255, .55); opacity: 0; }
.ins-frame.is-wiping .ins-pic.is-active { animation: insWipe 1.05s var(--ease-io) both; }
.ins-frame.is-wiping .ins-wipe i { animation: hscan 1.05s var(--ease-io) both; }
@keyframes insWipe { from { clip-path: inset(0 100% 0 0); filter: hue-rotate(-20deg) saturate(1.6) brightness(1.4); } to { clip-path: inset(0 0 0 0); filter: none; } }
@keyframes hscan { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.ins-marks, .ins-step-frame .ins-markset { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.ins-markset { position: absolute; inset: 0; }
.ins-mark { position: absolute; color: var(--amber); opacity: 0; transform: scale(1.25); transition: opacity .3s, transform .4s var(--ease-out); }
.ins-mark.is-read { color: var(--cyan); }
.ins-markset.is-active .ins-mark { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(.7s + var(--k) * .18s); }
.ins-mark .c { position: absolute; width: 11px; height: 11px; border: 0 solid currentColor; filter: drop-shadow(0 0 4px currentColor); }
.c-tl { top: 0; left: 0; border-top-width: 1.5px !important; border-left-width: 1.5px !important; }
.c-tr { top: 0; right: 0; border-top-width: 1.5px !important; border-right-width: 1.5px !important; }
.c-bl { bottom: 0; left: 0; border-bottom-width: 1.5px !important; border-left-width: 1.5px !important; }
.c-br { bottom: 0; right: 0; border-bottom-width: 1.5px !important; border-right-width: 1.5px !important; }
.ins-mark.is-defect::after { content: ""; position: absolute; inset: 0; background: rgba(255, 179, 107, .06); outline: 1px dashed rgba(255, 179, 107, .35); outline-offset: -1px; }
.ins-mark-label { position: absolute; left: -1px; bottom: calc(100% + 6px); white-space: nowrap; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; line-height: 1.2; padding: 4px 7px; border-radius: 4px; background: rgba(5, 7, 13, .82); border: 1px solid color-mix(in srgb, currentColor 45%, transparent); }
.ins-mark.lab-below .ins-mark-label { bottom: auto; top: calc(100% + 6px); }
.ins-mark.lab-right .ins-mark-label { left: auto; right: -1px; }
.ins-hud { position: absolute; z-index: 6; left: 16px; right: 16px; top: 12px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); pointer-events: none; }
.ins-hud-idx b { color: var(--amber); font-weight: 500; }
.ins-hud-title { color: var(--text-2); }
.ins-frame .corner { z-index: 6; opacity: .55; }
.ins-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.ins-ticks { display: flex; gap: 4px; }
.ins-tick { position: relative; width: 42px; height: 30px; font-family: var(--f-mono); font-size: 10px; color: var(--text-4); transition: color .3s; }
.ins-tick::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--line-2); transition: background-color .4s, box-shadow .4s; }
.ins-tick:hover { color: var(--text); }
.ins-tick.is-active { color: var(--amber); }
.ins-tick.is-active::after { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.ins-cap { text-align: right; max-width: 44ch; }
.cursor.is-lens .cursor-ring { opacity: 0; }
.cursor.is-lens .cursor-label { opacity: 0; }
.no-js .ins, .reveal-fallback .ins { display: block; }
.no-js .ins-stage-col { display: none; }
.no-js .ins-step-media { display: block; }
.no-js .ins-step, .reveal-fallback .ins-step { min-height: 0; padding: 40px 0; opacity: 1; }
.no-js .ins-mark { opacity: 1; transform: none; }
@media (max-width: 1099.98px) {
  .ins { grid-template-columns: 1fr; }
  .ins-stage-col { grid-column: 1; grid-row: 1; position: sticky; top: var(--bar-h); z-index: 4; align-self: start; margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter) 12px; background: linear-gradient(180deg, var(--ink-0) 85%, rgba(5, 7, 13, 0)); }
  .ins-stage { position: relative; top: 0; }
  .ins-steps { grid-row: 2; }
  .ins-step { min-height: 64vh; justify-content: flex-start; padding: 5vh 0 8vh; }
  .ins-cap { display: none; }
  .ins-frame { border-radius: 12px; }
  .ins-foot { margin-top: 8px; }
  .ins-tick { width: 34px; height: 24px; }
}
@media (max-width: 640px) {
  .ins-mark-label { font-size: 8px; padding: 2px 4px; letter-spacing: .06em; }
  .ins-mark .c { width: 7px; height: 7px; }
  .ins-hud { font-size: 8.5px; top: 8px; left: 10px; right: 10px; }
  .ins-step-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
}

/* ================================================================== ABOUT (short) */
.about-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; font-size: 14.5px; background-image: linear-gradient(var(--cyan), var(--cyan)); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 3px; transition: background-size .6s var(--ease-out), color .3s; }
.text-link:hover { color: var(--cyan-2); background-size: 100% 1px; }
.text-link .i { transition: transform .5s var(--ease-out); }
.text-link:hover .i { transform: translateX(4px); }

/* ================================================================== CONTACT */
.s-contact { --accent: var(--cyan); overflow: clip; isolation: isolate; padding-bottom: clamp(80px, 12vh, 140px); }
.contact-media { position: absolute; inset: 0; z-index: -1; }
.contact-art, .contact-art img { width: 100%; height: 100%; }
.contact-art img { object-fit: cover; opacity: .5; }
.contact-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink-0) 0%, rgba(5, 7, 13, .35) 30%, rgba(5, 7, 13, .55) 70%, var(--ink-0) 100%), linear-gradient(90deg, rgba(5, 7, 13, .85) 0%, rgba(5, 7, 13, .25) 60%); }
.contact-title { margin-top: 24px; max-width: 15ch; color: var(--text); font-family: var(--f-display); font-weight: 240; font-stretch: 118%; font-size: clamp(2.7rem, 1rem + 5.4vw, 7rem); line-height: .95; letter-spacing: -.046em; text-wrap: balance; }
.contact-body { margin-top: 26px; max-width: 56ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 36px); margin-top: clamp(36px, 5vh, 56px); align-items: start; }
.cform, .contact-side { position: relative; padding: clamp(22px, 2.8vw, 40px); border: 1px solid var(--line-2); border-radius: 24px; background: rgba(6, 9, 18, .66); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.cform { overflow: hidden; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; align-content: start; }
.field > label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.req { color: var(--cyan); margin-left: 2px; }
.opt { font-size: 10px; letter-spacing: .08em; text-transform: none; color: var(--text-4); margin-left: 4px; }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field textarea::placeholder { color: var(--text-4); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238591ab' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
.field select option { background: var(--ink-2); color: var(--text); }
.field :is(input, select, textarea):hover { border-color: var(--line-3); }
.field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(92, 225, 255, .14); background: rgba(92, 225, 255, .035); }
.field.is-invalid :is(input, select, textarea) { border-color: var(--amber); }
.field-err { font-size: 13px; line-height: 1.4; color: var(--amber); }
.field--check { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin-top: 4px; }
.field--check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid var(--line-3); border-radius: 6px; background: rgba(255, 255, 255, .03); cursor: pointer; transition: background-color .3s, border-color .3s; }
.field--check input:checked { background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2305070d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--cyan); }
.field--check input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.field--check.is-invalid input { border-color: var(--amber); }
.field--check label { font-size: 14px; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.field--check label a { color: var(--cyan-2); text-decoration: underline; text-underline-offset: 3px; }
.field--check .field-err { grid-column: 2; }
.cform-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cform-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
.cform-send:disabled { opacity: .75; cursor: progress; }
.cform-send .i { transition: transform .5s var(--ease-out); }
.cform-send:hover .i { transform: translate(3px, -3px); }
.cform-status { flex: 1 1 220px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.cform-status[data-kind="error"] { color: var(--amber); }
.cform-note { margin-top: 14px; font-size: 14px; color: var(--amber); }
.cform.is-busy::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 35%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: cformBusy 1.1s linear infinite; }
@keyframes cformBusy { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.cform.is-sent > :not(.cform-done) { visibility: hidden; }
.cform-done { position: absolute; inset: 0; display: grid; align-content: center; justify-items: start; gap: 14px; padding: clamp(22px, 2.8vw, 40px); animation: fadeIn .8s var(--ease-out) both; }
.cform-done:focus { outline: none; }
.cform-check svg { width: 60px; height: 60px; }
.cform-check circle, .cform-check path { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease-out) forwards; }
.cform-check path { animation-delay: .45s; stroke-width: 2.2; }
.cform-done-title { font-family: var(--f-display); font-weight: 400; font-stretch: 108%; font-size: clamp(1.8rem, 1.2rem + 1.5vw, 2.6rem); letter-spacing: -.03em; color: var(--text); }
.cform-done-text { max-width: 46ch; color: var(--text-2); }
.cform-done-note { font-size: 13px; color: var(--amber); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.contact-links { display: grid; gap: 10px; margin-top: 16px; }
.contact-links a { display: inline-flex; align-items: center; gap: 10px; width: max-content; padding: 11px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--text); transition: border-color .35s, background-color .35s; }
.contact-links a:hover { border-color: rgba(92, 225, 255, .55); background: rgba(92, 225, 255, .06); }
.contact-links .i:last-of-type { width: 13px; height: 13px; color: var(--text-3); }
.contact-where { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cform-row { grid-template-columns: 1fr; } }

/* ================================================================== SUBPAGES */
.page-journey { --accent: var(--violet); }
.page-research { --accent: var(--violet); }
.page-perspectives { --accent: var(--amber); }
.page-privacy { --accent: var(--cyan); }
.page-hero { position: relative; display: grid; align-content: end; min-height: clamp(440px, 74vh, 860px); padding: calc(var(--bar-h) + 50px) 0 clamp(48px, 8vh, 100px); overflow: clip; isolation: isolate; }
.page-hero--plain { min-height: 0; padding-top: clamp(130px, 20vh, 220px); padding-bottom: clamp(24px, 4vh, 48px); }
.page-hero-media { position: absolute; inset: 0; z-index: -1; will-change: transform; }
.page-hero-art, .page-hero-art img { width: 100%; height: 100%; }
.page-hero-art img { object-fit: cover; }
.js:not(.reduced-motion) .page-hero-art img { animation: pageZoom 2.6s var(--ease-out) both; }
@keyframes pageZoom { from { transform: scale(1.14); opacity: 0; filter: brightness(1.8) saturate(1.4); } to { transform: none; opacity: 1; filter: none; } }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink-0) 0%, rgba(5, 7, 13, .55) 32%, rgba(5, 7, 13, .1) 60%, rgba(5, 7, 13, .5) 100%), linear-gradient(90deg, rgba(5, 7, 13, .8) 0%, rgba(5, 7, 13, .1) 60%); }
.page-hero-media::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 2px; background: var(--cyan); box-shadow: 0 0 24px 5px rgba(92, 225, 255, .45); opacity: 0; animation: pageScan 9s var(--ease-io) 1.2s infinite; }
@keyframes pageScan { 0% { left: 0; opacity: 0; } 2% { opacity: .9; } 14% { opacity: .9; } 16% { left: 100%; opacity: 0; } 100% { left: 100%; opacity: 0; } }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--text-4); }
.crumbs a:hover { color: var(--cyan-2); }
.crumbs [aria-current] { color: var(--accent); }
.page-title { margin-top: 22px; max-width: 15ch; font-family: var(--f-display); font-weight: 260; font-stretch: 116%; font-size: clamp(3rem, 1.2rem + 6vw, 8.4rem); line-height: .95; letter-spacing: -.045em; color: var(--text); text-wrap: balance; }
.page-intro { margin-top: 26px; max-width: 58ch; font-size: clamp(1.05rem, .98rem + .3vw, 1.22rem); color: var(--text-2); }
.page-journey .s-journey { padding-top: clamp(40px, 7vh, 90px); }
.page-perspectives .s-perspectives { padding-top: clamp(30px, 5vh, 60px); }
.privacy-wrap > * { max-width: 820px; }
.page-privacy .s-privacy { padding-top: clamp(20px, 4vh, 40px); }
.privacy-updated { margin-bottom: 18px; }
.privacy-sec { padding: 28px 0; border-top: 1px solid var(--line); }
.privacy-sec h2 { font-family: var(--f-display); font-weight: 520; font-stretch: 104%; font-size: 1.3rem; letter-spacing: -.01em; color: var(--text); }
.privacy-sec p { margin-top: .8em; color: var(--text-2); max-width: 68ch; }
.privacy-back { margin-top: 36px; }
.privacy-back .i { order: -1; }

/* ================================================================== CURTAIN (section & page transitions) */
.curtain { position: fixed; inset: 0; z-index: 140; pointer-events: none; visibility: hidden; }
@media (min-width: 1100px) { body:not(.article-page) .curtain { left: var(--sb-w); } }
.curtain-panel { position: absolute; inset: 0; background: var(--ink-0); clip-path: inset(0 100% 0 0); overflow: hidden; }
.curtain-grid { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(170, 190, 255, .055) 0 1px, transparent 1px 96px), repeating-linear-gradient(180deg, rgba(170, 190, 255, .035) 0 1px, transparent 1px 96px); -webkit-mask-image: radial-gradient(80% 80% at 30% 70%, #000, transparent); mask-image: radial-gradient(80% 80% at 30% 70%, #000, transparent); }
.curtain-label { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 10vh, 110px); display: grid; gap: 12px; opacity: 0; }
.curtain-idx { font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em; color: var(--cyan); }
.curtain-idx:empty { display: none; }
.curtain-title { font-family: var(--f-display); font-weight: 250; font-stretch: 118%; font-size: clamp(2.4rem, 1rem + 5vw, 6.6rem); line-height: .95; letter-spacing: -.045em; color: var(--text); }
.curtain-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: linear-gradient(180deg, transparent, var(--cyan-2) 12%, var(--cyan) 88%, transparent); box-shadow: 0 0 24px 5px rgba(92, 225, 255, .5), 0 0 110px 26px rgba(92, 225, 255, .14); opacity: 0; }
html.curtain-out .curtain, html.curtain-in .curtain { visibility: visible; }
html.curtain-out .curtain-panel { animation: cCover .56s cubic-bezier(.72, 0, .26, 1) both; }
html.curtain-out .curtain-line { animation: cLine .56s cubic-bezier(.72, 0, .26, 1) both; }
html.curtain-out .curtain-label { animation: cLabelIn .55s var(--ease-out) .16s both; }
html.curtain-in .curtain-panel { animation: cReveal .85s cubic-bezier(.65, 0, .2, 1) .1s both; }
html.curtain-in .curtain-line { animation: cLine .85s cubic-bezier(.65, 0, .2, 1) .1s both; }
html.curtain-in .curtain-label { animation: cLabelOut .45s var(--ease-io) both; }
@keyframes cCover { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes cReveal { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes cLine { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes cLabelIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes cLabelOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-18px); } }
.reduced-motion .curtain { display: none; }

/* ================================================================== CURSOR */
.cursor { position: fixed; top: 0; left: 0; z-index: 250; pointer-events: none; display: none; }
.cursor.is-idle { opacity: 0; }
.has-cursor .cursor { display: block; }
.cursor-ring { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(220, 235, 255, .55); transition: transform .45s var(--ease-out), border-color .3s, background-color .3s, opacity .3s; }
.cursor.is-hover .cursor-ring { transform: scale(1.55); border-color: var(--cyan); background: rgba(92, 225, 255, .06); }
.cursor.has-label .cursor-ring { transform: scale(2.5); border-color: var(--amber); background: rgba(255, 179, 107, .12); }
.cursor-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.has-label .cursor-label { opacity: 1; }
.cursor.is-hidden .cursor-ring { opacity: 0; }

/* ================================================================== REVEALS (progressive enhancement) */
.js:not(.reduced-motion):not(.reveal-fallback) [data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.2s var(--ease-out) var(--d, 0s); }
.js:not(.reduced-motion):not(.reveal-fallback) [data-reveal].is-in { opacity: 1; transform: none; }
.js:not(.reduced-motion):not(.reveal-fallback) [data-split]:not(.is-split) { opacity: 0; }
.split-line { display: block; }
@media (max-aspect-ratio: 4/5) { picture.art img, .impact-art img, .page-hero-art img, .contact-art img { object-position: 50% 50% !important; } }
.js:not(.reduced-motion):not(.reveal-fallback) [data-clip] picture { clip-path: inset(12% 8% 12% 8% round 18px); transition: clip-path 1.6s var(--ease-out); }
.js:not(.reduced-motion):not(.reveal-fallback) [data-clip].is-in picture { clip-path: inset(0 0 0 0 round 18px); }
.js:not(.reduced-motion):not(.reveal-fallback) .research-banner[data-clip] picture { clip-path: inset(0 12% 0 12%); }
.js:not(.reduced-motion):not(.reveal-fallback) .research-banner[data-clip].is-in picture { clip-path: inset(0 0 0 0); }
/* hero intro initial state (only when JS + motion are available) */
.js:not(.reduced-motion):not(.reveal-fallback):not(.is-ready) .hero-picture { opacity: 0; }
.js:not(.reduced-motion):not(.reveal-fallback):not(.is-ready) [data-hero] { opacity: 0; }

/* ================================================================== REDUCED MOTION */
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
.reduced-motion .hero-gl, .reduced-motion .cursor { display: none !important; }
.reduced-motion .portrait-scan, .reduced-motion .page-hero-media::before, .reduced-motion .ins-wipe { display: none; }

/* ================================================================== PRINT */
@media print {
  main, .site-footer { margin: 0 !important; }
  body { background: #fff; color: #111; }
  .section-title, .lead, h1, h2, h3, .hero-title, .contact-title, .page-title { color: #000 !important; }
  [data-reveal], [data-split] { opacity: 1 !important; transform: none !important; }
}

/* ================================================================== COLOUR SYSTEM (Nov 2026 revision)
   Each part of the home page has its own surface and accent, so the eye can
   tell them apart at a glance:
   hero = tractography (RGB) · what I do = cyan, cards colour-coded ·
   what I inspect = amber · about = light paper · contact = violet, light form */
:root { --green: #6ee7a8; --paper: #f2f4f8; --paper-2: #e6eaf2; --ink-text: #0c1222; --ink-text-2: #3a465e; --ink-text-3: #5a667e; }
.nav-link[data-nav="work"], .menu-list a[data-nav="work"] { --nav-c: var(--cyan); }
.nav-link[data-nav="inspect"], .menu-list a[data-nav="inspect"] { --nav-c: var(--amber); }
.nav-link[data-nav="about"], .menu-list a[data-nav="about"] { --nav-c: #b9c6ff; }
.nav-link[data-nav="contact"], .menu-list a[data-nav="contact"] { --nav-c: var(--violet); }
.nav-link[data-nav="home"], .menu-list a[data-nav="home"] { --nav-c: var(--text); }
.nav-link .nav-idx, .menu-list a .nav-idx { color: color-mix(in srgb, var(--nav-c, var(--text-4)) 70%, var(--text-4)); }
.nav-link[aria-current] .nav-idx, .menu-list a[aria-current] .nav-idx { color: var(--nav-c, var(--cyan)); }
.nav-link .nav-bar i { background: var(--nav-c, var(--cyan)); }
.s-about { --accent: #4f46e5; }
.s-contact { --accent: var(--violet); }

/* hero: the fiber tracking replaces the still once WebGL runs */
.hero-gl { mix-blend-mode: normal; }
.hero-picture img { transition: opacity 1.2s var(--ease-out); }
.s-hero.gl-live .hero-picture img { opacity: 0; }
.hero-shade { background:
  linear-gradient(90deg, rgba(5, 7, 13, .86) 0%, rgba(5, 7, 13, .5) 28%, rgba(5, 7, 13, 0) 50%),
  linear-gradient(0deg, rgba(5, 7, 13, .92) 0%, rgba(5, 7, 13, .45) 24%, rgba(5, 7, 13, 0) 46%); }

/* what I do: its own band + colour-coded cards */
.s-work { background: linear-gradient(180deg, #0a1124 0%, #080d1b 100%); border-top: 1px solid rgba(92, 225, 255, .14); border-bottom: 1px solid var(--line); }
.work-card { --card: var(--cyan); border-color: color-mix(in srgb, var(--card) 22%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--card) 7%, #0d1428) 0%, #0a1020 60%); }
.work-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--card); box-shadow: 0 0 18px var(--card); opacity: .85; }
.work-card.acc-amber { --card: var(--amber); }
.work-card.acc-cyan { --card: var(--cyan); }
.work-card.acc-green { --card: var(--green); }
.work-card.acc-violet { --card: var(--violet); }
.work-card .work-icon { color: var(--card); }
.work-card .work-idx { color: var(--card); }
.work-card .chip { border-color: color-mix(in srgb, var(--card) 30%, transparent); color: var(--text-2); }
.work-card:hover { border-color: color-mix(in srgb, var(--card) 55%, transparent); box-shadow: 0 30px 70px -40px var(--card); }
.work-card::before { background: radial-gradient(circle, color-mix(in srgb, var(--card) 16%, transparent), transparent 62%); }
.principles { border-top-color: rgba(92, 225, 255, .16); }

/* what I inspect: amber identity */
.s-inspect { background: radial-gradient(70% 40% at 70% 0%, rgba(255, 179, 107, .07), transparent 70%), var(--ink-0); }
.s-inspect .section-title em { background: linear-gradient(100deg, #ffd9b0 0%, var(--amber) 50%, #ff8a5c 100%); -webkit-background-clip: text; background-clip: text; }
.s-inspect .kicker-rule { background: linear-gradient(90deg, var(--amber), transparent); }
.ins-frame { border-color: rgba(255, 179, 107, .22); box-shadow: 0 40px 120px -60px rgba(255, 179, 107, .35); }

/* about: light paper section */
.s-about { background: var(--paper); color: var(--ink-text-2); }
.s-about .section-title, .s-about .lead { color: var(--ink-text); }
.s-about .section-title em { background: linear-gradient(100deg, #2952ff 0%, #4f46e5 45%, #8b3fd9 100%); -webkit-background-clip: text; background-clip: text; }
.s-about .kicker { color: var(--ink-text-3); }
.s-about .kicker-idx { color: #4f46e5; }
.s-about .kicker-rule { background: linear-gradient(90deg, #4f46e5, transparent); }
.s-about .prose p { color: var(--ink-text-2); }
.s-about strong, .s-about b { color: var(--ink-text); }
.s-about .facts { border-top-color: rgba(12, 18, 34, .16); }
.s-about .fact { border-right-color: rgba(12, 18, 34, .1); }
.s-about .fact + .fact { border-top-color: rgba(12, 18, 34, .1); }
.s-about .fact dt { color: #4f46e5; }
.s-about .fact-v { color: var(--ink-text); }
.s-about .fact-d { color: var(--ink-text-3); }
.s-about .btn--ghost { color: var(--ink-text); border-color: rgba(12, 18, 34, .28); background: rgba(255, 255, 255, .6); }
.s-about .btn--ghost:hover { border-color: #4f46e5; color: #4f46e5; }
.s-about .text-link { color: var(--ink-text); background-image: linear-gradient(#4f46e5, #4f46e5); }
.s-about .text-link:hover { color: #4f46e5; }
.s-about :focus-visible { outline-color: #4f46e5; }
.s-about ::selection { background: #4f46e5; color: #fff; }
.portrait--cutout { position: relative; max-width: 500px; margin-top: -24px; }
.portrait--cutout img { width: 100%; height: auto; }
.portrait-ring { position: absolute; inset: 6% 4% 10%; border-radius: 50%; border: 1px dashed rgba(79, 70, 229, .25); pointer-events: none; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.js:not(.reduced-motion):not(.reveal-fallback) .portrait--cutout picture { opacity: 0; transform: translateY(30px) scale(.97); transition: opacity 1.4s var(--ease-out), transform 1.6s var(--ease-out); }
.js:not(.reduced-motion):not(.reveal-fallback) .portrait--cutout.is-in picture { opacity: 1; transform: none; }

/* contact: violet band, light form = the place to act */
.s-contact { background: radial-gradient(60% 60% at 15% 20%, rgba(139, 124, 255, .16), transparent 70%), linear-gradient(180deg, #0b0a1f 0%, #07071a 100%); }
.s-contact .contact-art img { opacity: .32; }
.s-contact .contact-title em { background: linear-gradient(100deg, #d7d0ff 0%, var(--violet) 55%, #c084fc 100%); -webkit-background-clip: text; background-clip: text; }
.s-contact .kicker-idx { color: var(--violet); }
.s-contact .kicker-rule { background: linear-gradient(90deg, var(--violet), transparent); }
.cform { background: #f7f8fc; border-color: transparent; color: var(--ink-text-2); box-shadow: 0 40px 120px -50px rgba(139, 124, 255, .55); -webkit-backdrop-filter: none; backdrop-filter: none; }
.cform .field > label { color: var(--ink-text-3); }
.cform .req { color: #6d28d9; }
.cform .opt { color: var(--ink-text-3); }
.cform .field input:not([type="checkbox"]), .cform .field select, .cform .field textarea { color: var(--ink-text); background: #fff; border-color: #cfd5e3; }
.cform .field textarea::placeholder { color: #8a94a8; }
.cform .field select option { background: #fff; color: var(--ink-text); }
.cform .field :is(input, select, textarea):hover { border-color: #aab3c8; }
.cform .field :is(input, select, textarea):focus-visible { border-color: #6d28d9; box-shadow: 0 0 0 4px rgba(109, 40, 217, .14); background: #fff; }
.cform .field.is-invalid :is(input, select, textarea) { border-color: #c2410c; }
.cform .field-err, .cform .cform-status[data-kind="error"] { color: #b4430b; }
.cform .field--check input { border-color: #aab3c8; background: #fff; }
.cform .field--check input:checked { background-color: #6d28d9; border-color: #6d28d9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cform .field--check label { color: var(--ink-text-2); }
.cform .field--check label a { color: #5b21b6; }
.cform .cform-status { color: var(--ink-text-2); }
.cform .btn--primary { background: #6d28d9; color: #fff; }
.cform .btn--primary:hover { background: #5b21b6; box-shadow: 0 0 0 6px rgba(109, 40, 217, .14), 0 12px 40px -8px rgba(109, 40, 217, .55); }
.cform :focus-visible { outline-color: #6d28d9; }
.cform .cform-note { color: #b4430b; }
.cform-done-title { color: var(--ink-text); }
.cform-done-text { color: var(--ink-text-2); }
.cform-done-note { color: #b4430b; }
.cform-check circle, .cform-check path { stroke: #6d28d9; }
.cform.is-busy::before { background: linear-gradient(90deg, transparent, #6d28d9, transparent); }
.contact-side { border-color: rgba(139, 124, 255, .25); }
.contact-links a:hover { border-color: rgba(139, 124, 255, .6); background: rgba(139, 124, 255, .08); }
.contact-where .pulse-dot { background: var(--violet); }

/* ================================================================== LOGO + FOOTER (Nov 23) */
.monogram { display: block; width: auto; }
.brand-mark .monogram { height: 58px; }
.brand { gap: 12px; }
.brand-mark { filter: drop-shadow(0 0 8px rgba(92, 225, 255, .25)); transition: transform .6s var(--ease-out), filter .6s; }
.brand:hover .brand-mark { transform: scale(1.06); filter: drop-shadow(0 0 16px rgba(92, 225, 255, .45)); }
.mobilebar-brand .monogram { height: 30px; }
.article-brand .monogram { height: 32px; }
.portrait--empty .monogram { width: 50%; height: auto; }
.site-footer { background: linear-gradient(180deg, #0d1326 0%, #0a0f1f 100%); border-top: 0; padding-top: 64px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, #ff5c8a, #ffb36b 25%, #6ee7a8 50%, #5ce1ff 75%, #8b7cff); opacity: .75; }
.footer-grid { grid-template-columns: 1.4fr 1fr auto; align-items: start; }
.footer-brand { display: flex; align-items: flex-start; gap: 18px; }
.footer-brand .monogram { height: 54px; }
.footer-brand p { margin-top: 2px; }
.footer-name { font-family: var(--f-display); font-weight: 600; font-stretch: 112%; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; color: var(--text); }
.footer-nav ul { display: grid; gap: 8px; }
.footer-nav a { color: var(--text-2); transition: color .3s; }
.footer-nav a:hover { color: var(--cyan-2); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--text-3); transition: color .3s; }
.footer-social a:hover { color: var(--cyan-2); }
.footer-social .i { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.cform .field--check > label { font-family: var(--f-body); font-size: 14px; letter-spacing: 0; text-transform: none; line-height: 1.5; color: var(--ink-text-2); }

/* ================================================================== START-UP LOADER */
.preloader { position: fixed; inset: 0; z-index: 220; display: none; place-items: center; background: radial-gradient(50% 50% at 50% 50%, #0c1226, var(--ink-0)); }
.is-preloading .preloader { display: grid; }
.is-preloading body { overflow: hidden; }
.preloader-inner { display: grid; justify-items: center; gap: 26px; }
.preloader-mark { position: relative; display: grid; grid-template-columns: repeat(9, clamp(14px, 2.6vw, 24px)); grid-template-rows: repeat(5, clamp(14px, 2.6vw, 24px)); gap: clamp(4px, .7vw, 7px); }
.preloader-mark i { border-radius: 22%; background: color-mix(in srgb, var(--c) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); transition: background-color .35s, box-shadow .35s, border-color .35s, transform .8s var(--ease-out), opacity .6s; }
.preloader-mark i.on { background: var(--c); border-color: transparent; box-shadow: 0 0 16px color-mix(in srgb, var(--c) 70%, transparent); }
.preloader-scan { position: absolute; top: -14px; bottom: -14px; left: calc(var(--p, 0) * 100%); width: 2px; margin-left: -1px; background: var(--cyan-2); box-shadow: 0 0 18px 4px rgba(92, 225, 255, .55); }
.preloader-label { color: var(--text-3); }
.preloader-label b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.preloader-bar { position: relative; width: 220px; height: 2px; background: var(--line-2); overflow: hidden; border-radius: 2px; }
.preloader-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, #ff5c8a, #ffb36b 25%, #6ee7a8 50%, #5ce1ff 75%, #8b7cff); transform-origin: left; transform: scaleX(var(--p, 0)); }
.preload-out .preloader { animation: preOut .85s cubic-bezier(.65, 0, .25, 1) .3s both; }
.preload-out .preloader-mark i { opacity: 0; transform: translate(calc((var(--o) - 4) * 18px), calc((var(--o) - 4) * -6px - 30px)) scale(.3) rotate(25deg); transition-delay: calc(var(--o) * 25ms); }
.preload-out .preloader-label, .preload-out .preloader-bar, .preload-out .preloader-scan { opacity: 0; transition: opacity .3s; }
@keyframes preOut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }

/* "What I inspect": the active step sits on its own panel, facing the image */
.ins-step-card { padding: clamp(20px, 2vw, 30px); border: 1px solid transparent; border-radius: 20px; transition: background-color .6s var(--ease-out), border-color .6s var(--ease-out), box-shadow .6s var(--ease-out); }
@media (max-width: 1099.98px) { .ins-step-card { padding: 18px; } }
/* sidebar brand: logo with name and surname beside it */
.brand { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 14px; }
.brand-mark .monogram { height: 52px; }
.brand-meta { grid-column: 1 / -1; }

.ins-step-card { display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
@media (max-width: 1099.98px) { .js:not(.reveal-fallback) .ins-step.is-active .ins-step-card { background: linear-gradient(135deg, rgba(255, 179, 107, .12), rgba(255, 179, 107, .03) 60%), #0d1222; border-color: rgba(255, 179, 107, .38); box-shadow: inset 3px 0 0 var(--amber); } }

@media (min-width: 1100px) {
  .ins-step-card { overflow: hidden; }
  .ins-step-card.is-compact { padding: 18px 22px; }
  .ins-step-card.is-compact .ins-step-title { font-size: clamp(1.55rem, .9rem + 1.3vw, 2.3rem); margin-top: 8px; }
  .ins-step-card.is-compact .ins-step-text { font-size: .94rem; line-height: 1.5; margin-top: 10px; }
  .ins-step-card.is-compact .ins-step-label { margin: 12px 0 6px; }
  .ins-step-card.is-compact .chip { padding: 4px 9px; font-size: 10.5px; }
  .ins-step-card.is-tight .ins-step-label { display: none; }
  .ins-step-card.is-tight .chips { margin-top: 12px; }
  .ins-step-card.is-tight .ins-step-text { font-size: .9rem; }
}

/* the panel appears progressively as the card comes level with the image */
@media (min-width: 1100px) {
  .ins-step-card { position: relative; isolation: isolate; }
  .ins-step-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; border: 1px solid rgba(255, 179, 107, .42); background: linear-gradient(135deg, rgba(255, 179, 107, .13), rgba(255, 179, 107, .03) 60%), #0d1222; box-shadow: 0 30px 80px -40px rgba(255, 179, 107, .5), inset 3px 0 0 var(--amber); opacity: var(--al, 0); transform: scale(calc(.97 + var(--al, 0) * .03)); pointer-events: none; }
}
.jr-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jr-links a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--lane-c) 40%, transparent); border-radius: 999px; font-size: 13px; color: var(--text); transition: background-color .3s, border-color .3s; }
.jr-links a:hover { background: color-mix(in srgb, var(--lane-c) 12%, transparent); border-color: var(--lane-c); }
.jr-links .i { width: 12px; height: 12px; color: var(--lane-c); }

/* ================================================================== NOTES (article pages inside the site layout) */
.page-article { --accent: var(--amber); }
.note-hero { padding-bottom: clamp(20px, 3vh, 36px); }
.note-status { display: inline-block; margin-top: 22px; }
.note-title { max-width: 20ch; font-size: clamp(2.4rem, 1rem + 4.6vw, 6rem); }
.note-meta { margin-top: 22px; }
.s-note { padding-top: clamp(20px, 4vh, 50px); }
.note-wrap > * { max-width: 760px; }
.note-cover { margin-bottom: 40px; }
.note-cover picture { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); }
.note-cover img { width: 100%; height: 100%; object-fit: cover; }
.note-body { margin-top: 0; }
.note-back { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.note-back .i { order: -1; }
.sidebar-admin { margin-left: auto; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--text-4); transition: color .3s, border-color .3s; }
.sidebar-admin:hover { color: var(--cyan-2); border-color: rgba(92, 225, 255, .5); }
.sidebar-admin .i { width: 13px; height: 13px; }

/* ================================================================== MOBILE BAR: stable logo, name on two lines */
.mobilebar { gap: 12px; }
.mobilebar-brand { flex: none; gap: 10px; }
.mobilebar-brand .brand-mark { flex: none; display: block; }
.mobilebar-brand .monogram { height: 32px; width: 32px; flex: none; }
.mobilebar-name { font-size: 11px; line-height: 1.12; letter-spacing: .08em; white-space: nowrap; }
.mobilebar-section { flex: 1 1 auto; min-width: 0; text-align: right; }

/* ================================================================== FOOTER on small screens: compact */
@media (max-width: 700px) {
  .site-footer { padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); }
  .footer-grid { gap: 26px; }
  .footer-brand { gap: 14px; }
  .footer-brand .monogram { height: 40px; }
  .footer-brand > div { display: grid; gap: 4px; }
  .footer-brand p { margin: 0; line-height: 1.45; font-size: .84rem; }
  .footer-name { font-size: 13px; }
  .footer-nav ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }
  .footer-actions { grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 18px; padding-top: 22px; border-top: 1px solid var(--line); }
  .footer-actions .motion-toggle { justify-self: center; }
  .footer-top { justify-self: end; }
}
@media (max-width: 380px) {
  .footer-actions { grid-template-columns: auto 1fr; }
  .footer-actions .motion-toggle { grid-column: 1 / -1; justify-self: start; grid-row: 2; }
}
@media (max-width: 380px) {
  .mobilebar { gap: 10px; }
  .mobilebar-section { letter-spacing: .06em; font-size: 10px; }
}

/* ================================================================== TRAINING AREA */
.btn--sm { height: 38px; padding: 0 16px; gap: 8px; font-size: 13.5px; }
.s-training { padding: clamp(40px, 7vh, 90px) 0 clamp(60px, 10vh, 120px); }
.tr-h2 { font-family: var(--f-display); font-weight: 400; font-stretch: 108%; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; color: var(--text); margin-bottom: 10px; }
.tr-h3 { font-family: var(--f-mono); font-weight: 450; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.tr-login-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(28px, 6vw, 90px); align-items: start; }
.tr-login-intro p { max-width: 440px; }
.tr-login { display: grid; gap: 16px; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line-2); border-radius: 24px; background: rgba(13, 19, 38, .6); box-shadow: 0 40px 120px -50px rgba(139, 124, 255, .45); }
.tr-login label { display: grid; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.tr-login input { height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(5, 7, 13, .6); color: var(--text); font: 16px var(--f-body); letter-spacing: 0; text-transform: none; }
.tr-login input:focus { outline: none; border-color: rgba(92, 225, 255, .6); box-shadow: 0 0 0 3px rgba(92, 225, 255, .15); }
.tr-login .btn { justify-content: center; }
.tr-err { margin: 0; color: var(--amber); font-size: 14px; }
.tr-who { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.tr-who b { color: var(--text); font-weight: 500; letter-spacing: .08em; }
.tr-course { margin-bottom: clamp(26px, 4vw, 44px); }
.tr-ctitle { margin-top: 14px; font-family: var(--f-display); font-weight: 300; font-stretch: 108%; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.03em; color: var(--text); }
.tr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: clamp(28px, 5vw, 72px); align-items: start; }
.tr-block + .tr-block { margin-top: clamp(36px, 5vw, 56px); }
.tr-desc { max-width: 720px; }
.tr-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tr-file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(13, 19, 38, .5); transition: border-color .35s, background .35s; }
.tr-file:hover { border-color: rgba(92, 225, 255, .35); background: rgba(16, 24, 48, .7); }
.tr-ext { display: grid; place-items: center; width: 46px; height: 54px; border-radius: 10px; border: 1px solid var(--line-2); font: 600 10.5px var(--f-mono); letter-spacing: .08em; color: var(--cyan-2); background: linear-gradient(160deg, rgba(92, 225, 255, .12), rgba(139, 124, 255, .08)); }
.tr-ftitle { font-family: var(--f-display); font-weight: 500; font-size: 17px; line-height: 1.3; color: var(--text); }
.tr-fdesc { margin-top: 4px; font-size: .95rem; line-height: 1.55; }
.tr-fmeta { margin-top: 6px; font-size: 10.5px; }
.tr-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--line-2); }
.tr-event { position: relative; display: grid; gap: 4px; padding: 0 0 22px 22px; }
.tr-event::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-0); border: 1.5px solid var(--text-3); }
.tr-event.is-next::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 5px rgba(92, 225, 255, .15); }
.tr-event.is-past .tr-date b, .tr-event.is-past .tr-etext { color: var(--text-3); }
.tr-event.is-past::before { border-color: var(--text-4); }
.tr-date b { display: block; font-family: var(--f-display); font-weight: 500; color: var(--text); font-size: 16px; }
.tr-date span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.tr-etext { font-size: .95rem; line-height: 1.5; }
.tr-badge { justify-self: start; margin-top: 2px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); font: 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.tr-badge--next { border-color: rgba(92, 225, 255, .5); color: var(--cyan-2); }
.tr-empty { padding: 26px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--text-3); }
@media (max-width: 900px) {
  .tr-login-grid, .tr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tr-file { grid-template-columns: auto minmax(0, 1fr); }
  .tr-fact { grid-column: 1 / -1; }
  .tr-fact .btn { width: 100%; justify-content: center; }
}

/* ---------- view-only PDF reader (training documents) */
.s-viewer { padding: 0 0 50px; }
.xf-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 14px var(--gutter); background: rgba(5, 7, 13, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.xf-vtitle { flex: 1 1 220px; min-width: 0; font-family: var(--f-display); font-weight: 500; font-size: 17px; line-height: 1.3; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xf-pages { font-family: var(--f-mono); font-size: 12px; color: var(--text-3); min-width: 4.5em; text-align: center; }
.xf-zoom { display: inline-flex; gap: 4px; }
.xf-ico { min-width: 38px; padding: 0 10px; justify-content: center; }
.xf-ico span { font: 12px var(--f-mono); }
[data-xf-print][disabled] { opacity: .45; cursor: wait; }
.xf-pagesbox { display: grid; justify-items: center; gap: 18px; padding: 26px 12px 0; overflow-x: auto; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.xf-page { position: relative; background: #fff; box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(170, 190, 255, .12); border-radius: 4px; overflow: hidden; }
.xf-page canvas { display: block; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.xf-page::after { content: attr(data-n); position: absolute; right: 8px; bottom: 6px; font: 10px var(--f-mono); color: rgba(0, 0, 0, .35); }
.xf-loading { padding: 60px 20px; color: var(--text-3); font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.xf-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; padding: 12px 18px; border-radius: 999px; background: rgba(13, 19, 38, .95); border: 1px solid var(--line-2); color: var(--text); font-size: 14px; }
.xf-print { display: none; }
@media (max-width: 1099.98px) { .xf-bar { top: var(--bar-h); } }
@media (max-width: 640px) {
  .xf-bar { gap: 8px; }
  .xf-vtitle { order: -1; flex-basis: 100%; font-size: 15px; }
  .xf-zoom { display: none; }
  .xf-pagesbox { gap: 12px; padding-top: 14px; }
}
@media print {
  @page { margin: 0; }
  html.page-training body > *:not(main), html.page-training main > .s-viewer > *:not(.xf-print) { display: none !important; }
  html.page-training, html.page-training body, html.page-training main { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  html.page-training .xf-print { display: block !important; }
  html.page-training body::before, html.page-training body::after { display: none !important; }
  .xf-print img { display: block; width: 100%; height: auto; page-break-after: always; break-after: page; }
  .xf-print img:last-child { page-break-after: auto; break-after: auto; }
}
