/* ==========================================================================
   shared.css — Güntaç Boran Cevizci · site design system v2 · 2026-10-25
   Works for: AI page, Industrialisation Hub, Financial model, Economic impact
   Font family fixed: Calibri, Carlito, Arial, sans-serif (+ CJK fallbacks)
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Carlito";
  src: url("carlito-regular.woff2") format("woff2"), url("carlito-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("carlito-bold.woff2") format("woff2"), url("carlito-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  color-scheme: light;

  --paper: #f4f2ed;
  --paper-2: #ebe7de;
  --card: #fbfaf7;
  --black: #000;

  --ink: #132c41;
  --ink-2: #0c1d2c;
  --ink-soft: #3b4a58;
  --muted: #5b6873;

  --green: #174c48;
  --green-soft: #9fbdb8;
  --green-tint: #e4ecea;

  --rust: #ad5128;
  --rust-text: #93451f;
  --rust-light: #dc8e63;
  --rust-tint: #f3e3d9;

  --line: rgba(19, 44, 65, 0.16);
  --line-soft: rgba(19, 44, 65, 0.08);
  --line-dark: rgba(244, 242, 237, 0.2);

  --font-latin: Calibri, Carlito, Arial, sans-serif;
  --font-zh: Calibri, Carlito, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", Arial, sans-serif;
  --font-ja: Calibri, Carlito, "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans JP", Arial, sans-serif;

  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-lg: 1.15rem;
  --text-xl: 1.35rem;
  --h1: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
  --h2: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  --h3: 1.15rem;
  --statement: clamp(1.35rem, 1.1rem + 1.2vw, 1.95rem);
  --stat: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);

  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --section-y: clamp(2.5rem, 6vw, 4.5rem);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 1180px;
  --header-h: 4rem;

  --radius-s: 4px;
  --radius: 10px;
  --radius-l: 16px;
  --shadow-1: 0 1px 2px rgba(19, 44, 65, 0.06), 0 4px 12px rgba(19, 44, 65, 0.06);
  --shadow-2: 0 8px 24px rgba(19, 44, 65, 0.12);

  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 520ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 3. Base ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-family: var(--font-latin);
  font-size: 100%;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

/* CJK: same sans tone, looser leading, no tracking tricks */
:lang(zh),
:lang(zh-Hans),
:lang(zh-CN) { font-family: var(--font-zh); line-height: 1.75; }
:lang(ja) { font-family: var(--font-ja); line-height: 1.75; }
:lang(zh) .eyebrow, :lang(ja) .eyebrow,
:lang(zh) .section-kicker, :lang(ja) .section-kicker,
:lang(zh) .image-tag, :lang(ja) .image-tag,
:lang(zh) .risk-type, :lang(ja) .risk-type,
:lang(zh) .regions, :lang(ja) .regions,
:lang(zh) .shared-services, :lang(ja) .shared-services,
:lang(zh) .flow-tag, :lang(ja) .flow-tag,
:lang(zh) .flow-loop, :lang(ja) .flow-loop,
:lang(zh) .wordmark small, :lang(ja) .wordmark small {
  letter-spacing: 0;
  text-transform: none;
}
:lang(zh) h1, :lang(ja) h1,
:lang(zh) h2, :lang(ja) h2 { letter-spacing: 0; line-height: 1.3; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
h1 { font-size: var(--h1); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

/* Carlito ships without italics: emphasis becomes a warm highlight mark */
em {
  font-style: normal;
  color: var(--rust-text);
  background: linear-gradient(transparent 68%, var(--rust-tint) 68%);
}
.dark-section em,
.closing-panel em {
  color: var(--rust-light);
  background: none;
}

a {
  color: var(--rust-text);
  text-decoration-color: var(--rust-light);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
a:hover { text-decoration-thickness: 2px; color: var(--rust); }

img, svg, video, iframe {
  display: block;
  max-width: 100%;
}
img { height: auto; }

ul, ol { padding-left: 1.25rem; }
strong, b { font-weight: 700; }
small { font-size: var(--text-sm); }
button { font: inherit; color: inherit; }
::selection { background: var(--rust-tint); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}
:focus:not(:focus-visible) { outline: none; }

[id] { scroll-margin-top: calc(var(--header-h) + 3.5rem); }

/* 4. Utilities ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap > * { min-width: 0; }

.sr-only,
.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;
}

.small {
  font-size: var(--text-sm);
  color: var(--muted);
}
.source-note {
  font-size: var(--text-sm);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
  max-width: 68ch;
}
.cite { font-size: 0.82em; }
.cite a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px dotted var(--green-soft);
  padding: 0 0.1em;
}
.cite a:hover { border-bottom-style: solid; }

.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100%;
  z-index: 60;
  padding: var(--s3) var(--s4);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: var(--s2); }

#progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: var(--progress, 0%);
  background: var(--rust);
  z-index: 50;
  pointer-events: none;
}

/* 5. Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand lang" "nav nav";
  align-items: center;
  gap: 0 var(--s4);
  min-height: var(--header-h);
  padding: var(--s2) var(--gutter) 0;
  background: rgba(244, 242, 237, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.1) blur(6px);
}

.wordmark {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.wordmark span { line-height: 1.15; }
.wordmark > span:not(.monogram) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wordmark small {
  display: none;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.monogram {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.desktop-nav {
  grid-area: nav;
  display: flex;
  gap: var(--s4);
  margin-inline: calc(-1 * var(--s2));
  border-top: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.desktop-nav::-webkit-scrollbar { display: none; }
.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s2);
  white-space: nowrap;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.desktop-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.desktop-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--rust);
}

/* Language switch: native <details> */
.lang-switch {
  grid-area: lang;
  position: relative;
  justify-self: end;
}
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  user-select: none;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.1em) rotate(45deg);
  transition: transform var(--dur-1) var(--ease);
}
.lang-switch summary:hover { border-color: var(--ink); }
.lang-switch[open] summary { border-color: var(--ink); background: var(--paper-2); }
.lang-switch[open] summary::after { transform: translateY(0.1em) rotate(-135deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: auto;
  z-index: 45;
  margin: 0;
  padding: var(--s2);
  list-style: none;
  display: grid;
  min-width: 11.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-s);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.lang-menu a:hover { background: var(--paper-2); }
.lang-menu a[aria-current] { font-weight: 700; color: var(--rust-text); }
.lang-menu a[aria-current]::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--rust);
}
/* legacy TR/EN pills (old Hub markup) */
.lang-switch > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s3);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}
.lang-switch > a[aria-current] { color: var(--ink); font-weight: 700; }

/* mobile: menu becomes a full-width sheet under the header */
@media (max-width: 639.98px) {
  .site-header { position: sticky; }
  .lang-switch { position: static; }
  .lang-menu {
    left: var(--gutter);
    right: var(--gutter);
    top: calc(var(--header-h) - 0.25rem);
    min-width: 0;
  }
}

@media (min-width: 640px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand nav lang";
    gap: var(--s5);
    padding: 0 var(--gutter);
  }
  .wordmark small { display: block; }
  .desktop-nav { border-top: 0; margin: 0; }
}
@media (min-width: 1240px) {
  .site-header { padding-inline: max(var(--gutter), calc((100% - var(--measure)) / 2)); }
}

/* Secondary (local) navigation */
.page-nav,
.detail-nav {
  background: rgba(244, 242, 237, 0.94);
  border-bottom: 1px solid var(--line);
}
.page-nav ol, .page-nav ul,
.detail-nav ol, .detail-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: var(--measure);
  display: flex;
  gap: var(--s5);
  overflow-x: auto;
  scrollbar-width: none;
}
.page-nav ol::-webkit-scrollbar,
.detail-nav ol::-webkit-scrollbar { display: none; }
.page-nav a,
.detail-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  white-space: nowrap;
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.page-nav a:hover,
.detail-nav a:hover { color: var(--ink); }
.page-nav a[aria-current],
.detail-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--green); }
.page-nav .nav-no,
.detail-nav .nav-no {
  font-size: var(--text-xs);
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) {
  .page-nav,
  .detail-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
  }
}

/* 6. Typography blocks ---------------------------------------------------- */
.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 var(--s4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.section-kicker span {
  font-variant-numeric: tabular-nums;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--green);
  border-radius: var(--radius-s);
}
.section-kicker::after {
  content: "";
  flex: 1 1 0;
  max-width: 3.5rem;
  height: 1px;
  background: var(--green);
  opacity: 0.6;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 36em;
}

.section-head {
  display: grid;
  gap: var(--s3) var(--s6);
  margin-bottom: var(--s6);
}
.section-head h2 { max-width: 22ch; }
.section-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 46ch;
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }
}
@media (max-width: 599.98px) {
  h1 br, h2 br, .statement br { display: none; }
}

.statement {
  margin: 0;
  font-size: var(--statement);
  line-height: 1.25;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.01em;
}
.body-copy { max-width: 60ch; color: var(--ink-soft); }
.body-copy p + p { margin-top: var(--s4); }
.body-copy .text-link { display: inline-block; margin-top: var(--s2); }

/* 7. Actions -------------------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s5);
  margin-top: var(--s5);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.button:hover { background: var(--ink); color: var(--paper); }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { background: var(--green); border-color: var(--green); }
.button.secondary { border-color: var(--line); }
.button.secondary:hover { border-color: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-weight: 700;
  color: var(--rust-text);
  text-decoration: underline;
  text-decoration-color: var(--rust-light);
}
.text-link:hover { color: var(--rust); text-decoration-color: var(--rust); }

/* 8. Hero ----------------------------------------------------------------- */
.hero {
  display: grid;
  gap: var(--s6);
  align-items: start;
  padding-block: clamp(2rem, 5vw, 3.75rem) clamp(1.5rem, 4vw, 3rem);
}
.hero-copy > * { animation: rise var(--dur-3) var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-copy > :nth-child(4) { animation-delay: 180ms; }
.hero-copy > :nth-child(5) { animation-delay: 240ms; }
.hero-copy h1 { margin: var(--s2) 0 var(--s4); max-width: 16ch; }
.hero-copy .lead { margin-bottom: 0; }
.hero-note {
  margin-top: var(--s5);
  font-size: var(--text-sm);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
  display: inline-block;
}

.hero-media {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 0;
}
.hero-media > img,
.hero-media > .hero-video {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.hero-media > img { background: var(--paper-2); }
.hero-media figcaption {
  margin-top: var(--s3);
  font-size: var(--text-sm);
  color: var(--muted);
  max-width: 60ch;
}
.hero-media figcaption strong { color: var(--ink); }
.image-tag {
  position: absolute;
  z-index: 2;
  top: var(--s3);
  left: var(--s3);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-s);
  background: rgba(244, 242, 237, 0.92);
  color: var(--green);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* native video plate: the only black surface on the site */
.hero-video {
  aspect-ratio: 16 / 9;
  background: var(--black);
  overflow: hidden;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
}

@media (min-width: 768px) {
  .hero-media::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -0.65rem;
    border: 1px solid var(--green);
    border-radius: var(--radius);
    opacity: 0.55;
  }
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
  .hero-media { margin-top: var(--s7); }
}
@media (min-width: 1240px) {
  .hero-media { margin-right: calc(-0.5 * var(--gutter)); }
}

/* 9. Sections ------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section + .section,
.section + .dark-section + .section { border-top: 1px solid var(--line); }
.section > * { min-width: 0; }

.editorial-split {
  display: grid;
  gap: var(--s5) var(--s7);
}
@media (min-width: 900px) {
  .editorial-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* hairline-grid evidence band */
.evidence-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: var(--s5);
}
.stat {
  min-width: 0;
  padding: var(--s5) var(--s5) var(--s4);
  background: var(--card);
}
.stat b {
  display: block;
  font-size: var(--stat);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-bottom: var(--s2);
}
.stat span { display: block; font-size: var(--text-sm); color: var(--muted); }
.stat .cite { display: inline; }

