/* ==========================================================================
   Osmium — Design A v2: Kino / Immersion (Obsidian & Amber, Zero Teal)
   Cutting-Edge CSS with Progressive Enhancement & Clean Fallbacks:
   - Cross-Document & Same-Document View Transitions (@view-transition)
   - Registered Custom Properties (@property)
   - CSS Nesting & Cascade Layers (@layer)
   - Scroll-Driven Animations (animation-timeline: scroll() / view())
   - Container Queries (@container) & :has() State Architecture
   - Popover API ([popover], @starting-style) + CSS Anchor Positioning
   - WCAG AA/AAA Contrast on Obsidian (#0E1416 / #070A0B) & Amber (#FFB020)
   ========================================================================== */

@view-transition {
  navigation: auto;
}

@property --beam-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@property --card-glow {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

@property --ring-scale {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

@property --scroll-depth {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@layer reset, fonts, tokens, base, layout, cinema, components, popovers, dialogs, utilities;

/* --------------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    color-scheme: dark;
  }

  body {
    margin: 0;
    min-height: 100dvh;
    overflow-x: clip;
  }

  img, picture, svg, canvas {
    display: block;
    max-width: 100%;
  }

  img {
    height: auto;
  }

  button, input {
    font: inherit;
    color: inherit;
  }

  h1, h2, h3, h4, p, ul, ol, figure, blockquote {
    margin: 0;
  }

  ul, ol {
    padding: 0;
    list-style: none;
  }

  a {
    color: inherit;
  }
}

/* --------------------------------------------------------------------------
   2. Self-Hosted Fonts (Sora & Inter, SIL OFL 1.1 — no external CDNs)
   -------------------------------------------------------------------------- */
@layer fonts {
  @font-face {
    font-family: "Sora";
    src: url("../assets/fonts/Sora-var.woff2") format("woff2");
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: "Inter";
    src: url("../assets/fonts/Inter-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
  }
}

/* --------------------------------------------------------------------------
   3. Design Tokens (Runde 2 Palette — Zero Teal, Obsidian + Amber + Silver)
   -------------------------------------------------------------------------- */
@layer tokens {
  :root {
    /* Core Palette */
    --brand-amber: #FFB020;
    --brand-amber-bright: #FFC857;
    --brand-amber-deep: #E08E00;
    --brand-black: #0E1416;
    --brand-deep: #070A0B;
    --brand-white: #FFFFFF;

    /* Derived Atmospheric Obsidian Surfaces */
    --bg-canvas: #070A0B;
    --bg-surface: rgba(14, 20, 22, 0.80);
    --bg-surface-strong: rgba(11, 15, 17, 0.92);
    --bg-surface-elevated: rgba(20, 26, 29, 0.86);
    --bg-glass-hover: rgba(26, 33, 37, 0.92);

    /* Text Contrast Tokens (WCAG AA/AAA verified on #0E1416 / #070A0B) */
    --ink-primary: #FFFFFF;
    --ink-secondary: #C9D6DC;
    --ink-muted: #7F949D;
    --ink-on-amber: #0E1416;

    /* Hairlines & Atmospheric Glows */
    --line-subtle: rgba(201, 214, 220, 0.12);
    --line-strong: rgba(201, 214, 220, 0.26);
    --line-amber: rgba(255, 176, 32, 0.44);
    --line-amber-soft: rgba(255, 176, 32, 0.22);
    --glow-amber: rgba(255, 176, 32, 0.16);
    --glow-white: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-display: "Sora", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    /* Fluid Type Scale */
    --step--1: clamp(0.8125rem, 0.78rem + 0.16vw, 0.875rem);
    --step-0: clamp(0.9688rem, 0.93rem + 0.18vw, 1.0625rem);
    --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
    --step-2: clamp(1.375rem, 1.2rem + 0.85vw, 1.875rem);
    --step-3: clamp(1.875rem, 1.45rem + 1.8vw, 3rem);
    --step-hero: clamp(2.25rem, 1.4rem + 3.4vw, 4.35rem);

    /* Layout & Radii */
    --container-max: 76rem;
    --gutter: clamp(1rem, 3.2vw, 2.5rem);
    --section-space: clamp(5rem, 10vw, 9.5rem);
    --radius-sm: 0.625rem;
    --radius-md: 1.125rem;
    --radius-lg: 1.625rem;
    --radius-pill: 999px;

    /* Motion */
    --ease-cinema: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 180ms;
    --dur-mid: 420ms;
    --dur-slow: 820ms;

    /* Interactive Cinema State (JS fallback when scroll-timeline absent) */
    --scroll-p: 0;
    --header-h: 4.5rem;
  }
}

/* --------------------------------------------------------------------------
   4. Base Typography & Accessibility
   -------------------------------------------------------------------------- */
@layer base {
  body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--ink-secondary);
    background-color: var(--bg-canvas);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--brand-white);
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  p {
    text-wrap: pretty;
  }

  ::selection {
    background: rgba(255, 176, 32, 0.34);
    color: var(--brand-white);
  }

  :focus-visible {
    outline: 2px solid var(--brand-amber);
    outline-offset: 3px;
    border-radius: 4px;
  }

  .skip-link {
    position: fixed;
    top: -100%;
    left: 1rem;
    z-index: 250;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-pill);
    background: var(--brand-amber);
    color: var(--ink-on-amber);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);

    &:focus {
      top: 1rem;
    }
  }

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

/* --------------------------------------------------------------------------
   5. Cinema Atmospheric Backdrop, WebGPU/WebGL Stage & Scroll-Driven Motion
   -------------------------------------------------------------------------- */
@layer cinema {
  .cinema-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at 50% 22%, #191815 0%, #0E1416 48%, #070A0B 100%);
    view-transition-name: cinema-stage;
  }

  .cinema-backdrop {
    position: absolute;
    inset: -6%;
    background-image: url("../assets/img/A-placeholder.webp");
    background-size: cover;
    background-position: center 32%;
    transform: scale(calc(1.04 + var(--scroll-p) * 0.14)) translate3d(0, calc(var(--scroll-p) * -4%), 0);
    transform-origin: center 40%;
    will-change: transform;

    & picture {
      width: 100%;
      height: 100%;
    }
  }

  .cinema-backdrop__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
    opacity: 0.50;
    filter: saturate(0.45) contrast(1.12) brightness(0.72) sepia(0.10);
  }

  /* Warm Obsidian + Amber horizon vignette (zero teal, strong contrast) */
  .cinema-vignette {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(62% 46% at 50% 16%, rgba(255, 176, 32, 0.10) 0%, transparent 72%),
      radial-gradient(48% 42% at 20% 78%, rgba(255, 176, 32, 0.06) 0%, transparent 74%),
      radial-gradient(50% 40% at 82% 42%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
      linear-gradient(
        180deg,
        rgba(7, 10, 11, 0.62) 0%,
        rgba(14, 20, 22, 0.74) 26%,
        rgba(11, 16, 18, 0.85) 56%,
        rgba(7, 10, 11, 0.95) 100%
      );
  }

  .cinema-grain {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: radial-gradient(rgba(255, 255, 255, 0.85) 0.5px, transparent 0.5px);
    background-size: 4px 4px;
    mix-blend-mode: overlay;
  }

  #cinema-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.96;
  }

  /* Scroll progress hairline */
  .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 130;
    background: rgba(201, 214, 220, 0.08);
    pointer-events: none;
  }

  .scroll-progress__bar {
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(var(--scroll-p));
    background: linear-gradient(90deg, var(--brand-amber-deep) 0%, var(--brand-amber) 65%, var(--brand-white) 100%);
  }

  /* Native CSS Scroll-Driven Animations (compositor-thread where supported) */
  @supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
      html:not([data-motion="reduced"]) {
        & .scroll-progress__bar {
          animation: cinema-progress linear both;
          animation-timeline: scroll(root block);
        }

        & .cinema-backdrop {
          animation: cinema-dolly linear both;
          animation-timeline: scroll(root block);
        }
      }

      @keyframes cinema-progress {
        from { transform: scaleX(0); }
        to { transform: scaleX(1); }
      }

      @keyframes cinema-dolly {
        from { transform: scale(1.04) translate3d(0, 0%, 0); }
        to { transform: scale(1.18) translate3d(0, -4.5%, 0); }
      }
    }
  }

  /* Scroll-driven viewport reveals & subtle image parallax */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      html:not([data-motion="reduced"]) {
        & .cinema-reveal {
          animation: cinema-emerge linear both;
          animation-timeline: view();
          animation-range: entry 4% cover 24%;
        }

        & .campaign-card__media img {
          animation: cinema-still-pan linear both;
          animation-timeline: view();
          animation-range: entry 0% exit 100%;
        }

        & .hero__aperture {
          animation: aperture-exit linear both;
          animation-timeline: view();
          animation-range: exit -10% exit 95%;
        }
      }

      @keyframes cinema-emerge {
        from {
          opacity: 0.3;
          transform: translateY(24px) scale(0.985);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      @keyframes cinema-still-pan {
        from { transform: scale(1.08) translateY(-3%); }
        to { transform: scale(1.08) translateY(3%); }
      }

      @keyframes aperture-exit {
        from { transform: scale(1); opacity: 1; }
        to { transform: scale(1.22); opacity: 0.25; }
      }
    }
  }

  /* Cross-Document & Same-Document View Transitions */
  @supports (view-transition-name: none) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
      animation-duration: 280ms;
      animation-timing-function: var(--ease-cinema);
    }

    ::view-transition-old(reel-viewport),
    ::view-transition-new(reel-viewport) {
      animation-duration: 320ms;
      animation-timing-function: var(--ease-cinema);
    }
  }
}

