/* AIffect website v3 – layout and components. Tokens: tokens.css. No framework, no build step.
   Source Serif 4 © Adobe, SIL Open Font License 1.1, official files unmodified (fonts/LICENSE.md). */
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-Regular.ttf.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-It.ttf.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-Semibold.ttf.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4 Display"; src: url("fonts/SourceSerif4Display-Semibold.ttf.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

@layer base, layout, components, utilities;

@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
  body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--step-0); line-height: var(--leading-body); font-kerning: normal; font-variant-numeric: lining-nums; text-rendering: optimizeLegibility; }
  h1, h2, h3, h4 { margin: 0; font-weight: var(--weight-head); line-height: var(--leading-head); text-wrap: balance; }
  h1, h2 { font-family: var(--font-display); letter-spacing: var(--tracking-head); }
  p, li, dd { text-wrap: pretty; }
  p { margin: 0; }
  ul, ol { margin: 0; padding: 0; }
  img, svg { display: block; max-width: 100%; }
  img { height: auto; }
  a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  a:hover { text-decoration-thickness: 2px; }
  :focus-visible { outline: var(--focus); outline-offset: 3px; }
  strong, b { font-weight: var(--weight-strong); }
  q { quotes: none; }
  button { font: inherit; color: inherit; }
  ::selection { background: var(--accent); color: var(--white); }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
}