.finance-cards .stat b { color: var(--green); }
.finance-context {
  margin: var(--s4) 0 var(--s4);
  padding: var(--s3) var(--s4);
  border-left: 3px solid var(--rust);
  background: var(--card);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  max-width: 70ch;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.callout {
  padding: var(--s4) var(--s5);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: var(--card);
  border-radius: var(--radius-s) var(--radius) var(--radius) var(--radius-s);
  max-width: 70ch;
  color: var(--ink-soft);
}
.callout.caution { border-left-color: var(--rust); }
.callout > :first-child { margin-top: 0; }
.callout b, .callout strong { color: var(--ink); }

/* 10. Route risks --------------------------------------------------------- */
.route-layout {
  display: grid;
  gap: var(--s5);
  margin-top: var(--s5);
}
.route-nav {
  display: grid;
  gap: var(--s2);
  align-content: start;
}
.route-nav button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  min-height: 44px;
  padding: 0.7rem var(--s4);
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius-s);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.route-nav button:hover { background: var(--card); border-color: var(--ink); }
.route-nav button[aria-expanded="true"] {
  background: var(--card);
  border-left-color: var(--rust);
}
.route-panels { display: grid; gap: var(--s4); }
.risk-panel {
  padding: var(--s5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.risk-panel[hidden] { display: none; }
.risk-type {
  margin: 0 0 var(--s2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.risk-panel h3 { margin-bottom: var(--s3); font-size: 1.2rem; }
.risk-panel p { color: var(--ink-soft); }
.source-line {
  margin-top: var(--s3);
  font-size: var(--text-sm);
  color: var(--muted);
}
@media (min-width: 900px) {
  .route-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

/* 11. Disclosures --------------------------------------------------------- */
.detail-box {
  border-top: 1px solid var(--line);
  margin-top: var(--s5);
}
.detail-box:last-child,
.questions .detail-box:last-child { border-bottom: 1px solid var(--line); }
.questions .detail-box { margin-top: 0; }
.detail-box summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: 44px;
  padding: var(--s3) 0;
  font-weight: 700;
  color: var(--ink);
}
.detail-box summary::-webkit-details-marker { display: none; }
.detail-box summary::before {
  content: "";
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  color: var(--green);
  transition: transform var(--dur-2) var(--ease);
}
.detail-box[open] summary::before { transform: rotate(45deg); color: var(--rust); }
.detail-box summary:hover { color: var(--green); }
.detail-content {
  padding: 0 0 var(--s5) calc(0.9rem + var(--s4));
  max-width: 68ch;
  color: var(--ink-soft);
  animation: fade var(--dur-2) var(--ease) both;
}
.detail-content p + p { margin-top: var(--s3); }

/* 12. Network panel ------------------------------------------------------- */
.network-panel {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--paper-2);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 24px 24px;
  margin-block: var(--s5);
}
.regions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  margin-bottom: var(--s5);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.regions .connector { color: var(--rust); letter-spacing: 0; }
.model-core {
  padding: var(--s5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.model-core .eyebrow { margin-bottom: var(--s4); }
.cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: var(--s3);
}
.cell {
  min-width: 0;
  padding: var(--s3) var(--s4);
  border: 1px dashed var(--green-soft);
  border-radius: var(--radius-s);
  background: var(--paper);
}
.cell b { display: block; color: var(--ink); }
.cell span { font-size: var(--text-sm); color: var(--muted); }
.shared-services {
  margin: var(--s5) 0 0;
  padding-top: var(--s4);
  border-top: 1px dashed var(--green-soft);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.shared-services strong {
  display: block;
  margin-top: var(--s1);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.network-panel .small { margin: var(--s4) 0 0; }

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--s5) var(--s6);
  margin-top: var(--s5);
}
.principles > * {
  min-width: 0;
  padding-top: var(--s3);
  border-top: 2px solid var(--green);
}
.principles b { display: block; margin-bottom: var(--s2); color: var(--ink); }
.principles p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* 13. Dark section -------------------------------------------------------- */
.dark-section {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--paper);
}
.dark-section h2, .dark-section h3 { color: var(--paper); }
.dark-section .section-kicker,
.dark-section .eyebrow { color: var(--green-soft); }
.dark-section .section-kicker span { border-color: var(--green-soft); }
.dark-section .section-kicker::after { background: var(--green-soft); }
.dark-section .section-head > p,
.dark-section .small,
.dark-section p { color: rgba(244, 242, 237, 0.8); }
.dark-section a,
.dark-section .text-link { color: var(--rust-light); text-decoration-color: var(--rust-light); }
.dark-section .detail-box,
.dark-section .detail-box:last-child { border-color: var(--line-dark); }
.dark-section .detail-box summary { color: var(--paper); }
.dark-section .detail-box summary::before { color: var(--green-soft); }
.dark-section .detail-box[open] summary::before { color: var(--rust-light); }
.dark-section .detail-content { color: rgba(244, 242, 237, 0.8); }

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--s5) var(--s6);
  margin-top: var(--s5);
}
.job {
  min-width: 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--line-dark);
}
.job span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rust-light);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s2);
}
.job h3 { margin-bottom: var(--s2); }
.job p { margin: 0; font-size: 0.95rem; }

.jobs-statement {
  margin: var(--s6) 0 var(--s5);
  padding-left: var(--s4);
  border-left: 2px solid var(--rust-light);
  max-width: 60ch;
  font-size: 1.05rem;
}
.measure-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.measure-row span {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--paper);
}

/* 14. Video (Hub opt-in embed) ------------------------------------------- */
.video-layout {
  display: grid;
  gap: var(--s5) var(--s7);
  align-items: start;
}
.video-layout > * { min-width: 0; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
}
#load-video {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  width: 100%;
  padding: var(--s5);
  background:
    radial-gradient(circle at 50% 50%, rgba(23, 76, 72, 0.5), transparent 60%),
    var(--ink);
  color: var(--paper);
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: background var(--dur-2) var(--ease);
}
#load-video:hover { background-color: var(--green); }
#load-video:focus-visible { outline-offset: -4px; }
#load-video svg { width: 3.5rem; height: 3.5rem; margin-bottom: var(--s2); }
#load-video b { font-size: 1.15rem; line-height: 1.25; }
#load-video span { font-size: var(--text-sm); opacity: 0.85; }
.video-caption {
  margin: var(--s3) 0 var(--s2);
  font-size: var(--text-sm);
  color: var(--muted);
}
.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  align-items: center;
  font-size: var(--text-sm);
}
@media (min-width: 900px) {
  .video-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* 15. Gate list ----------------------------------------------------------- */
.gate-list {
  list-style: none;
  margin: var(--s5) 0 var(--s5);
  padding: 0;
  display: grid;
  gap: 0;
}
.gate-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.step-no {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.gate-list h3 { font-size: 1.05rem; margin-bottom: var(--s1); }
.gate-list p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .gate-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5); }
  .gate-list li {
    grid-template-columns: 1fr;
    border-top: 2px solid var(--green);
    padding: var(--s3) 0 0;
  }
  .step-no { margin-bottom: var(--s2); }
}

/* 16. Closing panel ------------------------------------------------------- */
.closing-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: var(--radius-l);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(244, 242, 237, 0.08), transparent 70%),
    var(--green);
  color: var(--paper);
}
.closing-panel .eyebrow { color: var(--green-soft); }
.closing-panel h2 { color: var(--paper); max-width: 22ch; margin-bottom: var(--s4); }
.closing-panel p { color: rgba(244, 242, 237, 0.86); max-width: 56ch; }
.closing-panel .button.primary {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--green);
}
.closing-panel .button.primary:hover { background: var(--rust-tint); border-color: var(--rust-tint); color: var(--rust-text); }
.closing-panel .text-link { color: var(--paper); text-decoration-color: rgba(244, 242, 237, 0.6); }
.closing-panel .text-link:hover { text-decoration-color: var(--paper); }

/* 17. Sources ------------------------------------------------------------- */
.sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sources-list li {
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.sources-list li > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s3);
}
.sources-list strong { font-size: 0.98rem; color: var(--ink); }
.sources-list small { font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.02em; }
.sources-list p { margin: var(--s1) 0 var(--s2); font-size: var(--text-sm); color: var(--ink-soft); }
.sources-list a { font-size: var(--text-sm); }

/* 18. Detail pages: hero, data, charts ----------------------------------- */
.detail-hero {
  display: grid;
  gap: var(--s4);
  padding-block: clamp(1.75rem, 4vw, 3rem) var(--s5);
}
.detail-hero h1 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); max-width: 22ch; }
.detail-hero .lead { max-width: 60ch; }
.detail-hero .callout { margin-top: var(--s3); }

.table-scroll {
  margin-block: var(--s5);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.table-scroll:focus-visible { outline-offset: 0; }
.data-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.data-table caption {
  caption-side: top;
  text-align: left;
  padding: var(--s3) var(--s4);
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.data-table caption small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: var(--text-xs);
  margin-top: var(--s1);
}
.data-table th,
.data-table td {
  padding: 0.6rem var(--s4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.data-table thead th {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--paper-2);
  white-space: nowrap;
}
.data-table tbody th { font-weight: 700; color: var(--ink); }
.data-table .num,
.data-table td[data-type="number"] { text-align: right; white-space: nowrap; }
.data-table tbody tr:hover { background: var(--paper); }
.data-table tfoot th,
.data-table tfoot td { border-top: 2px solid var(--green); font-weight: 700; }
.data-table .neg { color: var(--rust-text); }

.finance-chart {
  margin: var(--s5) 0;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.finance-chart svg,
.finance-chart img { width: 100%; height: auto; }
.finance-chart figcaption {
  margin-top: var(--s3);
  font-size: var(--text-sm);
  color: var(--muted);
}

.calc {
  margin: var(--s4) 0;
  padding: var(--s4) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-variant-numeric: tabular-nums;
}
.calc dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s2) var(--s4);
  margin: 0;
}
.calc dt { color: var(--ink-soft); min-width: 0; }
.calc dd { margin: 0; text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink); }
.calc .total dt, .calc .total dd {
  padding-top: var(--s2);
  border-top: 2px solid var(--green);
}
.calc .note { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--muted); }

.opportunity-grid,
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--s4);
  margin-block: var(--s5);
}
.opportunity-grid > *,
.impact-grid > * {
  min-width: 0;
  padding: var(--s5);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--green);
  border-radius: var(--radius-s) var(--radius-s) var(--radius) var(--radius);
}
.opportunity-grid h3,
.impact-grid h3 { margin-bottom: var(--s2); font-size: 1.05rem; }
.opportunity-grid p,
.impact-grid p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.impact-grid > * { border-top-color: var(--rust); }

/* 19. Workflow diagram (AI page) ----------------------------------------- */
.flow {
  position: relative;
  margin: var(--s5) 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--paper-2);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 24px 24px;
}
.flow > figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  margin-bottom: var(--s5);
  font-weight: 700;
  color: var(--ink);
}
.flow-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--rust);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust-text);
  background: var(--card);
}