/* --------------------------------------------------------------------------
   6. Page Layout, Sticky Header, Chapter Rail & :has() Shell States
   -------------------------------------------------------------------------- */
@layer layout {
  .site-shell {
    position: relative;
    z-index: 1;
    transition: filter var(--dur-mid) var(--ease-cinema);
  }

  /* Subtle background focus-pull when any native modal <dialog> is open */
  body:has(dialog.cinema-dialog[open]) .site-shell {
    filter: blur(3px) brightness(0.75);
  }

  .container {
    width: min(var(--container-max), 100% - 2 * var(--gutter));
    margin-inline: auto;
  }

  .section {
    position: relative;
    padding-block: var(--section-space);
    scroll-margin-top: calc(var(--header-h) + 1rem);

    & + .section::before {
      content: "";
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: min(var(--container-max), 100% - 2 * var(--gutter));
      height: 1px;
      background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(201, 214, 220, 0.16) 28%,
        rgba(255, 176, 32, 0.28) 50%,
        rgba(201, 214, 220, 0.16) 72%,
        transparent 100%
      );
    }
  }

  /* Sticky Obsidian Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(7, 10, 11, 0.76);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    border-bottom: 1px solid var(--line-subtle);
    view-transition-name: site-header;
    transition: background var(--dur-mid) var(--ease-cinema), border-color var(--dur-mid) var(--ease-cinema);

    &:has(.ctrl-btn[aria-pressed="true"]) {
      border-bottom-color: rgba(255, 176, 32, 0.24);
    }
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding-block: 0.7rem;
  }

  .brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
    min-height: 44px;
    view-transition-name: site-brand;
  }

  .brand-link__wordmark {
    height: 2rem;
    width: auto;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;

    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      min-height: 44px;
      padding: 0.4rem 0.68rem;
      font-size: var(--step--1);
      font-weight: 500;
      color: var(--ink-secondary);
      text-decoration: none;
      border-radius: var(--radius-pill);
      transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);

      &:hover,
      &[aria-current="true"] {
        color: var(--brand-white);
        background: rgba(255, 255, 255, 0.08);
      }

      &.site-nav__game {
        color: var(--brand-amber);
        border: 1px solid rgba(255, 176, 32, 0.28);
        background: rgba(255, 176, 32, 0.07);
        padding-inline: 0.8rem;

        &:hover,
        &[aria-current="page"] {
          background: var(--brand-amber);
          color: var(--ink-on-amber);
          border-color: var(--brand-amber);
        }
      }
    }
  }

  .header-controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    min-width: 40px;
    padding: 0.35rem 0.72rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-subtle);
    background: rgba(14, 20, 22, 0.78);
    color: var(--ink-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);

    &:hover {
      border-color: var(--line-amber);
      color: var(--brand-white);
      background: rgba(24, 30, 33, 0.94);
    }

    &[aria-pressed="true"] {
      border-color: var(--brand-amber);
      color: var(--brand-amber);
      background: rgba(255, 176, 32, 0.13);

      & .ctrl-btn__dot {
        opacity: 1;
        box-shadow: 0 0 10px var(--brand-amber);
      }
    }
  }

  .ctrl-btn__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.65;
  }

  /* Language segmented control */
  .lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-subtle);
    background: rgba(14, 20, 22, 0.78);
  }

  .lang-switch__btn {
    min-width: 36px;
    min-height: 34px;
    padding: 0.25rem 0.6rem;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background var(--dur-fast), color var(--dur-fast);

    &:hover {
      color: var(--brand-white);
    }

    &[aria-pressed="true"] {
      background: var(--brand-amber);
      color: var(--ink-on-amber);
    }
  }

  /* Cinema Chapter Rail (Desktop right HUD) */
  .chapter-rail {
    position: fixed;
    right: clamp(0.75rem, 1.8vw, 1.75rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.65rem 0.45rem;
    border-radius: var(--radius-pill);
    background: rgba(7, 10, 11, 0.72);
    border: 1px solid var(--line-subtle);
    backdrop-filter: blur(12px);

    @media (min-width: 1240px) {
      display: flex;
    }

    & a {
      position: relative;
      display: grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      font-family: var(--font-mono);
      font-size: 0.68rem;
      font-weight: 600;
      color: var(--ink-muted);
      text-decoration: none;
      transition: color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);

      &:hover,
      &[aria-current="true"] {
        color: var(--ink-on-amber);
        background: var(--brand-amber);
        transform: scale(1.08);
      }

      &::before {
        content: attr(data-label);
        position: absolute;
        right: calc(100% + 0.75rem);
        white-space: nowrap;
        padding: 0.25rem 0.65rem;
        border-radius: var(--radius-pill);
        background: rgba(7, 10, 11, 0.94);
        border: 1px solid var(--line-subtle);
        color: var(--brand-white);
        font-family: var(--font-body);
        font-size: 0.75rem;
        opacity: 0;
        pointer-events: none;
        transform: translateX(6px);
        transition: opacity var(--dur-fast), transform var(--dur-fast);
      }

      &:hover::before,
      &:focus-visible::before {
        opacity: 1;
        transform: translateX(0);
      }
    }
  }

  @media (max-width: 1020px) {
    .site-nav {
      display: none;
    }
  }
}