@layer layout {
  .wrap { width: 100%; max-width: calc(var(--max-width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
  .section { padding-block: clamp(3.5rem, 2rem + 5vw, 7rem); border-top: 1px solid var(--line); }
  .section-head { display: grid; gap: var(--space-4); max-width: 52rem; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.5rem); }
  .grid-2 { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
  .grid-3 { display: grid; gap: var(--space-6) var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
  .grid-4 { display: grid; gap: var(--space-6) var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
}

@layer components {
  /* Skip link */
  .skip { position: absolute; left: var(--space-4); top: -4rem; z-index: 20; background: var(--btn-bg); color: var(--btn-fg); padding: var(--space-2) var(--space-4); text-decoration: none; }
  .skip:focus { top: var(--space-3); }

  /* Labels and type */
  .eyebrow { font-family: var(--font); font-size: var(--step--1); font-weight: var(--weight-strong); letter-spacing: 0.02em; color: var(--label); line-height: 1.3; }
  .h2 { font-size: var(--step-3); }
  .h2-xl { font-size: var(--step-4); max-width: 18ch; }
  .lede { font-size: var(--step-1); line-height: 1.45; color: var(--text-2); max-width: 40rem; }
  .small { font-size: var(--step--1); color: var(--text-3); }
  .side-builder { color: var(--builder); }
  .side-backer { color: var(--backer); }
  .mark { display: inline-block; width: 0.62em; height: 0.62em; background: currentColor; margin-right: 0.5em; vertical-align: 0.02em; }

  /* Buttons */
  .btn { display: inline-flex; align-items: center; gap: 0.5em; min-height: 2.75rem; padding: 0.6em 1.1em; background: var(--btn-bg); color: var(--btn-fg); font-weight: var(--weight-strong); text-decoration: none; line-height: 1.2; border: 0; cursor: pointer; }
  .btn:hover { background: var(--btn-hover); color: var(--btn-fg); text-decoration: none; }
  .btn-small { min-height: 2.5rem; padding: 0.45em 0.9em; font-size: var(--step--1); }
  .text-btn { background: none; border: 0; padding: 0.4em 0; cursor: pointer; color: var(--text-2); font-size: var(--step--1); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.25em; min-height: 2.5rem; }
  .text-btn:hover { color: var(--text); text-decoration-color: currentColor; }

  /* Wordmark (inline symbols, two colours by role) */
  .wm { width: auto; height: 1.6rem; overflow: visible; }
  .wm .ai { color: var(--wm-ai); }
  .wm .ff { color: var(--wm-ff); }

  /* Header */
  .site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
  .header-inner { display: flex; align-items: center; gap: var(--space-5); min-height: 4.25rem; }
  .brand { display: block; padding-block: var(--space-2); margin-right: auto; }
  .site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); }
  .site-nav a { color: var(--text-2); text-decoration: none; font-size: var(--step--1); display: inline-block; padding-block: var(--space-2); }
  .site-nav a:hover { color: var(--text); text-decoration: underline; }
  .menu-btn { display: none; }
  .header-inner .mode { order: 2; } .header-inner > .btn { order: 3; }
  .cta-short { display: none; }
  @media (max-width: 63.99rem) {
    .header-inner { gap: var(--space-3); }
    .menu-btn { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.4em 0.2em; background: none; border: 0; font-size: var(--step--1); color: var(--text); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }
    .site-nav[popover] { position: fixed; inset: 4.25rem 0 auto 0; width: 100%; max-width: none; margin: 0; padding: var(--space-5) var(--gutter) var(--space-6); background: var(--bg); color: var(--text); border: 0; border-bottom: 1px solid var(--line-strong); }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav li { border-bottom: 1px solid var(--line); }
    .site-nav a, .site-nav .text-btn { font-size: var(--step-1); padding-block: var(--space-3); color: var(--text); display: block; width: 100%; text-align: left; }
  }
  @media (min-width: 64rem) {
    .site-nav[popover] { display: flex; align-items: center; gap: var(--space-5); position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
  }
  @media (max-width: 30rem) { .cta-long { display: none; } .cta-short { display: inline; } }


  /* Edition switch: a small physical toggle (the one rounded element in the system) */
  .mode { display: none; padding: 0.35rem; background: none; border: 0; cursor: pointer; }
  .js .mode { display: inline-flex; }
  .mode-track { position: relative; display: block; width: 3.4rem; height: 1.85rem; border-radius: 999px; background: var(--track); box-shadow: inset 0 1px 3px rgba(0,0,0,.28), inset 0 0 0 1px rgba(0,0,0,.06); }
  .mode-track > svg { position: absolute; top: 50%; width: 0.95rem; height: 0.95rem; translate: 0 -50%; color: var(--text-3); }
  .mode-track > .sun { left: 0.42rem; } .mode-track > .moon { right: 0.42rem; }
  .mode-knob { position: absolute; top: 0.18rem; left: 0.18rem; width: 1.49rem; height: 1.49rem; border-radius: 50%; background: var(--knob); box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.12); display: grid; place-items: center; transition: translate 0.28s cubic-bezier(.3,.7,.4,1); }
  .mode-knob svg { width: 0.95rem; height: 0.95rem; grid-area: 1 / 1; }
  .mode-knob .sun { color: var(--ochre); } .mode-knob .moon { color: var(--cyan-text); opacity: 0; }
  .mode[aria-checked="true"] .mode-knob { translate: 1.55rem 0; }
  .mode[aria-checked="true"] .mode-knob .sun { opacity: 0; } .mode[aria-checked="true"] .mode-knob .moon { opacity: 1; }

  /* Hero */
  .hero { padding-block: clamp(3rem, 1.5rem + 6vw, 7.5rem) clamp(3.5rem, 2rem + 5vw, 6.5rem); }
  .hero-grid { display: grid; gap: var(--space-8) var(--space-7); grid-template-columns: minmax(0, 1fr); align-items: end; }
  @media (min-width: 64rem) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
  .hero h1 { font-size: var(--step-4); max-width: 13ch; }
  .hero .lede { margin-top: var(--space-5); }
  .hero .btn { margin-top: var(--space-6); }

  /* Converging rooms (hero figure) */
  .converge { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 1.75rem minmax(7.5rem, 9.5rem); align-items: center; font-size: var(--step--1); }
  .cv-rooms { list-style: none; display: grid; gap: var(--space-4); }
  .cv-rooms li { display: flex; align-items: flex-start; gap: var(--space-3); }
  .cv-room { flex: none; width: 4.6rem; color: var(--text-3); padding-top: 0.05em; }
  .cv-q { font-style: italic; color: var(--text); }
  .cv-line { flex: 1 1 1.25rem; min-width: 1.25rem; height: 0; margin-top: 0.75em; border-top: 1px solid var(--line-strong); }
  .cv-bracket { align-self: stretch; margin-block: 0.75em; border: 1px solid var(--line-strong); border-left: 0; position: relative; }
  .cv-bracket::after { content: ""; position: absolute; left: 100%; top: 50%; width: 0.75rem; border-top: 1px solid var(--line-strong); }
  .cv-answer { margin-left: 0.75rem; padding: var(--space-3) var(--space-4); border-left: 3px solid var(--accent); background: var(--tint); font-weight: var(--weight-strong); line-height: 1.3; }
  @media (max-width: 40rem) {
    .converge { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
    .cv-line, .cv-bracket { display: none; }
    .cv-answer { margin-left: 0; }
  }


  @media (prefers-reduced-motion: no-preference) {
    .cv-line { transform-origin: left; animation: draw-x 0.5s ease-out both; }
    .cv-rooms li:nth-child(1) .cv-line { animation-delay: 0.25s; } .cv-rooms li:nth-child(2) .cv-line { animation-delay: 0.38s; }
    .cv-rooms li:nth-child(3) .cv-line { animation-delay: 0.51s; } .cv-rooms li:nth-child(4) .cv-line { animation-delay: 0.64s; }
    .cv-bracket { transform-origin: center; animation: draw-y 0.45s 0.95s ease-out both; }
    .cv-answer { animation: rise 0.5s 1.3s ease-out both; }
    .rooms-table.swap td[data-room] { animation: rise 0.35s ease-out both; }
  }
  @keyframes draw-x { from { transform: scaleX(0); } }
  @keyframes draw-y { from { transform: scaleY(0); } }
  @keyframes rise { from { opacity: 0; transform: translateY(0.35em); } }

  /* Who we work with: both sides of the table */
  .sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 3px solid var(--line-strong); }
  .side { padding: var(--space-4) 0 var(--space-7); }
  .side:first-child { padding-right: clamp(1.5rem, 1rem + 3vw, 4rem); border-right: 1px solid var(--line-strong); }
  .side:nth-child(2) { padding-left: clamp(1.5rem, 1rem + 3vw, 4rem); }
  .side-label { font-family: var(--font); font-size: var(--step--1); letter-spacing: 0.02em; }
  .sides-both { grid-column: 1 / -1; margin: 0; border-top: 1px solid var(--line-strong); text-align: center; }
  .sides-both span { display: inline-block; max-width: 36rem; padding: 0 1.25rem; background: var(--bg); font-style: italic; font-size: var(--step-0); line-height: 1.4; transform: translateY(-50%); }
  .situation { padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
  .situation:last-child { border-bottom: 0; }
  .situation h4 { font-size: var(--step-2); font-family: var(--font-display); letter-spacing: var(--tracking-head); }
  .situation .sub { color: var(--text-3); margin-top: var(--space-1); }
  .situation p + p { margin-top: var(--space-3); }
  @media (max-width: 47.99rem) {
    .sides { grid-template-columns: minmax(0, 1fr); }
    .side:first-child { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line-strong); }
    .side:nth-child(2) { padding-left: 0; }
  }

  /* Temporary comparison panel (removed once decided) */
  .temp { margin-top: var(--space-8); padding: var(--space-5); border: 1.5px dashed var(--text-3); }
  .temp-tag { font-size: var(--step--1); font-weight: 600; color: var(--text-3); cursor: pointer; }
  .temp[open] .temp-tag { margin-bottom: var(--space-5); }
  .temp-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
  .temp figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-4); }
  .temp figcaption { font-size: var(--step--1); color: var(--text-2); }
  .temp figcaption b { color: var(--text); display: block; }
  .swatches { display: grid; gap: var(--space-2); font-size: var(--step--1); }
  .swatches span { display: flex; align-items: center; gap: var(--space-3); }
  .swatches i { width: 2.2rem; height: 1.1rem; flex: none; }
  .sw-c { background: var(--cyan); } .sw-g { background: var(--builder-fill); } .sw-o { background: var(--backer-fill); }
  .mini-sides { display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--line-strong); font-size: var(--step--1); }
  .mini-sides p { padding: var(--space-3) var(--space-3) var(--space-4) 0; }
  .mini-sides p + p { border-left: 1px solid var(--line-strong); padding-left: var(--space-3); }
  .mini-sides b { display: block; margin-bottom: var(--space-2); }
  .mark-o { display: inline-block; width: 0.62em; height: 0.62em; border: 1.5px solid currentColor; margin-right: 0.5em; vertical-align: 0.02em; }
  .bands { width: 100%; max-width: 22rem; height: auto; }
  .bands text { font-family: var(--font); font-size: 13px; font-weight: 600; }
  .bands .crop { stroke: var(--text-3); stroke-width: 1; fill: none; }

  /* Why */
  .why-statement { font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5.4rem); max-width: 19ch; }
  .why-grid { display: grid; gap: var(--space-5) var(--space-6); grid-template-columns: minmax(0, 1fr); margin-top: var(--space-6); }
  @media (min-width: 56rem) { .why-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
  .why-body { max-width: 44rem; font-size: var(--step-1); line-height: 1.5; color: var(--text-2); }
  .margin-note { font-size: var(--step--1); color: var(--text-3); border-top: 1px solid var(--line); padding-top: var(--space-2); max-width: 16rem; align-self: start; }
  @media (min-width: 56rem) { .margin-note { order: -1; } }
  .falls-short { margin-top: clamp(3.5rem, 2.5rem + 3vw, 6rem); }
  .falls-short > h3 { font-size: var(--step--1); font-family: var(--font); letter-spacing: 0.02em; color: var(--text-3); margin-bottom: var(--space-2); }
  .same-q { font-size: var(--step-2); font-family: var(--font-display); margin-bottom: var(--space-6); }
  .same-q q { font-style: italic; }
  .falls-short .grid-3 { align-items: start; }
  .falls-short h4 { font-size: var(--step-1); line-height: 1.25; margin: var(--space-5) 0 var(--space-3); }
  .falls-short .grid-3 > div > p { color: var(--text-2); }

  /* Artefacts: small paper objects (container units scale them as one) */
  .artefact { container-type: inline-size; }
  .artefact > .paper { margin-inline: auto; }
  .paper { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.10); font-size: 3.4cqw; line-height: 1.4; padding: 5cqw 6cqw; display: flex; flex-direction: column; gap: 2.2cqw; }
  .paper.memo { width: 46cqw; aspect-ratio: 210 / 297; rotate: -1.6deg; font-size: 2.9cqw; padding: 4cqw 4.5cqw; gap: 1.8cqw; }
  .paper.slide { width: 88cqw; aspect-ratio: 16 / 9; rotate: 0.8deg; margin-top: 8cqw; }
  .paper.form { width: 74cqw; aspect-ratio: 4 / 3; rotate: -0.6deg; margin-top: 4cqw; }
  .paper .k { color: var(--ink-3); font-size: 2.8cqw; border-bottom: 1px solid var(--ink); padding-bottom: 1.4cqw; display: flex; justify-content: space-between; }
  .paper .t { font-weight: 600; }
  .paper .ln { height: 1.2cqw; background: var(--rule); }
  .paper .ln.s { width: 70%; }
  .paper .hl { background: linear-gradient(transparent 52%, rgba(220,154,30,.42) 52%); padding: 0 0.2em; }
  .paper.slide .big { font-family: var(--font-display); font-size: 9cqw; line-height: 1; }
  .paper .box { display: inline-block; width: 2.6cqw; height: 2.6cqw; border: 1px solid var(--ink); margin: 0 1cqw 0 2.4cqw; vertical-align: -0.3cqw; }
  .paper .box.x { background: linear-gradient(45deg, transparent 44%, var(--ink) 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--ink) 44% 56%, transparent 56%); }

  /* Room switcher */
  .rooms { margin-top: var(--space-7); }
  .rooms-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-bottom: var(--space-4); }
  .rooms-q { font-weight: var(--weight-strong); }
  .rooms-btns { display: none; flex-wrap: wrap; gap: var(--space-2); }
  .js .rooms-btns { display: flex; }
  .rooms-btns button { min-height: 2.5rem; padding: 0.35em 0.95em; background: transparent; border: 1.5px solid var(--line-strong); color: var(--text); cursor: pointer; }
  .rooms-btns button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
  .rooms-btns button:hover { border-color: var(--accent-text); }
  .rooms-note { margin-top: var(--space-4); color: var(--text-3); font-size: var(--step--1); }
  .table-scroll { overflow-x: auto; }
  table.house { width: 100%; border-collapse: collapse; font-size: var(--step--1); line-height: 1.4; }
  .house th, .house td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
  .house thead th { background: var(--tint); font-weight: var(--weight-strong); border-bottom: 0; }
  .house tbody th { font-weight: var(--weight-strong); width: 18%; }
  .rooms-table td[data-room] { font-style: italic; color: var(--text); }
  .house th.ref, .house td.ref { width: 1%; white-space: nowrap; font-size: 0.86em; color: var(--text-3); background: none; border-bottom-color: transparent; padding-left: var(--space-5); }
  .rooms-table .shows { border-left: 3px solid var(--accent); width: 32%; }
  .no-js-hint { margin-top: var(--space-2); }
  .js .no-js-hint { display: none; }
  .js .rooms-table[data-active="buyer"] [data-room]:not([data-room="buyer"]),
  .js .rooms-table[data-active="investor"] [data-room]:not([data-room="investor"]),
  .js .rooms-table[data-active="acquirer"] [data-room]:not([data-room="acquirer"]),
  .js .rooms-table[data-active="regulator"] [data-room]:not([data-room="regulator"]) { display: none; }
  .js .rooms-table td[data-room] { width: 50%; }
  @media (max-width: 40rem) {
    .js .rooms-table, .js .rooms-table tbody, .js .rooms-table tr, .js .rooms-table th, .js .rooms-table td { display: block; width: auto; }
    .js .rooms-table thead { display: none; }
    .js .rooms-table tr { border-bottom: 1px solid var(--line); padding-block: var(--space-3); }
    .js .rooms-table th, .js .rooms-table td { border: 0; padding: var(--space-1) 0; }
    .js .rooms-table .shows { border-left: 3px solid var(--accent); padding-left: var(--space-3); margin-top: var(--space-2); }
    .js .rooms-table td[data-room] { width: auto; }
    .js .rooms-table td[data-room]::before { content: attr(data-asks) ": "; font-style: normal; color: var(--text-3); }
    .js .rooms-table .shows::before { content: "You show: "; color: var(--text-3); }
  }

  /* Engagements: a gallery. Text on the left; the example document beside it changes as you scroll. */
  .gal-label { font-size: var(--step--1); font-family: var(--font); letter-spacing: 0.02em; color: var(--label); margin: clamp(3.5rem, 2.5rem + 3vw, 6rem) 0 var(--space-3); }
  .gallery { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-strong); }
  .eng { padding-block: var(--space-6); }
  .eng .kind { font-size: var(--step--1); }
  .eng h4 { font-family: var(--font-display); font-size: var(--step-3); letter-spacing: var(--tracking-head); margin-top: var(--space-2); }
  .eng .desc { color: var(--text-2); margin-top: var(--space-3); max-width: 34rem; }
  .eng h5 { margin: var(--space-5) 0 var(--space-2); font-size: var(--step--1); font-weight: var(--weight-strong); color: var(--text-3); }
  .eng ul { list-style: none; display: grid; gap: var(--space-1); max-width: 34rem; }
  .eng li { padding-left: 1.1em; position: relative; }
  .eng li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.5em; border-top: 1.5px solid var(--text-3); }
  .serves { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-5); font-size: var(--step--1); color: var(--text-3); }
  .serves > span:first-child { margin-right: var(--space-2); }
  .tag { border: 1px solid var(--line-strong); color: var(--text); padding: 0.1em 0.6em; }
  .eng-doc { margin: 0 0 var(--space-6); max-width: 16rem; border-bottom: 1px solid var(--line); padding-bottom: var(--space-6); }
  .eng-doc figcaption { margin-top: var(--space-3); }
  @media (min-width: 72rem) {
    .gallery { grid-template-columns: minmax(0, 1fr) 23rem; column-gap: var(--space-8); }
    .gallery > .eng { grid-column: 1; border-bottom: 1px solid var(--line); }
    .gallery > .eng-doc { grid-column: 2; max-width: none; border: 0; padding: var(--space-6) 0 0; }
    .eng[data-k="0"], .eng-doc[data-k="0"] { grid-row: 1; } .eng[data-k="1"], .eng-doc[data-k="1"] { grid-row: 2; }
    .eng[data-k="2"], .eng-doc[data-k="2"] { grid-row: 3; } .eng[data-k="3"], .eng-doc[data-k="3"] { grid-row: 4; }
  }
  @media screen and (min-width: 72rem) {
    .js .gallery > .eng { min-height: 74vh; padding-block: var(--space-7); transition: opacity 0.4s ease; }
    .js .gallery > .eng:not(.is-active) { opacity: 0.38; }
    .js .gallery > .eng-doc { grid-row: 1 / span 4; align-self: start; position: sticky; top: 6.5rem; opacity: 0; translate: 0 0.75rem; transition: opacity 0.3s ease, translate 0.3s ease; pointer-events: none; }
    .js .gallery[data-active="0"] > .eng-doc[data-k="0"], .js .gallery[data-active="1"] > .eng-doc[data-k="1"],
    .js .gallery[data-active="2"] > .eng-doc[data-k="2"], .js .gallery[data-active="3"] > .eng-doc[data-k="3"] { opacity: 1; translate: 0 0; pointer-events: auto; }
  }


  /* ---------------- d04 ---------------- */
  .exclusive { margin-top: var(--space-4); font-size: var(--step--1); color: var(--text-3); max-width: 30rem; }
  .hero h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.7rem); max-width: 19ch; }

  /* Options to compare (temporary) */
  .opt-block { margin-top: var(--space-6); }
  .opt-tag { display: inline-block; font-size: var(--step--1); color: var(--text-3); border: 1px dashed var(--text-3); padding: 0.15em 0.6em; margin-bottom: var(--space-5); }
  .js .opt-block[data-group="method"] { display: none; }
  .js[data-opt-method="a"] .opt-block[data-group="method"][data-v="a"] { display: block; }
  .js[data-opt-method="b"] .opt-block[data-group="method"][data-v="b"] { display: block; }
  .js[data-opt-method="c"] .opt-block[data-group="method"][data-v="c"] { display: block; }
  .js .opt-block[data-group="eng"] { display: none; }
  .js[data-opt-eng="a"] .opt-block[data-group="eng"][data-v="a"] { display: block; }
  .js[data-opt-eng="b"] .opt-block[data-group="eng"][data-v="b"] { display: block; }
  .js[data-opt-eng="c"] .opt-block[data-group="eng"][data-v="c"] { display: block; }
  .js .opt-block[data-group="founders"] { display: none; }
  .js[data-opt-founders="a"] .opt-block[data-group="founders"][data-v="a"] { display: block; }
  .js[data-opt-founders="b"] .opt-block[data-group="founders"][data-v="b"] { display: block; }
  .js[data-opt-founders="c"] .opt-block[data-group="founders"][data-v="c"] { display: block; }
  .optbar { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; background: var(--bg); border: 1.5px dashed var(--text-3); padding: 0.6rem 0.8rem; font-size: 0.8rem; display: grid; gap: 0.35rem; box-shadow: 0 4px 16px rgba(0,0,0,.14); }
  .optbar p { font-weight: 600; } .optbar p span { font-weight: 400; color: var(--text-3); }
  .optbar div { display: flex; align-items: center; gap: 0.3rem; }
  .optbar div span { width: 6.2rem; color: var(--text-2); }
  .optbar button { min-width: 2rem; min-height: 1.9rem; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
  .optbar button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
  @media (max-width: 40rem) {
    .optbar { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; grid-auto-flow: column; justify-content: space-between; padding: 0.4rem 0.5rem; }
    .optbar p { display: none; }
    .optbar div span { width: auto; margin-right: 0.15rem; font-size: 0; }
    .optbar div span::before { content: attr(data-l); font-size: 0.75rem; }
    .optbar button { min-width: 1.7rem; }
  }

  /* Tabs, shared by several options */
  .tablist { display: none; }
  .js .tablist { display: flex; flex-wrap: wrap; }
  .tabs [role="tab"] { font: inherit; background: none; border: 0; cursor: pointer; color: var(--text-3); text-align: left; }
  .tabs [role="tab"]:hover { color: var(--text); }
  .panels > [role="tabpanel"] + [role="tabpanel"] { margin-top: var(--space-7); }
  .js .panels > [role="tabpanel"] + [role="tabpanel"] { margin-top: 0; }
  .panels > [role="tabpanel"]:focus-visible { outline-offset: 6px; }
  @media (prefers-reduced-motion: no-preference) { .js .panels > [role="tabpanel"]:not([hidden]) { animation: rise 0.35s ease-out both; } }
  .tab-arrows { display: none; }
  .js .tab-arrows { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); font-size: var(--step--1); color: var(--text-3); font-variant-numeric: tabular-nums; }
  .tab-arrows button { width: 2.6rem; height: 2.6rem; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 1.1rem; color: var(--text); }
  .tab-arrows button:hover { background: var(--btn-bg); color: var(--btn-fg); }
  .tabs h5 { margin: var(--space-5) 0 var(--space-2); font-size: var(--step--1); font-weight: var(--weight-strong); color: var(--text-3); }
  .tabs .desc { color: var(--text-2); max-width: 36rem; }
  .leave { list-style: none; display: grid; gap: var(--space-1); max-width: 36rem; }
  .leave li { padding-left: 1.1em; position: relative; }
  .leave li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.5em; border-top: 1.5px solid var(--text-3); }
  .doc-cap { margin-top: var(--space-3); }
  .chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: var(--space-3); }
  .chips li { font-size: var(--step--1); background: var(--tint); padding: 0.15em 0.55em; line-height: 1.35; }

  /* Method */
  .method-block { margin-top: var(--space-7); }
  .method-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-2); max-width: 44rem; }
  /* A: track */
  .track { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--space-7) var(--space-5); padding-top: var(--space-3); }
  .track > li { position: relative; padding-top: var(--space-5); border-top: 3px solid var(--line); }
  .track > li::after { content: ""; position: absolute; left: 0; right: calc(-1 * var(--space-5)); top: -3px; height: 3px; background: var(--accent); transform-origin: left; }
  .track > li:last-child::after { right: 0; }
  .track .node { position: absolute; left: 0; top: -10px; width: 17px; height: 17px; background: var(--accent); border: 3px solid var(--accent); z-index: 1; }
  .track .n { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); line-height: 1; color: var(--accent-text); }
  .track h4 { font-family: var(--font-display); font-size: var(--step-2); margin-top: var(--space-2); }
  .track .d { color: var(--text-2); margin-top: var(--space-2); }
  .loop-note { margin-top: var(--space-5); font-size: var(--step--1); color: var(--text-3); }
  @media (prefers-reduced-motion: no-preference) {
    .js .track[data-reveal] > li::after { transform: scaleX(0); transition: transform 0.55s ease-out; }
    .js .track[data-reveal] .node { background: var(--bg); transition: background 0.3s ease; }
    .js .track > li:nth-child(2)::after, .js .track > li:nth-child(2) .node { transition-delay: 0.5s; }
    .js .track > li:nth-child(3)::after, .js .track > li:nth-child(3) .node { transition-delay: 1s; }
    .js .track > li:nth-child(4)::after, .js .track > li:nth-child(4) .node { transition-delay: 1.5s; }
    .js .track.in > li::after { transform: scaleX(1); }
    .js .track.in .node { background: var(--accent); }
  }
  /* B: stepper */
  .stepper .tablist { border-bottom: 1px solid var(--line-strong); margin-top: var(--space-4); }
  .stepper [role="tab"] { flex: 1 1 0; border-bottom: 4px solid transparent; margin-bottom: -1px; padding: var(--space-3) var(--space-2) var(--space-3) 0; font-family: var(--font-display); font-size: var(--step-2); }
  .stepper [role="tab"] .n { font-family: var(--font); font-size: var(--step--1); margin-right: 0.5em; vertical-align: 0.3em; }
  .stepper [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
  .step-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-top: var(--space-6); align-items: start; }
  @media (min-width: 48rem) { .step-panel { grid-template-columns: minmax(0, 1fr) 16rem; } }
  .step-panel .d { font-size: var(--step-1); color: var(--text); max-width: 34rem; }
  .vis { width: 100%; height: auto; }
  .vis rect { fill: var(--tint); }
  .vis .f { fill: var(--accent); } .vis .o { fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 3 3; } .vis .x { fill: var(--ochre); stroke: none; }
  .vis .a { fill: var(--accent); } .vis .b { fill: var(--ochre); } .vis .guide { stroke: var(--text-3); stroke-dasharray: 3 4; }
  .vis .lane { stroke: var(--line-strong); stroke-width: 1.5; } .vis .q { fill: var(--accent); }
  .vis text { font-family: var(--font); font-size: 12px; fill: var(--text-3); }
  .vis-build rect { fill: var(--tint); }
  @media (prefers-reduced-motion: no-preference) {
    .vis-fit .a { animation: slide-l 1.1s 0.2s ease-out both; } .vis-fit .b { animation: slide-r 1.1s 0.2s ease-out both; }
    .vis-build rect { animation: fillin 0.3s ease-out both; }
    .vis-build .d0 { animation-delay: 0.15s; }
    .vis-build .d1 { animation-delay: 0.22s; }
    .vis-build .d2 { animation-delay: 0.29s; }
    .vis-build .d3 { animation-delay: 0.36s; }
    .vis-build .d4 { animation-delay: 0.43s; }
    .vis-build .d5 { animation-delay: 0.50s; }
    .vis-build .d6 { animation-delay: 0.57s; }
    .vis-build .d7 { animation-delay: 0.64s; }
    .vis-build .d8 { animation-delay: 0.71s; }
    .vis-build .d9 { animation-delay: 0.78s; }
    .vis-build .d10 { animation-delay: 0.85s; }
    .vis-build .d11 { animation-delay: 0.92s; }
    .vis-build .d12 { animation-delay: 0.99s; }
    .vis-build .d13 { animation-delay: 1.06s; }
    .vis-build .d14 { animation-delay: 1.13s; }
    .vis-build .d15 { animation-delay: 1.20s; }
    .vis-sustain .q { animation: pulse 1.6s ease-in-out 2 both; } .vis-sustain .q1 { animation-delay: 0.4s; } .vis-sustain .q2 { animation-delay: 0.8s; } .vis-sustain .q3 { animation-delay: 1.2s; }
  }
  .vis-build rect { fill: var(--accent); }
  @keyframes slide-l { from { transform: translateX(-34px); } } @keyframes slide-r { from { transform: translateX(34px); } }
  @keyframes fillin { from { fill: var(--tint); } } @keyframes pulse { 50% { opacity: 0.25; } }
  /* C: loop */
  .loop { width: 100%; height: auto; margin: var(--space-5) 0 var(--space-3); max-width: 46rem; }
  .loop .lp { fill: none; stroke: var(--accent); stroke-width: 3; }
  .loop .dot { fill: var(--ochre); }
  .loop .st rect { fill: var(--bg); stroke: var(--text); stroke-width: 2; }
  .loop text { font-family: var(--font-display); font-size: 19px; fill: var(--text); text-anchor: middle; }
  @media (prefers-reduced-motion: reduce) { .loop .dot { display: none; } }
  .looptabs .tablist { gap: var(--space-2) var(--space-5); margin-top: var(--space-4); }
  .looptabs [role="tab"] { border-bottom: 3px solid transparent; padding: var(--space-1) 0; font-family: var(--font-display); font-size: var(--step-1); }
  .looptabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
  .loop-panel .d { font-size: var(--step-1); max-width: 40rem; }

  /* Engagements A: folio */
  .folio-tabs .tablist { border-top: 3px solid var(--line-strong); }
  .folio-tabs [role="tab"] { flex: 1 1 12rem; display: grid; gap: 0.25rem; padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .folio-tabs [role="tab"] .kind { font-size: 0.8rem; }
  .folio-tabs [role="tab"] .nm { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.15; color: var(--text-2); }
  .folio-tabs [role="tab"][aria-selected="true"] { border-bottom: 3px solid var(--accent); }
  .folio-tabs [role="tab"][aria-selected="true"] .nm { color: var(--text); }
  .folio { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-top: var(--space-6); align-items: start; }
  @media (min-width: 56rem) { .folio { grid-template-columns: minmax(0, 1fr) 17rem; gap: var(--space-8); } }
  .folio-text .desc { font-size: var(--step-1); color: var(--text); }
  .folio-doc, .index-doc { margin: 0; max-width: 17rem; }
  /* B: index */
  @media (min-width: 64rem) { .index-tabs { display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: var(--space-7); align-items: start; } }
  .index-tabs .tablist { flex-direction: column; flex-wrap: nowrap; border-top: 3px solid var(--line-strong); margin-bottom: var(--space-5); }
  .index-tabs [role="tab"] { display: grid; gap: 0.2rem; padding: var(--space-4) 2rem var(--space-4) 0; border-bottom: 1px solid var(--line); position: relative; }
  .index-tabs [role="tab"] .kind { font-size: 0.8rem; }
  .index-tabs [role="tab"] .nm { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; color: var(--text-3); transition: color 0.2s; }
  .index-tabs [role="tab"][aria-selected="true"] .nm { color: var(--text); }
  .index-tabs [role="tab"][aria-selected="true"]::after { content: "→"; position: absolute; right: 0.3rem; top: 50%; translate: 0 -50%; color: var(--accent-text); font-size: var(--step-1); }
  .index-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  @media (min-width: 48rem) { .index-panel { grid-template-columns: minmax(0, 1fr) 15rem; } }
  /* C: stack of papers */
  .stack-tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5) var(--space-7); align-items: start; }
  @media (min-width: 56rem) { .stack-tabs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .stack-tabs > .tablist { grid-column: 1 / -1; } .stack-tabs > .tab-arrows { grid-column: 2; } }
  .stack-tabs .tablist { gap: 0.3rem; border-bottom: 1px solid var(--line-strong); }
  .stack-tabs [role="tab"] { padding: 0.5em 1em; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); font-size: var(--step--1); color: var(--text-2); }
  .stack-tabs [role="tab"][aria-selected="true"] { color: var(--text); box-shadow: inset 0 3px 0 var(--accent); font-weight: 600; }
  .stack { position: relative; aspect-ratio: 1 / 1.08; max-width: 34rem; }
  .sheet { position: absolute; top: 4%; left: 16%; width: 60%; cursor: pointer; transition: transform 0.5s cubic-bezier(.3,.7,.3,1); }
  .sheet[data-k="0"] { transform: translate(-22%, 3%) rotate(-6deg); z-index: 1; }
  .sheet[data-k="1"] { transform: translate(-8%, 0) rotate(-2deg); z-index: 2; }
  .sheet[data-k="2"] { transform: translate(8%, 4%) rotate(2.5deg); z-index: 3; }
  .sheet[data-k="3"] { transform: translate(22%, 8%) rotate(6deg); z-index: 4; }
  .stack-tabs[data-active="0"] .sheet[data-k="0"],
  .stack-tabs[data-active="1"] .sheet[data-k="1"],
  .stack-tabs[data-active="2"] .sheet[data-k="2"],
  .stack-tabs[data-active="3"] .sheet[data-k="3"] { transform: translate(0, -2%) rotate(0deg) scale(1.03); z-index: 10; }
  .stack-text .desc { font-size: var(--step-1); color: var(--text); }
  .stack-text h4 { font-family: var(--font-display); font-size: var(--step-3); margin: var(--space-2) 0 var(--space-3); }
  .stack-text .kind { font-size: var(--step--1); }

  /* Founders */
  .creds { list-style: none; margin-top: var(--space-4); border-top: 1px solid var(--line-strong); max-width: 30rem; }
  .creds li { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); color: var(--text-2); }
  .pos { font-style: italic; font-size: var(--step-1); line-height: 1.4; color: var(--text); margin-top: var(--space-3); max-width: 30rem; }
  .fa { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--space-8) var(--space-8); }
  .fa-person img { width: 100%; max-width: 21rem; aspect-ratio: 1; object-fit: cover; background: var(--portrait-bg); margin-bottom: var(--space-5); }
  .fa-person h3, .fc-bios h3, .fb-id h3 { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: var(--tracking-head); }
  .fa-person .role, .fb .role, .fc-bios .role { color: var(--text-3); font-size: var(--step--1); margin-top: var(--space-1); }
  .fa-person .li, .fb .li, .fc-bios .li { display: inline-block; margin-top: var(--space-3); font-size: var(--step--1); }
  .fb-id { display: flex; gap: var(--space-4); align-items: center; margin-bottom: var(--space-2); }
  .fb-id img { width: 6.5rem; aspect-ratio: 1; object-fit: cover; background: var(--portrait-bg); flex: none; }
  .fc { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  @media (min-width: 64rem) { .fc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
  .matrix { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
  .matrix thead th { vertical-align: bottom; padding: 0 0 var(--space-3); font-weight: 600; width: 6.5rem; }
  .matrix thead img { width: 4.5rem; aspect-ratio: 1; object-fit: cover; margin: 0 auto 0.4rem; background: var(--portrait-bg); }
  .matrix th[scope="row"] { text-align: left; font-weight: 400; padding: 0.6rem 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
  .matrix td { text-align: center; border-bottom: 1px solid var(--line); }
  .sq { display: inline-block; width: 0.9rem; height: 0.9rem; background: var(--accent); }
  .fc-bios { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

  .qa-title { font-family: var(--font-display); font-size: var(--step-3); letter-spacing: var(--tracking-head); line-height: 1.1; max-width: 12ch; }


  /* ---------------- d05 ---------------- */
  .section { padding-block: clamp(3rem, 1.8rem + 4.5vw, 6rem); }
  .section-head { margin-bottom: clamp(1.75rem, 1.3rem + 1.6vw, 3rem); }
  .method-block { margin-top: var(--space-6); }
  .rooms { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
  .gal-label { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
  .why-body { margin-top: var(--space-6); }
  .falls-short { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
  .js .rooms-table:not([data-active="regulator"]) .ref { display: none; }
  .js .opt-block[data-group="hero"] { display: none; }
  .js[data-opt-hero="a"] .opt-block[data-group="hero"][data-v="a"] { display: block; }
  .js[data-opt-hero="b"] .opt-block[data-group="hero"][data-v="b"] { display: block; }
  .js[data-opt-hero="c"] .opt-block[data-group="hero"][data-v="c"] { display: block; }
  .js[data-opt-order="b"] main { display: flex; flex-direction: column; }
  .js[data-opt-order="b"] main > .hero { order: 0; }
  .js[data-opt-order="b"] main > #why { order: 1; }
  .js[data-opt-order="b"] main > #what { order: 2; }
  .js[data-opt-order="b"] main > #who { order: 3; }
  .js[data-opt-order="b"] main > #how { order: 4; }
  .js[data-opt-order="b"] main > #founders { order: 5; }
  .js[data-opt-order="b"] main > #questions { order: 6; }
  .js[data-opt-order="b"] main > .closing { order: 7; }
  .js[data-opt-order="b"] .site-nav li[data-n="1"] { order: 1; }
  .js[data-opt-order="b"] .site-nav li[data-n="2"] { order: 2; }
  .js[data-opt-order="b"] .site-nav li[data-n="3"] { order: 3; }
  .js[data-opt-order="b"] .site-nav li[data-n="4"] { order: 4; }
  .js[data-opt-order="b"] .site-nav li[data-n="5"] { order: 5; }
  .hero-vis .opt-block { margin-top: 0; }
  .hero-vis .opt-tag { margin-bottom: var(--space-4); }

  /* Hero A: rooms in rotation */
  .cv-live .cv-q { display: grid; }
  .cv-live .cv-q q { grid-area: 1 / 1; display: block; }
  .cv-live .cv-q q:not(:first-child), .cv-live .cv-area:not(:first-child) { visibility: hidden; }
  .cv-live .cv-areas { display: grid; }
  .cv-live .cv-area { grid-area: 1 / 1; display: block; }
  .cv-live .cv-area b { display: block; font-size: 0.85em; color: var(--accent-text); }
  .cv-live .cv-answer small { display: block; font-weight: 400; color: var(--text-3); font-size: 0.8em; margin-bottom: 0.2rem; }
  .cv-live .cv-line { position: relative; }
  .cv-live .cv-line::after { content: ""; position: absolute; top: -3px; left: 0; width: 5px; height: 5px; background: var(--accent); opacity: 0; }
  @media (prefers-reduced-motion: no-preference) {
    .cv-live .cv-q q, .cv-live .cv-area { visibility: visible !important; opacity: 0; animation: cyc 16s ease-in-out infinite both; }
    .cv-live .cv-q q:nth-child(2), .cv-live .cv-area:nth-child(2) { animation-delay: 4s; }
    .cv-live .cv-q q:nth-child(3), .cv-live .cv-area:nth-child(3) { animation-delay: 8s; }
    .cv-live .cv-q q:nth-child(4), .cv-live .cv-area:nth-child(4) { animation-delay: 12s; }
    .cv-live .cv-line::after { animation: travel 4s ease-in 1.4s infinite; }
    .cv-live li:nth-child(2) .cv-line::after { animation-delay: 1.6s; } .cv-live li:nth-child(3) .cv-line::after { animation-delay: 1.8s; } .cv-live li:nth-child(4) .cv-line::after { animation-delay: 2s; }
  }
  @keyframes cyc { 0% { opacity: 0; transform: translateY(0.3em); } 4% { opacity: 1; transform: none; } 22% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; } }
  @keyframes travel { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 55% { left: calc(100% - 5px); opacity: 1; } 65%, 100% { left: calc(100% - 5px); opacity: 0; } }

  /* Hero B: assembled AI */
  .cloud-fig { margin: 0; }
  .cloud { display: block; width: 100%; height: clamp(16rem, 12rem + 12vw, 24rem); cursor: pointer; color: var(--text); }
  .cloud-fig figcaption { margin-top: var(--space-2); }

  /* Hero C: papers on the desk */
  .papers-fig { margin: 0; }
  .cp-stage { position: relative; height: clamp(17rem, 13rem + 10vw, 23rem); max-width: 30rem; margin-inline: auto; --w: clamp(8.5rem, 6.5rem + 5vw, 11.5rem); }
  .cp { position: absolute; left: 50%; top: 45%; width: var(--w); aspect-ratio: 210 / 297; translate: -50% -50%; background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.10), 0 6px 18px rgba(0,0,0,.10); padding: 0.8rem 0.9rem; display: flex; flex-direction: column; gap: 0.42rem; font-size: 0.7rem; line-height: 1.3; transform: translate(var(--ax), var(--ay)) rotate(var(--ar)); }
  .cp .k { color: var(--cyan-text); font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 0.3rem; }
  .cp .t { font-weight: 600; }
  .cp i { display: block; height: 0.32rem; background: var(--rule); } .cp i.s { width: 62%; }
  .cp0 { --x: -52%; --y: -20%; --r: -9deg; --ax: -6px; --ay: -6px; --ar: -1.2deg; }
  .cp1 { --x: 50%; --y: -24%; --r: 7deg; --ax: -2px; --ay: -2px; --ar: 0.6deg; }
  .cp2 { --x: -48%; --y: 22%; --r: 6deg; --ax: 2px; --ay: 2px; --ar: -0.6deg; }
  .cp3 { --x: 52%; --y: 20%; --r: -6deg; --ax: 6px; --ay: 6px; --ar: 1deg; }
  .cp-one { position: absolute; left: 50%; bottom: 0; translate: -50% 0; margin: 0; padding: 0.35rem 0.8rem; background: var(--tint); border-left: 3px solid var(--accent); font-weight: 600; font-size: var(--step--1); white-space: nowrap; }
  @media (prefers-reduced-motion: no-preference) {
    .cp { animation: gather 12s ease-in-out infinite both; }
    .cp1 { animation-delay: 0.15s; } .cp2 { animation-delay: 0.3s; } .cp3 { animation-delay: 0.45s; }
    .cp-one { animation: label 12s ease-in-out infinite both; }
  }
  @keyframes gather { 0%, 10% { transform: translate(var(--x), var(--y)) rotate(var(--r)); } 38%, 74% { transform: translate(var(--ax), var(--ay)) rotate(var(--ar)); } 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
  @keyframes label { 0%, 36% { opacity: 0; } 42%, 70% { opacity: 1; } 76%, 100% { opacity: 0; } }

  /* Method B, Map: a scan reveals what exists and where the gaps are */
  .vis-map .scan { fill: var(--accent); opacity: 0; }
  @media (prefers-reduced-motion: no-preference) {
    .vis-map rect:not(.scan) { animation: appear 0.35s ease-out both; }
    .vis-map .c0 { animation-delay: 0.3s; } .vis-map .c1 { animation-delay: 0.65s; } .vis-map .c2 { animation-delay: 1s; } .vis-map .c3 { animation-delay: 1.35s; }
    .vis-map rect.x { animation: appear 0.35s ease-out 1s both, pulse 1.2s ease-in-out 1.9s 2; }
    .vis-map .scan { animation: scanx 1.6s ease-in-out both; }
  }
  @keyframes appear { from { opacity: 0; } }
  @keyframes scanx { 0% { transform: translateX(0); opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(146px); opacity: 0; } }


  /* ---------------- d06 ---------------- */
  .cv-q { flex: 1 1 0; min-width: 0; }
  .cv-line { flex: 0 0 1.75rem; }
  .falls-short > .fs-title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; letter-spacing: var(--tracking-head); line-height: 1.2; color: var(--text); margin-bottom: var(--space-6); max-width: 46ch; text-wrap: balance; }
  .fs-title .u-cyan { white-space: nowrap; }
  .u-cyan { background: linear-gradient(var(--accent), var(--accent)) no-repeat left 96% / 100% 0.12em; padding-bottom: 0.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .creds a { color: inherit; text-decoration-color: var(--line-strong); }
  .creds a:hover { color: var(--link); }
  @media (max-width: 40rem) { .wbr { display: none; } }
  /* d06 rev 28 Oct: hero bracket only; review comments on the papers */
  .cv-bracket { align-self: stretch; margin: 0.3em 0 0.3em 0.75rem; border: 1px solid var(--line-strong); border-left: 0; }
  .cv-answer { margin-left: 0.75rem; }
  @media (prefers-reduced-motion: no-preference) {
    .cv-bracket { animation: draw-y 0.45s 0.3s ease-out both; }
    .cv-answer { animation: rise 0.5s 0.7s ease-out both; }
  }
  @media (max-width: 40rem) { .fs-title .u-cyan { white-space: normal; } .cv-answer { margin-left: 0; } }
  .paper { position: relative; }
  .paper .cm { position: absolute; z-index: 1; white-space: nowrap; font-family: var(--font); font-style: italic; font-weight: 400; font-size: 3.6cqw; line-height: 1.2; color: var(--ink); background: #F7E6C6; border-left: 0.8cqw solid var(--ochre); padding: 1.5cqw 2.4cqw; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.10); }
  .paper.memo .cm { left: 88%; top: 40%; rotate: 1.6deg; }
  .paper.slide .cm { right: -3cqw; bottom: -4.5cqw; rotate: -0.8deg; }
  .paper.form .cm { right: -6cqw; bottom: -4.5cqw; rotate: 0.6deg; }
  @media print { .paper .cm { box-shadow: none; } }
  /* ---------------- subpages: fit check, imprint, privacy, this site, 404 ---------------- */
  .page { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3.5rem, 2rem + 5vw, 7rem); }
  .page-head { display: grid; gap: var(--space-4); max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
  .page-head h1 { font-size: var(--step-4); max-width: 18ch; }
  .meta { font-size: var(--step--1); color: var(--text-3); }
  .prose { max-width: 44rem; }
  .prose h2 { font-size: var(--step-2); margin: var(--space-7) 0 var(--space-3); }
  .prose > h2:first-child { margin-top: 0; }
  .prose p, .prose address { margin: 0 0 var(--space-3); }
  .prose address { font-style: normal; }
  .prose p, .prose address { color: var(--text-2); } .prose b { color: var(--text); }
  .prose code { font-family: inherit; font-style: italic; }
  .prose:lang(de) { hyphens: auto; }
  .prose-split { margin-top: var(--space-8); padding-top: var(--space-7); border-top: 1px solid var(--line); }
  .prose-split .h-de { font-size: var(--step-3); margin: 0 0 var(--space-2); }
  .imprint-grid { display: grid; gap: var(--space-5) var(--space-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-block: var(--space-6); }
  .imprint-grid address { color: var(--text); margin-bottom: var(--space-2); }
  .links-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
  .fc-grid { display: grid; gap: var(--space-7) var(--space-8); grid-template-columns: minmax(0, 1fr); align-items: start; }
  @media (min-width: 60rem) { .fc-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
  .fc-form { display: grid; gap: var(--space-5); max-width: 40rem; position: relative; }
  .field { display: grid; gap: var(--space-2); margin: 0; padding: 0; border: 0; min-width: 0; }
  .field > label, .field > legend { font-weight: var(--weight-strong); padding: 0; }
  .field .opt { font-weight: 400; color: var(--text-3); font-size: var(--step--1); }
  .field .hint { font-size: var(--step--1); color: var(--text-3); margin-top: calc(-1 * var(--space-1)); }
  .field-row { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
  .fc-form input[type="text"], .fc-form input[type="email"], .fc-form textarea, .fc-form select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--text-3); border-radius: 0; padding: 0.6em 0.75em; width: 100%; min-height: 2.75rem; }
  .fc-form textarea { min-height: 9.5rem; resize: vertical; line-height: 1.5; }
  .fc-form input::placeholder { color: var(--text-3); opacity: 0.8; }
  .fc-form input:focus-visible, .fc-form textarea:focus-visible, .fc-form select:focus-visible { outline: var(--focus); outline-offset: 0; }
  .choices { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); padding-top: var(--space-1); }
  .choices label { display: inline-flex; align-items: center; gap: 0.5em; min-height: 2.25rem; cursor: pointer; }
  .choices input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--accent-text); }
  .fc-send { display: grid; gap: var(--space-3); justify-items: start; margin-top: var(--space-2); }
  .fc-send .btn[disabled] { opacity: 0.65; cursor: progress; }
  .fc-note { font-size: var(--step--1); color: var(--text-3); max-width: 38rem; }
  .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
  .fc-aside { background: var(--tint); padding: var(--space-6) var(--space-5); display: grid; gap: var(--space-4); }
  .fc-aside h2 { font-size: var(--step-1); }
  .next-steps { list-style: none; counter-reset: s; display: grid; gap: var(--space-4); }
  .next-steps li { counter-increment: s; position: relative; padding-left: 1.6rem; color: var(--text-2); }
  .next-steps li::before { content: counter(s); position: absolute; left: 0; font-weight: var(--weight-strong); color: var(--accent-text); }
  .next-steps b { color: var(--text); }
  .sent-copy h2 { font-size: var(--step-2); margin-bottom: var(--space-4); }
  .sent-copy dl { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: var(--space-3) var(--space-5); margin: 0 0 var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }
  .sent-copy dt { color: var(--text-3); font-size: var(--step--1); padding-top: 0.15em; }
  .sent-copy dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
  @media (max-width: 40rem) { .sent-copy dl { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); } .sent-copy dd { margin-bottom: var(--space-3); } }
  .site-footer a[aria-current="page"] { color: var(--text); text-decoration: none; }
  @media print { .fc-form, .fc-aside { display: none; } .sent-copy dl { border-color: #999; } }

  /* Example deliverable (oxblood, paper object) */
  .example { margin: 0; max-width: 22rem; }
  .doc-frame { container-type: inline-size; }
  @media (min-width: 40rem) and (max-width: 71.99rem) { .example { max-width: none; display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: var(--space-5); align-items: end; } .example figcaption { margin: 0; } }
  @media (min-width: 72rem) { .example { position: sticky; top: 6rem; margin-top: 2.6rem; } }
  .doc { container-type: inline-size; aspect-ratio: 210 / 297; background: var(--bg); color: var(--text); padding: 7cqw 7.5cqw; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.10); display: flex; flex-direction: column; font-size: 3.6cqw; line-height: 1.35; }
  .doc-head { display: flex; justify-content: space-between; align-items: end; padding-bottom: 2.4cqw; border-bottom: 1px solid var(--line-strong); color: var(--text-3); font-size: 3.2cqw; }
  .doc .wm { height: 4.6cqw; }
  .doc-kicker { margin-top: 9cqw; color: var(--accent-text); font-weight: 600; font-size: 3.4cqw; }
  .doc h4 { font-family: var(--font-display); font-size: 8.4cqw; letter-spacing: -0.01em; margin-top: 1.5cqw; }
  .doc-lede { margin-top: 3cqw; color: var(--text-2); }
  .doc table { width: 100%; border-collapse: collapse; margin-top: 6cqw; font-size: 3.2cqw; }
  .doc th, .doc td { text-align: left; padding: 1.7cqw 1.8cqw; border-bottom: 1px solid var(--line); vertical-align: top; }
  .doc thead th { background: var(--tint); border-bottom: 0; }
  .doc .flag td:first-child { box-shadow: inset 0.9cqw 0 0 var(--accent); }
  .doc .flag b { color: var(--accent-text); }
  .doc-bars { margin-top: 7cqw; display: grid; gap: 1.8cqw; font-size: 3cqw; color: var(--text-3); }
  .doc-bars div { display: grid; grid-template-columns: 26cqw 1fr; align-items: center; gap: 2cqw; }
  .doc-bars i { height: 2.2cqw; background: var(--tint); position: relative; }
  .doc-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent); }
  .w1 { --w: 30%; } .w2 { --w: 55%; } .w3 { --w: 70%; } .w4 { --w: 40%; }
  .doc .check { list-style: none; margin-top: 6cqw; display: grid; gap: 2.2cqw; font-size: 3.3cqw; }
  .doc .check li { display: flex; gap: 2.4cqw; align-items: flex-start; padding: 0 0 2cqw; border-bottom: 1px solid var(--line); }
  .doc .check li::before { content: none; }
  .doc .cb { flex: none; width: 3.4cqw; height: 3.4cqw; border: 1px solid var(--ink); margin-top: 0.5cqw; display: grid; place-items: center; font-size: 2.6cqw; line-height: 1; color: var(--white); }
  .doc .cb.on { background: var(--accent); border-color: var(--accent); }
  .doc .cb.on::after { content: "✓"; }
  .doc-sub { margin-top: 6cqw; color: var(--text-3); font-size: 3cqw; }
  .cadence { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1.2cqw; margin-top: 2cqw; }
  .cadence i { height: 3cqw; background: var(--tint); } .cadence i.on { background: var(--accent); }
  .verdict { margin-top: 6cqw; border-top: 1px solid var(--line-strong); }
  .verdict div { display: grid; grid-template-columns: 30cqw 1fr; align-items: baseline; padding: 2.4cqw 0; border-bottom: 1px solid var(--line); color: var(--text-3); }
  .verdict b { font-family: var(--font-display); font-weight: 600; font-size: 5.2cqw; color: var(--text); }
  .doc .heat td { height: 5.4cqw; text-align: center; border: 1px solid var(--white); padding: 0 1cqw; }
  .doc .heat td:first-child { text-align: left; border: 0; border-bottom: 1px solid var(--line); }
  .doc .heat th { font-size: 2.6cqw; text-align: center; }
  .hm1 { background: var(--rose-tint); } .hm2 { background: var(--rose); } .hm3 { background: var(--oxblood); color: var(--white); }
  .doc .legend { margin-top: 3cqw; font-size: 2.8cqw; color: var(--text-3); display: flex; align-items: center; gap: 1.4cqw; }
  .doc .acts { margin-top: 2cqw; } .doc .acts b { flex: none; width: 4cqw; color: var(--accent-text); }
  .doc .legend i { width: 3cqw; height: 3cqw; display: inline-block; margin-left: 2cqw; }
  .doc-foot { margin-top: auto; display: flex; justify-content: space-between; color: var(--text-3); font-size: 2.9cqw; padding-top: 2cqw; border-top: 1px solid var(--line); }
  .example figcaption { margin-top: var(--space-4); max-width: 22rem; }

  /* How we work */
  .principles { margin-bottom: clamp(3.5rem, 2.5rem + 3vw, 6rem); }
  .principles p { padding-top: var(--space-4); border-top: 1px solid var(--line-strong); color: var(--text-2); }
  .principles b { color: var(--text); display: block; font-size: var(--step-1); line-height: 1.3; margin-bottom: var(--space-2); }
  .method-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-7); max-width: 44rem; }
  .method-head h3 { font-size: var(--step-2); }
  .method-head p { color: var(--text-2); }
  .method { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); row-gap: var(--space-8); }
  .method > li { position: relative; border-top: 1px solid var(--line-strong); padding: var(--space-7) var(--space-5) 0 0; display: grid; gap: var(--space-3); align-content: start; }
  .step-n { position: absolute; top: 0; left: 0; translate: 0 -55%; background: var(--bg); padding-right: 0.35em; font-family: var(--font-display); font-weight: 600; font-size: var(--step-4); line-height: 1; }
  .method h4 { font-family: var(--font-display); font-size: var(--step-2); }
  .method p { color: var(--text-2); }
  .method h5 { margin: var(--space-2) 0 0; font-size: var(--step--1); color: var(--text-3); font-weight: var(--weight-strong); }
  .method ul { list-style: none; font-size: var(--step--1); display: grid; gap: var(--space-1); }

  /* Founders */
  .founders-statement { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.15; letter-spacing: var(--tracking-head); max-width: 30ch; margin-bottom: var(--space-8); }
  .founders-intro { max-width: 46rem; font-size: var(--step-1); line-height: 1.5; color: var(--text-2); margin-bottom: var(--space-7); }
  .founders { display: grid; gap: var(--space-7) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
  .founder { display: grid; grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
  @media (max-width: 30rem) { .founder { grid-template-columns: minmax(0, 1fr); } .founder img { max-width: 12rem; } }
  .founder img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--portrait-bg); }
  .founder h3 { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: var(--tracking-head); }
  .founder .role { color: var(--text-3); font-size: var(--step--1); margin-top: var(--space-1); }
  .founder .bio { margin-top: var(--space-3); color: var(--text-2); }
  .founder .li { display: inline-block; margin-top: var(--space-3); font-size: var(--step--1); }

  /* Questions and answers: collapsible, native */
  .qa-grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 56rem) { .qa-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
  .qa-intro { font-size: var(--step-1); line-height: 1.45; max-width: 26rem; }
  .qa details { border-top: 1px solid var(--line); }
  .qa details:last-child { border-bottom: 1px solid var(--line); }
  .qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-5); padding-block: var(--space-4); font-weight: var(--weight-strong); font-size: var(--step-1); line-height: 1.3; }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary::after { content: "+"; flex: none; font-weight: 400; font-size: var(--step-2); line-height: 0.8; color: var(--text-3); }
  .qa details[open] summary::after { content: "–"; }
  .qa summary:hover { color: var(--accent-text); }
  .qa-a { padding-bottom: var(--space-5); color: var(--text-2); max-width: 44rem; }

  /* Closing */
  .closing { padding-block: clamp(4rem, 2.5rem + 6vw, 8rem); border-top: 1px solid var(--line-strong); }
  .closing h2 { font-size: var(--step-4); max-width: 16ch; }
  .closing p { margin-top: var(--space-5); font-size: var(--step-1); color: var(--text-2); max-width: 36rem; }
  .closing .btn { margin-top: var(--space-6); }

  /* Footer: a short colophon */
  .site-footer { border-top: 1px solid var(--line); padding-block: var(--space-7) var(--space-6); font-size: var(--step--1); color: var(--text-3); }
  .foot-grid { display: grid; gap: var(--space-5) var(--space-6); grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 56rem) { .foot-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; align-items: start; } }
  .site-footer .wm { height: 1.25rem; }
  .sign p { margin-top: var(--space-3); color: var(--text-2); }
  .foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
  .foot-links a { color: var(--text-2); }
  .evidence { max-width: 30rem; }
  .evidence a { color: var(--text-2); }
}

