:root {
      --accent: #007c7a;
      --accent-soft: rgba(0, 124, 122, 0.08);
      --bg: #ffffff;
      --paper: #f6f6f4;
      --ink: #0a0a0a;
      --ink-soft: rgba(10, 10, 10, 0.62);
      --ink-mute: rgba(10, 10, 10, 0.38);
      --line: rgba(10, 10, 10, 0.08);
      --line-strong: rgba(10, 10, 10, 0.14);

      --font-sans: "Inter Tight", system-ui, -apple-system, sans-serif;
      --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

      --ease: cubic-bezier(0.22, 1, 0.36, 1);
      --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

      --container-pad: clamp(24px, 6vw, 96px);
    }

    [data-theme="dark"] {
      --bg: #0a0a0a;
      --paper: #141414;
      --ink: #ffffff;
      --ink-soft: rgba(255, 255, 255, 0.62);
      --ink-mute: rgba(255, 255, 255, 0.38);
      --line: rgba(255, 255, 255, 0.08);
      --line-strong: rgba(255, 255, 255, 0.14);
      --accent-soft: rgba(0, 124, 122, 0.14);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
    body {
      font-family: var(--font-sans);
      font-weight: 400;
      font-size: 18px;
      line-height: 1.55;
      color: var(--ink);
      background: var(--bg);
      overflow-x: hidden;
      transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
    }
    img { display: block; max-width: 100%; height: auto; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

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

    ::selection { background: var(--accent); color: #fff; }

    .progress {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 2px;
      background: transparent;
      z-index: 100;
      pointer-events: none;
    }
    .progress__bar {
      height: 100%; width: 0%;
      background: var(--accent);
      transition: width 0.05s linear;
    }

    .nav {
      position: fixed; top: 0; left: 0; right: 0;
      display: flex; align-items: center; justify-content: space-between;
      padding: 20px var(--container-pad);
      z-index: 50;
      background: color-mix(in srgb, var(--bg) 80%, transparent);
      backdrop-filter: blur(20px) saturate(140%);
      -webkit-backdrop-filter: blur(20px) saturate(140%);
      border-bottom: 1px solid transparent;
      transition: border-color 0.3s var(--ease), padding 0.3s var(--ease);
    }
    .nav.scrolled { border-bottom-color: var(--line); padding-top: 14px; padding-bottom: 14px; }

    .nav__brand {
      font-family: var(--font-mono);
      font-size: 13px; font-weight: 500;
      letter-spacing: 0.04em;
      color: var(--ink);
      display: inline-flex; align-items: center; gap: 10px;
    }
    .nav__dot {
      display: inline-block; width: 8px; height: 8px; border-radius: 50%;
      background: var(--accent);
      animation: pulse 2.4s var(--ease) infinite;
    }
    @keyframes pulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.4); opacity: 0.55; }
    }

    .nav__meta { display: flex; align-items: center; gap: 24px; }
    .nav__meta a, .nav__meta button {
      font-family: var(--font-mono);
      font-size: 12px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--ink-soft);
      transition: color 0.2s var(--ease);
    }
    .nav__meta a:hover, .nav__meta button:hover { color: var(--ink); }
    .nav__meta .desktop-only { display: inline; }
    @media (max-width: 640px) {
      .nav__meta .desktop-only { display: none; }
      .nav__meta { gap: 16px; }
    }

    section, header { position: relative; }

    .hero {
      min-height: 100svh;
      padding: clamp(120px, 18vh, 200px) var(--container-pad) clamp(60px, 10vh, 120px);
      display: flex; flex-direction: column; justify-content: center;
      position: relative;
    }
    .hero::before {
      content: "";
      position: absolute; inset: 0;
      background:
        radial-gradient(circle at 78% 22%, var(--accent-soft), transparent 55%),
        radial-gradient(circle at 12% 88%, var(--accent-soft), transparent 60%);
      pointer-events: none;
      z-index: -1;
    }

    .hero__label {
      display: flex; align-items: center; gap: 14px;
      font-family: var(--font-mono);
      font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--ink-mute);
      margin-bottom: clamp(40px, 6vh, 72px);
      opacity: 0; transform: translateY(8px);
      animation: fadeUp 1s var(--ease-out) 0.2s forwards;
    }
    .hero__label::before {
      content: ""; width: 32px; height: 1px; background: var(--ink-mute);
    }

    .hero__logo {
      width: clamp(260px, 36vw, 460px);
      opacity: 0; transform: translateY(20px);
      animation: fadeUp 1.2s var(--ease-out) 0.35s forwards;
    }
    [data-theme="dark"] .hero__logo { filter: invert(1) hue-rotate(180deg) brightness(1.05); }

    .hero__statement {
      margin-top: clamp(48px, 8vh, 96px);
      font-size: clamp(40px, 6.5vw, 88px);
      line-height: 1.02;
      letter-spacing: -0.035em;
      font-weight: 500;
      max-width: 16ch;
      color: var(--ink);
    }
    .hero__statement .word {
      display: inline-block;
      opacity: 0; transform: translateY(40px);
      animation: fadeUp 0.9s var(--ease-out) forwards;
    }
    .hero__statement .word:nth-child(1) { animation-delay: 0.65s; }
    .hero__statement .word:nth-child(2) { animation-delay: 0.78s; }
    .hero__statement .word:nth-child(3) { animation-delay: 0.91s; }
    .hero__statement .accent { color: var(--accent); font-style: italic; font-weight: 400; }

    .hero__cue {
      position: absolute;
      left: var(--container-pad);
      bottom: clamp(32px, 6vh, 60px);
      display: flex; align-items: center; gap: 14px;
      font-family: var(--font-mono);
      font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--ink-mute);
      opacity: 0;
      animation: fadeUp 1s var(--ease-out) 1.4s forwards;
    }
    .hero__cue::after {
      content: ""; width: 1px; height: 28px; background: currentColor;
      animation: scrollLine 1.8s var(--ease) infinite;
    }
    @keyframes scrollLine {
      0% { transform: scaleY(0); transform-origin: top; }
      50% { transform: scaleY(1); transform-origin: top; }
      50.01% { transform: scaleY(1); transform-origin: bottom; }
      100% { transform: scaleY(0); transform-origin: bottom; }
    }

    @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

    .manifesto {
      height: 320vh;
      position: relative;
      background: var(--bg);
    }
    .manifesto__pin {
      position: sticky;
      top: 0;
      height: 100vh;
      display: flex; align-items: center;
      padding: 0 var(--container-pad);
      overflow: hidden;
    }
    .manifesto__index {
      position: absolute;
      top: clamp(100px, 14vh, 160px);
      left: var(--container-pad);
      font-family: var(--font-mono);
      font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
      font-weight: 500;
      color: var(--ink-mute);
      display: flex; align-items: center; gap: 14px;
    }
    .manifesto__index::after {
      content: ""; width: 64px; height: 1px; background: var(--line-strong);
    }
    .manifesto__text {
      max-width: 22ch;
      font-size: clamp(34px, 5.4vw, 80px);
      line-height: 1.08;
      letter-spacing: -0.03em;
      font-weight: 500;
    }
    .manifesto__text .word {
      display: inline-block;
      opacity: 0.12;
      transition: opacity 0.4s var(--ease);
      will-change: opacity;
    }
    .manifesto__text .word.lit { opacity: 1; }
    .manifesto__text .accent { color: var(--accent); }
    .manifesto__caption {
      position: absolute;
      right: var(--container-pad);
      bottom: clamp(80px, 12vh, 140px);
      max-width: 28ch;
      font-size: 14px;
      line-height: 1.55;
      color: var(--ink-soft);
      font-family: var(--font-mono);
    }
    @media (max-width: 900px) {
      .manifesto { height: 280vh; }
      .manifesto__caption { display: none; }
    }

    .chapter {
      padding: clamp(120px, 18vh, 200px) var(--container-pad);
      border-top: 1px solid var(--line);
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: clamp(40px, 6vw, 96px);
      align-items: start;
    }
    @media (max-width: 900px) {
      .chapter { grid-template-columns: 1fr; gap: 32px; }
    }

    .chapter__meta {
      position: sticky;
      top: 100px;
      display: flex; flex-direction: column; gap: 16px;
      font-family: var(--font-mono);
    }
    @media (max-width: 900px) { .chapter__meta { position: static; } }

    .chapter__number {
      font-size: 12px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--ink-mute);
      display: flex; align-items: center; gap: 14px;
    }
    .chapter__number::after {
      content: ""; width: 32px; height: 1px; background: var(--line-strong);
    }
    .chapter__kicker {
      font-size: 13px;
      letter-spacing: 0.04em;
      color: var(--ink-soft);
      max-width: 16ch;
    }

    .chapter__body h2 {
      font-size: clamp(32px, 4.4vw, 64px);
      line-height: 1.08;
      letter-spacing: -0.028em;
      font-weight: 500;
      margin-bottom: clamp(28px, 4vh, 48px);
      max-width: 18ch;
    }
    .chapter__body h2 .word {
      display: inline-block;
      opacity: 0; transform: translateY(24px);
      transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    }
    .chapter.in-view .chapter__body h2 .word { opacity: 1; transform: translateY(0); }

    .chapter__body p {
      font-size: clamp(17px, 1.4vw, 20px);
      line-height: 1.6;
      color: var(--ink-soft);
      max-width: 56ch;
      margin-bottom: 1.2em;
      opacity: 0; transform: translateY(20px);
      transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    }
    .chapter.in-view .chapter__body p { opacity: 1; transform: translateY(0); }
    .chapter.in-view .chapter__body p:nth-of-type(1) { transition-delay: 0.15s; }
    .chapter.in-view .chapter__body p:nth-of-type(2) { transition-delay: 0.25s; }
    .chapter.in-view .chapter__body p:nth-of-type(3) { transition-delay: 0.35s; }

    .chapter__body p strong { color: var(--ink); font-weight: 600; }

    .callout {
      padding: clamp(140px, 22vh, 240px) var(--container-pad);
      background: var(--paper);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      transition: background-color 0.4s var(--ease);
    }
    .callout__inner { max-width: 1200px; margin: 0 auto; }
    .callout__label {
      font-family: var(--font-mono);
      font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--ink-mute);
      margin-bottom: 32px;
      display: flex; align-items: center; gap: 14px;
    }
    .callout__label::before {
      content: ""; width: 32px; height: 1px; background: var(--ink-mute);
    }
    .callout__quote {
      font-size: clamp(34px, 5vw, 72px);
      line-height: 1.1;
      letter-spacing: -0.03em;
      font-weight: 500;
      max-width: 22ch;
    }
    .callout__quote em {
      font-family: var(--font-sans);
      font-style: italic; font-weight: 400;
      color: var(--accent);
    }
    .callout__quote .word {
      display: inline-block;
      opacity: 0; transform: translateY(28px);
      transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    }
    .callout.in-view .callout__quote .word { opacity: 1; transform: translateY(0); }

    .contact {
      padding: clamp(120px, 20vh, 220px) var(--container-pad) clamp(80px, 14vh, 160px);
      border-top: 1px solid var(--line);
    }
    .contact__index {
      font-family: var(--font-mono);
      font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
      font-weight: 500;
      color: var(--ink-mute);
      margin-bottom: clamp(40px, 6vh, 72px);
      display: flex; align-items: center; gap: 14px;
    }
    .contact__index::before {
      content: ""; width: 32px; height: 1px; background: var(--ink-mute);
    }
    .contact__lead {
      font-size: clamp(32px, 4.4vw, 64px);
      line-height: 1.08;
      letter-spacing: -0.028em;
      font-weight: 500;
      max-width: 18ch;
      margin-bottom: clamp(56px, 8vh, 96px);
    }
    .contact__lead em { font-style: italic; font-weight: 400; color: var(--accent); }

    .contact__links { display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 16px); font-style: normal; }
    .contact__link {
      display: inline-flex; align-items: baseline; gap: 16px;
      font-size: clamp(28px, 3.6vw, 48px);
      line-height: 1.1;
      letter-spacing: -0.025em;
      font-weight: 500;
      color: var(--ink);
      width: max-content;
      max-width: 100%;
      position: relative;
      transition: color 0.3s var(--ease), transform 0.3s var(--ease-out);
      will-change: transform;
    }
    .contact__link::before {
      content: "→";
      display: inline-block;
      font-size: 0.7em;
      color: var(--ink-mute);
      transform: translateX(-8px);
      opacity: 0;
      transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease), color 0.3s var(--ease);
    }
    .contact__link:hover { color: var(--accent); }
    .contact__link:hover::before { transform: translateX(0); opacity: 1; color: var(--accent); }

    .contact__name {
      margin-top: clamp(56px, 8vh, 88px);
      padding-top: clamp(32px, 5vh, 48px);
      border-top: 1px solid var(--line);
      display: flex; justify-content: space-between; align-items: flex-end;
      gap: 24px; flex-wrap: wrap;
    }
    .contact__name strong { font-size: 18px; font-weight: 500; }
    .contact__name span {
      font-family: var(--font-mono);
      font-size: 12px; letter-spacing: 0.06em;
      color: var(--ink-mute);
    }

    .footer {
      padding: 40px var(--container-pad);
      border-top: 1px solid var(--line);
      display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ink-mute);
    }

    .scroll-top {
      position: fixed;
      right: 24px;
      bottom: 24px;
      width: 48px; height: 48px;
      border-radius: 50%;
      border: 1px solid var(--line-strong);
      background: var(--bg);
      color: var(--ink);
      font-size: 16px;
      display: grid; place-items: center;
      z-index: 60;
      opacity: 0; pointer-events: none;
      transform: translateY(8px);
      transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
    }
    .scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .scroll-top:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

    .cookie {
      position: fixed;
      left: 24px;
      bottom: 24px;
      right: 24px;
      max-width: 380px;
      padding: 18px 20px;
      background: var(--bg);
      border: 1px solid var(--line-strong);
      border-radius: 14px;
      font-size: 13px;
      line-height: 1.55;
      color: var(--ink-soft);
      box-shadow: 0 12px 40px rgba(0,0,0,0.06);
      z-index: 90;
      display: none;
    }
    .cookie.visible { display: block; animation: fadeUp 0.5s var(--ease-out); }
    .cookie button {
      margin-top: 12px;
      font-family: var(--font-mono);
      font-size: 12px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--accent);
    }
    .cookie button:hover { text-decoration: underline; }

    @media (max-width: 640px) {
      .scroll-top { right: 16px; bottom: 16px; }
      .cookie { left: 16px; right: 16px; bottom: 16px; max-width: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
      .manifesto { height: auto; }
      .manifesto__pin { position: relative; height: auto; padding: 120px var(--container-pad); }
      .manifesto__text .word { opacity: 1; }
    }