/* --------------------------------------------------------------------------
   7. Section Components
   -------------------------------------------------------------------------- */
@layer components {
  .section-head {
    max-width: 48rem;
    margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
  }

  .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-amber);
    background: rgba(255, 176, 32, 0.09);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-amber);
  }

  .section-eyebrow--silver {
    border-color: var(--line-strong);
    background: rgba(201, 214, 220, 0.08);
    color: var(--ink-secondary);
  }

  .section-title {
    font-size: var(--step-3);
    margin-bottom: 1rem;
  }

  .section-lead {
    font-size: var(--step-1);
    color: var(--ink-secondary);
    max-width: 42rem;
  }

  /* Glass Obsidian Card with @property animated pointer spotlight */
  .glass-card {
    --card-glow: 0%;
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-subtle);
    background:
      radial-gradient(500px circle at var(--card-x, 50%) var(--card-y, 0%), rgba(255, 176, 32, 0.10) var(--card-glow), transparent 58%),
      linear-gradient(160deg, rgba(16, 22, 24, 0.86) 0%, rgba(8, 11, 12, 0.93) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
      0 22px 60px rgba(0, 0, 0, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition:
      border-color var(--dur-mid) var(--ease-cinema),
      transform var(--dur-mid) var(--ease-cinema),
      --card-glow var(--dur-mid) var(--ease-cinema);

    &:hover {
      --card-glow: 18%;
      border-color: rgba(255, 176, 32, 0.36);
    }
  }

  .glass-card--amber {
    background:
      radial-gradient(520px circle at var(--card-x, 50%) var(--card-y, 0%), rgba(255, 176, 32, 0.14) var(--card-glow), transparent 58%),
      linear-gradient(160deg, rgba(22, 22, 20, 0.86) 0%, rgba(10, 12, 13, 0.94) 100%);
    border-color: rgba(255, 176, 32, 0.28);

    &:hover {
      border-color: rgba(255, 176, 32, 0.54);
    }
  }

  /* Buttons — WCAG AAA dark #0E1416 ink on Amber #FFB020 */
  .btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.78rem 1.45rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-cinema), box-shadow var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);

    &:hover {
      transform: translateY(-2px);
    }

    &:active {
      transform: translateY(0);
    }
  }

  .btn--primary {
    background: linear-gradient(135deg, var(--brand-amber-bright) 0%, var(--brand-amber) 52%, var(--brand-amber-deep) 100%);
    color: var(--ink-on-amber);
    box-shadow: 0 10px 30px rgba(255, 176, 32, 0.24);

    &:hover {
      box-shadow: 0 14px 38px rgba(255, 176, 32, 0.38);
    }
  }

  .btn--ghost {
    background: rgba(14, 20, 22, 0.78);
    border-color: var(--line-strong);
    color: var(--brand-white);
    backdrop-filter: blur(12px);

    &:hover {
      border-color: var(--brand-amber);
      background: rgba(24, 30, 33, 0.92);
    }
  }

  /* ========================================================================
     SECTION 1: HERO (07D Aperture with @property Conic Amber Beam)
     ======================================================================== */
  .hero {
    min-height: calc(100dvh - var(--header-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
  }

  .hero__stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    text-align: center;
    justify-items: center;
  }

  .hero__aperture {
    position: relative;
    width: clamp(6.25rem, 11vw, 8.75rem);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    --beam-angle: 0deg;
    --ring-scale: 1;

    &::before,
    &::after {
      content: "";
      position: absolute;
      inset: -18%;
      border-radius: 50%;
      pointer-events: none;
    }

    &::before {
      background:
        conic-gradient(
          from var(--beam-angle),
          rgba(255, 176, 32, 0.32) 0deg,
          transparent 95deg,
          rgba(255, 255, 255, 0.14) 180deg,
          transparent 265deg,
          rgba(255, 176, 32, 0.32) 360deg
        );
      filter: blur(14px);
      transform: scale(var(--ring-scale));
      animation: aperture-orbit 14s linear infinite, aperture-breathe 6.5s ease-in-out infinite;
    }

    &::after {
      inset: -8%;
      border: 1px solid rgba(255, 176, 32, 0.34);
      box-shadow: 0 0 42px rgba(255, 176, 32, 0.16);
    }
  }

  @keyframes aperture-orbit {
    from { --beam-angle: 0deg; }
    to { --beam-angle: 360deg; }
  }

  @keyframes aperture-breathe {
    0%, 100% { --ring-scale: 0.96; opacity: 0.78; }
    50% { --ring-scale: 1.07; opacity: 1; }
  }

  .hero__logo-tile {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 15%;
    border-radius: 26%;
    background: linear-gradient(180deg, var(--brand-black) 0%, var(--brand-deep) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.75),
      -10px 10px 36px rgba(255, 176, 32, 0.16),
      10px -10px 36px rgba(255, 255, 255, 0.06);

    & img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  .hero__copy {
    max-width: 56rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-amber);
    background: rgba(14, 20, 22, 0.80);
    backdrop-filter: blur(12px);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--brand-amber);

    &::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--brand-amber);
      box-shadow: 0 0 12px var(--brand-amber);
    }
  }

  .hero__title {
    font-size: var(--step-hero);
    font-weight: 700;
    letter-spacing: -0.032em;
    line-height: 1.06;
    text-shadow: 0 12px 44px rgba(0, 0, 0, 0.7);
  }

  .hero__lead {
    font-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.375rem);
    color: var(--ink-secondary);
    max-width: 42rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.72);
  }

  .hero__whisper {
    font-size: 0.95rem;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
    font-style: italic;
  }

  .hero__meta-line {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.2rem;
    font-size: var(--step--1);
    color: var(--ink-muted);
    margin-top: 0.25rem;

    & span {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;

      &::before {
        content: "";
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--brand-amber);
      }
    }
  }

  /* 3 Official Value Cards */
  .value-grid {
    margin-top: clamp(3rem, 6vw, 4.75rem);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;

    @media (max-width: 880px) {
      grid-template-columns: 1fr;
    }
  }

  .value-card {
    padding: clamp(1.35rem, 2.4vw, 1.85rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
  }

  .value-card__index {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: var(--brand-amber);
  }

  .value-card__title {
    font-size: 1.15rem;
    line-height: 1.28;
  }

  .value-card__text {
    font-size: 0.94rem;
    color: var(--ink-secondary);
  }

  /* ========================================================================
     SECTION 2: FUNKTIONEN — Pure CSS :has() Cinema Reel + Container Queries
     ======================================================================== */
  .reel-shell {
    display: grid;
    grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: start;

    @media (max-width: 980px) {
      grid-template-columns: 1fr;
    }
  }

  .reel-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .reel-chapters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .reel-tab {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-subtle);
    background: rgba(14, 20, 22, 0.72);
    cursor: pointer;
    transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);

    &:hover {
      border-color: var(--line-amber);
      background: rgba(22, 28, 31, 0.88);
    }
  }

  .reel-tab__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .reel-tab__num {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
  }

  .reel-tab__tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 0.16rem 0.55rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 176, 32, 0.34);
    color: var(--brand-amber);
    background: rgba(255, 176, 32, 0.08);
  }

  .reel-tab__title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--brand-white);
  }

  .reel-tab__desc {
    font-size: 0.89rem;
    color: var(--ink-secondary);
    line-height: 1.55;
  }

  /* Pure CSS :has() active tab styling & keyboard focus rings */
  .reel-shell:has(#reel-voice:checked) label[for="reel-voice"],
  .reel-shell:has(#reel-chat:checked) label[for="reel-chat"],
  .reel-shell:has(#reel-groups:checked) label[for="reel-groups"],
  .reel-shell:has(#reel-audio:checked) label[for="reel-audio"],
  .reel-shell:has(#reel-keys:checked) label[for="reel-keys"] {
    border-color: var(--brand-amber);
    background: linear-gradient(135deg, rgba(255, 176, 32, 0.13) 0%, rgba(14, 20, 22, 0.92) 68%);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), inset 3px 0 0 var(--brand-amber);
  }

  .reel-shell:has(#reel-voice:focus-visible) label[for="reel-voice"],
  .reel-shell:has(#reel-chat:focus-visible) label[for="reel-chat"],
  .reel-shell:has(#reel-groups:focus-visible) label[for="reel-groups"],
  .reel-shell:has(#reel-audio:focus-visible) label[for="reel-audio"],
  .reel-shell:has(#reel-keys:focus-visible) label[for="reel-keys"] {
    outline: 2px solid var(--brand-amber);
    outline-offset: 3px;
  }

  .reel-viewport-card {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    padding: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    container: reel / inline-size;
  }

  .reel-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line-subtle);
  }

  .reel-toolbar__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--ink-secondary);

    &::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--brand-amber);
      box-shadow: 0 0 10px var(--brand-amber);
    }
  }

  .device-toggle {
    display: inline-flex;
    padding: 3px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-subtle);
    background: rgba(7, 10, 11, 0.84);

    & label {
      display: inline-flex;
      align-items: center;
      min-height: 36px;
      padding: 0.25rem 0.8rem;
      border-radius: var(--radius-pill);
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--ink-muted);
      cursor: pointer;
      transition: background var(--dur-fast), color var(--dur-fast);
    }
  }

  .reel-shell:has(#view-desktop:checked) label[for="view-desktop"],
  .reel-shell:has(#view-mobile:checked) label[for="view-mobile"] {
    background: var(--brand-amber);
    color: var(--ink-on-amber);
  }

  .reel-shell:has(#view-desktop:focus-visible) label[for="view-desktop"],
  .reel-shell:has(#view-mobile:focus-visible) label[for="view-mobile"] {
    outline: 2px solid var(--brand-amber);
    outline-offset: 2px;
  }

  .reel-stage {
    position: relative;
    view-transition-name: reel-viewport;
  }

  .reel-panel {
    display: none;
    flex-direction: column;
    gap: 1rem;
  }

  .reel-shell:has(#reel-voice:checked) .reel-panel[data-panel="voice"],
  .reel-shell:has(#reel-chat:checked) .reel-panel[data-panel="chat"],
  .reel-shell:has(#reel-groups:checked) .reel-panel[data-panel="groups"],
  .reel-shell:has(#reel-audio:checked) .reel-panel[data-panel="audio"],
  .reel-shell:has(#reel-keys:checked) .reel-panel[data-panel="keys"] {
    display: flex;
  }

  /* Screenshot Cinema Frame (<picture> aware) */
  .shot-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(201, 214, 220, 0.16);
    background: var(--brand-deep);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);

    & picture {
      width: 100%;
      height: 100%;
    }
  }

  .shot-frame--desktop {
    aspect-ratio: 16 / 9.4;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
    }
  }

  .shot-frame--mobile {
    display: none;
    width: min(19rem, 100%);
    margin-inline: auto;
    aspect-ratio: 390 / 844;
    border-radius: 1.75rem;
    border: 2px solid rgba(201, 214, 220, 0.22);

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
    }
  }

  .reel-shell:has(#view-mobile:checked) .shot-frame--desktop {
    display: none;
  }

  .reel-shell:has(#view-mobile:checked) .shot-frame--mobile {
    display: block;
  }

  .shot-zoom-btn {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    min-height: 38px;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: rgba(7, 10, 11, 0.88);
    backdrop-filter: blur(10px);
    color: var(--brand-white);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);

    &:hover {
      border-color: var(--brand-amber);
      color: var(--brand-amber);
      background: rgba(14, 20, 22, 0.96);
    }
  }

  .reel-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    font-size: 0.88rem;
    color: var(--ink-secondary);

    & strong {
      color: var(--brand-white);
      font-family: var(--font-display);
    }
  }

  @container reel (max-width: 460px) {
    .reel-caption {
      flex-direction: column;
      gap: 0.25rem;
    }
  }

  .feature-footnote {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-subtle);
    background: rgba(14, 20, 22, 0.64);
    font-size: 0.88rem;
    color: var(--ink-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    justify-content: space-between;
  }

  /* Allowed Campaign Stills Strip (Motive 1, 2, 4) */
  .campaign-strip {
    margin-top: clamp(2.5rem, 5vw, 4rem);
  }

  .campaign-strip__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .campaign-strip__title {
    font-size: 1.15rem;
  }

  .campaign-strip__note {
    font-size: 0.84rem;
    color: var(--ink-muted);
  }

  .campaign-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 1fr;
    gap: 1rem;

    @media (max-width: 820px) {
      grid-template-columns: 1fr;
    }
  }

  .campaign-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-subtle);
    background: var(--brand-deep);
    display: flex;
    flex-direction: column;

    &:hover .campaign-card__media img {
      transform: scale(1.04);
    }

    & figcaption {
      padding: 0.85rem 1rem;
      font-size: 0.84rem;
      color: var(--ink-secondary);
      border-top: 1px solid var(--line-subtle);
    }
  }

  .campaign-card__media {
    position: relative;
    height: clamp(14rem, 22vw, 18rem);
    overflow: hidden;
    background: #060809;

    & picture {
      width: 100%;
      height: 100%;
    }

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transition: transform 0.7s var(--ease-cinema);
    }
  }

  /* ========================================================================
     SECTION 3: SICHERHEIT & VERTRAUEN (Vault Split + Popover Tech Explainers)
     ======================================================================== */
  .vault-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    container: vault / inline-size;

    @media (max-width: 820px) {
      grid-template-columns: 1fr;
    }
  }

  .vault-card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;

    & h3 {
      font-size: var(--step-2);
    }
  }

  .vault-card__badge {
    align-self: flex-start;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .vault-card__badge--sealed {
    background: rgba(255, 176, 32, 0.14);
    border: 1px solid var(--line-amber);
    color: var(--brand-amber);
  }

  .vault-card__badge--honest {
    background: rgba(201, 214, 220, 0.09);
    border: 1px solid var(--line-strong);
    color: var(--ink-secondary);
  }

  .check-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;

    & li {
      position: relative;
      padding-left: 1.55rem;
      color: var(--ink-secondary);
      font-size: 0.95rem;

      &::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.56em;
        width: 8px;
        height: 8px;
        border-radius: 2px;
        background: var(--brand-amber);
        transform: rotate(45deg);
      }
    }

    & strong {
      color: var(--brand-white);
    }
  }

  .check-list--silver li::before {
    background: var(--ink-secondary);
  }

  /* Tech Spec Popover Strip */
  .spec-popover-bar {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-subtle);
    background: rgba(14, 20, 22, 0.70);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 1rem;
  }

  .spec-popover-bar__label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-right: 0.25rem;
  }

  .provenance-bar {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;

    @media (max-width: 820px) {
      grid-template-columns: 1fr;
    }
  }

  .provenance-item {
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .provenance-item__kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-amber);
  }

  .provenance-item__title {
    font-size: 1.08rem;
  }

  .provenance-item__text {
    font-size: 0.88rem;
    color: var(--ink-secondary);
  }

  /* ========================================================================
     SECTION 4: PLATTFORMEN (Named Container Queries)
     ======================================================================== */
  .platform-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 1.25rem;

    @media (max-width: 940px) {
      grid-template-columns: 1fr;
    }
  }

  .platform-card-wrap {
    container: platform / inline-size;
  }

  .platform-card {
    height: 100%;
    padding: clamp(1.4rem, 2.6vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;

    & h3 {
      font-size: 1.35rem;
    }

    & p {
      font-size: 0.93rem;
      color: var(--ink-secondary);
    }
  }

  @container platform (min-width: 440px) {
    .platform-card--featured {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      align-items: center;
      gap: 1.5rem;
    }
  }

  .platform-card__tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.24rem 0.68rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-amber-soft);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--brand-amber);
    background: rgba(255, 176, 32, 0.08);
  }

  .platform-card__note {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line-subtle);
    font-size: 0.82rem;
    color: var(--ink-muted);
  }

  .platform-phone {
    width: min(12rem, 100%);
    margin-inline: auto;
    border-radius: 1.35rem;
    overflow: hidden;
    border: 2px solid rgba(201, 214, 220, 0.20);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6);

    & picture {
      width: 100%;
    }

    & img {
      width: 100%;
      aspect-ratio: 390 / 844;
      object-fit: cover;
    }
  }

  /* ========================================================================
     SECTION 5: EVENT-MINIGAME TEASER (Signalrun — Spielerische Metapher)
     ======================================================================== */
  .game-teaser-wrap {
    container: teaser / inline-size;
  }

  .game-teaser {
    padding: clamp(1.75rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(1.5rem, 3.5vw, 3rem);
    align-items: center;
    overflow: hidden;

    @container teaser (max-width: 780px) {
      grid-template-columns: 1fr;
    }
  }

  .game-teaser__copy {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;

    & h2 {
      font-size: var(--step-3);
    }
  }

  .game-teaser__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .game-chip {
    padding: 0.28rem 0.72rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-subtle);
    background: rgba(7, 10, 11, 0.68);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-secondary);
  }

  .game-teaser__disclaimer {
    font-size: 0.84rem;
    color: var(--ink-muted);
    padding-left: 0.9rem;
    border-left: 2px solid var(--line-amber);
  }

  .game-teaser__preview {
    --beam-angle: 0deg;
    position: relative;
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-amber-soft);
    background:
      radial-gradient(circle at 30% 50%, rgba(255, 176, 32, 0.14) 0%, transparent 56%),
      linear-gradient(180deg, #0b1012 0%, #070A0B 100%);
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.65);

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(201, 214, 220, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 214, 220, 0.05) 1px, transparent 1px);
      background-size: 28px 28px;
    }
  }

  .game-preview-svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    max-width: 24rem;
  }

  /* ========================================================================
     SECTION 6: DEMNÄCHST / IN ARBEIT (Strictly Separated Horizon Chamber)
     ======================================================================== */
  .horizon-banner {
    padding: 1.15rem 1.4rem;
    margin-bottom: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-amber);
    background: linear-gradient(135deg, rgba(255, 176, 32, 0.13) 0%, rgba(14, 20, 22, 0.86) 72%);
    color: var(--ink-primary);
    font-size: 0.96rem;

    & strong {
      color: var(--brand-amber);
    }
  }

  .roadmap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;

    @media (max-width: 820px) {
      grid-template-columns: 1fr;
    }
  }

  .roadmap-card {
    padding: clamp(1.5rem, 3vw, 2.2rem);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;

    & h3 {
      font-size: 1.35rem;
    }
  }

  .roadmap-card__sub {
    font-size: 0.9rem;
    color: var(--ink-muted);
  }

  .planned-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .planned-item {
    padding: 0.95rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 176, 32, 0.18);
    background: rgba(7, 10, 11, 0.60);

    & h4 {
      font-size: 1rem;
      color: var(--brand-white);
      margin-bottom: 0.25rem;
    }

    & p {
      font-size: 0.88rem;
      color: var(--ink-secondary);
    }
  }

  /* ========================================================================
     SECTION 7: ZUGANG / GESCHLOSSENER TEST
     ======================================================================== */
  .access-stage {
    padding: clamp(1.75rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: clamp(1.5rem, 3.5vw, 3rem);
    align-items: center;

    @media (max-width: 860px) {
      grid-template-columns: 1fr;
    }
  }

  .access-stage__copy {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;

    & h2 {
      font-size: var(--step-3);
    }
  }

  .access-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .access-pill {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: rgba(7, 10, 11, 0.72);
    font-size: 0.84rem;
    color: var(--brand-white);
  }

  .access-side {
    padding: 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-subtle);
    background: rgba(7, 10, 11, 0.76);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;

    & p {
      font-size: 0.88rem;
      color: var(--ink-secondary);
    }
  }

  .access-side__label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-amber);
  }

  /* ========================================================================
     SECTION 8: SPENDEN (Ko-fi, Ziel 500 € / Monat)
     ======================================================================== */
  .donate-stage {
    padding: clamp(1.75rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: center;

    @media (max-width: 880px) {
      grid-template-columns: 1fr;
    }
  }

  .donate-copy {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
  }

  .donate-goal {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.85rem;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-amber);
    background: rgba(255, 176, 32, 0.08);
  }

  .donate-goal__amount {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2.15rem);
    font-weight: 700;
    color: var(--brand-amber);
  }

  .donate-goal__desc {
    font-size: 0.9rem;
    color: var(--ink-secondary);
  }

  .donate-quote {
    font-size: 1.05rem;
    color: var(--brand-white);
  }

  .donate-thanks {
    font-size: 0.92rem;
    color: var(--ink-secondary);
    padding-left: 1rem;
    border-left: 2px solid var(--brand-amber);
  }

  .donate-legal {
    font-size: 0.82rem;
    color: var(--ink-muted);
    line-height: 1.55;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line-subtle);
  }

  .donate-visual {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }

  .donate-visual__frame {
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 176, 32, 0.30);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);

    & img {
      width: 100%;
      aspect-ratio: 2 / 1;
      object-fit: cover;
    }
  }

  .donate-visual__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--ink-muted);
  }

  /* ========================================================================
     SECTION 9: FOOTER
     ======================================================================== */
  .site-footer {
    position: relative;
    padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--line-subtle);
    background: linear-gradient(180deg, rgba(7, 10, 11, 0.82) 0%, #050708 100%);
    backdrop-filter: blur(18px);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid var(--line-subtle);

    @media (max-width: 780px) {
      grid-template-columns: 1fr;
    }
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;

    & img {
      height: 2.1rem;
      width: auto;
      align-self: flex-start;
    }

    & p {
      font-size: 0.88rem;
      color: var(--ink-muted);
      max-width: 26rem;
    }
  }

  .footer-col h3 {
    font-size: 0.82rem;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.9rem;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;

    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      min-height: 38px;
      font-size: 0.92rem;
      color: var(--ink-secondary);
      text-decoration: none;
      transition: color var(--dur-fast);

      &:hover {
        color: var(--brand-amber);
      }
    }
  }

  .draft-tag {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 176, 32, 0.36);
    background: rgba(255, 176, 32, 0.10);
    color: var(--brand-amber);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    font-size: 0.82rem;
    color: var(--ink-muted);
  }
}