@layer utilities {
  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  .flush { margin-bottom: 0; }
  .tight { margin-bottom: var(--space-5); }
  .lede-ink { color: var(--text); }
  .place { margin-top: var(--space-3); }
  .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  [hidden] { display: none !important; }
}

/* Print: every page as a clean A4 brief, always in the light edition (W6) */
@page { size: A4; margin: 16mm 16mm 18mm; }
@media print {
  html { font-size: 10pt; scroll-padding-top: 0; }
  body { background: #fff; }
  .site-header { position: static; background: none; border-bottom: 1px solid var(--ink); }
  .section-head, .who-head { break-inside: avoid; }
  .eyebrow, .method-head { break-after: avoid; }
  .site-nav, .menu-btn, .skip, .header-inner > .btn, [data-theme-toggle], .rooms-btns, .rooms-note, .no-js-hint { display: none !important; }
  .section, .hero, .closing { padding-block: 8mm; }
  .hero-grid { grid-template-columns: 1fr; gap: 8mm; }
  .converge { max-width: 130mm; }
  .btn { background: none !important; color: var(--ink) !important; padding: 0; min-height: 0; font-weight: 600; }
  .btn[data-print]::after { content: " – " attr(data-print); font-weight: 400; color: var(--ink-3); }
  .founder .li::after { content: " (" attr(href) ")"; color: var(--ink-3); }
  .rooms-table [data-room] { display: table-cell !important; }
  .situation, .method > li, .qa details, .founder, .falls-short .grid-3 > div, .doc, .eng { break-inside: avoid; }
  .temp, .mode, .optbar, .cloud-fig, .opt-tag, .tablist, .tab-arrows { display: none !important; }
  [role="tabpanel"][hidden] { display: block !important; }
  .eng-doc { max-width: 55mm; break-inside: avoid; }
  .eng { break-inside: avoid; }
  .paper { box-shadow: none; border: 1px solid var(--rule); }
  .engagements { grid-template-columns: 1fr; }
  .example { position: static; margin-top: 0; }
  .doc { box-shadow: none; border: 1px solid var(--rule); max-width: 62mm; }
  h2, h3, h4 { break-after: avoid; }
  .evidence { display: none; }
  .site-footer::after { content: "Printed from aiffect.eu"; display: block; margin-top: 4mm; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