.flow-loop {
  position: relative;
  margin: 0 0 var(--s3) 3.25rem;
  padding-left: var(--s4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.flow-loop::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border-left: 1.5px dashed var(--green);
  border-bottom: 1.5px dashed var(--green);
  border-radius: 0 0 0 0.4rem;
}

.flow-track {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s4);
}
.flow-track::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  bottom: 1.25rem;
  border-left: 2px dashed var(--green-soft);
}
.flow-step {
  position: relative;
  min-width: 0;
}
.flow-step details { position: relative; }
.flow-step summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 44px;
  color: var(--ink);
}
.flow-step summary::-webkit-details-marker { display: none; }
.flow-no {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--card);
  color: var(--green);
  font-size: var(--text-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: transform var(--dur-1) var(--ease), background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.flow-name {
  font-weight: 700;
  font-size: 1.05rem;
}
.flow-hint {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.flow-step summary:hover .flow-no { transform: translateY(-2px); border-color: var(--rust); }
.flow-step summary:hover .flow-name { color: var(--green); }
.flow-step details[open] .flow-no { background: var(--green); color: var(--paper); border-color: var(--green); }
.flow-step details[open] .flow-hint { color: var(--rust-text); }
.flow-step details > p {
  margin: var(--s3) 0 0 calc(2.5rem + var(--s3));
  padding: var(--s3) var(--s4);
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  animation: fade var(--dur-2) var(--ease) both;
}
.flow-text {
  margin: var(--s5) 0 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
  max-width: 70ch;
}

@media (min-width: 820px) {
  .flow-loop {
    margin: 0 1.25rem var(--s2) auto;
    padding: 0.75rem 0 0;
    display: block;
    width: calc(100% - 2.5rem);
    text-align: right;
    border: 1.5px dashed var(--green-soft);
    border-bottom: 0;
    border-radius: 1rem 1rem 0 0;
    margin-left: 1.25rem;
    height: auto;
  }
  .flow-loop::before { display: none; }
  .flow-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s5);
  }
  .flow-track::before {
    left: 1.25rem;
    right: 1.25rem;
    top: 1.25rem;
    bottom: auto;
    border-left: 0;
    border-top: 2px dashed var(--green-soft);
  }
  .flow-step summary { flex-wrap: wrap; align-items: flex-start; }
  .flow-name { width: 100%; margin-top: var(--s2); }
  .flow-hint { margin-left: 0; }
  .flow-step details > p { margin-left: 0; }
}

/* six checks */
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--s4) var(--s6);
  margin: var(--s6) 0 0;
}
.checks > div {
  min-width: 0;
  padding: var(--s3) 0 0;
  border-top: 1px solid var(--line);
}
.checks dt {
  font-weight: 700;
  color: var(--ink);
  display: flex;
  gap: var(--s2);
  align-items: baseline;
}
.checks dt::before {
  content: "";
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  transform: translateY(-0.1em);
}
.checks dd { margin: var(--s1) 0 0; font-size: 0.95rem; color: var(--ink-soft); }
@media (min-width: 1100px) {
  .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 20. Proof / example ----------------------------------------------------- */
.proof {
  display: grid;
  gap: var(--s5) var(--s7);
  align-items: start;
}
.proof > * { min-width: 0; }
.proof-card {
  padding: var(--s5);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.proof-card h3 { margin-bottom: var(--s3); }
.proof-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.proof-list li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
}
.proof-list li:first-child { border-top: 0; }
.proof-list li span {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  padding-top: 0.25rem;
}
.proof-aside h3 { margin-bottom: var(--s3); }
.proof-aside p { color: var(--ink-soft); }
.proof-aside .callout { margin-top: var(--s4); }
@media (min-width: 900px) {
  .proof { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .proof-aside { padding-top: var(--s3); }
}

/* 21. Footer -------------------------------------------------------------- */
footer.wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s4) var(--s6);
  padding-block: var(--s6) var(--s7);
  margin-top: var(--s5);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
}
footer.wrap strong { color: var(--ink); display: block; margin-bottom: var(--s1); }
footer.wrap p { margin: 0; }
footer.wrap a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* 22. Motion -------------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 23. Print --------------------------------------------------------------- */
@media print {
  .site-header, .page-nav, .detail-nav, #progress, .skip-link, .actions { display: none; }
  body { background: #fff; color: #000; }
  .dark-section, .closing-panel { background: none; color: #000; }

  details > summary::before { display: none; }
  a { color: inherit; text-decoration: none; }
}
/* Integration: same components across the four static page types. */
[hidden] {display:none !important;}
.memory-player {position:relative;background:var(--black);border-radius:var(--radius);overflow:hidden;}
.memory-player video {display:block;width:100%;aspect-ratio:16/9;object-fit:contain;}
.case-panel { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:var(--s7); align-items:center; }
.case-panel > * {min-width:0;}
.case-panel img {width:100%; height:auto; border-radius:var(--radius);}
.case-panel figcaption {font-size:var(--text-sm);color:var(--muted);margin-top:var(--s2);}
.capability-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s4) var(--s7);margin-top:var(--s7);}
.flow-name {margin:0;}
.flow-hint {font-size:1.3rem;line-height:1;}
.flow-step details[open] .flow-hint {transform:rotate(45deg);}
.detail-nav {position:static;}
.source-note {font-size:var(--text-sm);color:var(--muted);max-width:90ch;}
.data-table td {font-variant-numeric:tabular-nums;}
.finance-context {max-width:88ch;}
.closing-panel .detail-box,.closing-panel .detail-box:last-child{border-color:var(--line-dark);}
.closing-panel .detail-box summary,.closing-panel .detail-content{color:var(--paper);}
.closing-panel .detail-box summary::before{color:var(--green-soft);}
.closing-panel .detail-box[open] summary::before{color:var(--rust-light);}
@media(max-width:819px){.case-panel{grid-template-columns:1fr;}.case-panel figure{max-width:560px;}.capability-list{grid-template-columns:1fr;}}
@media(max-width:639px){.wordmark > span:not(.monogram){white-space:normal;font-size:.87rem;}.lang-switch summary{padding:.4rem .65rem;}.lang-menu{top:100%;}.site-header{column-gap:.5rem;}.desktop-nav{gap:.6rem;}.desktop-nav a{font-size:.89rem;}}
@media print{details:not([open]) > :not(summary){display:block !important;} .flow-step details > p{display:block !important;}}

/* executive.css
   Extension of the shared site CSS for index.html, experience.html,
   selected-work.html (six languages). Every rule is scoped to an ex-*
   class. Uses only existing tokens: --paper, --paper-2, --ink, --muted,
   --green, --rust-text, --line, --measure, --gutter. No new fonts.

   HEADER LAYOUT SUGGESTION (for the global header, not active here):
   Keep the existing header. For these three pages, consider a quieter
   variant: name set in --ink at 1rem/600 on the left, primary links
   (Ana sayfa · Deneyim · Çalışmalar · Yapay zekâ · Endüstriyelleştirme) on the right,
   language switch after a 1px --line separator, 44px tap targets,
   no sticky behaviour so the portrait is the first strong element.
   Implementation belongs in the shared header file. */

/* ---------- page frame ---------- */
.ex-page{
  --ex-space:clamp(2.75rem,7vw,5.5rem);
  --ex-space-s:clamp(1.25rem,3vw,2rem);
  color:var(--ink);
  overflow-wrap:break-word;
}
.ex-page > .ex-hero,
.ex-page > .ex-intro,
.ex-page > .ex-section{
  width:min(100% - 2*var(--gutter),var(--measure));
  margin-inline:auto;
}
.ex-page a:not([class]){
  color:var(--green);
  text-underline-offset:.15em;
  text-decoration-thickness:1px;
}
.ex-page a:not([class]):hover{color:var(--rust-text)}
.ex-page a:focus-visible,
.ex-page summary:focus-visible{
  outline:3px solid var(--rust-text);
  outline-offset:3px;
  border-radius:2px;
}

/* ---------- type ---------- */
.ex-eyebrow{
  margin:0 0 .75rem;
  font-size:.82rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--green);
}
.ex-title{
  margin:0 0 1rem;
  font-size:clamp(2.1rem,5.5vw,3.6rem);
  line-height:1.05;
  letter-spacing:-.01em;
  font-weight:700;
}
.ex-lede{
  margin:0 0 1rem;
  font-size:clamp(1.15rem,2.2vw,1.45rem);
  line-height:1.35;
  max-width:32ch;
}
.ex-sub{
  margin:0 0 1.75rem;
  color:var(--muted);
  max-width:54ch;
}
.ex-tag{
  display:inline-block;
  margin:0 0 .5rem;
  font-size:.8rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--rust-text);
}
.ex-note{
  border-left:3px solid var(--rust-text);
  padding-left:1rem;
  color:var(--muted);
  max-width:60ch;
}

/* ---------- actions ---------- */
.ex-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem 1.5rem;
  align-items:center;
}
.ex-button{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.6rem 1.3rem;
  border-radius:999px;
  background:var(--ink);
  color:var(--paper);
  font-weight:600;
  text-decoration:none;
}
.ex-button:hover{background:var(--green);color:var(--paper)}
.ex-text-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--green);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:.2em;
  text-decoration-thickness:1px;
}
.ex-text-link:hover{color:var(--rust-text)}

/* ---------- home hero ---------- */
.ex-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:var(--ex-space-s);
  padding-block:clamp(1.5rem,4vw,3.5rem) var(--ex-space);
  align-items:end;
}
.ex-hero__media{margin:0}
.ex-hero__media img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:684/765;
  object-fit:cover;
  object-position:50% 18%;
  border-radius:4px;
}
@media (min-width:760px){
  .ex-hero{
    grid-template-columns:minmax(0,7fr) minmax(0,5fr);
    column-gap:clamp(2rem,6vw,5rem);
  }
}

/* ---------- sections ---------- */
.ex-section{
  padding-block:var(--ex-space);
  border-top:1px solid var(--line);
}
.ex-section h2{
  margin:0 0 .5rem;
  font-size:clamp(1.55rem,3vw,2.2rem);
  line-height:1.15;
}
.ex-section__head{
  margin-bottom:var(--ex-space-s);
  max-width:60ch;
}
.ex-section__head p:last-child{margin-bottom:0}
.ex-section__head--split{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:flex-end;
  gap:1rem;
  max-width:none;
}

/* ---------- responsibility rows ---------- */
.ex-rows__list{list-style:none;margin:0;padding:0}
.ex-row{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:.5rem 2rem;
  padding-block:1.5rem;
  border-top:1px solid var(--line);
}
.ex-row:last-child{border-bottom:1px solid var(--line)}
.ex-row__label{
  display:flex;
  gap:.75rem;
  align-items:baseline;
  margin:0;
  font-size:1.2rem;
  line-height:1.3;
}
.ex-row__num{
  font-size:.85rem;
  letter-spacing:.05em;
  color:var(--rust-text);
  font-variant-numeric:tabular-nums;
}
.ex-row__body p{margin:0 0 .5rem;max-width:58ch}
.ex-row__body p:last-child{margin-bottom:0}
.ex-row__note{color:var(--muted);font-size:.95rem}
@media (min-width:760px){
  .ex-row{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
}

/* ---------- selected work list (home) ---------- */
.ex-work__list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:var(--ex-space-s);
}
.ex-work__item{
  display:grid;
  gap:1rem;
  padding-top:1.5rem;
  border-top:1px solid var(--line);
}
.ex-work__media{display:block;margin:0}
.ex-work__media img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:4px;
}
.ex-work__kicker{
  margin:0;
  font-size:1.05rem;
  font-weight:600;
  line-height:1.3;
}
.ex-work__kicker span{
  display:block;
  font-weight:400;
  color:var(--muted);
  font-size:.9rem;
  font-variant-numeric:tabular-nums;
}
.ex-work__meta{margin:0 0 .35rem;color:var(--muted);font-size:.9rem}
.ex-work__text h3{margin:0 0 .5rem;font-size:1.25rem;line-height:1.25}
.ex-work__text h3 a{color:inherit;text-decoration:none}
.ex-work__text h3 a:hover{color:var(--green);text-decoration:underline}
.ex-work__text p{margin:0;max-width:60ch}
@media (min-width:760px){
  .ex-work__item{
    grid-template-columns:minmax(0,4fr) minmax(0,8fr);
    column-gap:2rem;
    align-items:start;
  }
}

