/* ============================================================
   Stratetics Experts — The Registry, instrument edition
   Security-paper ground for reading, deep-ink "lab" fields for
   the technical surfaces (hero venture lab, capability matrix,
   technology walkthrough). Vermilion stamp for actions, one
   line colour per venture, 3D models drawn as hairline wireframe.
   ============================================================ */

:root {
  --paper: #ebefe9;
  --paper-2: #d5dcd4;
  --sheet: #f7f9f4;
  --ink: #0e1d3d;
  --ink-2: #18306b;
  --ink-deep: #091428;
  --ink-soft: #4a566e;
  --line: #b6c0c8;
  --stamp: #d9381e;
  --stamp-deep: #b32a13;
  --on-ink: #e9eef6;
  --on-ink-soft: #a9b6cf;

  /* fixed denominations used where no CMS accent exists (avatars, plates) */
  --den-1: oklch(0.47 0.15 30);
  --den-2: oklch(0.47 0.15 275);
  --den-3: oklch(0.47 0.12 235);
  --den-4: oklch(0.47 0.12 160);
  --den-5: oklch(0.47 0.15 350);

  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 72px;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--paper-2);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--stamp);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--stamp); color: #fff; }
:focus-visible { outline: 3px solid var(--focus, var(--stamp)); outline-offset: 3px; }
.nav, .sectors, .contact, .footer { --focus: #fff; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--sheet); color: var(--ink); padding: 10px 16px; border: 2px solid var(--ink); font-weight: 600; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Type ---------- */
.section { padding-block: clamp(72px, 10vw, 132px); position: relative; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 820px; }
.section-title {
  font-stretch: 75%;
  font-weight: 750;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-sub { color: var(--ink-soft); max-width: 62ch; margin-top: 20px; font-size: 1.0625rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--f-sans); font-weight: 650; font-size: 0.95rem; letter-spacing: 0.005em; line-height: 1.2; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius); background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--stamp { background: var(--stamp); border-color: var(--stamp); color: #fff; box-shadow: inset 0 0 0 2px var(--stamp), inset 0 0 0 3px rgba(255, 255, 255, 0.5); }
.btn--stamp:hover { background: var(--stamp-deep); border-color: var(--stamp-deep); box-shadow: inset 0 0 0 2px var(--stamp-deep), inset 0 0 0 3px rgba(255, 255, 255, 0.5); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ============ NAV (masthead) ============ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 900; background: var(--ink); color: var(--on-ink); border-bottom: 1px solid rgba(233, 238, 246, 0.16); transition: box-shadow .3s var(--ease); }
.nav.is-scrolled { box-shadow: 0 10px 24px -16px rgba(9, 20, 40, 0.6); }
.nav__inner { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; z-index: 2; }
.nav__logo { height: 36px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__links a:not(.btn) { position: relative; font-size: 0.92rem; font-weight: 500; color: var(--on-ink-soft); padding-block: 8px; transition: color .2s; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--stamp); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.nav__links a:not(.btn):hover, .nav__links a.active { color: #fff; }
.nav__links a:not(.btn):hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav__cta { min-height: 42px; padding: 8px 16px; font-size: 0.88rem; }
.nav__burger { display: none; background: none; border: 0; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; z-index: 2; cursor: pointer; }
.nav__burger span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .3s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav__burger { display: flex; }
  .nav__links { position: fixed; inset: 0; padding: calc(var(--nav-h) + 24px) var(--gutter) 40px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; background: var(--ink); transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; overflow-y: auto; }
  .nav__links.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .nav__links a:not(.btn) { font-family: var(--f-sans); font-stretch: 75%; font-weight: 750; font-size: 2rem; color: #fff; padding: 16px 0; border-bottom: 1px solid rgba(233, 238, 246, 0.18); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 28px; min-height: 52px; font-size: 1rem; }
}

/* header drop-downs: Technology, Ventures, Journey (sections of the home page) */
.nav__item { position: relative; display: flex; align-items: center; height: var(--nav-h); }
.nav__toggle { display: grid; place-items: center; width: 24px; height: 32px; margin-left: 2px; background: none; border: 0; color: var(--on-ink-soft); cursor: pointer; }
.nav__toggle:hover, .nav__item.is-open .nav__toggle, .nav__link.active + .nav__toggle { color: #fff; }
.nav__toggle svg { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }
.nav__item.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: 100%; left: -18px; z-index: 5; min-width: 220px; padding: 8px 0 10px; background: var(--ink); border: 1px solid rgba(233, 238, 246, 0.22); border-top: 3px solid var(--stamp); box-shadow: 0 24px 36px -20px rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s 0.2s; }
.nav__item.is-open > .nav__menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
@media (hover: hover) and (min-width: 961px) {
  .nav__item:hover > .nav__menu, .nav__item:focus-within > .nav__menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
}
.nav__item.is-dismissed > .nav__menu { opacity: 0 !important; visibility: hidden !important; }
.nav__links .nav__menu a { display: flex; align-items: baseline; gap: 14px; padding: 10px 18px; font-size: 0.92rem; font-weight: 500; color: var(--on-ink); border-left: 3px solid transparent; }
.nav__links .nav__menu a::after { display: none; }
.nav__links .nav__menu a:hover { background: rgba(233, 238, 246, 0.07); color: #fff; border-left-color: var(--accent, var(--stamp)); }
.nav__n { min-width: 26px; font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.1em; color: var(--accent, var(--on-ink-soft)); }
.nav__t small { display: block; margin-top: 2px; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-ink-soft); }
@media (max-width: 960px) {
  .nav__item { flex-wrap: wrap; height: auto; border-bottom: 1px solid rgba(233, 238, 246, 0.18); }
  .nav__links .nav__item .nav__link { flex: 1; border-bottom: 0; }
  .nav__toggle { width: 56px; height: 56px; margin: 0; color: #fff; }
  .nav__toggle svg { width: 16px; height: 16px; }
  .nav__menu { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 14px 4px; background: transparent; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav__item.is-open > .nav__menu { display: block; }
  .nav__links .nav__menu a { padding: 10px 0 10px 8px; font-size: 1.05rem; border-bottom: 0; }
}

/* ============ HERO — venture lab ============ */
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__routes { margin-top: 18px; font-size: 0.95rem; color: var(--ink-soft); }
.hero__routes a { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--stamp); }
.hero__routes a:hover { color: var(--stamp-deep); }
.hero__routes span { margin-inline: 6px; color: var(--line); }

.rosette { display: block; color: var(--ink); stroke: currentColor; fill: none; stroke-width: 0.16; clip-path: circle(0% at 50% 50%); transition: clip-path 2s var(--ease); pointer-events: none; shape-rendering: geometricPrecision; }
.rosette.is-drawn { clip-path: circle(75% at 50% 50%); }
.rosette path { vector-effect: none; }

.lab {
  --lab-bg: #091428; /* keep equal to BG in src/lab-scene.js */
  --lab-rule: rgba(233, 238, 246, 0.28);
  --focus: #fff;
  position: relative; isolation: isolate; overflow: clip;
  display: grid; grid-template-rows: 1fr auto;
  min-height: max(100svh, 780px); padding-top: var(--nav-h);
  background: var(--lab-bg); color: var(--on-ink);
  border-bottom: 1px solid var(--lab-rule);
}
.lab::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(169, 182, 207, 0.13) 1px, transparent 1px), linear-gradient(90deg, rgba(169, 182, 207, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(169, 182, 207, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(169, 182, 207, 0.055) 1px, transparent 1px);
  background-size: 192px 192px, 192px 192px, 48px 48px, 48px 48px;
  background-position: -1px calc(var(--nav-h) - 1px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, 0.35)); mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, 0.35));
}
.lab > .wrap { width: 100%; }
.lab__stage { position: absolute; inset: 0; z-index: 1; }
.lab__canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; outline-offset: -3px; }
.lab__tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lab__tag { position: absolute; left: 0; top: 0; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 1px; white-space: nowrap; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ink-soft); transition: opacity 0.3s; will-change: transform; }
.lab__tag i { font-style: normal; opacity: 0.8; }
.lab__tag b { font-weight: 500; color: var(--on-ink); }
.lab__tag.is-active b { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lab__readout, .lab__hint { position: absolute; right: var(--gutter); z-index: 2; font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-soft); text-align: right; white-space: pre; }
.lab__readout { top: calc(var(--nav-h) + 16px); }
.lab__hint { top: calc(var(--nav-h) + 34px); opacity: 0.8; }
.lab:not(.lab--ready) .lab__readout, .lab:not(.lab--ready) .lab__hint, .lab--static .lab__readout, .lab--static .lab__hint { display: none; }