/* --------------------------------------------------------------------------
   8. Popover API + CSS Anchor Positioning (Technical Tooltips & Engine Info)
   -------------------------------------------------------------------------- */
@layer popovers {
  .tip-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.32rem 0.78rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: rgba(7, 10, 11, 0.78);
    color: var(--brand-white);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);

    &:hover {
      border-color: var(--brand-amber);
      color: var(--brand-amber);
      background: rgba(255, 176, 32, 0.09);
    }

    & .tip-trigger__q {
      display: inline-grid;
      place-items: center;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: rgba(255, 176, 32, 0.16);
      color: var(--brand-amber);
      font-size: 0.7rem;
      font-weight: 700;
    }
  }

  .tip-trigger--dtls { anchor-name: --tip-dtls; }
  .tip-trigger--turn { anchor-name: --tip-turn; }
  .tip-trigger--safety { anchor-name: --tip-safety; }
  .tip-trigger--argon { anchor-name: --tip-argon; }
  .tip-trigger--controls { anchor-name: --tip-controls; }

  .info-popover {
    width: min(23rem, calc(100vw - 2rem));
    margin: auto;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line-amber);
    background: linear-gradient(170deg, rgba(16, 22, 24, 0.98) 0%, rgba(7, 10, 11, 0.99) 100%);
    color: var(--ink-secondary);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78);
    font-size: 0.87rem;
    line-height: 1.55;
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    transition:
      opacity 180ms var(--ease-cinema),
      transform 180ms var(--ease-cinema),
      overlay 180ms allow-discrete,
      display 180ms allow-discrete;

    &:popover-open {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    @starting-style {
      &:popover-open {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
      }
    }

    & .info-popover__head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      margin-bottom: 0.5rem;
    }

    & .info-popover__title {
      font-family: var(--font-display);
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--brand-amber);
    }

    & .info-popover__close {
      min-width: 30px;
      min-height: 30px;
      border-radius: 50%;
      border: 1px solid var(--line-subtle);
      background: transparent;
      color: var(--ink-secondary);
      cursor: pointer;
      line-height: 1;

      &:hover {
        border-color: var(--brand-amber);
        color: var(--brand-white);
      }
    }
  }

  /* CSS Anchor Positioning where supported (falls back cleanly to centered popover) */
  @supports (anchor-name: --a) and (position-area: top) {
    .info-popover[data-anchor] {
      margin: 0;
      position-area: block-start span-inline-end;
      position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
      margin-block: 0.55rem;
    }

    .info-popover[data-anchor="dtls"] { position-anchor: --tip-dtls; }
    .info-popover[data-anchor="turn"] { position-anchor: --tip-turn; }
    .info-popover[data-anchor="safety"] { position-anchor: --tip-safety; }
    .info-popover[data-anchor="argon"] { position-anchor: --tip-argon; }
    .info-popover[data-anchor="controls"] { position-anchor: --tip-controls; }
  }
}