/* ---------- editorial feature band (AI + Hub) ---------- */
.ex-page > .ex-section.ex-feature{
  width:100%;
  max-width:none;
  margin-inline:0;
  border-top:0;
  background:var(--paper-2);
}
.ex-feature__inner{
  width:min(100% - 2*var(--gutter),var(--measure));
  margin-inline:auto;
  display:grid;
  gap:var(--ex-space-s);
}
.ex-feature__intro p{max-width:40ch}
.ex-feature__items{display:grid;gap:1.5rem}
.ex-feature__item{
  border-left:3px solid var(--green);
  padding-left:1rem;
}
.ex-feature__item h3{margin:0 0 .5rem;font-size:1.2rem;line-height:1.3}
.ex-feature__item h3 a{color:inherit;text-decoration:none}
.ex-feature__item h3 a:hover{color:var(--green);text-decoration:underline}
.ex-feature__item p{margin:0 0 .5rem;max-width:44ch}
.ex-feature__links{font-size:.95rem}
@media (min-width:640px){
  .ex-feature__items{grid-template-columns:1fr 1fr}
}
@media (min-width:900px){
  .ex-feature__inner{
    grid-template-columns:minmax(0,4fr) minmax(0,8fr);
    column-gap:3rem;
  }
}

/* ---------- contact ---------- */
.ex-contact{display:grid;gap:1rem}
.ex-contact p{margin:0 0 .75rem;max-width:50ch}
.ex-contact__links{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem 1.5rem;
  align-items:center;
  margin:0;
}
@media (min-width:760px){
  .ex-contact{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
}

/* ---------- experience page ---------- */
.ex-intro{
  padding-block:clamp(1.5rem,4vw,3.5rem) var(--ex-space);
  max-width:72ch;
}
.ex-approach{
  display:grid;
  gap:1.5rem 2rem;
  margin:0;
}
.ex-approach dt{
  margin:0 0 .35rem;
  font-size:1.1rem;
  font-weight:600;
  line-height:1.3;
}
.ex-approach dd{margin:0;max-width:48ch}
@media (min-width:760px){
  .ex-approach{grid-template-columns:1fr 1fr}
}

.ex-timeline{list-style:none;margin:0;padding:0}
.ex-job{
  display:grid;
  gap:.5rem 2rem;
  padding-block:1.75rem;
  border-top:1px solid var(--line);
}
.ex-job:last-child{border-bottom:1px solid var(--line)}
.ex-job__time{
  margin:0;
  font-weight:600;
  color:var(--rust-text);
  font-variant-numeric:tabular-nums;
}
.ex-job__org{margin:.15rem 0 0;color:var(--muted);font-size:.95rem}
.ex-job__title{margin:0 0 .5rem;font-size:1.25rem;line-height:1.3}
.ex-job__body p{margin:0 0 .6rem;max-width:62ch}
.ex-job__body ul{margin:.5rem 0;padding-left:1.1rem;max-width:62ch}
.ex-job__body li{margin-bottom:.3rem}
@media (min-width:760px){
  .ex-job{grid-template-columns:minmax(0,3fr) minmax(0,9fr)}
}

.ex-edu{display:grid;gap:1.25rem 2rem;margin:0}
.ex-edu dt{font-weight:600;margin-bottom:.25rem}
.ex-edu dd{margin:0;max-width:48ch}
@media (min-width:760px){
  .ex-edu{grid-template-columns:1fr 1fr}
}

/* ---------- details / summary ---------- */
.ex-details{
  margin-top:1rem;
  border-top:1px solid var(--line);
}
.ex-details summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:.75rem;
  min-height:44px;
  padding:.5rem 0;
  font-weight:600;
  color:var(--green);
}
.ex-details summary::-webkit-details-marker{display:none}
.ex-details summary::before{
  content:"";
  flex:none;
  width:.55rem;
  height:.55rem;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(-45deg);
  transition:transform .2s ease;
}
.ex-details[open] summary::before{transform:rotate(45deg)}
.ex-details > :not(summary){max-width:62ch}
.ex-details ul{padding-left:1.1rem}

/* ---------- selected work cases ---------- */
.ex-toc{
  display:flex;
  flex-wrap:wrap;
  gap:.25rem 1.5rem;
  list-style:none;
  margin:1rem 0 0;
  padding:0;
}
.ex-case{
  display:grid;
  gap:1.5rem 3rem;
  padding-block:var(--ex-space);
  border-top:1px solid var(--line);
}
.ex-case__head h2{margin:0 0 .5rem}
.ex-case__meta{margin:0 0 .35rem;color:var(--muted)}
.ex-case__role{margin:0;font-weight:600;max-width:34ch}
.ex-case__body h3{
  margin:1.5rem 0 .35rem;
  font-size:1.05rem;
  letter-spacing:.02em;
  color:var(--green);
}
.ex-case__body h3:first-child{margin-top:0}
.ex-case__body p{margin:0 0 .75rem;max-width:62ch}
.ex-figures{
  display:grid;
  gap:1rem;
  margin:1.5rem 0;
}
.ex-figure{margin:0}
.ex-figure img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
  border-radius:4px;
}
.ex-figure--wide img{aspect-ratio:16/9}
.ex-figure--portrait img{aspect-ratio:3/4;object-position:50% 40%}
.ex-figure figcaption{
  margin-top:.5rem;
  font-size:.9rem;
  line-height:1.45;
  color:var(--muted);
}
.ex-product-list{
  margin:.5rem 0 0;
  padding-left:1.1rem;
}
.ex-product-list li{margin-bottom:.4rem}
.ex-sources{
  font-size:.92rem;
  color:var(--muted);
  max-width:72ch;
}
.ex-sources ul{padding-left:1.1rem}
@media (min-width:640px){
  .ex-figures{
    grid-template-columns:minmax(0,7fr) minmax(0,5fr);
    align-items:start;
  }
  /* A single remaining portrait keeps its 5/12 width but sits in the left column. */
  .ex-figures--solo{grid-template-columns:minmax(0,5fr) minmax(0,7fr);}
}
@media (min-width:900px){
  .ex-case{grid-template-columns:minmax(0,4fr) minmax(0,8fr)}
  .ex-case__head{position:sticky;top:1.5rem;align-self:start}
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion:reduce){
  .ex-details summary::before{transition:none}
  .ex-case__head{position:static}
}

/* Shared navigation expands consistently across all seven page types. */
.site-header .desktop-nav { flex-wrap:wrap; overflow:visible; gap:0 .35rem; }
.site-header .desktop-nav a { white-space:normal; line-height:1.25; }
@media(min-width:640px) and (max-width:1099.98px){
 .site-header {grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand lang" "nav nav";padding-top:.5rem;column-gap:1rem;}
 .site-header .desktop-nav {border-top:1px solid var(--line-soft);}
}
@media(max-width:639.98px){
 .site-header .desktop-nav{gap:0 .2rem;margin-inline:0;}
 .site-header .desktop-nav a{padding-inline:.35rem;font-size:.86rem;}
 .site-header .lang-menu{top:100%;}
}
.ex-video-block{margin-top:1.5rem;max-width:46rem;}
.ex-video-block .video-frame{min-height:0;aspect-ratio:16/9;}
.ex-video-block .video-frame button{width:100%;height:100%;min-height:160px;}
.ex-video-block .video-meta{font-size:.9rem;line-height:1.6;}
.ex-product-photo{margin:1.5rem 0 0;max-width:36rem;}
.ex-product-photo img{display:block;width:100%;height:auto;max-height:27rem;object-fit:contain;}
.ex-product-photo figcaption{font-size:.85rem;color:var(--muted);margin-top:.5rem;}
.ex-case__head{position:static;}
@media print{.site-header{position:static;}.desktop-nav,.language-menu{display:none;}.ex-video-block .video-frame{display:none;}}

[id]{scroll-margin-top:calc(var(--header-offset,var(--header-h)) + 3.5rem);}
@media(min-width:640px){.page-nav,.detail-nav{top:var(--header-offset,var(--header-h));}}
:lang(zh) .ex-eyebrow,:lang(zh) .ex-tag,:lang(ja) .ex-eyebrow,:lang(ja) .ex-tag{letter-spacing:0;}

/* Ambient AI film: no player chrome or pointer interaction. */
.memory-player video{pointer-events:none;}

/* A small portrait field note, separate from the four attributed case studies. */
.field-note{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,16rem);align-items:center;gap:clamp(2rem,5vw,4rem);max-width:50rem;margin-inline:auto;padding-block:3rem;}
.field-note figure{margin:0;}
.field-note video{display:block;width:100%;height:auto;aspect-ratio:9/16;object-fit:contain;border-radius:var(--radius);background:#111;pointer-events:none;}
.field-note figcaption{font-size:.9rem;line-height:1.5;color:var(--muted);margin-top:.8rem;}
@media(max-width:639px){.field-note{grid-template-columns:1fr;gap:1.5rem;}.field-note figure{width:min(100%,16rem);}}

/* Native controls and scroll regions work without hover or pointer precision. */
.site-header { -webkit-backdrop-filter:saturate(1.1) blur(6px); }
.desktop-nav a,.page-nav a,.detail-nav a { min-width:44px; }
.ex-row__num { flex-shrink:0;white-space:nowrap; }
.lang-menu {
  max-height:calc(100vh - var(--header-offset,var(--header-h)) - 1rem);
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
@supports(height:100dvh){
  .lang-menu { max-height:calc(100dvh - var(--header-offset,var(--header-h)) - 1rem); }
}
.table-scroll { max-width:100%; overscroll-behavior-x:contain; }
.dark-section :focus-visible,.closing-panel :focus-visible,#load-video:focus-visible {
  outline-color:var(--paper);
}
@media (max-height:450px) and (orientation:landscape) {
  .site-header,.page-nav,.detail-nav { position:relative;top:auto; }
}
@media(forced-colors:active){
  .desktop-nav a[aria-current],.lang-menu a[aria-current]{outline:1px solid CanvasText;outline-offset:-2px;}
}

/* V4 PRESENTATION START */
/* Portrait intros share the existing typography, palette and reading measure. */
.ex-page > .ex-portrait-intro {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(1.5rem,4vw,3.5rem);
  max-width:var(--measure);
  align-items:center;
}
.ex-portrait-intro > * { min-width:0; }
.ex-portrait-intro__copy { grid-area:1/1; }
.ex-portrait-intro__media {
  grid-area:2/1;
  margin:0;
  width:100%;
  max-width:18rem;
}
.ex-portrait-intro__media img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3/4;
  object-fit:cover;
  object-position:50% 28%;
  border-radius:var(--radius-s);
}
.ex-portrait-intro .ex-sub { margin-bottom:1rem; }
.ex-portrait-intro .ex-toc { margin-bottom:0; }
@media(min-width:760px) {
  .ex-page > .ex-portrait-intro {
    grid-template-columns:minmax(0,3fr) minmax(0,7fr);
  }
  .ex-portrait-intro__media { grid-area:1/1; max-width:21rem; }
  .ex-portrait-intro__copy { grid-area:1/2; }
}

/* A field photograph is a broad editorial image, not a small portrait. */
.ex-page > .ex-wide-photo {
  width:min(100% - 2*var(--gutter),var(--measure));
  max-width:var(--measure);
  margin:0 auto clamp(2rem,5vw,4rem);
}
.ex-wide-photo { margin:1.5rem 0 0; }
.ex-wide-photo img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3/2;
  object-fit:cover;
  object-position:50% 57%;
  border-radius:var(--radius-s);
}
.ex-wide-photo figcaption,
.ex-case-media figcaption,
.ex-product-gallery figcaption {
  margin-top:.6rem;
  font-size:var(--text-sm);
  line-height:1.5;
  color:var(--muted);
}
.ex-page--experience > .ex-intro:not(.ex-portrait-intro) {
  max-width:var(--measure);
  padding-bottom:clamp(1.25rem,3vw,2rem);
}
.ex-page--experience .ex-intro .ex-lede { max-width:45ch; }
.ex-page--experience .ex-intro .ex-sub { max-width:68ch; margin-bottom:0; }
@media(max-width:599.98px) {
  .ex-wide-photo img { aspect-ratio:4/3; }
}