.lab__main { position: relative; z-index: 2; pointer-events: none; display: grid; align-items: center; padding-block: clamp(28px, 6vh, 64px) clamp(24px, 4vh, 40px); }
.lab__main > * { pointer-events: auto; }
.lab__intro, .lab__sheet { grid-area: 1 / 1; max-width: 580px; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s; }
.lab__sheet { opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s 0.5s; }
.lab[data-lab-state="focus"] .lab__intro { opacity: 0; visibility: hidden; transform: translateY(-14px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s; }
.lab[data-lab-state="focus"] .lab__sheet { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s var(--ease) 0.15s, transform 0.5s var(--ease) 0.15s, visibility 0s; }

.lab__issuer { padding-bottom: 10px; border-bottom: 1px solid var(--lab-rule); font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-soft); }
.lab__title { margin-top: clamp(18px, 3vh, 30px); color: #fff; font-stretch: 72%; font-weight: 800; font-size: clamp(2.7rem, 4.1vw, 4rem); line-height: 0.96; letter-spacing: -0.012em; text-wrap: balance; }
.lab__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.lab__title .line > span { display: inline-block; }
.js .lab__title .line > span { animation: rise 1.1s var(--ease) both; }
.js .lab__title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { from { transform: translateY(108%); } }
.lab__lead { margin-top: clamp(16px, 2.6vh, 26px); font-size: clamp(1.02rem, 1.4vw, 1.16rem); line-height: 1.55; color: var(--on-ink); max-width: 46ch; }
.lab .hero__routes { color: var(--on-ink-soft); }
.lab .hero__routes a { color: #fff; }
.lab .hero__routes a:hover { color: #ffb0a0; }
.lab .hero__routes span { color: var(--on-ink-soft); }
.lab .btn--line { border-color: rgba(233, 238, 246, 0.7); color: var(--on-ink); }
.lab .btn--line:hover { background: var(--on-ink); color: var(--ink); }

.lab__stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px clamp(18px, 2.6vw, 36px); margin-top: clamp(24px, 4vh, 38px); padding-top: 16px; border-top: 1px solid var(--lab-rule); }
.lab__stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.lab__stats dd { font-stretch: 62%; font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.lab__stats dt { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-soft); max-width: 12ch; line-height: 1.35; }

/* venture datasheet (focus state) */
.lab__panel { display: grid; justify-items: start; gap: 12px; padding: 20px 22px 22px; background: #0b1830; border: 1px solid var(--lab-rule); border-top: 3px solid var(--accent, #6c8cff); }
.lab__panel[hidden] { display: none; }
.lab__back { background: none; border: 0; padding: 4px 0; cursor: pointer; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-soft); text-decoration: underline; text-underline-offset: 4px; }
.lab__back:hover { color: #fff; }
.lab__serial { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent, var(--on-ink-soft)); }
.lab__pname { font-stretch: 62%; font-weight: 800; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 0.92; letter-spacing: -0.01em; color: #fff; }
.lab__ptag { font-weight: 650; color: var(--on-ink); }
.lab__pdesc { font-size: 0.97rem; line-height: 1.5; color: var(--on-ink-soft); max-width: 52ch; }
.lab__points { width: 100%; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.02em; }
.lab__points li { position: relative; padding: 8px 0 8px 18px; border-top: 1px solid rgba(233, 238, 246, 0.14); color: var(--on-ink); }
.lab__points li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; background: var(--accent, #6c8cff); }
.lab__points li:last-child { border-bottom: 1px solid rgba(233, 238, 246, 0.14); }
.lab__metric { font-family: var(--f-mono); font-size: 0.7rem; line-height: 1.55; color: var(--on-ink-soft); }
.lab__note { font-size: 0.74rem; color: var(--on-ink-soft); }

/* venture rail */
.lab__dock { position: relative; z-index: 2; pointer-events: none; padding-bottom: clamp(16px, 2.6vh, 26px); }
.lab__rail { pointer-events: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--lab-rule); border-bottom: 1px solid var(--lab-rule); background: rgba(9, 20, 40, 0.88); }
.lab__rail li { display: flex; min-width: 0; border-left: 1px solid rgba(233, 238, 246, 0.14); }
.lab__rail li:first-child { border-left: 0; }
.lab__chip { display: grid; align-content: start; gap: 2px; width: 100%; padding: 12px 16px 14px; text-align: left; background: transparent; border: 0; border-top: 3px solid var(--accent, #6c8cff); color: var(--on-ink); cursor: pointer; transition: background-color 0.25s var(--ease); }
.lab__chip:hover, .lab__chip.is-hover { background: color-mix(in srgb, var(--accent, #6c8cff) 16%, var(--lab-bg)); }
.lab__chip[aria-pressed="true"] { background: color-mix(in srgb, var(--accent, #6c8cff) 30%, var(--lab-bg)); }
.lab__chip-serial { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ink-soft); }
.lab__chip-name { font-stretch: 70%; font-weight: 780; font-size: 1.55rem; line-height: 1.05; color: #fff; }
.lab__chip-tag { font-size: 0.76rem; line-height: 1.3; color: var(--on-ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1180px) {
  .lab { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0; }
  .lab__main { display: contents; }
  .lab__intro, .lab__sheet { max-width: none; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .lab__intro { order: 1; padding-top: clamp(28px, 6vw, 44px); }
  .lab[data-lab-state="focus"] .lab__intro { opacity: 1; visibility: visible; transform: none; }
  .lab__stage { position: relative; inset: auto; order: 2; height: min(78vw, 62svh); min-height: 320px; }
  .lab__dock { order: 3; }
  .lab__sheet { order: 4; display: none; opacity: 1; visibility: visible; transform: none; padding-bottom: 32px; }
  .lab[data-lab-state="focus"] .lab__sheet { display: block; }
  .lab__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab__readout { top: 10px; left: 16px; right: 16px; text-align: left; overflow: hidden; text-overflow: ellipsis; }
  .lab__hint { top: auto; bottom: 10px; left: 16px; right: auto; text-align: left; }
  .lab__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab__rail li:nth-child(odd) { border-left: 0; }
  .lab__rail li { border-top: 1px solid rgba(233, 238, 246, 0.14); }
  .lab__rail li:nth-child(-n+2) { border-top: 0; }
  .lab__rail li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero__actions .btn { width: 100%; }
  .lab__chip-tag { display: none; }
}

/* ============ ENGINEERING BASE (capability matrix) ============ */
.base { --focus: #fff; background: var(--ink-deep); color: var(--on-ink); border-bottom: 1px solid rgba(233, 238, 246, 0.28); }
.base .section-title { color: #fff; }
.base .section-sub { color: var(--on-ink-soft); }
.base__scroll { overflow-x: auto; border-top: 3px solid rgba(233, 238, 246, 0.7); }
.matrix { width: 100%; min-width: 880px; border-collapse: collapse; table-layout: fixed; }
.matrix th, .matrix td { padding: 14px 14px 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(233, 238, 246, 0.18); border-left: 1px solid rgba(233, 238, 246, 0.1); font-weight: 400; }
.matrix th:first-child { width: 220px; border-left: 0; padding-left: 0; }
.matrix thead th { border-top: 3px solid var(--accent, transparent); margin-top: -3px; }
.matrix thead th:first-child { border-top-color: transparent; }
.matrix__serial { display: block; font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ink-soft); }
.matrix__vname { display: block; font-stretch: 70%; font-weight: 780; font-size: 1.5rem; line-height: 1.1; color: #fff; }
.matrix__cap { display: block; font-stretch: 80%; font-weight: 750; font-size: 1.2rem; line-height: 1.15; color: #fff; }
.matrix__note { display: block; margin-top: 3px; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-ink-soft); }
.matrix td { font-size: 0.9rem; line-height: 1.35; color: var(--on-ink); }
.matrix td.is-on { background: color-mix(in srgb, var(--accent, #6c8cff) 12%, var(--ink-deep)); }
.matrix__dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--accent, #6c8cff); vertical-align: 0.06em; }
.base__scroll:focus-visible { outline-offset: 4px; }

/* ============ STUDIO ============ */
.studio__statement { font-stretch: 88%; font-weight: 500; font-size: clamp(1.45rem, 2.9vw, 2.35rem); line-height: 1.26; letter-spacing: -0.01em; max-width: 30em; text-wrap: pretty; }
.pillars { margin-top: clamp(40px, 6vw, 72px); border-top: 3px double var(--ink); }
.pillar { display: grid; grid-template-columns: minmax(180px, 30%) 1fr; gap: 12px 32px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pillar h3 { font-stretch: 75%; font-weight: 780; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1; }
.pillar p { color: var(--ink-soft); font-size: 1.02rem; max-width: 62ch; }
.pillar__no { display: none; }
@media (max-width: 640px) { .pillar { grid-template-columns: 1fr; } }

.microprint { height: 22px; overflow: hidden; background: var(--ink); position: relative; }
.microprint::before { content: "STRATETICS EXPERTS · SENSING · SIMULATION · AI · SOFTWARE · STRATETICS EXPERTS · SENSING · SIMULATION · AI · SOFTWARE · STRATETICS EXPERTS · SENSING · SIMULATION · AI · SOFTWARE · STRATETICS EXPERTS · SENSING · SIMULATION · AI · SOFTWARE · STRATETICS EXPERTS · SENSING · SIMULATION · AI · SOFTWARE · STRATETICS EXPERTS · SENSING · SIMULATION · AI · SOFTWARE · STRATETICS EXPERTS · SENSING · SIMULATION · AI · SOFTWARE · STRATETICS EXPERTS · SENSING · SIMULATION · AI · SOFTWARE · STRATETICS EXPERTS · SENSING · SIMULATION · AI · SOFTWARE · STRATETICS EXPERTS · SENSING · SIMULATION · AI · SOFTWARE · STRATETICS EXPERTS · SENSING · SIMULATION · AI · SOFTWARE · STRATETICS EXPERTS · SENSING · SIMULATION · AI · SOFTWARE · STRATETICS EXPERTS · SENSING · SIMULATION · AI · SOFTWARE · STRATETICS EXPERTS · SENSING · SIMULATION · AI · SOFTWARE · "; position: absolute; left: 0; top: 0; line-height: 22px; white-space: nowrap; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.18em; color: var(--on-ink-soft); opacity: 0.9; }

/* ============ TECHNOLOGY ============ */
.tech { --focus: #fff; background: #0c1a36; color: var(--on-ink); border-bottom: 1px solid var(--lab-rule, rgba(233, 238, 246, 0.28)); }
.tech .section-title { color: #fff; }
.tech .section-sub { color: var(--on-ink-soft); }
.tech__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.stages { border-bottom: 1px solid rgba(233, 238, 246, 0.4); }
.stage { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; width: 100%; text-align: left; background: transparent; border: 0; border-top: 1px solid rgba(233, 238, 246, 0.4); padding: 18px 16px 18px 0; cursor: pointer; transition: background-color .25s var(--ease), padding .3s var(--ease); }
.stage:hover { background: rgba(233, 238, 246, 0.05); }
.stage__n { font-stretch: 62%; font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--on-ink-soft); font-variant-numeric: tabular-nums; padding-left: 12px; transition: color .25s; }
.stage__label { font-stretch: 75%; font-weight: 750; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.1; }
.stage__desc { grid-column: 2; display: block; max-height: 0; overflow: hidden; opacity: 0; color: var(--on-ink-soft); font-size: 0.98rem; line-height: 1.5; transition: max-height .4s var(--ease), opacity .3s var(--ease), margin .3s var(--ease); }
.stage__desc b { color: #fff; font-weight: 650; }
.stage.is-active { background: rgba(233, 238, 246, 0.08); }
.stage.is-active .stage__n { color: #ff8a70; }
.stage.is-active .stage__desc { max-height: 9em; opacity: 1; margin-top: 8px; }
.plates__stack { position: relative; aspect-ratio: 8 / 5; background: var(--sheet); box-shadow: 0 26px 40px -26px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(233, 238, 246, 0.5); }
.plate { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.plate.is-active { opacity: 1; pointer-events: auto; }
.plate__photo { width: 100%; height: 100%; object-fit: cover; }
.plate__card { position: absolute; right: 3.5%; bottom: 7%; width: 44%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: var(--sheet); border: 1px solid var(--ink); box-shadow: 0 14px 22px -10px rgba(0, 0, 0, 0.65); }
.plate__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 6px 12px; background: rgba(9, 20, 40, 0.88); font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-soft); }
.plate__cap span:first-child { color: #fff; }
@media (max-width: 560px) { .plate__card { width: 52%; } .plate__cap span:last-child { display: none; } }
.plates__note { margin-top: 18px; font-size: 0.82rem; color: var(--on-ink-soft); }
.plates__note strong { color: #ff8a70; font-weight: 700; }
.tech__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(32px, 4vw, 48px); padding-top: 22px; border-top: 3px double rgba(233, 238, 246, 0.5); }
.tech__evidence { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.03em; color: var(--on-ink-soft); }
@media (max-width: 860px) { .tech__grid { grid-template-columns: 1fr; } }

/* ============ VENTURES (denominations) ============ */
.ventures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.note {
  --den: color-mix(in srgb, var(--accent, #18306b) 55%, #0a1432);
  display: grid; grid-template-rows: auto 1fr; background: var(--sheet); box-shadow: 0 0 0 1px var(--ink), 0 24px 34px -28px rgba(14, 29, 61, 0.5); min-width: 0;
}
@supports (color: oklch(from red l c h)) {
  .note { --den: oklch(from var(--accent, #18306b) 0.47 min(c, 0.15) h); }
}
#venture-inspec-ther { --den: oklch(0.38 0.1 22); }
#venture-node-comp { --den: oklch(0.42 0.15 295); }
#venture-kucharge { --den: oklch(0.45 0.09 200); }
.note--lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: none; }
.note__field { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 300px; padding: clamp(22px, 3vw, 40px); background: var(--den); color: #fff; }
.note--lead .note__field { min-height: 480px; }
.note__blueprint { position: absolute; z-index: -1; inset: 0; pointer-events: none; overflow: hidden; background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(150deg, transparent 15%, #000 85%); mask-image: linear-gradient(150deg, transparent 15%, #000 85%); }
.note__blueprint::before, .note__blueprint::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; aspect-ratio: 1; }
.note__blueprint::before { right: -16%; top: -30%; width: 70%; }
.note__blueprint::after { right: -4%; top: -16%; width: 44%; border-style: dashed; border-color: rgba(255, 255, 255, 0.4); }
.note__serial { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.55); }
.note__title { max-width: 34rem; }
.note__name { font-stretch: 62%; font-weight: 800; font-size: clamp(2.7rem, 5vw, 4rem); line-height: 0.92; letter-spacing: -0.01em; }
.note--lead .note__name { font-size: clamp(3.4rem, 7.4vw, 6rem); }
.note__tag { margin-top: 10px; font-weight: 650; font-size: 1rem; }
.note__desc { margin-top: 12px; font-size: 1rem; line-height: 1.5; color: #fff; text-shadow: 0 0 6px var(--den), 0 0 14px var(--den), 0 0 2px var(--den); }
.note__body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(22px, 2.6vw, 34px); min-width: 0; }
.note__plate { display: flex; align-items: center; height: 88px; max-width: 100%; padding: 12px 18px; background: #fff; border: 1px solid var(--line); }
.note__plate img { height: 100%; width: auto; max-width: 240px; object-fit: contain; }
.note__points { width: 100%; }
.note__points li { position: relative; padding: 9px 0 9px 20px; border-top: 1px solid var(--line); font-size: 0.95rem; line-height: 1.4; }
.note__points li::before { content: ""; position: absolute; left: 0; top: 1.1em; width: 8px; height: 8px; background: var(--den); }
.note__points li:last-child { border-bottom: 1px solid var(--line); }
.note__metric { font-family: var(--f-mono); font-size: 0.72rem; line-height: 1.55; letter-spacing: 0.02em; color: var(--ink-soft); }
.note__cta { margin-top: auto; }
.note:last-child:nth-child(even) { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .ventures { grid-template-columns: 1fr; }
  .note--lead { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .note--lead .note__field { min-height: 380px; }
  .note:last-child:nth-child(even) { grid-column: auto; }
}

/* ============ SECTORS ============ */
.sectors { position: relative; overflow: clip; background: var(--ink); color: var(--on-ink); }
.sectors .wrap { position: relative; z-index: 1; }
.sectors .section-sub { color: var(--on-ink-soft); }
.register { border-top: 3px solid rgba(233, 238, 246, 0.7); }
.register__row { display: grid; grid-template-columns: auto 1fr auto; column-gap: 16px; align-items: baseline; padding: 22px 0 20px; border-bottom: 1px solid rgba(233, 238, 246, 0.28); }
.register__name { font-stretch: 75%; font-weight: 780; font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.05; }
.register__dots { align-self: end; border-bottom: 2px dotted rgba(233, 238, 246, 0.5); transform: translateY(-8px); min-width: 24px; }
.register__serial { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink); white-space: nowrap; }
.register__desc { grid-column: 1 / -1; margin-top: 8px; color: var(--on-ink-soft); font-size: 0.98rem; line-height: 1.5; max-width: 62ch; }
@media (max-width: 640px) {
  .register__row { grid-template-columns: 1fr; }
  .register__dots { display: none; }
  .register__serial { margin-top: 6px; white-space: normal; }
}

/* ============ JOURNEY (chronology) ============ */
.chron { border-top: 3px solid var(--ink); }
.chron__row { display: grid; grid-template-columns: minmax(150px, 24%) 1fr; gap: 12px 32px; align-items: baseline; padding: clamp(20px, 2.6vw, 32px) 0; border-bottom: 1px solid var(--line); }
.chron__yr { font-stretch: 62%; font-weight: 800; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 0.9; letter-spacing: -0.01em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chron__row h3 { font-stretch: 80%; font-weight: 750; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.1; margin-bottom: 8px; }
.chron__row p { color: var(--ink-soft); max-width: 58ch; }
@media (max-width: 640px) { .chron__row { grid-template-columns: 1fr; } }

/* ============ RECOGNITION ============ */
.recog { background: var(--paper-2); border-top: 1px solid var(--line); }
.recog__grid { display: grid; gap: clamp(36px, 5vw, 64px); }
.awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); }
.awards::before { content: ""; display: block; height: 3px; background: var(--ink); grid-column: 1 / -1; }
.award { display: grid; grid-template-columns: 156px 1fr; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.award__rank { justify-self: start; min-width: 140px; text-align: center; font-family: var(--f-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stamp-deep); border: 2px solid var(--stamp-deep); border-radius: 2px; padding: 7px 10px; line-height: 1.25; --rot: -2deg; transform: rotate(var(--rot)); }
.award h3 { font-stretch: 85%; font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.award p { margin-top: 4px; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.5; }
.exhibits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); align-items: start; }
.exhibit { margin: 0; background: #fff; padding: 10px 10px 12px; box-shadow: 0 0 0 1px var(--line), 0 16px 24px -18px rgba(14, 29, 61, 0.55); }
.exhibit:nth-child(3n+2) { margin-top: 28px; }
.exhibit a { display: block; }
.exhibit img { width: 100%; height: auto; }
.exhibit figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 0.75rem; line-height: 1.45; letter-spacing: 0.02em; color: var(--ink-soft); }
@media (max-width: 960px) { .awards { grid-template-columns: 1fr; } .exhibits { grid-template-columns: repeat(2, minmax(0, 1fr)); } .exhibit:nth-child(3n+2) { margin-top: 0; } .exhibit:nth-child(even) { margin-top: 24px; } }
@media (max-width: 560px) { .award { grid-template-columns: 1fr; gap: 10px; } .exhibits { grid-template-columns: 1fr; } .exhibit:nth-child(even) { margin-top: 0; } }

/* ============ FAQ ============ */
.faq-section__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-section .section-head { position: sticky; top: calc(var(--nav-h) + 28px); margin-bottom: 0; }
.faq { border-bottom: 1px solid var(--ink); }
.faq-item { border-top: 1px solid var(--ink); }
.faq-item__h { margin: 0; font: inherit; }
.faq-item__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-stretch: 88%; font-weight: 650; font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.3; }
.faq-item__q:hover { color: var(--stamp-deep); }
.faq-item__icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; background: var(--stamp); transition: transform .3s var(--ease); }
.faq-item__icon::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq-item__icon::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.faq-item.open .faq-item__icon::after { transform: translateX(-50%) scaleY(0); }
.faq-item__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease), visibility 0s .4s; }
.faq-item__a > div { overflow: hidden; }
.faq-item.open .faq-item__a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s var(--ease); }
.faq-item__a p { padding: 0 0 24px; color: var(--ink-soft); max-width: 62ch; }
.faq-item__a a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--stamp); text-underline-offset: 3px; text-decoration-thickness: 2px; }
@media (max-width: 900px) {
  .faq-section__grid { grid-template-columns: 1fr; }
  .faq-section .section-head { position: static; margin-bottom: 8px; }
}

/* ============ CONTACT ============ */
.contact { position: relative; overflow: clip; background: var(--ink); color: var(--on-ink); padding-block: clamp(72px, 10vw, 128px); border-top: 4px solid var(--stamp); }
.contact__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__title { font-stretch: 72%; font-weight: 800; font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 0.98; letter-spacing: -0.015em; text-wrap: balance; }
.contact__sub { margin-top: 20px; color: var(--on-ink-soft); max-width: 46ch; }
.contact__paths { display: grid; gap: 10px; margin-top: 32px; }
.contact__path { display: grid; grid-template-columns: 1fr; gap: 2px; text-align: left; padding: 14px 18px; background: transparent; border: 1px solid rgba(233, 238, 246, 0.45); border-radius: var(--radius); color: var(--on-ink); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.contact__path:hover { border-color: #fff; }
.contact__path.is-active { background: var(--sheet); color: var(--ink); border-color: var(--sheet); }
.contact__path-label { font-stretch: 80%; font-weight: 750; font-size: 1.2rem; line-height: 1.2; }
.contact__path-desc { font-size: 0.88rem; opacity: 0.85; }
.contact__meta { display: flex; flex-direction: column; gap: 6px; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(233, 238, 246, 0.3); font-size: 0.92rem; color: var(--on-ink-soft); }
.contact__meta a { color: var(--on-ink); text-decoration: underline; text-decoration-color: rgba(233, 238, 246, 0.4); text-underline-offset: 3px; width: fit-content; }
.contact__meta a:hover { text-decoration-color: var(--stamp); }
.contact__sheet { background: var(--sheet); color: var(--ink); padding: clamp(24px, 3.4vw, 44px); border-top: 6px solid var(--stamp); box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.65); }
.contact .section-sub, .contact__sheet .section-sub { color: inherit; }

.inquiry-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.inquiry-field { display: flex; flex-direction: column; gap: 7px; font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.inquiry-field--full { grid-column: 1 / -1; }
.inquiry-field abbr { color: var(--stamp-deep); text-decoration: none; }
.inquiry-optional { color: var(--ink-soft); font-weight: 400; }
.inquiry-field input, .inquiry-field select, .inquiry-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--ink-soft); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-weight: 400; font-size: 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.inquiry-field input::placeholder, .inquiry-field textarea::placeholder { color: #66708a; }
.inquiry-field textarea { resize: vertical; min-height: 120px; }
.inquiry-field input:focus-visible, .inquiry-field select:focus-visible, .inquiry-field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink-2); }
.inquiry-form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.inquiry-form__note { margin-top: 16px; font-size: 0.84rem; color: var(--ink-soft); }
.inquiry-form__note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--stamp); text-underline-offset: 3px; }
.inquiry-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-success, .inquiry-error { padding: 18px 20px; border: 2px solid var(--ink); border-radius: var(--radius); margin-bottom: 22px; }
.inquiry-success { background: #e4f1e6; }
.inquiry-success strong { font-stretch: 80%; font-size: 1.3rem; }
.inquiry-success p { margin-top: 6px; color: var(--ink-soft); }
.inquiry-error { border-color: var(--stamp-deep); background: #fbe9e5; color: #7c1d0d; font-weight: 600; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .inquiry-form__grid { grid-template-columns: 1fr; } .inquiry-form__actions .btn { width: 100%; } }

/* ============ FOOTER ============ */
.footer { background: var(--ink-deep); color: var(--on-ink); padding: clamp(48px, 6vw, 72px) 0 32px; border-top: 1px solid rgba(233, 238, 246, 0.14); }
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__lead { max-width: 340px; }
.footer__logo { height: 38px; width: auto; margin-bottom: 18px; }
.footer__lead p { color: var(--on-ink-soft); font-size: 0.94rem; }
.footer__cols { display: flex; gap: clamp(32px, 5vw, 64px); flex-wrap: wrap; }
.footer__h { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-ink-soft); margin-bottom: 16px; }
.footer__cols a { display: block; color: var(--on-ink); font-size: 0.94rem; padding-block: 5px; opacity: 0.9; }
.footer__cols a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--stamp); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 3px double rgba(233, 238, 246, 0.3); font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.03em; color: var(--on-ink-soft); }
.footer__bottom a:hover { color: #fff; text-decoration: underline; }

/* ============ SUB-PAGES ============ */
.page-hero { position: relative; overflow: clip; padding-top: calc(var(--nav-h) + clamp(32px, 6vw, 72px)); padding-bottom: clamp(36px, 5vw, 64px); border-bottom: 4px double var(--ink); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero .rosette { position: absolute; z-index: 0; right: -120px; top: calc(var(--nav-h) - 40px); width: clamp(360px, 46vw, 640px); stroke-width: 0.14; opacity: 0.5; }
.page-hero h1 { font-stretch: 72%; font-weight: 800; font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 0.96; letter-spacing: -0.02em; margin-top: 18px; max-width: 16em; text-wrap: balance; }
.page-hero p:not(.breadcrumb) { margin-top: 22px; color: var(--ink-soft); max-width: 60ch; font-size: 1.1rem; }
.breadcrumb { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--stamp-deep); }
.section--flush { padding-top: 0; }

.prose { max-width: 760px; }
.prose h2 { font-stretch: 80%; font-weight: 750; font-size: 1.6rem; line-height: 1.15; margin: 48px 0 14px; padding-top: 18px; border-top: 1px solid var(--ink); }
.prose h3 { font-stretch: 85%; font-weight: 700; font-size: 1.15rem; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 12px; }
.prose ul { padding-left: 22px; list-style: square; }
.prose ul li::marker { color: var(--stamp); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--stamp); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose strong { color: var(--ink); font-weight: 650; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 40px 28px; }
.member { border-top: 3px solid var(--ink); padding-top: 16px; }
.member__avatar { position: relative; width: 100%; aspect-ratio: 5 / 4; overflow: hidden; display: grid; place-items: center; font-stretch: 62%; font-weight: 800; font-size: 4.2rem; letter-spacing: 0.02em; color: #fff; background: var(--den-1); margin-bottom: 16px; }
.team-grid .member:nth-child(5n+2) .member__avatar { background: var(--den-2); }
.team-grid .member:nth-child(5n+3) .member__avatar { background: var(--den-3); }
.team-grid .member:nth-child(5n+4) .member__avatar { background: var(--den-4); }
.team-grid .member:nth-child(5n+5) .member__avatar { background: var(--den-5); }
.member__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member__name { font-stretch: 85%; font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.member__role { margin: 6px 0 10px; font-size: 0.9rem; font-weight: 600; color: var(--stamp-deep); line-height: 1.35; }
.member__meta { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; }
.member__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.member__tags span { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--ink-soft); border: 1px solid var(--line); padding: 3px 8px; }
.member__tags a { text-decoration: underline; text-underline-offset: 2px; }

/* media listing */
.blog-featured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--sheet); box-shadow: 0 0 0 1px var(--ink), 0 26px 40px -30px rgba(14, 29, 61, 0.5); transition: box-shadow .3s var(--ease); }
a.blog-featured:hover { box-shadow: 0 0 0 2px var(--ink), 0 26px 40px -30px rgba(14, 29, 61, 0.6); }
.blog-featured__media { position: relative; min-height: 320px; background: var(--paper-2); overflow: hidden; }
.blog-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate-rosette { position: absolute; width: 120%; left: -10%; top: -10%; height: 120%; color: var(--ink-2); stroke-width: 0.2; opacity: 0.55; }
.blog-featured__body { padding: clamp(24px, 3.6vw, 44px); display: flex; flex-direction: column; }
.blog-featured__meta, .blog-card__meta, .post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.03em; color: var(--ink-soft); }
.blog-featured__meta span:not(.post__badge):not(:last-child)::after, .blog-card__meta span:not(.media-card__badge):not(:last-child)::after, .post__meta span:not(.post__badge):not(:last-child)::after { content: "/"; margin-left: 16px; color: var(--line); }
.post__badge, .media-card__badge { color: var(--stamp-deep); border: 1.5px solid var(--stamp-deep); padding: 2px 8px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; background: var(--sheet); }
.blog-featured__body h2 { font-stretch: 78%; font-weight: 780; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.04; letter-spacing: -0.01em; margin: 18px 0 14px; text-wrap: balance; }
.blog-featured__body p { color: var(--ink-soft); flex: 1; }
.blog-featured__foot { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-soft); }
.media-card__link, .blog-card__link { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 0.92rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--stamp); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.blog-featured__foot .media-card__link { margin-top: 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.blog-card { display: flex; flex-direction: column; border-top: 3px solid var(--ink); padding-top: 16px; }
.blog-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.blog-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.03); }
.blog-card__media .media-card__badge { position: absolute; z-index: 2; top: 10px; left: 10px; }
.blog-card__body { padding-top: 16px; flex: 1; display: flex; flex-direction: column; }
.blog-card__body h3 { font-stretch: 85%; font-weight: 700; font-size: 1.28rem; line-height: 1.15; margin: 10px 0 8px; }
.blog-card__body p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; flex: 1; }
.press-strip { display: flex; flex-wrap: wrap; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.press-strip span { font-stretch: 80%; font-weight: 700; font-size: clamp(1.05rem, 1.7vw, 1.35rem); padding: 16px 24px 16px 0; margin-right: 24px; position: relative; }
.press-strip span:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 1.1em; background: var(--line); transform: translateY(-50%); }
@media (max-width: 1020px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .blog-featured { grid-template-columns: 1fr; } .blog-featured__media { min-height: 260px; } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* media post */
.post__head { padding-bottom: 24px; }
.post__lead { color: var(--ink-soft); font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 60ch; margin-top: 20px; }
.post__byline { font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-soft); margin-top: 16px; }
.post__hero { margin: 24px 0 6px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px var(--ink); }
.post__hero img { width: 100%; height: 100%; object-fit: cover; }
.post__layout { padding-top: 34px; padding-bottom: clamp(60px, 9vw, 110px); }
.post__body { max-width: 760px; margin: 0 auto; }
.post__body p, .post__body li { font-size: 1.08rem; line-height: 1.8; }
.post__body code { font-family: var(--f-mono); font-size: 0.9em; background: var(--paper-2); padding: 1px 6px; }
.social-embed { max-width: 760px; margin: 40px auto 0; }
.social-embed__title { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 10px; border-bottom: 3px solid var(--ink); margin-bottom: 18px; }
.social-embed__frame { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; background: var(--sheet); box-shadow: 0 0 0 1px var(--line); }
.social-embed__frame.is-loaded { padding: 0; align-items: center; background: #fff; }
.social-embed__frame iframe { width: 100%; max-width: 540px; height: 860px; border: 0; background: #fff; }
.social-embed__note { font-size: 0.86rem; color: var(--ink-soft); max-width: 52ch; }
.social-embed__note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--stamp); text-underline-offset: 3px; }
@media (max-width: 560px) { .social-embed__frame iframe { height: 780px; } }
.post__source { max-width: 760px; margin: 32px auto 0; }
.post__foot { max-width: 760px; margin: 40px auto 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--ink); }
.post__foot .media-card__link { margin-top: 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; }
.media-card { border-top: 3px solid var(--ink); padding-top: 14px; position: relative; display: flex; flex-direction: column; }
.media-card__top { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.media-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-card__top .media-card__badge { position: absolute; z-index: 2; top: 10px; left: 10px; }
.media-card__body { padding-top: 14px; flex: 1; display: flex; flex-direction: column; }
.media-card__date { font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-soft); }
.media-card__body h3 { font-stretch: 85%; font-weight: 700; font-size: 1.15rem; line-height: 1.2; margin: 8px 0; }
.media-card__body p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.media-card--post:hover h3 { color: var(--stamp-deep); }
.media-card__stretch { position: static; }
.media-card__stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* closing contact card (about, media) */
.contact__card { background: var(--ink); color: var(--on-ink); border-top: 6px solid var(--stamp); padding: clamp(32px, 6vw, 72px); display: grid; gap: 16px; justify-items: start; }
.contact__card .contact__title { max-width: 14em; }
.contact__card .contact__sub { margin: 0 0 12px; }
.contact__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact__card .contact__meta { margin-top: 20px; flex-direction: row; flex-wrap: wrap; gap: 8px 28px; border-top-color: rgba(233, 238, 246, 0.3); }
.contact__card .btn--line { border-color: rgba(233, 238, 246, 0.7); color: var(--on-ink); }
.contact__card .btn--line:hover { background: var(--on-ink); color: var(--ink); }
.contact__card { --focus: #fff; }

/* ============ ADMIN SIGN-IN ============ */
.signin { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
.signin__bar { background: var(--ink); height: var(--nav-h); display: flex; align-items: center; border-bottom: 1px solid rgba(233, 238, 246, 0.16); }
.signin__bar .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.signin__tag { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink-soft); }
.signin__main { position: relative; overflow: clip; display: grid; place-items: center; padding: clamp(32px, 7vw, 88px) var(--gutter); }
.signin__main .rosette { position: absolute; right: -160px; top: 4%; width: clamp(420px, 56vw, 760px); stroke-width: 0.14; opacity: 0.5; }
.signin__card { position: relative; z-index: 1; width: min(460px, 100%); background: var(--sheet); padding: clamp(24px, 4vw, 40px); border-top: 6px solid var(--stamp); box-shadow: 0 34px 60px -30px rgba(9, 20, 40, 0.55); }
.signin__kicker { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.signin__title { font-stretch: 75%; font-weight: 780; font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.02; letter-spacing: -0.015em; margin: 10px 0 10px; }
.signin__sub { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 24px; }
.signin__err { margin-bottom: 20px; padding: 12px 14px; border: 1px solid var(--stamp-deep); border-left-width: 4px; background: #fff; color: var(--stamp-deep); font-size: 0.92rem; font-weight: 600; }
.signin__form { display: grid; gap: 18px; }
.signin__form .btn { width: 100%; margin-top: 6px; }
.signin__back { display: block; margin-top: 20px; font-size: 0.88rem; color: var(--ink-soft); width: fit-content; text-decoration: underline; text-decoration-color: var(--stamp); text-underline-offset: 3px; }
.signin__back:hover { color: var(--ink); }

/* ============ ERROR ============ */
.errpage { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
.errpage__bar { background: var(--ink); height: var(--nav-h); display: flex; align-items: center; }
.errpage__bar .wrap { width: 100%; }
.errpage__main { position: relative; overflow: clip; display: grid; align-items: center; padding-block: clamp(40px, 8vw, 96px); }
.errpage__main .rosette { position: absolute; right: -160px; top: 10%; width: clamp(420px, 56vw, 760px); stroke-width: 0.14; opacity: 0.5; }
.errpage__inner { position: relative; z-index: 1; max-width: 680px; }
.errpage__code { position: relative; font-stretch: 62%; font-weight: 800; font-size: clamp(7rem, 26vw, 15rem); line-height: 0.82; letter-spacing: -0.02em; color: var(--ink); width: fit-content; }
.errpage__void { position: absolute; left: 4%; top: 36%; --rot: -9deg; transform: rotate(var(--rot)); font-family: var(--f-mono); font-size: clamp(0.8rem, 2.4vw, 1.2rem); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stamp-deep); border: 3px solid var(--stamp-deep); padding: 8px 16px; background: rgba(235, 239, 233, 0.82); }
.errpage__title { font-stretch: 78%; font-weight: 780; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.02; margin: 28px 0 14px; text-wrap: balance; }
.errpage__msg { color: var(--ink-soft); max-width: 48ch; }
.errpage__term { margin-top: 22px; font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-soft); padding-top: 12px; border-top: 1px solid var(--ink); max-width: 48ch; word-break: break-word; }
.errpage__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ============ COOKIE ============ */
.cookie { position: fixed; z-index: 950; left: 16px; bottom: 16px; right: 16px; max-width: 600px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; align-items: center; padding: 14px 18px; background: var(--sheet); color: var(--ink); border-top: 4px solid var(--ink); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -18px rgba(14, 29, 61, 0.55); transform: translateY(calc(100% + 40px)); visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s; }
.cookie.show { transform: none; visibility: visible; transition: transform .6s var(--ease); }
.cookie__h { font-stretch: 80%; font-weight: 750; font-size: 1rem; }
.cookie p { grid-column: 1; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.45; }
.cookie p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--stamp); text-underline-offset: 3px; }
.cookie__actions { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 8px; }
.cookie__actions .btn { min-height: 40px; padding: 6px 14px; font-size: 0.84rem; }
@media (max-width: 520px) {
  .cookie { grid-template-columns: 1fr; }
  .cookie__actions { grid-column: 1; grid-row: auto; flex-direction: row; margin-top: 8px; }
  .cookie__actions .btn { flex: 1; }
}

/* ============ MOTION ============ */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-stamp] { opacity: 0; transform: rotate(var(--rot, 0deg)) scale(1.16); }
.js [data-stamp].is-stamped { opacity: 1; transform: rotate(var(--rot, 0deg)) scale(1); transition: opacity .2s linear, transform .45s var(--ease); transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-stamp] { opacity: 1; transform: rotate(var(--rot, 0deg)); }
  .rosette { clip-path: circle(75% at 50% 50%); }
}
@media print {
  .nav, .cookie, .skip { display: none; }
  .rosette { display: none; }
}