/* --------------------------------------------------------------------------
   9. Native Modal Dialogs & Standalone Subpages
   -------------------------------------------------------------------------- */
@layer dialogs {
  dialog.cinema-dialog {
    width: min(48rem, calc(100% - 2rem));
    max-height: min(86dvh, 56rem);
    margin: auto;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #12181a 0%, #070A0B 100%);
    color: var(--ink-secondary);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.84);
    overflow: hidden;

    &::backdrop {
      background: rgba(4, 6, 7, 0.80);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }
  }

  dialog.cinema-dialog--lightbox {
    width: min(74rem, calc(100% - 2rem));
    background: #070A0B;
  }

  .dialog-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    background: rgba(14, 20, 22, 0.96);
    border-bottom: 1px solid var(--line-subtle);
  }

  .dialog-head__title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.15rem;
  }

  .dialog-close {
    min-width: 42px;
    min-height: 42px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--brand-white);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);

    &:hover {
      border-color: var(--brand-amber);
      background: rgba(255, 176, 32, 0.14);
      color: var(--brand-amber);
    }
  }

  .dialog-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(min(86dvh, 56rem) - 4.75rem);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;

    & h3 {
      font-size: 1.05rem;
      color: var(--brand-amber);
      margin-top: 0.5rem;
    }

    & p,
    & li {
      font-size: 0.93rem;
      color: var(--ink-secondary);
    }

    & ul {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
      padding-left: 1.1rem;
      list-style: disc;
    }

    & a {
      color: var(--brand-amber);
      text-underline-offset: 3px;
    }
  }

  .draft-banner {
    padding: 0.95rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-amber);
    background: rgba(255, 176, 32, 0.11);
    color: var(--brand-white);
    font-size: 0.88rem;

    & strong {
      color: var(--brand-amber);
    }
  }

  .todo-mark {
    display: inline;
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 176, 32, 0.14);
    border: 1px dashed rgba(255, 176, 32, 0.48);
    color: #FFD166;
    font-family: var(--font-mono);
    font-size: 0.84em;
  }

  .lightbox-figure {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;

    & picture {
      width: 100%;
    }

    & img {
      width: 100%;
      max-height: 70dvh;
      object-fit: contain;
      border-radius: var(--radius-sm);
      background: #050708;
      clip-path: inset(0 0 5.5% 0);
    }

    & figcaption {
      font-size: 0.9rem;
      color: var(--ink-secondary);
      text-align: center;
    }
  }

  /* Standalone Subpage Layout */
  .subpage-main {
    padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem);
  }

  .subpage-card {
    max-width: 52rem;
    margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;

    & h1 {
      font-size: var(--step-3);
    }

    & h2 {
      font-size: 1.25rem;
      color: var(--brand-amber);
      margin-top: 0.75rem;
    }

    & p,
    & li {
      color: var(--ink-secondary);
    }

    & ul {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
      padding-left: 1.2rem;
      list-style: disc;
    }

    & a {
      color: var(--brand-amber);
      text-underline-offset: 3px;
    }
  }
}