/* Media sits with its case rather than leaving an empty title column. */
.ex-case-media { margin:1.5rem 0 0; min-width:0; }
.ex-case-media > img,
.ex-case-media > a > img {
  display:block;
  width:100%;
  height:auto;
  border-radius:var(--radius-s);
}
.ex-case-media--product { background:var(--card); }
.ex-case-media--product > img,
.ex-case-media--product > a > img {
  aspect-ratio:4/3;
  object-fit:contain;
  padding:.75rem;
}
.ex-case-media--product figcaption { padding:0 .75rem .75rem; }
.ex-product-gallery {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1.25rem;
  margin:1.5rem 0;
}
.ex-product-gallery > * { min-width:0; margin:0; }
.ex-product-gallery img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  object-fit:contain;
  padding:.75rem;
  background:var(--card);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-s);
}
@media(min-width:640px) {
  .ex-product-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.ex-work__item { align-items:center; }
.ex-work__media { min-width:0; }
.ex-work__media--contain img,
.ex-work__media--product img,
.ex-work__media--pavelsis img,
.ex-work__media--airties img { object-fit:contain; padding:.75rem; background:var(--card); }
.ex-work__media .video-shell { margin:0; }
.ex-work__text { min-width:0; }

/* Remove the offset figure decoration: the caption belongs outside the player. */
.ai-hero .memory-media::before { content:none; }
.ai-hero .memory-media { margin-right:0; }
.ai-hero .memory-player {
  border:1px solid var(--line);
  box-shadow:var(--shadow-1);
}
.ai-hero .memory-media figcaption { margin-top:.75rem; max-width:none; }

/* Each external player owns its own trigger and iframe; no page-unique ID. */
.video-shell {
  position:relative;
  width:100%;
  height:0;
  padding-top:56.25%;
  overflow:hidden;
  border-radius:var(--radius);
  background:var(--ink);
  box-shadow:var(--shadow-1);
}
@supports(aspect-ratio:16/9) {
  .video-shell { height:auto; padding-top:0; aspect-ratio:16/9; }
}
.video-shell > iframe {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:100%;
  border:0;
}
.video-shell > .video-trigger,
.video-shell > .video-link {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  width:100%;
  height:100%;
  min-width:44px;
  min-height:44px;
  margin:0;
  padding:clamp(.6rem,1.8vw,1.25rem);
  border:0;
  border-radius:inherit;
  background:var(--ink);
  color:var(--paper);
  font:inherit;
  font-size:.95rem;
  line-height:1.35;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
}
.video-shell > .video-trigger:hover,
.video-shell > .video-link:hover { background:var(--green); color:var(--paper); }
.video-shell > .video-trigger:focus-visible,
.video-shell > .video-link:focus-visible,
.video-shell > iframe:focus-visible { outline:3px solid var(--paper); outline-offset:-5px; }
.video-trigger .play-mark,
.video-link .play-mark {
  display:inline-grid;
  place-items:center;
  width:2.4rem;
  height:2.4rem;
  flex:0 0 auto;
  border:1px solid currentColor;
  border-radius:50%;
  font-size:1rem;
  line-height:1;
}
.video-shell .video-trigger > svg,
.video-shell .video-link > svg { width:2.4rem; height:2.4rem; flex:0 0 auto; }
.video-shell .video-trigger > strong,
.video-shell .video-trigger > b,
.video-shell .video-link > strong,
.video-shell .video-link > b { font-size:1.02rem; line-height:1.25; }
.video-shell .video-trigger > span:not(.play-mark),
.video-shell .video-link > span:not(.play-mark) { font-size:.85rem; line-height:1.35; }
.video-shell .video-trigger > .video-poster,
.video-shell .video-link > .video-poster {
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  max-width:none;
  padding:0;
  border:0;
  object-fit:cover;
  object-position:center;
}
.video-shell > .video-trigger::after,
.video-shell > .video-link::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg,rgba(12,29,44,.28),rgba(12,29,44,.72));
  pointer-events:none;
}
.video-shell .video-trigger > span.video-trigger__content,
.video-shell .video-link > span.video-trigger__content {
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.5rem;
  width:100%;
  font-size:inherit;
  line-height:1.35;
  color:var(--paper);
  text-shadow:0 1px 3px rgba(0,0,0,.4);
}
.video-trigger__content > strong { font-size:1.02rem; line-height:1.25; }
.video-trigger__content > span:not(.play-mark) { font-size:.85rem; line-height:1.35; }
.video-shell > .video-trigger:hover::after,
.video-shell > .video-link:hover::after { background:rgba(12,29,44,.65); }
.video-shell + .video-meta { margin-top:.6rem; }
.ex-case-media .video-meta { font-size:var(--text-sm); line-height:1.5; }
@media(max-width:399.98px) {
  .video-shell > .video-trigger,
  .video-shell > .video-link { gap:.25rem; }
  .video-trigger .play-mark,.video-link .play-mark { width:2rem; height:2rem; }
}
@media(forced-colors:active) {
  .video-shell { border:1px solid CanvasText; }
  .video-shell > .video-trigger,.video-shell > .video-link { border:1px solid ButtonText; }
}
@media print {
  .video-shell { display:none; }
  .ex-portrait-intro__media { max-width:9rem; }
  .ex-wide-photo { break-inside:avoid; }
}
/* V4 PRESENTATION END */