/* --------------------------------------------------------------------------
   10. Responsive Fine-Tuning (360px–520px Mobile) & Reduced Motion
   -------------------------------------------------------------------------- */
@layer utilities {
  .ctrl-btn__icon {
    display: none;
    width: 16px;
    height: 16px;
  }

  @media (max-width: 520px) {
    .brand-link__wordmark {
      height: 1.65rem;
    }

    .ctrl-btn__label {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }

    .ctrl-btn__icon {
      display: inline-block;
    }

    .hero {
      padding-block: 2.25rem 3.5rem;
    }

    .btn-row {
      width: 100%;

      & .btn {
        width: 100%;
      }
    }

    .reel-viewport-card {
      position: static;
    }

    .shot-frame--desktop {
      aspect-ratio: 16 / 10;
    }
  }

  /* Respect OS prefers-reduced-motion AND manual motion toggle */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    .cinema-backdrop {
      transform: scale(1.04) !important;
    }
  }

  html[data-motion="reduced"] {
    scroll-behavior: auto;

    & *,
    & *::before,
    & *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    & .cinema-backdrop {
      transform: scale(1.04) !important;
    }
  }
}

/* ==========================================================================
   Runde 2b (Grok Bot, 05.12.2026): Hero-Logo frei stehend, größer, atmend;
   Badge „🇦🇹 Privacy made in Austria 🇦🇹“ (Flaggen als SVG, weil Flaggen-Emoji
   unter Windows/Linux nicht dargestellt werden)
   ========================================================================== */
@layer utilities {
  .hero .hero__aperture {
    width: clamp(11.5rem, 34vw, 16rem);
  }
  .hero .hero__logo-tile {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    filter: drop-shadow(0 0 18px rgba(255, 176, 32, 0.28)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
  }
  .hero .hero__aperture::after {
    inset: -14%;
  }
  .hero__badge {
    font-size: clamp(0.95rem, 0.85rem + 0.45vw, 1.15rem);
    padding: 0.6rem 1.35rem;
    gap: 0.7rem;
    letter-spacing: 0.04em;
  }
  .hero__badge::before { content: none; display: none; }
  .hero__flag-wrap { display: inline-flex; line-height: 0; }
  .hero__flag { width: 1.45em; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }

  @media (prefers-reduced-motion: no-preference) {
    html:not([data-motion="reduced"]) .hero .hero__logo-tile {
      animation: osm-logo-breathe 7s ease-in-out infinite;
    }
    html:not([data-motion="reduced"]) .hero .hero__aperture::after {
      animation: osm-ring-ripple 7s ease-out infinite;
    }
  }
  @keyframes osm-logo-breathe {
    0%, 100% { transform: scale(0.97); filter: drop-shadow(0 0 12px rgba(255,176,32,0.18)) drop-shadow(0 10px 30px rgba(0,0,0,0.6)); }
    50% { transform: scale(1.03); filter: drop-shadow(0 0 30px rgba(255,176,32,0.45)) drop-shadow(0 10px 30px rgba(0,0,0,0.6)); }
  }
  @keyframes osm-ring-ripple {
    0% { transform: scale(0.92); opacity: 0.0; box-shadow: 0 0 0 0 rgba(255,176,32,0.35), 0 0 42px rgba(255,176,32,0.12); }
    35% { opacity: 0.9; }
    100% { transform: scale(1.22); opacity: 0; box-shadow: 0 0 0 18px rgba(255,176,32,0), 0 0 60px rgba(255,176,32,0); }
  }
}
/* Hintergrund-Schimmer (Partikel) gedämpft: Vorher/Nachher-Vergleich 05.12. – voll wirkte hinter dem größeren Logo unruhig, ganz aus nahm der Kino-Szene das Leben */
@layer utilities { #cinema-canvas { opacity: 0.55; } }

/* ==========================================================================
   Runde 2c (Grok Bot, 05.12.2026): Kopfzeile – Logo transparent wie im Hero,
   gleiche Größe wie die bisherige Wortmarke (2rem / mobil 1.65rem hoch);
   Hintergrund oben transparent, beim Scrollen leichte Abdunklung + Blur
   (CSS scroll-driven animation, ohne JS; Fallback: dezent halbtransparent)
   ========================================================================== */
@layer utilities {
  .brand-link { gap: 0.45rem; }
  .brand-link__mark {
    width: 1.62rem; height: 1.62rem; flex: none;
    filter: drop-shadow(0 0 6px rgba(255, 176, 32, 0.35));
  }
  .brand-link__name {
    font-family: var(--font-display, "Sora", system-ui, sans-serif);
    font-weight: 600;
    font-size: 1.16rem;
    letter-spacing: 0.005em;
    line-height: 1;
    color: #EEF6F8;
  }
  @media (max-width: 520px) {
    .brand-link__mark { width: 1.34rem; height: 1.34rem; }
    .brand-link__name { font-size: 0.96rem; }
  }

  .site-header {
    background: rgba(7, 10, 11, 0.42);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border-bottom-color: transparent;
  }
  @supports (animation-timeline: scroll()) {
    .site-header {
      animation: osm-header-solidify linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 160px;
    }
  }
  @keyframes osm-header-solidify {
    from {
      background-color: rgba(7, 10, 11, 0);
      backdrop-filter: blur(0px) saturate(100%);
      -webkit-backdrop-filter: blur(0px) saturate(100%);
      border-bottom-color: rgba(201, 214, 220, 0);
    }
    to {
      background-color: rgba(7, 10, 11, 0.66);
      backdrop-filter: blur(14px) saturate(125%);
      -webkit-backdrop-filter: blur(14px) saturate(125%);
      border-bottom-color: rgba(201, 214, 220, 0.10);
    }
  }
}
@layer utilities {
  @media (prefers-reduced-motion: reduce) {
    .site-header { background-color: rgba(7, 10, 11, 0.66); }
  }
  html[data-motion="reduced"] .site-header { background-color: rgba(7, 10, 11, 0.66); }
}
/* Runde 2c: Unterstützen & Community (Ko-fi, Stripe-Links, X) */
@layer utilities {
  .support-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    margin-top: 0.5rem;
  }
  .support-card {
    display: flex; flex-direction: column; gap: 0.6rem;
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius-md, 16px);
    border: 1px solid rgba(201, 214, 220, 0.14);
    background: rgba(7, 10, 11, 0.55);
    &.support-card--kofi { border-color: rgba(255, 176, 32, 0.5); box-shadow: 0 0 32px rgba(255, 176, 32, 0.12); }
  }
  .support-card__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: #fff; margin: 0; display: flex; align-items: center; gap: 0.5rem; }
  .support-card__text { margin: 0; color: #C9D6DC; font-size: 0.92rem; flex: 1; }
  .support-card__btn { align-self: stretch; justify-content: center; text-align: center; }
  .support-tiers { display: flex; flex-wrap: wrap; gap: 0.5rem; & .support-tier { flex: 1 1 5.5rem; justify-content: center; min-height: 44px; } }
  .support-test-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; padding: 0.1rem 0.45rem; border-radius: 999px; background: #FFB020; color: #0E1416; font-weight: 700; }
  .support-note { margin: 0.4rem 0 0; font-size: 0.88rem; color: #C9D6DC; }
  .support-community:has(.support-x[hidden]) { display: none; }
  .support-x, .footer-x { display: inline-flex; align-items: center; gap: 0.5rem; }
  .support-x[hidden], .footer-x[hidden], [data-support][hidden] { display: none !important; }
  .footer-brand__mark { margin-bottom: 0.6rem; }
}
@layer utilities {
  .support-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support-tiers .support-tier { white-space: nowrap; padding-inline: 0.4rem; font-size: 0.9rem; }
}
@layer utilities {
  .sr-only-osm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .support-card__hint { margin: 0; font-size: 0.8rem; color: #7F949D; text-align: center; }
}

/* Runde 2d: Impressum-Bestätigung und fertige Rechtstexte */
@layer utilities {
  .legal-note {
    margin: 0 0 1.25rem;
    color: #C9D6DC;
    font-size: 0.92rem;
  }
  .contact-gate {
    margin: 1.1rem 0 1.5rem;
    padding: 1.1rem 1.15rem;
    border-radius: var(--radius-md, 16px);
    border: 1px solid rgba(255, 176, 32, 0.35);
    background: rgba(7, 10, 11, 0.55);
  }
  .contact-gate h2, .contact-gate h3 { margin-top: 0; }
  .contact-gate__btn { min-height: 44px; }
  .contact-gate__btn[aria-busy="true"] { opacity: 0.85; cursor: wait; }
  .contact-gate__status { min-height: 1.25em; margin: 0.6rem 0 0; color: #C9D6DC; font-size: 0.92rem; }
  .contact-gate__result { margin-top: 0.85rem; outline: none; }
  .contact-gate__result:focus-visible {
    box-shadow: 0 0 0 2px #0E1416, 0 0 0 4px #FFB020;
    border-radius: 8px;
  }
  .contact-gate__address, .contact-gate__email { margin: 0.2rem 0; }
  @media (prefers-reduced-motion: reduce) {
    .contact-gate__btn { transition: none; }
  }
  html[data-motion="reduced"] .contact-gate__btn { transition: none; }
}