/* V5: selected portrait and restrained contextual photography. */
.ex-hero { align-items:center; }
.ex-hero__media { width:100%; max-width:30rem; justify-self:end; }
.ex-hero__media picture { display:block; }
.ex-hero__media img { aspect-ratio:4/5; object-position:50% 28%; }
.ex-page--experience > .ex-field-intro {
 display:grid; grid-template-columns:minmax(0,1fr); align-items:center;
 gap:clamp(1.5rem,4vw,3.5rem); max-width:var(--measure);
 padding-bottom:clamp(2rem,4vw,3.5rem);
}
.ex-field-intro > * { min-width:0; }
.ex-field-photo { margin:0; width:100%; max-width:24rem; justify-self:center; }
.ex-field-photo img { display:block; width:100%; height:auto; aspect-ratio:3/4; object-fit:contain; border-radius:var(--radius-s); }
.ex-page--work > .ex-work-intro { max-width:var(--measure); padding-bottom:clamp(1.5rem,4vw,3rem); }
.ex-work-intro__copy { max-width:70ch; }
.ex-work-intro .ex-sub { margin-bottom:1rem; }
.ex-work-intro .ex-toc { margin-bottom:0; }
.ex-work-intro { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; gap:clamp(1.5rem,4vw,3.5rem); }
.manufacturing-hero { min-width:0; width:100%; margin:0; }
.manufacturing-hero video { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; border-radius:var(--radius,8px); background:var(--ink); pointer-events:none; }
.manufacturing-hero figcaption { margin-top:.6rem; color:var(--muted); font-size:.85rem; line-height:1.5; }
@media(min-width:1000px) { .ex-work-intro { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
/* Controls stay outside the picture; only the TSMC interview has a sound toggle. */
.silent-video-embed { pointer-events:none; }
.silent-video-controls { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; width:100%; margin-block:.5rem; }
.silent-video-controls[hidden] { display:none; }
.silent-video-controls button { flex:0 0 auto; min-height:44px; padding:.35rem .65rem; border:1px solid var(--line); border-radius:4px; color:var(--ink); background:transparent; font:inherit; cursor:pointer; }
.silent-video-controls button:hover { color:var(--green); border-color:var(--green); }
.silent-video-controls button:focus-visible,.silent-video-controls input:focus-visible { outline:3px solid var(--rust); outline-offset:3px; }
.silent-video-controls button:disabled { cursor:default; opacity:.6; }
.silent-video-controls input { flex:1 1 120px; min-width:0; width:120px; min-height:44px; accent-color:var(--green); direction:ltr; }
.silent-video-time { flex:0 0 auto; font-size:.8rem; color:var(--muted); font-variant-numeric:tabular-nums; }
.silent-video-status { flex:1 0 100%; font-size:.85rem; color:var(--muted); }
.silent-video-status:empty { display:none; }
@media(max-width:420px) { .silent-video-controls { gap:.4rem; } .silent-video-controls button { padding-inline:.4rem; } .silent-video-time { font-size:.75rem; } }
@media print { .silent-video-controls { display:none; } }
@media(min-width:850px) {
 .ex-page--experience > .ex-field-intro { grid-template-columns:minmax(0,7fr) minmax(0,5fr); }
 .ex-field-photo { justify-self:end; }
}
@media(max-width:759.98px) {
 .ex-hero__media { max-width:25rem; justify-self:center; }
 .ex-field-photo { max-width:20rem; }
}
@media print { .ex-field-photo { max-width:12rem; break-inside:avoid; } }

/* V6: atmospheric opening and a restrained shared motion language.
   Original font families, sizes and colour tokens are unchanged. */
.ai-hero--ambient {
 position:relative; isolation:isolate; display:block; width:100%; max-width:none;
 margin:0; padding:0; overflow:hidden; background:var(--paper);
}
.ai-stage {
 position:relative; z-index:1; display:flex; flex-direction:column; justify-content:center;
 min-height:30rem; padding-block:clamp(3rem,6vw,5rem) 5rem;
}
.ai-stage .hero-copy { max-width:36rem; }
.ai-stage .hero-copy > * { animation:none; }
.ai-stage .hero-copy h1 { max-width:18ch; }
.ai-stage .lead { max-width:46ch; }
.ai-ambient-caption {
 position:absolute; bottom:1.5rem; right:var(--gutter); margin:0 -.5rem;
 max-width:35ch; text-align:right; color:var(--muted); font-size:var(--text-sm);
 padding:.25rem .5rem; background:var(--paper);
}
.ai-backdrop { position:absolute; inset:0; z-index:0; pointer-events:none; background:var(--paper); }
.ai-backdrop .memory-player {
 position:absolute; top:0; bottom:0; left:22%; right:-9%;
 background:transparent; border:0; border-radius:0; overflow:hidden;
 opacity:.28; mix-blend-mode:multiply;
}
.ai-backdrop .memory-player video {
 width:100%; height:100%; aspect-ratio:auto; object-fit:contain;
 filter:invert(1) grayscale(1) contrast(1.3); pointer-events:none;
}
.ai-backdrop::after {
 content:''; position:absolute; inset:0;
 background:linear-gradient(90deg,var(--paper) 0%,rgba(244,242,237,.98) 25%,rgba(244,242,237,.8) 43%,rgba(244,242,237,.08) 70%,rgba(244,242,237,.08) 100%);
}
.ai-hero--ambient + .section { border-top:1px solid var(--line); }
@media(max-width:849.98px) {
 .ai-stage { min-height:0; padding-block:2.5rem 14rem; }
 .ai-stage .hero-copy { max-width:42rem; }
 .ai-backdrop .memory-player { top:auto; bottom:-2rem; left:0; right:-14%; height:26rem; opacity:.2; }
 .ai-backdrop::after { background:linear-gradient(180deg,var(--paper) 0%,rgba(244,242,237,.97) 42%,rgba(244,242,237,.2) 78%,rgba(244,242,237,.15) 100%); }
 .ai-ambient-caption { bottom:1.25rem; left:var(--gutter); right:var(--gutter); max-width:none; text-align:left; }
}
@media(prefers-reduced-motion:reduce) {
 .ai-stage .hero-copy > * { animation:none !important; }
 .ai-backdrop .memory-player { opacity:.18; }
}
@media print {
 .ai-backdrop { display:none; }
 .ai-stage { min-height:0; padding-block:1rem; }
 .ai-ambient-caption { position:static; margin-top:1rem; text-align:left; }
}

/* V7: product spotlight, geographic context and a single AT&T product player. */
.att-spotlight { display:grid; grid-template-columns:minmax(0,7fr) minmax(0,4fr); align-items:center; gap:clamp(1.5rem,5vw,4rem); }
.att-spotlight h2 { max-width:22ch; }
.att-spotlight p:not(.ex-eyebrow) { max-width:57ch; }
.att-spotlight__image { margin:0; display:block; width:100%; max-width:18rem; justify-self:center; }
.att-spotlight__image img { display:block; width:100%; height:auto; object-fit:contain; mix-blend-mode:multiply; }
.att-spotlight__image figcaption { text-align:center; margin-top:.5rem; color:var(--muted); font-size:var(--text-xs); }
.att-scale { margin-top:1.5rem; padding-left:1rem; border-left:3px solid var(--green); color:var(--green); }
.footprint-filters { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1.5rem; }
.footprint-filters[hidden],.footprint-panel[hidden] { display:none; }
.footprint-filters button { min-height:44px; padding:.55rem 1.1rem; border:1px solid var(--line); border-radius:var(--radius-s); background:transparent; color:var(--ink); font:inherit; cursor:pointer; }
.footprint-filters button[aria-pressed=true] { color:var(--paper); background:var(--green); border-color:var(--green); }
.footprint-filters button:focus-visible { outline:3px solid var(--rust); outline-offset:3px; }
.footprint-layout { display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:clamp(1.5rem,4vw,3rem); align-items:start; }
.footprint-chart { min-width:0; padding-top:1rem; }
.footprint-map { display:block; width:100%; height:auto; overflow:hidden; }
.map-land { fill:var(--paper-2); stroke:var(--line); stroke-width:.55; }
.map-marker { stroke:var(--paper); stroke-width:1.4; }
.map-marker--operator { fill:var(--green); }
.map-marker--team { fill:var(--ink); }
.map-marker--supplier { fill:var(--rust); }
[data-map-region].is-dimmed { opacity:.15; }
.footprint-legend { display:flex; flex-wrap:wrap; gap:.6rem 1.1rem; margin-top:1rem; font-size:var(--text-sm); color:var(--ink-soft); }
.footprint-legend > span { display:inline-flex; align-items:center; gap:.5rem; }
.legend-symbol { display:inline-block; width:10px; height:10px; flex:none; }
.legend-symbol--operator { border-radius:50%; background:var(--green); }
.legend-symbol--team { background:var(--ink); }
.legend-symbol--supplier { transform:rotate(45deg); background:var(--rust); }
.footprint-note { margin-top:1rem; color:var(--muted); font-size:var(--text-xs); }
.footprint-note a { display:inline-block; }
.footprint-panels { border-left:1px solid var(--line); padding-left:clamp(1.25rem,3vw,2.5rem); min-height:19rem; }
.footprint-panel { margin-bottom:2rem; }
.footprint-panel > h3 { margin:0 0 1rem; font-size:var(--text-xl); }
.footprint-row { display:grid; grid-template-columns:12px minmax(0,1fr); gap:.8rem; margin-top:1.25rem; }
.footprint-row h4 { margin:0 0 .4rem; font-size:var(--text-base); }
.footprint-row p { margin:0; color:var(--ink-soft); font-size:var(--text-sm); line-height:1.65; }
.footprint-symbol { width:10px; height:10px; margin-top:.45rem; }
.footprint-row--operator .footprint-symbol { border-radius:50%; background:var(--green); }
.footprint-row--team .footprint-symbol { background:var(--ink); }
.footprint-row--supplier .footprint-symbol { transform:rotate(45deg); background:var(--rust); }
.att-video { margin:0 0 2rem; min-width:0; }
.att-video__frame { position:relative; width:100%; aspect-ratio:16/9; min-height:200px; background:var(--ink-2); border-radius:var(--radius-s); overflow:hidden; }
.att-video__frame iframe,.att-video__frame > div { display:block; width:100%; height:100%; min-height:200px; border:0; }
.att-video__frame button { position:absolute; inset:0; width:100%; height:100%; border:0; background:var(--ink-2); color:var(--paper); cursor:pointer; font:inherit; }
.att-video__frame button img { width:100%; height:100%; object-fit:cover; }
.att-video__frame button > span { position:absolute; inset:auto 0 0; display:flex; align-items:center; justify-content:center; gap:.75rem; padding:1.2rem; background:var(--ink-2); color:var(--paper); }
.att-video__frame button i { font-style:normal; }
.att-video__frame button:focus-visible { outline:3px solid var(--rust-light); outline-offset:-4px; }
.att-video .video-meta { display:flex; flex-wrap:wrap; gap:.3rem 1rem; justify-content:space-between; margin-top:.6rem; font-size:var(--text-sm); }
.att-video .video-meta strong { font-weight:400; }
@media(max-width:849.98px) {
 .footprint-layout { grid-template-columns:minmax(0,1fr); }
 .footprint-panels { border-left:0; border-top:1px solid var(--line); padding:1.5rem 0 0; min-height:0; }
 .footprint-chart { padding-top:0; }
}
@media(max-width:599.98px) {
 .att-video__frame { aspect-ratio:auto; height:200px; }
 .att-spotlight { grid-template-columns:minmax(0,1fr); }
 .att-spotlight__image { max-width:15rem; }
 .footprint-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .footprint-filters button { padding:.6rem .4rem; }
 .footprint-legend { gap:.55rem .9rem; }
}
@media print { .footprint-filters,.att-video { display:none; } .footprint-panel[hidden] { display:block; } [data-map-region].is-dimmed { opacity:1; } }

/* V8: Hub hierarchy, source-led line-transfer story, TCI field clip. */
.hub-menu { position:relative; margin:0; border:0; padding:0; }
.hub-menu > summary { list-style:none; display:flex; align-items:center; gap:.5rem; min-height:44px; padding:0 var(--s2); border-bottom:2px solid transparent; font-size:.95rem; line-height:1.25; color:var(--ink-soft); cursor:pointer; }
.hub-menu > summary::-webkit-details-marker { display:none; }
.hub-menu > summary::after { content:""; width:.4rem; height:.4rem; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-top:-.2rem; }
.hub-menu[open] > summary::after { transform:rotate(225deg); margin-top:.2rem; }
.hub-menu--active > summary { color:var(--ink); font-weight:700; border-bottom-color:var(--rust); }
.hub-menu > summary:focus-visible { outline:3px solid var(--rust); outline-offset:-3px; }
.hub-menu__links { position:absolute; z-index:45; right:0; top:100%; min-width:16rem; max-width:calc(100vw - 2 * var(--gutter)); padding:.5rem; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-s); box-shadow:0 .75rem 2rem #132c4114; }
.site-header .hub-menu__links a { display:flex; min-height:44px; padding:.65rem .85rem; border-bottom:0; white-space:normal; }
.site-header .hub-menu__links a[aria-current=page] { color:var(--green); background:var(--paper-2); border-left:3px solid var(--rust); }
.hub-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .7rem; padding-top:1.2rem; font-size:var(--text-sm); color:var(--muted); }
.hub-breadcrumb a { min-height:44px; display:inline-flex; align-items:center; color:var(--ink-soft); text-decoration:none; }
.hub-breadcrumb a:hover { text-decoration:underline; }
.hub-chapters ol { list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; padding:0; margin:.5rem 0 0; border-bottom:1px solid var(--line); }
.hub-chapters li { min-width:0; }
.hub-chapters a { display:flex; align-items:center; gap:.65rem; min-height:52px; padding:.5rem 0; height:100%; text-decoration:none; color:var(--muted); border-bottom:2px solid transparent; }
.hub-chapters a span { font-size:var(--text-xs); color:var(--green); }
.hub-chapters a[aria-current=page] { color:var(--ink); border-bottom-color:var(--rust); font-weight:700; }
.hub-page .hero { padding-top:clamp(2rem,5vw,4rem); }
.hub-page .detail-hero { padding-top:clamp(2rem,5vw,4rem); }
.hub-next { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem; border-top:1px solid var(--line); padding-block:2rem 3rem; }
.hub-next a { display:flex; flex-direction:column; gap:.4rem; min-width:0; min-height:60px; overflow-wrap:anywhere; color:var(--green); text-decoration:none; }
.hub-next a:last-child { text-align:right; }
.hub-next small { font-size:var(--text-sm); color:var(--muted); }
.hub-next a:hover strong { text-decoration:underline; }
.hub-origin { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(1.5rem,4vw,4rem); }
.hub-origin p { margin-top:0; }
.hub-origin h2 { font-size:var(--text-2xl); }
.hub-flow { list-style:none; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; padding:0; margin:2rem 0 0; border-block:1px solid var(--line); }
.hub-flow li { padding:1.5rem 1.25rem; border-left:1px solid var(--line); }
.hub-flow li:first-child { border-left:0; padding-left:0; }
.hub-flow li:last-child { padding-right:0; }
.hub-flow__number { display:block; font-size:var(--text-sm); color:var(--rust); margin-bottom:1rem; }
.hub-flow h3 { font-size:var(--text-lg); margin:0 0 .75rem; color:var(--green); }
.hub-flow p { color:var(--ink-soft); font-size:var(--text-base); margin:0; }
.hub-flow__footer { color:var(--green); font-size:var(--text-sm); padding:.75rem 0 1.5rem; border-bottom:1px solid var(--line); }
.hub-benefits { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(1.5rem,4vw,4rem); margin-block:2rem; }
.hub-benefits h3,.hub-history h3,.hub-portfolio h3,.hub-local-chain h3 { font-size:var(--text-xl); }
.hub-history,.hub-portfolio,.hub-local-chain { margin-top:2rem; padding:1.5rem 0 0; border-top:1px solid var(--line); }
.hub-history { max-width:75ch; font-size:var(--text-sm); }
.hub-local-chain ol { padding-left:1.3rem; }
.hub-local-chain li { padding-block:.35rem; }
.field-note--tci { max-width:none; margin:2rem 0 0; border-top:1px solid var(--line); padding-block:2rem 0; grid-template-columns:minmax(0,1fr) minmax(0,14rem); gap:1.5rem; }
.field-note--tci h3 { font-size:var(--text-xl); }
@media(max-width:1099.98px) { .hub-menu { position:static; } .hub-menu__links { left:var(--gutter); right:var(--gutter); width:auto; max-width:none; max-height:calc(100dvh - var(--header-offset,var(--header-h)) - 1rem); overflow-y:auto; } }
@media(max-width:849.98px) { .hub-origin { grid-template-columns:1fr; } .hub-flow { grid-template-columns:repeat(2,minmax(0,1fr)); } .hub-flow li:nth-child(3) { border-left:0; padding-left:0; border-top:1px solid var(--line); } .hub-flow li:nth-child(4) { border-top:1px solid var(--line); } }
@media(max-width:639.98px) { .hub-menu > summary { padding-inline:.35rem; font-size:.86rem; } .hub-chapters ol { gap:.65rem; } .hub-chapters a { align-items:flex-start; flex-direction:column; gap:.2rem; font-size:var(--text-sm); } .hub-next { gap:1rem; } .hub-benefits { grid-template-columns:1fr; gap:.75rem; } .field-note--tci { grid-template-columns:1fr; } }
@media(max-width:399.98px) { .hub-flow { grid-template-columns:1fr; } .hub-flow li,.hub-flow li:first-child,.hub-flow li:last-child { padding:1.25rem 0; border-left:0; border-top:1px solid var(--line); } .hub-flow li:first-child { border-top:0; } }
@media print { .hub-menu,.hub-breadcrumb,.hub-chapters,.hub-next { display:none; } .field-note--tci video { display:none; } }

/* V9: the supplied project-memory film is an informative figure.
   Scope is limited to the AI hero. Existing font and colour tokens remain intact.
   CSS brightness makes existing faint edges visible before inversion; no new
   graph geometry is generated and the complete source frame remains in view. */
.hero.ai-hero--memory {
  display:block;
  margin:0;
  padding-block:clamp(2rem,4vw,3.5rem) var(--s6);
  background:var(--paper);
}

.ai-hero--memory .ai-memory-layout {
  display:grid;
  grid-template-columns:minmax(0,4fr) minmax(0,6fr);
  align-items:center;
  gap:clamp(1.5rem,3vw,3rem);
}
.ai-hero--memory .ai-memory-layout > * { min-width:0; }
.ai-hero--memory .hero-copy { max-width:36rem; }
.ai-hero--memory .hero-copy > * { animation:none; }
.ai-hero--memory .hero-copy h1 { max-width:18ch; }
.ai-hero--memory .lead { max-width:42ch; }

.ai-hero--memory .ai-memory-figure { margin:0; width:100%; min-width:0; }
.ai-hero--memory .memory-player {
  position:relative;
  inset:auto;
  width:100%;
  height:auto;
  background:var(--paper);
  border:0;
  border-radius:0;
  box-shadow:none;
  opacity:1;
  isolation:isolate;
  overflow:hidden;
}
.ai-hero--memory .memory-player video {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:contain;
  object-position:center;
  opacity:1;
  filter:grayscale(1) brightness(2) invert(1);
  mix-blend-mode:multiply;
}
.ai-hero--memory .ai-memory-figure figcaption {
  position:static;
  margin:var(--s4) 0 0;
  padding:0;
  max-width:none;
  text-align:left;
  font-size:var(--text-sm);
  line-height:1.55;
  color:var(--muted);
}
.ai-hero--memory .ai-memory-figure figcaption > strong {
  display:block;
  margin-bottom:var(--s2);
  color:var(--ink);
}
.ai-hero--memory .ai-memory-figure figcaption > p { margin:0; }
.ai-hero--memory .ai-memory-key {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--s4);
  margin:var(--s4) 0 0;
  padding-top:var(--s3);
  border-top:1px solid var(--line);
}
.ai-hero--memory .ai-memory-key > div { min-width:0; }
.ai-hero--memory .ai-memory-key dt { color:var(--green); font-weight:700; }
.ai-hero--memory .ai-memory-key dd { margin:var(--s1) 0 0; }
.ai-hero--memory + .section { border-top:1px solid var(--line); }

/* If blending is unavailable, retain the original black video surface. */
@supports not (mix-blend-mode:multiply) {
  .ai-hero--memory .memory-player { background:var(--black); }
  .ai-hero--memory .memory-player video { filter:none; }
}

@media(max-width:900px) {
  .ai-hero--memory .ai-memory-layout { grid-template-columns:minmax(0,1fr); gap:var(--s5); }
  .ai-hero--memory .hero-copy { max-width:42rem; }
  .ai-hero--memory .ai-memory-figure { max-width:48rem; }
  .ai-hero--memory .ai-memory-figure figcaption { margin-top:var(--s3); }
}
@media(max-width:399px) {
  .ai-hero--memory .ai-memory-key { grid-template-columns:minmax(0,1fr); gap:var(--s3); }
}
@media print {
  .hero.ai-hero--memory { padding-block:var(--s4); }
  .ai-hero--memory .ai-memory-layout { grid-template-columns:minmax(0,1fr); }
  .ai-hero--memory .ai-memory-figure { break-inside:avoid; }
}

.ai-memory-meaning { margin-top:var(--s6); max-width:75ch; border-top:1px solid var(--line); padding-top:var(--s4); }
.ai-memory-meaning h3 { margin:0 0 var(--s3); }
.ai-memory-meaning p { margin:0; color:var(--muted); }
.ai-memory-method { margin-top:var(--s5); }
.ai-memory-method > p { max-width:80ch; }

/* V10: eleven languages, locally scrollable native-language selector. */
.lang-menu {max-height:min(70vh,36rem);overflow-y:auto;overscroll-behavior:contain;}
.lang-menu a {unicode-bidi:isolate;}

/* V10 Arabic RTL proposal; not applied to staged or live CSS by this agent.
   Root HTML contract: <html lang="ar" dir="rtl">. Keep Latin names, source IDs,
   email, numeric expressions and formulas in <bdi dir="ltr"> where appropriate.
   Preserve the existing Calibri/Carlito, size and colour tokens. Arabic glyphs
   use installed system fallbacks only; no font service or download is needed. */
html[lang="ar"][dir="rtl"] {
  font-family:Calibri,Carlito,"Segoe UI",Tahoma,Arial,sans-serif;
  direction:rtl;
}
html[lang="ar"][dir="rtl"] body { line-height:1.75; }
html[lang="ar"][dir="rtl"] :is(h1,h2,h3,h4,.eyebrow,.section-kicker,.ex-eyebrow,.ex-tag,.image-tag,.risk-type,.flow-tag,.flow-loop,.wordmark small,.data-table thead th) {
  letter-spacing:0;
  text-transform:none;
}
html[lang="ar"][dir="rtl"] :is(h1,h2,h3,h4) { line-height:1.3; }
html[lang="ar"][dir="rtl"] em { font-style:normal; }
html[lang="ar"][dir="rtl"] :is(figcaption,.ai-memory-figure figcaption,.data-table caption,.route-nav button) { text-align:start; }

/* Logical reading order follows direction:rtl; do not add row-reverse. */
html[lang="ar"][dir="rtl"] .skip-link { left:auto; right:auto; inset-inline-start:var(--s4); }
html[lang="ar"][dir="rtl"] :is(.lang-menu,.hub-menu__links) {
  left:auto; right:auto; inset-inline-start:auto; inset-inline-end:0;
}
html[lang="ar"][dir="rtl"] .site-header .hub-menu__links a[aria-current="page"] {
  border-left:0; border-inline-start:3px solid var(--rust);
}
html[lang="ar"][dir="rtl"] .hub-next a:last-child { text-align:end; }
html[lang="ar"][dir="rtl"] .image-tag { left:auto; right:auto; inset-inline-start:var(--s3); }

html[lang="ar"][dir="rtl"] :is(ul,ol) { padding-left:0; padding-inline-start:1.25rem; }
html[lang="ar"][dir="rtl"] :is(.flow-track,.gate-list,.sources-list,.hub-chapters ol,.hub-flow) { padding-inline-start:0; }
html[lang="ar"][dir="rtl"] :is(.ex-job__body ul,.ex-details ul,.ex-product-list,.ex-sources ul) { padding-left:0; padding-inline-start:1.1rem; }
html[lang="ar"][dir="rtl"] .hub-local-chain ol { padding-left:0; padding-inline-start:1.3rem; }

html[lang="ar"][dir="rtl"] .finance-context {
  border-left:0; border-inline-start:3px solid var(--rust);
  border-radius:var(--radius-s) 0 0 var(--radius-s);
}
html[lang="ar"][dir="rtl"] .callout {
  border-inline:1px solid var(--line); border-inline-start:3px solid var(--green);
  border-radius:var(--radius) var(--radius-s) var(--radius-s) var(--radius);
}
html[lang="ar"][dir="rtl"] .callout.caution { border-inline-start-color:var(--rust); }
html[lang="ar"][dir="rtl"] .route-nav button {
  border-inline:1px solid var(--line); border-inline-start:3px solid transparent;
}
html[lang="ar"][dir="rtl"] .route-nav button[aria-expanded="true"] { border-inline-start-color:var(--rust); }
html[lang="ar"][dir="rtl"] .jobs-statement {
  padding-left:0; padding-inline-start:var(--s4);
  border-left:0; border-inline-start:2px solid var(--rust-light);
}
html[lang="ar"][dir="rtl"] .ex-note {
  padding-left:0; padding-inline-start:1rem;
  border-left:0; border-inline-start:3px solid var(--rust-text);
}
html[lang="ar"][dir="rtl"] :is(.ex-feature__item,.att-scale) {
  padding-left:0; padding-inline-start:1rem;
  border-left:0; border-inline-start:3px solid var(--green);
}
html[lang="ar"][dir="rtl"] .footprint-panels {
  border-left:0; border-inline-start:1px solid var(--line);
  padding-left:0; padding-inline-start:clamp(1.25rem,3vw,2.5rem);
}

/* Data geometry is not mirrored: dates, axes and geographic coordinates keep
   their established ordering. Localise SVG labels separately, verify shaping
   and measured bounds; do not scaleX(-1) charts, photographs, video or logos. */
html[lang="ar"][dir="rtl"] :is(.footprint-map,.finance-chart img,.finance-chart svg,.table-scroll,.data-table) { direction:ltr; }
html[lang="ar"][dir="rtl"] :is(.data-table caption,.data-table th,.data-table td) { direction:rtl; text-align:start; }
html[lang="ar"][dir="rtl"] :is(bdi[dir="ltr"],.bidi-ltr,.formula,[data-type="number"]) { direction:ltr; unicode-bidi:isolate; }
html[lang="ar"][dir="rtl"] .data-table [data-type="number"] { text-align:right; }
/* Root should wrap the WHOLE mixed formula/ratio, not only isolated digits.
   Examples: DSCR 1.20x; 40m / 5 = 8m; +200,000; -1,800,000; $5 / $20.
   Pure numeric/Latin table cells can use data-type="number" or dir="ltr". */
html[lang="ar"][dir="rtl"] .data-table [dir="ltr"] { direction:ltr; unicode-bidi:isolate; text-align:right; }

html[lang="ar"][dir="rtl"] .hub-flow li {
  border-left:0; border-inline-start:1px solid var(--line);
  padding-inline:1.25rem;
}
html[lang="ar"][dir="rtl"] .hub-flow li:first-child { border-inline-start:0; padding-inline-start:0; }
html[lang="ar"][dir="rtl"] .hub-flow li:last-child { padding-inline-end:0; }
html[lang="ar"][dir="rtl"] .flow-hint { margin-left:0; margin-inline-start:auto; }
html[lang="ar"][dir="rtl"] .flow-step details > p { margin-left:0; margin-inline-start:calc(2.5rem + var(--s3)); }
html[lang="ar"][dir="rtl"] .flow-track::before {
  left:auto; right:auto; inset-inline-start:1.25rem;
  border-left:0; border-inline-start:2px dashed var(--green-soft);
}
@media(min-width:820px) {
  html[lang="ar"][dir="rtl"] .flow-track::before { inset-inline:1.25rem; border-inline-start:0; }
  html[lang="ar"][dir="rtl"] .flow-hint { margin-inline-start:0; }
  html[lang="ar"][dir="rtl"] .flow-step details > p { margin-inline-start:0; }
}
@media(min-width:1240px) {
  html[lang="ar"][dir="rtl"] .hero-media { margin-right:0; margin-inline-end:calc(-.5 * var(--gutter)); }
}
@media(max-width:1099.98px) {
  html[lang="ar"][dir="rtl"] .hub-menu__links { inset-inline:var(--gutter); }
}
@media(max-width:639.98px) {
  html[lang="ar"][dir="rtl"] .lang-menu { inset-inline:var(--gutter); }
}
@media(max-width:849.98px) {
  html[lang="ar"][dir="rtl"] .footprint-panels { border-inline-start:0; padding-inline:0; }
  html[lang="ar"][dir="rtl"] .hub-flow li:nth-child(3) { border-inline-start:0; padding-inline-start:0; }
}
@media(max-width:399.98px) {
  html[lang="ar"][dir="rtl"] .hub-flow li { border-inline-start:0; padding-inline:0; }
}

/* Previous/next/back arrows embedded in translated text must be mirrored in
   those specific strings. Keep external-link, play and vertical arrows intact.
   This proposal is not a completed RTL/browser/physical-device audit. */

/* Original, separately sourced product images; bounded sizes keep details crisp. */
.att-product-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(.75rem,2vw,1.5rem); align-items:end; width:100%; direction:ltr; }
.att-product { display:grid; justify-items:center; gap:.65rem; min-width:0; }
.att-product-pair .att-product img { display:block; width:100%; max-width:170px; height:240px; max-height:none; aspect-ratio:auto; object-fit:contain; padding:0; border:0; border-radius:0; background:transparent; mix-blend-mode:multiply; }
.att-product__name { color:var(--ink); font-size:var(--text-sm); font-weight:600; line-height:1.3; text-align:center; }
.att-spotlight__image { max-width:24rem; }
.ex-case-media--product > .att-product-pair { max-width:28rem; margin-inline:auto; padding:1.5rem 1.5rem 1rem; }
.ex-work__media--airties > .att-product-pair { padding:1rem; background:var(--card); }
.ex-work__media--airties .att-product img { height:190px; }
.ex-case-media--product figcaption,.att-spotlight__image figcaption { line-height:1.8; }
@media(max-width:639.98px) {
 .att-spotlight__image { max-width:23rem; }
 .att-product-pair .att-product img { height:210px; max-width:140px; }
 .ex-work__media--airties .att-product img { height:175px; }
 .ex-case-media--product > .att-product-pair { padding:1rem; }
}

/* User-selected apron crop: wider, naturally proportioned, same typography and palette. */
.ex-field-photo { max-width:34rem; }
.ex-field-photo img { aspect-ratio:476/421; object-fit:cover; }
@media(min-width:850px) {
 .ex-page--experience > .ex-field-intro { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
}
@media(max-width:759.98px) { .ex-field-photo { max-width:30rem; } }
@media print { .ex-field-photo { max-width:16rem; } }

/* PROGRAMME MEDIA START
   Two silent programme clips (British 1294×658, Turkish portrait 466/822). Native frame shape is kept with object-fit:contain; nothing is cropped,
   stretched or letterboxed into 16:9. Existing font, palette and radius tokens only.
   Playback lifecycle belongs to the shared [data-programme-video] controller in site.js. */
.programme-media { display:block; width:100%; max-width:440px; min-width:0; margin:0; }
.programme-media video {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1294/658;
  object-fit:contain;
  border-radius:var(--radius);
  background:var(--ink);
  pointer-events:none;
}
.programme-media--portrait { max-width:320px; }
.programme-media--portrait video { aspect-ratio:466/822; }
/* Case-head clips sit a little below and inside the role line instead of touching it. */
.ex-case__head > .programme-media { margin-block-start:1.25rem; margin-inline-start:.75rem; }
.programme-media figcaption { margin-top:.5rem; font-size:var(--text-sm); line-height:1.5; color:var(--muted); }


.ex-work__media .programme-media,
.ex-figure .programme-media,
.ex-case-media .programme-media { width:100%; max-width:440px; margin:0; }
.ex-work__media .programme-media--portrait,
.ex-figure .programme-media--portrait,
.ex-case-media .programme-media--portrait { max-width:320px; }
@media print { .programme-media video { display:none; } }
/* PROGRAMME MEDIA END */

/* Restored platform diagram inside section 01 (after the TSMC video). */
.video-section .platform-block { margin-top: clamp(2rem, 4vw, 3.5rem); }
.platform-block .section-head { margin-bottom: var(--s4); }

/* References and first-hand case notes: existing type, palette and spacing tokens. */
.evidence-intro { padding-block:clamp(2.5rem,6vw,5rem) clamp(2rem,4vw,3.5rem); }
.evidence-intro .ex-title { max-width:23ch; }
.evidence-intro .ex-lede { max-width:58ch; color:var(--muted); }
.case-breadcrumb { margin-bottom:2rem; }
.reference-card { display:grid; grid-template-columns:minmax(180px,1fr) minmax(0,3fr); gap:clamp(1.5rem,4vw,4rem); align-items:start; }
.reference-person { display:flex; flex-direction:column; align-items:flex-start; gap:.85rem; }
.reference-portrait { display:block; width:104px; height:104px; border-radius:50%; object-fit:cover; object-position:50% 25%; border:1px solid var(--line); }
.reference-person strong { display:block; font-size:1.2rem; }
.reference-person p { color:var(--muted); margin:.25rem 0 0; max-width:24ch; }
.reference-copy { max-width:75ch; min-width:0; }
.reference-context { margin:0 0 .85rem; color:var(--muted); font-size:var(--text-sm); }
.reference-copy blockquote { margin:0; padding:0; border:0; color:var(--ink); font-size:clamp(1.1rem,1.6vw,1.3rem); line-height:1.65; }
.reference-copy blockquote p { margin:0; }
.reference-source,.reference-translation { color:var(--muted); font-size:var(--text-sm); margin:1rem 0 0; }
.reference-original blockquote { font-size:1rem; }
.reference-card--compact { grid-template-columns:minmax(180px,1fr) minmax(0,3fr); }
.reference-card--compact .reference-copy { max-width:62ch; }
.reference-teaser h2 { margin-bottom:2rem; }
.reference-teaser .reference-card + .reference-card { margin-top:2rem; padding-top:2rem; border-top:1px solid var(--line); }
.case-links { margin-block:2rem; padding-top:1.5rem; border-top:1px solid var(--line); }
.case-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; margin-block:1.5rem; }
.case-card { display:block; position:relative; padding:1.5rem 1.5rem 3rem; border:1px solid var(--line); border-radius:var(--radius); color:var(--ink); text-decoration:none; background:var(--card); }
.case-card:hover { border-color:var(--green); }
.case-card h3 { font-size:1.35rem; line-height:1.25; margin:.5rem 0 .75rem; }
.case-card p { color:var(--muted); margin:0; }
.case-card__arrow { position:absolute; inset-inline-end:1.3rem; bottom:.7rem; color:var(--green); font-size:1.5rem; }
.product-4981 { margin:2rem 0; max-width:38rem; }
.product-4981 img { display:block; width:100%; height:auto; border-radius:var(--radius); }
.product-4981 figcaption { margin-top:.65rem; color:var(--muted); font-size:var(--text-sm); }
.case-study__overview { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,1fr); gap:3rem; align-items:center; }
.case-study__overview > div:only-child { grid-column:1/-1; max-width:76ch; }
.case-product { margin:0; text-align:center; }
.case-product img { width:100%; max-width:160px; height:220px; object-fit:contain; mix-blend-mode:multiply; }
.case-product figcaption { font-size:var(--text-sm); color:var(--muted); }
.case-process { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; list-style:none; padding:0; margin:2.5rem 0 3rem; }
.case-process li { border-top:2px solid var(--green); padding-top:1rem; color:var(--ink); font-weight:600; }
.case-process li > span { display:block; color:var(--rust-text); font-size:var(--text-sm); margin-bottom:.5rem; }
.case-study__columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(2rem,5vw,5rem); }
.case-study p { max-width:76ch; }
.case-outcome { border-inline-start:3px solid var(--green); padding-inline-start:1.5rem; }
.case-management { margin-top:2.5rem; max-width:76ch; }
.case-technical { margin-top:2rem; }
.case-technical > p,.case-sources { max-width:80ch; }
.case-related > .case-card-grid { margin-top:3rem; }
@media(max-width:759.98px) {
 .reference-card,.reference-card--compact { grid-template-columns:minmax(0,1fr); gap:1.25rem; }
 .reference-person { flex-direction:row; align-items:center; }
 .reference-portrait { width:80px; height:80px; flex:0 0 80px; }
 .reference-person p { max-width:30ch; }
 .case-study__overview { grid-template-columns:minmax(0,1fr); gap:1.5rem; }
 .case-product { justify-self:start; }
 .case-product img { max-width:100px; height:165px; }
 .case-study__columns { grid-template-columns:minmax(0,1fr); }
 .case-process { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; }
 .case-card-grid { grid-template-columns:minmax(0,1fr); }
}
@media print { .reference-portrait { width:70px; height:70px; } .reference-card { break-inside:avoid; } }


/* Case media and reference alignment, matching the established page frame. */
.ex-page--references > .evidence-intro { max-width:none; text-align:start; }
.ex-page--case > .case-intro-with-media { max-width:none; }
.case-intro-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:2rem; align-items:center; }
.case-intro-copy { min-width:0; }
.case-intro-copy .ex-lede { margin-bottom:0; }
.case-intro-media { min-width:0; width:100%; max-width:36rem; }
.case-intro-media video { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; border-radius:var(--radius); }
@media(min-width:960px) {
 .case-intro-layout { grid-template-columns:minmax(0,5fr) minmax(0,7fr); grid-template-areas:"media copy"; gap:clamp(2rem,4vw,4rem); }
 .case-intro-copy { grid-area:copy; }
 .case-intro-media { grid-area:media; }
}
@media print { .case-intro-media { display:none; } .case-intro-layout { display:block; } }

.executive-downloads { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem 1rem; margin-top:1.5rem; padding-top:1rem; border-top:1px solid var(--line); font-size:var(--text-sm); }
.executive-downloads__label { color:var(--muted); }
.executive-downloads a { font-weight:600; white-space:nowrap; }

/* V27: decision cases and a visible, staged pilot before scale assumptions. */
.decision-case-intro { max-width:none; text-align:start; }
.decision-case-intro .ex-title { max-width:25ch; }
.decision-case-intro .ex-lede { max-width:70ch; }
.decision-sections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2.25rem 3.5rem; }
.decision-sections h2 { font-size:clamp(1.35rem,2.4vw,1.8rem); }
.decision-result { max-width:76ch; margin-bottom:3rem; }
.decision-result h2 { color:var(--green); }
.decision-formula { padding:1.25rem; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); font-weight:700; overflow-wrap:anywhere; }
.decision-economics { margin-block:2.5rem; max-width:85ch; }
.pilot-first { border-top:3px solid var(--green); }
.pilot-first .gate-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem 2rem; }
.pilot-first .gate-list li { display:flex; flex-direction:column; align-items:flex-start; gap:.5rem; min-width:0; }
.pilot-first .gate-list .step-no { display:block; width:auto; margin:0; }
.pilot-actions { margin-top:1.5rem; }
.decision-case-link { grid-template-columns:minmax(0,1fr); }
@media(max-width:759.98px) { .decision-sections,.pilot-first .gate-list { grid-template-columns:minmax(0,1fr); } }

/* V28: concise reference catalog and focused management section. */
.reference-cases .case-card-grid{margin-top:2rem;}
.case-card--compact{min-height:0;}
.case-card--compact h3{margin-bottom:1rem;}
.ex-approach--focused{grid-template-columns:minmax(0,1fr);max-width:78ch;}
#programme-responsibility,#work-examples{scroll-margin-top:10rem;}

/* Source links replace withdrawn media without changing the shared typography. */
.public-source-tile{display:flex;flex-direction:column;justify-content:center;gap:.6rem;padding:2rem;border:1px solid var(--line);background:var(--paper,#f4f3ec);text-decoration:none;min-height:180px}.public-source-tile span:first-child{font-weight:700;font-size:1.35rem}.public-source-tile span:last-child{font-size:.9rem}.ex-work__media--portrait img{aspect-ratio:16/10;object-fit:cover;object-position:center 48%}.reference-original blockquote{margin-block:1rem}.reference-copy blockquote p+p{margin-block-start:1rem}

/* Compact home-page reference summaries; full reference pages keep their layout. */
.reference-teaser .reference-card{grid-template-columns:minmax(240px,1fr) minmax(0,2.2fr);gap:1.5rem}
.reference-teaser .reference-person{flex-direction:row;align-items:center;gap:.8rem}
.reference-teaser .reference-portrait{width:72px;height:72px;flex:0 0 72px}
.reference-teaser .reference-card+.reference-card{margin-top:1rem;padding-top:1rem}
.reference-teaser .reference-copy{max-width:75ch}
.reference-teaser .reference-context{margin-bottom:.4rem}
.reference-teaser .reference-copy .ex-text-link{margin-top:.4rem}
@media(max-width:759px){
 .reference-teaser .reference-card{grid-template-columns:minmax(0,1fr);gap:.7rem}
 .reference-teaser .reference-portrait{width:64px;height:64px;flex-basis:64px}
}
