      :root {
        --container-pad: 28px; /* unify left/right page padding for perfect centering */
        /* Solid background matching the previous top color */
        --page-bg: #3d3d3d;
        --accent: #ffb86b;  /* warm orange */
        --accent-strong: color-mix(in oklab, var(--accent) 88%, white 12%);
        /* Glass surfaces tuned for dark background */
        --glass-bg: rgba(55,55,55,0.60);
        --glass-stroke: rgba(255,255,255,0.14);
        --glass-highlight: rgba(255,255,255,0.18);
        --muted-gray: #c9c9c9;
        --text-strong: var(--accent);
        --brand: var(--accent);
        --link: var(--accent);
        --link-hover: color-mix(in oklab, var(--accent) 92%, white 8%);
        /* Toggle labels match background color */
        --toggle-text: var(--page-bg);
        /* Grain overlay strength */
        --grain-opacity: 0.10;
      }

      html, body {
        height: 100%;
      }
      body {
        margin: 0;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: var(--page-bg);
        font-family: 'Sora', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
      }
      /* Main-site variant: near-black background without affecting portfolio */
      body.near-black { --page-bg: #141414; --ambient: #ffffff; }
      /* Disable ambient background on main site */
      body.near-black .ambient-bg { display: none; }
      body.near-black .ambient-bg canvas { display: none; }

      /* Subtle grainy texture overlay (GPU-cheap, no network) */
      body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        opacity: var(--grain-opacity);
        mix-blend-mode: soft-light;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
        background-size: 280px 280px; /* tile size for fine grain */
      }

      .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;
      }

      /* Ambient background disabled (no red blur) */
      .ambient-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none; }
      .ambient-bg canvas { width: 100%; height: 100%; display: none; }
      .ambient-bg canvas.glow { filter: none; opacity: 0; }
      .ambient-bg canvas.dots { filter: none; opacity: 0; mix-blend-mode: normal; }

      /* Top navigation bar without glow/shadow */
      .app-nav {
        position: sticky;
        top: 0;
        width: 100%;
        background: var(--page-bg);
        /* Downward drop shadow to create overlap */
        box-shadow:
          0 18px 34px -18px rgba(0,0,0,0.55),
          0 8px 18px -10px rgba(0,0,0,0.35);
        /* Thin separator line under nav */
        border-bottom: 1px solid rgba(255,255,255,0.18);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 2; /* above ambient */
      }
      .app-nav .nav-inner {
        max-width: none; /* full-bleed */
        width: 100%;
        margin: 0;
        padding: 32px var(--container-pad); /* tall header; side pad matches content */
        display: flex;
        flex-direction: column; /* stack brand over links */
        align-items: center;
        justify-content: center;
        gap: 0;
      }
      /* Ensure nav and main content share the exact same center line */
      .app-nav .nav-inner,
      .demo-wrap { max-width: 1100px; margin-left: auto; margin-right: auto; }
      .brand {
        font-weight: 700;
        color: var(--brand);
        letter-spacing: 0.2px;
        font-size: clamp(28px, 3.8vw, 40px);
        text-align: center;
        line-height: 1; /* tighten vertical alignment */
        display: inline-flex; align-items: center; justify-content: center;
      }
      .brand-subtitle {
        font-weight: 300; /* thin */
        font-size: clamp(12px, 1.6vw, 14px);
        color: var(--link);
        letter-spacing: 0.2px;
        margin-top: 2px;
        text-align: center;
      }
      /* Primary nav links under brand */
      .nav-links {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(6px, 1.8vw, 14px);
        margin-top: clamp(20px, 3vw, 28px);
        flex-wrap: wrap;
      }
      .nav-link {
        color: var(--link);
        text-decoration: none;
        text-underline-offset: 3px;
        text-decoration-thickness: 2px;
        font-weight: 300; /* semi-thin */
        letter-spacing: 0.3px;
        font-size: clamp(14px, 2vw, 18px);
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid transparent;
        transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
        line-height: 1; display: inline-flex; align-items: center; justify-content: center;
      }
      .nav-link:hover {
        color: var(--link-hover);
        text-decoration: underline;
        background-color: rgba(20,24,32,0.04);
        border-color: rgba(20,24,32,0.06);
      }
      .nav-link:focus-visible {
        outline: 2px solid color-mix(in oklab, var(--accent) 60%, white);
        outline-offset: 2px;
      }

      /* Main-site variant: force white nav text */
      .app-nav.nav-white .brand { color: #ffffff; }
      .app-nav.nav-white .brand-subtitle { color: #ffffff; opacity: 0.9; }
      .app-nav.nav-white .nav-link { color: #ffffff; }
      .app-nav.nav-white .nav-link:hover { color: #ffffff; background-color: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); }
      .app-nav.nav-white .nav-link:focus-visible { outline: 2px solid rgba(255,255,255,0.9); }

      /* Main content centers vertically below the nav */
      .page-main {
        flex: 1;
        display: flex;
        flex-direction: column; /* stack sections vertically */
        align-items: center;     /* center them horizontally */
        justify-content: flex-start;
        width: 100%;
        padding-top: 12px; /* small breathing room */
        position: relative;
        z-index: 1;
      }

      /* Container just to center and demo */
      .demo-wrap {
        --title-gap: clamp(12px, 2.5vw, 20px);
        padding: 0 var(--container-pad);
        padding-top: clamp(24px, 6vw, 64px); /* space above title under nav */
        padding-bottom: 32px;
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      /* The segmented toggle button */
      .section-title {
        font-weight: 900;
        line-height: 0.98; /* a bit more breathing room */
        font-size: clamp(48px, 9vw, 96px);
        color: var(--text-strong);
        letter-spacing: 1px; /* increased tracking */
        margin: 0 0 var(--title-gap);
      }
      /* Optional variant: white hero title (used on main site) */
      .section-title.title-white {
        color: #ffffff;
        text-shadow: none; /* remove hero title glow */
      }
      .section-subtitle {
        font-weight: 400;
        font-size: clamp(18px, 2.4vw, 28px);
        color: var(--muted-gray);
        letter-spacing: 0.3px;
        margin: -6px 0 var(--title-gap);
      }
      /* Intro body copy under toggle */
      .intro-body {
        color: var(--muted-gray);
        font-weight: 300;
        font-size: clamp(14px, 2vw, 18px);
        line-height: 1.45;
        max-width: 920px;
        margin: 10px auto 0;
        padding: 0 16px;
        text-align: center;
      }
      /* Subtitle link styling (default accent) */
      .section-subtitle a { color: var(--link); text-decoration: none; }
      .section-subtitle a:hover { color: var(--link-hover); text-decoration: underline; }
      /* Powered-by variant: smaller, thinner, neutral links */
      .section-subtitle.powered-by {
        font-size: clamp(13px, 1.9vw, 16px);
        font-weight: 200;
        color: var(--muted-gray);
        margin-top: 2px;
        margin-bottom: 0;
      }
      .section-subtitle.powered-by a {
        color: inherit;
        font-weight: 500; /* slightly heavier for brand names */
        text-decoration: none;
      }
      .section-subtitle.powered-by a:hover { color: var(--link); text-decoration: underline; }
      .section-subtitle.powered-by a:focus-visible { color: var(--link); outline-offset: 2px; }

      /* The segmented toggle button */
      .segmented-toggle {
        /* Responsive sizing */
        --h: clamp(32px, 8vw, 52px);
        /* Base width (can be overridden per-instance) */
        --w: clamp(220px, 70vw, 420px);
        --pill-inset: calc(var(--h) * 0.12); /* slightly tighter inset at smaller sizes */
        --edge-adjust: 2px; /* nudge to equalize right/left visual spacing */
        --indicator-x: 0%;
        /* Unified radii so outer/back matches the inner slider curvature */
        --outer-radius: calc(var(--h) / 2);
        position: relative;
        display: inline-grid;
        width: var(--w);
        height: var(--h);
        margin-inline: 24px; /* ensure breathing room from viewport edges */
        border-radius: var(--outer-radius);
        border: none;
        background-color: var(--glass-bg);
        background-image: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
        background-repeat: no-repeat;
        background-size: 100% 100%;
        background-position: 0 0;
        background-clip: padding-box;
        backdrop-filter: blur(10px) saturate(140%);
        -webkit-backdrop-filter: blur(10px) saturate(140%);
        box-shadow:
          0 18px 30px rgba(17,24,39,0.12),
          0 0 18px color-mix(in oklab, var(--accent) 20%, transparent), /* orange ambient glow */
          0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent), /* subtle accent ring */
          0 0 0 0.5px rgba(255,255,255,0.22) inset;
        padding: 0;
        overflow: hidden;
        margin-top: 12px;
        will-change: transform;
        transform: translateZ(0);
        -webkit-mask-image: radial-gradient(100% 100% at 50% 50%, #000 99.6%, transparent 100%);
                mask-image: radial-gradient(100% 100% at 50% 50%, #000 99.6%, transparent 100%);
      }
      .hero-toggle { margin-top: clamp(18px, 5vw, 42px); }

      /* Inner accent outline around the outer pill */
      .segmented-toggle::before {
        content: "";
        position: absolute;
        inset: 1px; /* sit just inside the glass edge */
        /* Match the effective curvature by subtracting the inset from the radius */
        border-radius: calc(var(--outer-radius) - 1px);
        box-shadow:
          0 0 0 0.5px color-mix(in oklab, var(--accent) 22%, transparent) inset,
          0 0 0 1.5px rgba(255,255,255,0.08) inset; /* soft inner rings reduce aliasing */
        pointer-events: none;
        z-index: 1; /* below indicator (z=2), above background */
      }

      /* Outer soft oval shadow for premium feel */
      .segmented-toggle::after {
        content: "";
        position: absolute;
        left: 8%;
        right: 8%;
        bottom: -22%;
        height: 120%;
        /* Keep the glow shape consistent with the outer curvature */
        border-radius: calc(var(--outer-radius) - 2px);
        background: radial-gradient(60% 60% at 50% 20%, rgba(17,24,39,0.12), rgba(17,24,39,0.04) 60%, transparent 70%);
        filter: blur(10px);
        z-index: 0;
        pointer-events: none;
      }

      .segmented-toggle button {
        all: unset;
        position: relative;
        display: grid;
        /* Support multi-slot layout; defaults to 4 here */
        grid-template-columns: repeat(var(--slots, 4), 1fr);
        align-items: stretch; /* allow labels to fill full height for perfect centering */
        justify-items: center;
        width: 100%;
        height: 100%;
        cursor: pointer;
        border-radius: inherit;
      }

      /* Sliding indicator */
      .indicator {
        position: absolute;
        top: var(--pill-inset);
        left: var(--pill-inset);
        /* Width spans one slot: (inner width)/slots */
        width: calc((100% - var(--pill-inset) * 2) / var(--slots, 4));
        height: calc(100% - var(--pill-inset) * 2);
        border-radius: calc((var(--h) - var(--pill-inset)*2) / 2);
        background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.84));
        border: none;
        box-shadow:
          0 12px 18px rgba(17,24,39,0.16),
          0 0 0 0.5px rgba(255,255,255,0.65) inset,
          0 -1px 0 0 rgba(0,0,0,0.03) inset,
          0 0 0 1.2px rgba(255,255,255,0.20) inset;
        /* Move by its own width N times (index 0..slots-1) */
        transform: translateX(calc(var(--index, 0) * 100%));
        transform-origin: center;
        /* Smooth, consistent slide to the selected segment */
        transition: transform 320ms cubic-bezier(.4,0,.2,1), box-shadow 200ms ease;
        will-change: transform;
        backface-visibility: hidden;
        -webkit-mask-image: radial-gradient(100% 100% at 50% 50%, #000 99.6%, transparent 100%);
                mask-image: radial-gradient(100% 100% at 50% 50%, #000 99.6%, transparent 100%);
        z-index: 2; /* keep above decorative border glow */
        overflow: hidden; /* clip internal highlight so it never protrudes */
      }

      /* Gloss and inner ring for the pill */
      .indicator::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6));
        opacity: 0.32; /* reduce washout under label */
        pointer-events: none;
      }
      .indicator::after {
        content: "";
        position: absolute;
        inset: 2px;
        border-radius: inherit;
        box-shadow: 0 0 0 1px rgba(255,255,255,0.7) inset;
        pointer-events: none;
      }

      /* Back-compat for two-state variant; ignored for 4-slot */
      .segmented-toggle.is-right { --indicator-x: calc(100% - var(--edge-adjust)); }

      /* Four-slot indicator positions via index */
      .segmented-toggle { --slots: 4; --index: 0; }
      .segmented-toggle.is-idx-0 { --index: 0; }
      .segmented-toggle.is-idx-1 { --index: 1; }
      .segmented-toggle.is-idx-2 { --index: 2; }
      .segmented-toggle.is-idx-3 { --index: 3; }

      /* Active label: make current category text orange */
      .segmented-toggle.is-idx-0 .label[data-idx="0"],
      .segmented-toggle.is-idx-1 .label[data-idx="1"],
      .segmented-toggle.is-idx-2 .label[data-idx="2"],
      .segmented-toggle.is-idx-3 .label[data-idx="3"] {
        color: var(--accent);
        font-weight: 800;
      }

      .segmented-toggle button:active .indicator {
        /* Keep current position; only add subtle press scale */
        transform: translateX(calc(var(--index, 0) * 100%)) scale(0.98);
      }

      /* No icon inside indicator (removed) */

      /* Labels */
      .label {
        position: relative;
        z-index: 3; /* ensure text sits above the moving pill */
        font-size: clamp(13px, calc(var(--h) * 0.30), 18px);
        letter-spacing: 1px; /* wider tracking for readability */
        font-weight: 600;
        user-select: none;
        transition: color 220ms ease, transform 220ms ease, opacity 220ms ease;
        height: 100%;
        width: 100%; /* make the whole slot hoverable */
        line-height: 1; /* prevent font metrics shifting baseline */
        display: flex; align-items: center; justify-content: center;
        color: var(--toggle-text);
      }
      /* Orange hover for labels */
      .segmented-toggle .label:hover { color: var(--accent); }
      .segmented-toggle .label:focus-visible { color: var(--accent); outline: none; }
      .left { justify-self: center; padding-left: 0; }
      .right { justify-self: center; padding-right: 0; }

      /* Default (left active = Prospect) */
      .segmented-toggle:not(.is-right) .left  { color: var(--toggle-text); transform: translateX(0); opacity: 1; font-weight: 800; text-shadow: none; }
      .segmented-toggle:not(.is-right) .right { color: var(--toggle-text); transform: translateX(0); opacity: .85; }

      /* Right active = Invited */
      .segmented-toggle.is-right .right { color: var(--toggle-text); transform: translateX(0); opacity: 1; font-weight: 800; text-shadow: none; }
      .segmented-toggle.is-right .left  { color: var(--toggle-text); transform: translateX(0); opacity: .85; }

      /* Focus styles for keyboard users */
      .segmented-toggle button:focus-visible {
        outline: 3px solid color-mix(in oklab, var(--accent) 70%, white);
        outline-offset: 6px;
        border-radius: calc(var(--h) / 2 + 6px);
      }

      /* Subtle hover polish for extra pop */
      .segmented-toggle:hover .indicator {
        box-shadow:
          0 14px 24px rgba(17,24,39,0.18),
          0 2px 0 0 rgba(255,255,255,0.85) inset,
          0 -1px 0 0 rgba(0,0,0,0.04) inset,
          0 0 0 2px color-mix(in oklab, var(--accent) 18%, transparent) inset,
          0 8px 18px color-mix(in oklab, var(--accent) 16%, transparent);
      }

      /* Slightly emphasize ring and glow on hover */
      .segmented-toggle:hover::before {
        box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 38%, transparent) inset;
      }
      .segmented-toggle:hover {
        box-shadow:
          0 20px 34px rgba(17,24,39,0.14),
          0 0 18px color-mix(in oklab, var(--accent) 16%, transparent),
          0 0 0 1px rgba(255,255,255,0.22) inset;
      }

      /* Masonry video board */
      .board-section {
        width: 100%;
        max-width: 1200px;
        padding: clamp(12px, 3vw, 24px) clamp(16px, 4vw, 32px) 72px;
        margin-top: clamp(12px, 3vw, 28px); /* space below toggle */
      }
      .video-board {
        --gap: clamp(12px, 2vw, 20px);
        --card-radius: 18px;
        /* Masonry-style columns: flow cards vertically like Pinterest */
        column-count: 1;              /* single column on very small screens */
        column-gap: var(--gap);       /* horizontal space between columns */
      }
      /* Avoid subpixel overflow within cards */
      .video-card, .video-card * { box-sizing: border-box; }
      /* Visible by default; shows static blank cards */
      #videoBoard { display: block; }
      /* Two columns on larger screens */
      @media (min-width: 600px) { .video-board { column-count: 2; } }
      @media (min-width: 900px) { .video-board { column-count: 2; } }
      @media (min-width: 1200px) { .video-board { column-count: 2; } }

      .video-card {
        --ratio: 16 / 9;
        position: relative;
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        -moz-column-break-inside: avoid;
        margin: 0 0 var(--gap);
        border-radius: var(--card-radius);
        overflow: hidden; /* clip corners */
        /* Dark, slightly raised card */
        background: #141414;
        border: 3px solid #2a2a2a; /* semi-thick border */
        box-shadow:
          0 10px 20px rgba(0,0,0,0.35),
          0 2px 0 rgba(255,255,255,0.04) inset,
          0 0 0 1px rgba(255,255,255,0.03) inset;
      }
      /* Content wrapper that preserves a margin/border when media is present */
      .video-card .card-media {
        padding: 16px; /* ensures the border stays visible around media */
        background: #141414;
        aspect-ratio: var(--ratio, 16 / 9);
      }
      .video-card .card-media img,
      .video-card .card-media video,
      .video-card .card-media canvas,
      .video-card .card-media iframe {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: var(--ratio, 16 / 9);
        border-radius: calc(var(--card-radius) - 10px);
        background: #0f0f0f;
      }
      /* Rive cards use a wrapper; give it the same treatment */
      .video-card .rive-wrap {
        position: relative;
        margin: 14px;                /* semi‑thick inner margin like the mock */
        width: auto;                 /* let margin create the inset without subpixel calc */
        aspect-ratio: var(--ratio, 16 / 9);
        overflow: hidden;            /* clip to rounded corners */
        border-radius: calc(var(--card-radius) - 8px);
        background: linear-gradient(180deg, #1b1b1b, #101010);
        border: 1px solid #2a2a2a;   /* subtle inner stroke */
        background-clip: padding-box; /* avoid halo at rounded edges */
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 18px 60px rgba(0,0,0,0.35);
      }
      .video-card .rive-wrap::after { /* faint corner glow to match reference */
        content: "";
        position: absolute; inset: 0;
        border-radius: inherit;
        pointer-events: none;
        box-shadow: inset 0 18px 60px rgba(0,0,0,0.35);
      }
      .video-card .rive-wrap canvas {
        position: absolute;
        inset: -1px;                  /* bleed 1px to eliminate hairline seams */
        display: block;
        width: calc(100% + 2px);
        height: calc(100% + 2px);
        max-width: none;
        max-height: none;
        border-radius: inherit;       /* match wrapper rounding exactly */
        background: transparent;
        transform: translateZ(0);     /* improve edge AA */
        backface-visibility: hidden;
      }
      /* Ensure a visible inner margin even when media is a direct child */
      .video-card > video,
      .video-card > canvas,
      .video-card > iframe {
        display: block;
        width: 100%;
        height: auto;
        border-radius: calc(var(--card-radius) - 10px);
        margin: 16px; /* preserves a semi-thick inner margin */
        background: #0f0f0f;
      }
      /* Optional chip label in corner */
      .video-card .card-chip {
        position: absolute;
        top: 10px;
        left: 10px;
        font-size: 11px;
        line-height: 1;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #d6d6d6;
        background: #1c1c1c;
        border: 1px solid #353535;
        border-radius: 999px;
        padding: 6px 10px;
        box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
        pointer-events: none;
      }
      .video-card video, .video-card iframe { display: block; width: 100%; height: auto; border-radius: 0; }
      /* Blank card placeholder area */
      .card-blank { position: relative; width: 100%; aspect-ratio: var(--ratio, 16 / 9); background: #1a1a1a; }
      /* Simple appear animation for new cards */
      @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
      .fade-in { animation: fadeIn 220ms ease-out both; }
      /* removed bottom text bar */

      /* Contact form (main site) */
      .contact-section { width: 100%; display: flex; justify-content: center; padding: clamp(16px, 5vw, 44px) 16px 48px; }
      .contact-form { width: 100%; max-width: 900px; }
      .contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(14px, 2vw, 22px) clamp(16px, 2.6vw, 26px); }
      @media (min-width: 720px) {
        .contact-grid { grid-template-columns: 1fr 1fr; }
        .contact-grid .field-span { grid-column: 1 / -1; }
      }
      .field { display: flex; flex-direction: column; gap: 4px; }
      .field label { font-size: 12px; color: var(--muted-gray); letter-spacing: 0.3px; }
      .input-underline {
        appearance: none; background: transparent; border: 0; outline: none;
        border-bottom: 2px solid rgba(255,255,255,0.42); color: var(--text-strong);
        padding: 10px 2px 8px; font-size: clamp(14px, 1.8vw, 16px);
        transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
      }
      .input-underline::placeholder { color: color-mix(in oklab, var(--muted-gray) 86%, white); }
      .input-underline:focus { border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
      .input-underline.textarea { resize: vertical; min-height: 96px; padding-top: 8px; }
      .actions { margin-top: clamp(10px, 3vw, 18px); }
      .btn-accent { height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--glass-stroke); background: var(--accent); color: #fff; font-weight: 800; letter-spacing: 0.3px; cursor: pointer; transition: filter 160ms ease, transform 120ms ease; }
      .btn-accent:hover { filter: brightness(0.96); }
      .btn-accent:active { transform: translateY(1px); }
      .contact-success { max-width: 900px; margin: 12px auto 0; padding: 10px 14px; color: #d1f7c4; background: rgba(20, 120, 20, 0.12); border: 1px solid rgba(20,120,20,0.25); border-radius: 10px; text-align: center; }

      /* Responsive tweaks */
      @media (max-width: 600px) {
        .app-nav .nav-inner { padding: 20px 16px; }
        .brand { font-size: 28px; letter-spacing: 0.4px; }
        .demo-wrap { padding: 24px 16px; padding-top: clamp(16px, 6vw, 36px); }
        .section-title { font-size: clamp(24px, 8vw, 36px); }
        .section-subtitle { font-size: clamp(15px, 4.2vw, 20px); }
        .segmented-toggle {
          --h: clamp(44px, 14vw, 56px);
          --w: min(92vw, 380px);
          margin-inline: 16px;
        }
        .board-section { padding-left: 16px; padding-right: 16px; }
      }

      /* Footer */
      .app-footer { width: 100%; border-top: 1px solid rgba(20,24,32,0.06); background: transparent; }
      .app-footer .footer-inner { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: center; }
      .social { display: flex; align-items: center; justify-content: center; gap: 16px; }
      .social-link { color: var(--link); text-decoration: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; transition: background-color 160ms ease, color 160ms ease, transform 160ms ease; }
      .social-link:hover { color: var(--link-hover); background-color: rgba(20,24,32,0.05); }
      .social-link:focus-visible { outline: 2px solid color-mix(in oklab, var(--accent) 50%, white); outline-offset: 2px; border-radius: 8px; }
      .icon-img { width: 22px; height: 22px; display: block; object-fit: contain; }
      /* Optional helper: if your icons are dark-only PNG/SVG, add class 'auto-invert-dark' to auto invert in dark theme */
      body[data-theme="dark"] .auto-invert-dark { filter: invert(1) hue-rotate(180deg); }

      /* Dark theme overrides: slate greys + orange accent */
      body[data-theme="dark"] {
        /* Deep slate greydient with lighter center area */
        --page-bg: #343434; /* unify with top background color */
        --glass-bg: rgba(20,24,32,0.42);
        --glass-stroke: rgba(255,255,255,0.14);
        --glass-highlight: rgba(255,255,255,0.18);
        --muted-gray: #a6adbb;
        --text-strong: #e5e7eb;
        --accent: #ffb86b; /* warm orange */
        --accent-strong: color-mix(in oklab, var(--accent) 88%, white 12%);
        --glow: color-mix(in oklab, var(--accent) 70%, white 30%);
        --brand: var(--accent-strong);
        --link: var(--accent-strong);
        --link-hover: color-mix(in oklab, var(--accent) 92%, white 8%);
        --grain-opacity: 0.14; /* a bit stronger on darker backdrop */
      }

      body[data-theme="dark"] .app-nav {
        /* Slightly stronger drop shadow on dark for depth */
        box-shadow:
          0 22px 40px -18px rgba(0,0,0,0.65),
          0 10px 24px -12px rgba(0,0,0,0.5);
        border-bottom: 1px solid rgba(255,255,255,0.18); /* thin white separator */
        backdrop-filter: blur(8px);
      }
      body[data-theme="dark"] .nav-link:hover { background-color: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
      body[data-theme="dark"] .app-footer { border-top-color: rgba(255,255,255,0.12); }
      body[data-theme="dark"] .social-link:hover { background-color: rgba(255,255,255,0.08); }

      /* Dark, premium toggle inspired by reference */
      body[data-theme="dark"] .segmented-toggle {
        border-color: rgba(255,255,255,0.10);
        background: linear-gradient(180deg, rgba(24,30,39,0.55), rgba(14,18,25,0.42));
        backdrop-filter: blur(10px) saturate(140%);
        -webkit-backdrop-filter: blur(10px) saturate(140%);
        background-clip: padding-box;
        box-shadow:
          0 18px 34px rgba(0,0,0,0.55),
          0 0 20px color-mix(in oklab, var(--accent) 22%, transparent), /* orange edge glow */
          0 0 0 1px color-mix(in oklab, var(--accent) 28%, transparent), /* accent ring */
          0 1px 0 rgba(255,255,255,0.06) inset,
          0 -1px 0 rgba(0,0,0,0.6) inset,
          0 0 0 1px rgba(255,255,255,0.06) inset; /* faint inner ring */
        position: relative;
      }
      /* Dark: keep a subtle accent outline on the outer pill */
      body[data-theme="dark"] .segmented-toggle::before {
        content: "";
        position: absolute;
        inset: 1.5px;
        border-radius: inherit;
        box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 28%, transparent) inset; /* lighter ring on dark */
        pointer-events: none;
        z-index: 1;
      }
      @keyframes ringDash { from { stroke-dashoffset: -0.001; } to { stroke-dashoffset: -0.999; } }
      .segmented-toggle .ring { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4; }
      .segmented-toggle .ring svg { width: 100%; height: 100%; display: block; shape-rendering: geometricPrecision; transform: translateZ(0); backface-visibility: hidden; }
      .segmented-toggle .ring .ring-stroke {
        fill: none;
        stroke: color-mix(in oklab, var(--glow) 84%, white 8%);
        stroke-width: 1.0; /* thinner stroke to reduce edge aliasing */
        vector-effect: non-scaling-stroke;
        stroke-linecap: round; stroke-linejoin: round;
        opacity: 0.95;
        filter: drop-shadow(0 0 4px color-mix(in oklab, var(--glow) 70%, transparent))
                drop-shadow(0 0 8px color-mix(in oklab, var(--glow) 35%, transparent));
        /* Very short dash to appear as a dot (sums to 1 for seamless loop) */
        stroke-dasharray: 0.01 0.99;
        stroke-dashoffset: -0.001; /* avoid exact endpoints which can blink */
        animation: ringDash 16s linear infinite both;
      }
      .segmented-toggle:hover .ring .ring-stroke { animation-duration: 12s; }
      /* Soft trail behind the main dot (very low opacity, tiny delays) */
      .segmented-toggle .ring .ring-trail1,
      .segmented-toggle .ring .ring-trail2,
      .segmented-toggle .ring .ring-trail3 { animation-duration: 16s; }
      .segmented-toggle .ring .ring-trail1 { animation-delay: 0.12s; opacity: 0.40; stroke-width: 1.2; stroke-dasharray: 0.012 0.988; filter: drop-shadow(0 0 2px color-mix(in oklab, var(--glow) 55%, transparent)); }
      .segmented-toggle .ring .ring-trail2 { animation-delay: 0.24s; opacity: 0.26; stroke-width: 1.0; stroke-dasharray: 0.014 0.986; filter: drop-shadow(0 0 1.6px color-mix(in oklab, var(--glow) 40%, transparent)); }
      .segmented-toggle .ring .ring-trail3 { animation-delay: 0.36s; opacity: 0.14; stroke-width: 0.9; stroke-dasharray: 0.016 0.984; filter: drop-shadow(0 0 1px color-mix(in oklab, var(--glow) 28%, transparent)); }
      body[data-theme="dark"] .segmented-toggle::after {
        background: radial-gradient(60% 60% at 50% 20%, rgba(0,0,0,0.65), rgba(0,0,0,0.28) 60%, transparent 70%);
        filter: blur(14px);
      }
      body[data-theme="dark"] .indicator {
        /* Clean glass vertical gradient (no radial highlight patch) */
        background-image: linear-gradient(180deg, rgba(44,52,63,0.6), rgba(24,30,39,0.7));
        border-color: rgba(255,255,255,0.14);
        box-shadow:
          0 12px 24px rgba(0,0,0,0.55), /* outer drop */
          0 0 0 1px rgba(255,255,255,0.10) inset, /* outer inner ring */
          0 0 0 2px rgba(255,255,255,0.06) inset, /* second ring */
          0 10px 18px rgba(0,0,0,0.35) inset, /* depth */
          0 -4px 10px rgba(0,0,0,0.45) inset; /* bottom shade */
        transition: transform 440ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease;
      }
      /* Suppress base pseudo elements in dark theme to avoid bleed */
      body[data-theme="dark"] .indicator::before,
      body[data-theme="dark"] .indicator::after { content: none; display: none; }
      body[data-theme="dark"] .segmented-toggle:hover .indicator {
        box-shadow:
          0 22px 40px rgba(0,0,0,0.6),
          0 0 0 1px rgba(255,255,255,0.08) inset,
          0 12px 20px rgba(0,0,0,0.4) inset,
          0 -4px 12px rgba(0,0,0,0.5) inset;
      }
      body[data-theme="dark"] .segmented-toggle:hover::before {
        box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 42%, transparent) inset;
      }
      body[data-theme="dark"] .segmented-toggle:hover {
        box-shadow:
          0 22px 40px rgba(0,0,0,0.6),
          0 0 18px color-mix(in oklab, var(--accent) 16%, transparent),
          0 1px 0 rgba(255,255,255,0.06) inset,
          0 -1px 0 rgba(0,0,0,0.6) inset,
          0 0 0 1px rgba(255,255,255,0.06) inset;
      }
      /* Active label emphasis on dark */
      body[data-theme="dark"] .segmented-toggle:not(.is-right) .left  { color: var(--toggle-text); opacity: 1; text-shadow: none; }
      body[data-theme="dark"] .segmented-toggle:not(.is-right) .right { color: var(--toggle-text); opacity: .9; }
      body[data-theme="dark"] .segmented-toggle.is-right .right { color: var(--toggle-text); opacity: 1; text-shadow: none; }
      body[data-theme="dark"] .segmented-toggle.is-right .left  { color: var(--toggle-text); opacity: .9; }

      /* Dark video cards */
      body[data-theme="dark"] .video-card {
        background: linear-gradient(180deg, rgba(28,34,43,0.9), rgba(18,23,30,0.94));
        border: 1px solid rgba(255,255,255,0.06);
        box-shadow:
          0 16px 28px rgba(0,0,0,0.5),
          0 1px 0 rgba(255,255,255,0.06) inset,
          0 -1px 0 rgba(0,0,0,0.55) inset;
      }

      @media (prefers-reduced-motion: reduce) {
        .segmented-toggle,
        .segmented-toggle .indicator,
        .segmented-toggle .label,
        .segmented-toggle::before,
        .segmented-toggle::after {
          transition-duration: 0ms !important;
          transition-delay: 0ms !important;
        }
        .segmented-toggle button:active .indicator {
          transform: translateX(var(--indicator-x)) !important;
        }
        .segmented-toggle .ring .ring-stroke,
        .segmented-toggle .ring .ring-trail1,
        .segmented-toggle .ring .ring-trail2,
        .segmented-toggle .ring .ring-trail3,
        .fade-in {
          animation: none !important;
        }
      }

      /* Subscribe (Substack) section */
      .subscribe-section { width: 100%; display: flex; justify-content: center; padding: clamp(24px, 4vw, 54px) 16px; }
      .subscribe-card {
        width: 100%;
        max-width: 920px;
        margin: 0 auto;
        border-radius: 16px;
        border: 1px solid var(--glass-stroke);
        background: var(--glass-bg);
        backdrop-filter: blur(10px) saturate(140%);
        -webkit-backdrop-filter: blur(10px) saturate(140%);
        box-shadow: 0 18px 30px rgba(17,24,39,0.12), 0 0 0 1px rgba(255,255,255,0.22) inset;
        padding: clamp(18px, 3.4vw, 28px);
        text-align: center;
      }
      .subscribe-title { margin: 0 0 6px; font-weight: 800; font-size: clamp(22px, 3.8vw, 32px); color: var(--text-strong); }
      .subscribe-desc { margin: 0 0 16px; color: var(--muted-gray); font-weight: 400; font-size: clamp(13px, 2.6vw, 16px); }
      .subscribe-form { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
      .subscribe-input {
        flex: 1 1 320px;
        min-width: 220px;
        max-width: 520px;
        height: 44px;
        border-radius: 999px;
        border: 1px solid var(--glass-stroke);
        background: #fff;
        color: var(--text-strong);
        padding: 10px 14px;
        outline: none;
        transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
      }
      .subscribe-input::placeholder { color: color-mix(in oklab, var(--muted-gray) 88%, white); }
      .subscribe-input:focus { border-color: color-mix(in oklab, var(--accent) 50%, white); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
      .subscribe-button {
        height: 44px;
        padding: 0 18px;
        border-radius: 999px;
        border: 1px solid var(--glass-stroke);
        background: var(--accent);
        color: #fff;
        font-weight: 700;
        letter-spacing: 0.2px;
        cursor: pointer;
        transition: filter 160ms ease, transform 120ms ease;
      }
      .subscribe-button:hover { filter: brightness(0.96); }
      .subscribe-button:active { transform: translateY(1px); }
      body[data-theme="dark"] .subscribe-input { background: rgba(14,18,25,0.72); border-color: rgba(255,255,255,0.14); color: var(--text-strong); }

      /* Remove older white-pill dark styles to avoid conflicts */


/* ══════════════════════════════════════════════
   Gallery page  (index.html)
   ══════════════════════════════════════════════ */

body.gallery-page {
  /* Override the shared body flex-column / align-center layout */
  display: block;
  align-items: unset;
  margin: 0;
  padding: 0;
  background: #080808;
  color: rgba(255,255,255,0.9);
  font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Ambient warm glow — wide bloom from top-center */
body.gallery-page::after {
  content: "";
  position: fixed;
  top: -8vh;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1200px;
  height: 85vh;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(255,184,107,0.16) 0%,
    rgba(255,184,107,0.07) 35%,
    rgba(255,184,107,0.02) 58%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Amber grid overlay — fades with radial vignette ── */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,184,107,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,184,107,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 42%, black 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 42%, black 10%, transparent 75%);
}

/* ── Section divider ── */
.section-divider {
  position: relative;
  width: 100%;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,184,107,0.08) 15%,
    rgba(255,184,107,0.22) 35%,
    rgba(255,184,107,0.22) 65%,
    rgba(255,184,107,0.08) 85%,
    transparent 100%
  );
}

/* ── Nav ── */
/* ── Site nav ── */
.site-nav {
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 48px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: fit-content;
}

.nav-cta { display: none; }

.nav-link {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.38);
  transition: color 200ms ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.80);
}

.nav-link.is-active {
  color: #ffb86b;
}

@media (max-width: 480px) {
  .nav-inner { padding: 20px 24px; gap: 10px; }
  .nav-links { gap: 24px; }
}

.brand-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 0.18em;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  text-shadow:
    0 0 40px rgba(255,184,107,0.55),
    0 0 90px rgba(255,184,107,0.20);
  transition: text-shadow 300ms ease;
}

.brand-mark:hover {
  text-shadow:
    0 0 32px rgba(255,184,107,0.80),
    0 0 70px rgba(255,184,107,0.35);
}

.brand-tagline {
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.38);
  line-height: 1;
  font-weight: 400;
}

/* ── Pricing cards (shared) ── */
.pricing-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 100px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.pricing-bg-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(120px, 18vw, 260px);
  line-height: 0.9;
  color: #fff;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: -60px;
  position: relative;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.pricing-cards {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 820px;
}

.pricing-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(16, 16, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 120px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.18) 0%, transparent 72%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.pricing-card--featured::before {
  background: radial-gradient(ellipse, rgba(255, 184, 107, 0.30) 0%, transparent 72%);
}

.pricing-card--featured {
  border-color: rgba(255, 184, 107, 0.20);
}

.pricing-card--featured .pricing-divider {
  background: rgba(255, 184, 107, 0.18);
}

.pricing-card > * {
  position: relative;
  z-index: 1;
}

.pricing-plan-label {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 16px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 24px;
  line-height: 1;
}

.pricing-currency {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: #ffb86b;
  align-self: flex-start;
  margin-top: 8px;
}

.pricing-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 10vw, 96px);
  letter-spacing: 0.01em;
  line-height: 1;
  color: #ffb86b;
  text-shadow: 0 0 40px rgba(255, 184, 107, 0.35);
}

.pricing-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
}

.pricing-features li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 184, 107, 0.10);
  border: 1px solid rgba(255, 184, 107, 0.30);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb86b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.pricing-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 200ms ease, transform 150ms ease;
  box-sizing: border-box;
}

.pricing-card-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.pricing-card-btn--dark {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-card-btn--light {
  background: #ffffff;
  color: #0a0a0a;
  border: none;
}

.pricing-note {
  margin-top: 36px;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.20);
  text-align: center;
}

@media (max-width: 600px) {
  .pricing-bg-title { margin-bottom: -40px; }
  .pricing-cards { flex-direction: column; max-width: 380px; }
  .pricing-card { padding: 28px 24px 24px; }
}

/* ── Hero CTA ── */
.hero-cta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 36px 24px 56px;
  position: relative;
  z-index: 1;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0a0a0a;
  background: #ffb86b;
  border-radius: 999px;
  padding: 16px 36px;
  transition: filter 200ms ease, box-shadow 200ms ease, transform 150ms ease;
  box-shadow:
    0 0 28px rgba(255,184,107,0.45),
    0 0 60px rgba(255,184,107,0.18);
}

.cta-btn::after {
  content: "→";
  font-style: normal;
  transition: transform 200ms ease;
}

.cta-btn:hover {
  filter: brightness(1.08);
  box-shadow:
    0 0 36px rgba(255,184,107,0.60),
    0 0 80px rgba(255,184,107,0.25);
  transform: translateY(-1px);
}

.cta-btn:hover::after {
  transform: translateX(3px);
}

.cta-btn--ghost {
  color: #ffb86b;
  background: transparent;
  box-shadow: none;
  border: 1px solid rgba(255,184,107,0.35);
}

.cta-btn--ghost:hover {
  background: rgba(255,184,107,0.07);
  box-shadow: none;
  border-color: rgba(255,184,107,0.65);
  filter: none;
}

.cta-note {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.22);
  width: 100%;
  text-align: center;
}

/* ── Brand logo ticker ── */
.logo-ticker {
  width: 100%;
  overflow: hidden;
  padding: 48px 0 8px;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  position: relative;
  z-index: 1;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: ticker 60s linear infinite;
}

.logo-track img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.30;
  transition: opacity 250ms ease;
  flex-shrink: 0;
}

.logo-track img:hover {
  opacity: 0.70;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* ── Gallery header ── */
.gallery-header {
  padding: 0 32px;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Tight focal glow — concentrated bloom directly behind the title */
.gallery-header::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(255,184,107,0.13) 0%,
    rgba(255,184,107,0.04) 42%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}

/* Hairline amber separator at the base of the header */
.gallery-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,184,107,0.25) 30%,
    rgba(255,184,107,0.25) 70%,
    transparent
  );
}

/* ── Hero kicker label ── */
.hero-kicker {
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #ffb86b;
  margin: 0 0 36px;
  position: relative;
  z-index: 1;
  opacity: 0.85;
}

/* ── Hero support line ── */
.hero-sub {
  font-family: 'Sora', sans-serif;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  color: #ffb86b;
  letter-spacing: 0.06em;
  line-height: 1.75;
  margin: 28px 0 0;
  position: relative;
  z-index: 1;
  text-shadow: 
    0 0 20px rgba(255, 184, 107, 0.50),
    0 0 50px rgba(255, 184, 107, 0.25);
  text-transform: uppercase;
}

/* Eyebrow pill badge */
.gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  padding: 10px 22px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* Pulsing availability dot */
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffb86b;
  box-shadow: 0 0 8px rgba(255,184,107,0.9), 0 0 18px rgba(255,184,107,0.45);
  flex-shrink: 0;
  animation: eyebrow-pulse 2.8s ease-in-out infinite;
}

@keyframes eyebrow-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(255,184,107,0.9), 0 0 18px rgba(255,184,107,0.45);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 4px rgba(255,184,107,0.45), 0 0 8px rgba(255,184,107,0.2);
  }
}

.gallery-title {
  font-family: 'Bebas Neue', ui-sans-serif, sans-serif;
  font-size: clamp(72px, 13vw, 185px);
  letter-spacing: 0.02em;
  line-height: 0.88;
  margin: 0;
  color: #fff !important;
  position: relative;
  z-index: 1;
  text-shadow: 0 8px 60px rgba(0, 0, 0, 0.7);
}

.gallery-title .title-outline {
  display: block;
  color: #fff;
}

/* Accent word — solid amber, intense glow */
.gallery-title .accent-word {
  display: block;
  color: #ffb86b;
  text-shadow:
    0 0 40px rgba(255, 184, 107, 0.70),
    0 0 100px rgba(255, 184, 107, 0.30),
    0 0 200px rgba(255, 184, 107, 0.12);
}

.gallery-sub {
  font-family: 'Sora', ui-sans-serif, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.gallery-sub::before,
.gallery-sub::after {
  content: '';
  display: block;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 107, 0.40));
  flex-shrink: 0;
}

.gallery-sub::after {
  background: linear-gradient(90deg, rgba(255, 184, 107, 0.40), transparent);
}

/* Meta tags row */
.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.20);
  position: relative;
  z-index: 1;
}

.meta-dot {
  color: rgba(255,184,107,0.38);
  font-size: 14px;
  line-height: 1;
}

/* ── Pitch section ── */
.pitch-section {
  width: 100%;
  padding: 96px 24px 32px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.pitch-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.pitch-intro {
  text-align: center;
  margin-bottom: 56px;
}

.pitch-eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  padding: 10px 22px;
  margin-bottom: 36px;
}

.pitch-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 92px);
  letter-spacing: 0.03em;
  line-height: 0.95;
  color: #fff;
  margin: 0 0 24px;
}

.pitch-title .accent-word {
  color: #ffb86b;
  text-shadow: 0 0 50px rgba(255,184,107,0.28);
  display: block;
}

.pitch-desc {
  font-family: 'Sora', sans-serif;
  font-size: clamp(14px, 1.4vw, 16px);
  color: rgba(255,255,255,0.62);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 300;
}

/* Bento grid */
.pitch-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pitch-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
.pitch-card:nth-child(2) { grid-column: 3;     grid-row: 1 / 3; }
.pitch-card:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
.pitch-card:nth-child(4) { grid-column: 1;     grid-row: 3; }
.pitch-card:nth-child(5) { grid-column: 2 / 4; grid-row: 3; }

.pitch-card {
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 280ms ease;
}

.pitch-card:hover {
  border-color: rgba(255,184,107,0.16);
}

/* Featured card — inner amber glow in top-right */
.pitch-card--featured::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(255,184,107,0.09) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* Stats card */
.pitch-card--stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 4.5vw, 62px);
  color: #ffb86b;
  line-height: 1;
  text-shadow: 0 0 36px rgba(255,184,107,0.40);
}

.stat-caption {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  line-height: 1.5;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,184,107,0.08);
  color: #ffb86b;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.card-tag {
  font-family: 'Sora', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,184,107,0.50);
  display: block;
  margin-bottom: 18px;
}

.pitch-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  margin: 0 0 14px;
  line-height: 1.35;
}

.pitch-card p {
  font-family: 'Sora', sans-serif;
  font-size: clamp(13px, 1.1vw, 15px);
  color: rgba(255,255,255,0.62);
  line-height: 1.68;
  margin: 0;
  font-weight: 300;
}

/* Pitch responsive */
@media (max-width: 960px) {
  .pitch-bento { grid-template-columns: 1fr 1fr; }
  .pitch-card:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .pitch-card:nth-child(2) { grid-column: auto;  grid-row: auto; }
  .pitch-card:nth-child(3) { grid-column: 1 / 3; grid-row: auto; }
  .pitch-card:nth-child(4) { grid-column: auto;  grid-row: auto; }
  .pitch-card:nth-child(5) { grid-column: 1 / 3; grid-row: auto; }
}

@media (max-width: 600px) {
  .pitch-section { padding: 72px 16px 64px; }
  .pitch-bento { grid-template-columns: 1fr; }
  .pitch-card:nth-child(n) { grid-column: auto; grid-row: auto; }
}

/* ── Contact page ── */
.contact-main {
  width: 100%;
  padding: 56px 24px 120px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.contact-wrap {
  max-width: 720px;
  margin: 0 auto;
}

/* Form card */
.cf {
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  padding: 48px;
}

.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
}

.cf-field--full {
  grid-column: 1 / -1;
}

.cf-label {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 10px;
}

.cf-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  outline: none;
  -webkit-appearance: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cf-input::placeholder {
  color: rgba(255,255,255,0.16);
}

.cf-input:focus {
  border-color: rgba(255,184,107,0.42);
  background: rgba(255,184,107,0.03);
  box-shadow: 0 0 0 3px rgba(255,184,107,0.08);
}

.cf-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.cf-platform-chip {
  cursor: pointer;
}

.cf-platform-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cf-platform-chip span {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  font-family: 'Sora', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.cf-platform-chip input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}

.cf-platform-chip:hover span {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.75);
}

.cf-textarea {
  resize: vertical;
  min-height: 148px;
  line-height: 1.6;
}

/* ── Drag-and-drop dropzone ── */
.cf-label-opt {
  font-weight: 300;
  opacity: 0.55;
  text-transform: none;
  letter-spacing: 0;
  font-size: 9px;
}

.cf-dropzone {
  position: relative;
  border: 1.5px dashed rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cf-dropzone:hover,
.cf-dropzone.cf-dropzone--over {
  border-color: rgba(255,184,107,0.45);
  background: rgba(255,184,107,0.04);
  box-shadow: 0 0 0 3px rgba(255,184,107,0.07);
}

.cf-dropzone-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.cf-dropzone-icon {
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.22);
  margin-bottom: 4px;
  transition: color 180ms ease;
}

.cf-dropzone:hover .cf-dropzone-icon,
.cf-dropzone.cf-dropzone--over .cf-dropzone-icon {
  color: rgba(255,184,107,0.55);
}

.cf-dropzone-primary {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

.cf-dropzone-secondary {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  margin: 0;
  pointer-events: auto;
}

.cf-dropzone-browse {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,184,107,0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cf-dropzone-browse:hover {
  color: rgba(255,184,107,1);
}

.cf-dropzone-hint {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  margin: 4px 0 0;
}

/* File list */
.cf-file-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Sora', sans-serif;
}

.cf-file-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255,184,107,0.6);
}

.cf-file-name {
  flex: 1;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-file-size {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.cf-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.22);
  transition: color 140ms ease;
  flex-shrink: 0;
}

.cf-file-remove:hover {
  color: rgba(255,80,80,0.7);
}

.cf-turnstile-wrap {
  margin-top: 28px;
}

.cf-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cf-back-link {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  transition: color 180ms ease;
}

.cf-back-link:hover {
  color: rgba(255,184,107,0.75);
}

.cf-success {
  margin-top: 20px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 20px;
  border: 1px solid rgba(255,184,107,0.18);
  border-radius: 14px;
  background: rgba(255,184,107,0.04);
}

@media (max-width: 600px) {
  .cf { padding: 28px 20px; }
  .cf-grid { grid-template-columns: 1fr; }
  .cf-field--full { grid-column: auto; }
  .contact-main { padding: 48px 16px 80px; }
}

/* ── Gallery grid ── */
.gallery {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1px;
  gap: 3px;
  padding: 3px;
  position: relative;
  z-index: 1;
}

.gi {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.gi img,
.gi video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Placeholder tiles need an explicit size since they have no content */
.gi-t6, .gi-t7, .gi-t8, .gi-t9, .gi-t10, .gi-t11, .gi-t12 {
  aspect-ratio: 1 / 1;
}

/* ── Mobile gallery: single column, natural aspect ratios ── */
@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 3px;
  }

  .gi {
    grid-row: auto !important; /* override JS masonry spans */
    overflow: hidden;
  }

  .gi video {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
  }
}

/* Hover overlay + label */
.gi-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: background 220ms ease;
  pointer-events: none;
}

.gi:hover .gi-overlay {
  background: rgba(0,0,0,0.38);
}

.gi-label {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.0);
  transition: color 220ms ease, transform 220ms ease;
  transform: translateY(6px);
}

.gi:hover .gi-label {
  color: rgba(255,255,255,0.90);
  transform: translateY(0);
}

/* Placeholder tints */
.gi-t1  { background: linear-gradient(148deg, #141414, #0a0a0a); }
.gi-t3  { background: linear-gradient(162deg, #121416, #090b0d); }
.gi-t4  { background: linear-gradient(135deg, #131413, #0a0b0a); }
.gi-t5  { background: linear-gradient(155deg, #161412, #0c0b09); }
.gi-t6  { background: linear-gradient(128deg, #111315, #08090c); }
.gi-t7  { background: linear-gradient(145deg, #141413, #0b0b0a); }
.gi-t8  { background: linear-gradient(158deg, #131516, #0a0b0c); }
.gi-t9  { background: linear-gradient(140deg, #151412, #0c0b09); }
.gi-t10 { background: linear-gradient(132deg, #121414, #090b0b); }
.gi-t11 { background: linear-gradient(150deg, #141312, #0b0a09); }
.gi-t12 { background: linear-gradient(142deg, #111213, #090a0b); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  /* Gallery */
  .gallery {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 2px;
  }

  /* Nav */
  .site-nav { padding: 14px 16px; }
  .brand-tagline { display: none; }

  /* Hero header */
  .gallery-header { padding: 56px 20px 44px; }
  .gallery-eyebrow { margin-bottom: 24px; font-size: 9px; }
  .gallery-meta { gap: 10px; }

  /* Hide decorative side-lines on gallery-sub — too wide for small screens */
  .gallery-sub::before,
  .gallery-sub::after { display: none; }
  .gallery-sub { gap: 0; }

  /* Hero CTA — stack full-width buttons for easy tapping */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 32px 20px 0;
    gap: 10px;
  }
  .cta-btn {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
  }
  .cta-note { margin-top: 4px; }

  /* Pitch section */
  .pitch-section { padding: 60px 20px 40px; }
  .pitch-intro { margin-bottom: 36px; }

  /* Platforms section */
  .platforms-section { padding: 56px 20px 56px; }
  .platforms-wrap { text-align: center; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .formats-row { flex-wrap: wrap; gap: 16px; justify-content: center; }

  /* How It Works */
  .hiw-section { padding: 56px 20px 64px; }
  .hiw-wrap { text-align: center; }

  /* Contact form */
  .cf { padding: 28px 16px; border-radius: 16px; }
  .cf-grid { grid-template-columns: 1fr; gap: 20px; }
  .cf-field--full { grid-column: auto; }
  .contact-main { padding: 40px 16px 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .gi-overlay,
  .gi-label { transition: none !important; }
  .eyebrow-dot { animation: none !important; }
}

/* ── Hero load animations ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(44px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-anim {
  opacity: 1;
  animation: none;
}

/* ── Scroll animations ── */
[data-anim] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--anim-delay, 0ms);
}

[data-anim].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: parent triggers, children animate in sequence */
[data-anim-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-anim-stagger].in-view > *:nth-child(1) { transition-delay:  40ms; }
[data-anim-stagger].in-view > *:nth-child(2) { transition-delay: 130ms; }
[data-anim-stagger].in-view > *:nth-child(3) { transition-delay: 220ms; }
[data-anim-stagger].in-view > *:nth-child(4) { transition-delay: 310ms; }
[data-anim-stagger].in-view > *:nth-child(5) { transition-delay: 400ms; }

[data-anim-stagger].in-view > * {
  opacity: 1;
  transform: translateY(0);
}

/* Divider line — sweeps in from centre */
[data-anim-line] {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-anim-line].in-view {
  transform: scaleX(1);
}

/* Gallery tiles — simple fade + subtle scale */
[data-anim-fade] {
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-anim-fade].in-view {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim,
  [data-anim],
  [data-anim-stagger] > *,
  [data-anim-line],
  [data-anim-fade] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ── How It Works section ── */
.hiw-section {
  width: 100%;
  padding: 32px 24px 96px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.hiw-wrap {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hiw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  padding: 10px 22px;
  margin-bottom: 36px;
}

.hiw-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 88px);
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: #fff;
  margin: 0 0 72px;
}

.hiw-accent {
  color: #ffb86b;
  text-shadow: 0 0 50px rgba(255,184,107,0.28);
  display: block;
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

/* Connecting line between the circles */
.hiw-connector {
  position: absolute;
  top: 36px; /* vertically centred on the 72px circles */
  left: calc(16.66% + 4px);
  right: calc(16.66% + 4px);
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255,184,107,0.22),
    rgba(255,184,107,0.10) 50%,
    rgba(255,184,107,0.22)
  );
  pointer-events: none;
}

.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hiw-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: #ffb86b;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 24px rgba(255,184,107,0.10);
}

.hiw-step-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  margin: 0;
  line-height: 1.2;
}

.hiw-step-desc {
  font-family: 'Sora', sans-serif;
  font-size: clamp(13px, 1.1vw, 15px);
  color: rgba(255,255,255,0.48);
  line-height: 1.65;
  margin: 0;
  font-weight: 300;
  max-width: 240px;
}

@media (max-width: 600px) {
  .hiw-section { padding: 72px 16px 72px; }
  .hiw-steps { grid-template-columns: 1fr; gap: 48px; }
  .hiw-connector { display: none; }
  .hiw-title { margin-bottom: 52px; }
}

/* ── Stats section ── */
.stats-section {
  width: 100%;
  padding: 80px 24px;
}

.stats-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-pct {
  font-size: 0.55em;
}

.stat-label {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  line-height: 1.3;
  margin: 0;
}

.stat-body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin: 0;
}

.stat-source {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.stat-punchline {
  font-size: 0.875rem;
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  opacity: 0.8;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .stats-wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Platform delivery section ── */
.platforms-section {
  width: 100%;
  padding: 64px 24px 80px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.platforms-wrap {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.platforms-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 6vw, 80px);
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: #fff;
  margin: 0 0 20px;
}

.platforms-sub {
  font-family: 'Sora', sans-serif;
  font-size: clamp(13px, 1.2vw, 15px);
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  line-height: 1.6;
  margin: 0 auto 56px;
  max-width: 520px;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 28px 12px 24px;
  transition: border-color 240ms ease, background 240ms ease;
}

.platform-card:hover {
  border-color: rgba(255,184,107,0.20);
  background: rgba(255,184,107,0.03);
}

.platform-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,184,107,0.07);
  color: #ffb86b;
  flex-shrink: 0;
  transition: background 240ms ease;
}

.platform-card:hover .platform-icon {
  background: rgba(255,184,107,0.12);
}

.platform-name {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.80);
  letter-spacing: 0.04em;
}

.platform-formats {
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 300;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* Format shape pills */
.formats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.format-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.30);
}

.format-shape {
  border: 1px solid rgba(255,184,107,0.30);
  border-radius: 4px;
  background: rgba(255,184,107,0.05);
  flex-shrink: 0;
}

.format-portrait  { width: 18px; height: 32px; }
.format-square    { width: 26px; height: 26px; }
.format-landscape { width: 40px; height: 22px; }

@media (max-width: 640px) {
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .platforms-section { padding: 48px 16px 64px; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .formats-row { gap: 20px; }
}

/* ────────────────────────────────────────────
   Hero 3D Video Background
   ──────────────────────────────────────────── */

.hero-wrap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Perspective container — large negative inset so the tilted grid
   bleeds well past every edge of the hero */
.hero-video-bg {
  position: absolute;
  inset: -80%;
  z-index: 0;
  perspective: 900px;
  perspective-origin: 50% 42%;
  pointer-events: none;
}

/* Five independent flex columns — each scrolls its own track */
.hero-video-grid {
  display: flex;
  gap: 0;
  width: 100%;
  height: 100%;
  transform: rotateX(34deg) rotateZ(-5deg) scale(0.75);
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
}

/* Each column takes equal width and clips its scrolling track */
.hvg-col {
  flex: 1;
  overflow: hidden;
}

/* The scrolling track inside each column: 2× tiles so -50% loops seamlessly */
.hvg-track {
  display: flex;
  flex-direction: column;
  animation: hvgScroll 28s linear infinite;
  will-change: transform;
}

@keyframes hvgScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}


.hvg-tile {
  display: block;
  width: 100%;
  flex-shrink: 0;
}

.hvg-tile video {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.5;
}

/* For videos with baked-in letterboxing — force a crop to hide black bars */
.hvg-tile.hvg-crop {
  aspect-ratio: 1 / 1;
}
.hvg-tile.hvg-crop video {
  height: 100%;
  object-fit: cover;
}

/* Multi-layer overlay — videos are atmosphere, text takes centre stage */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 46%,
      rgba(10, 10, 14, 0.50) 0%,
      rgba(10, 10, 14, 0.92) 100%),
    linear-gradient(to bottom,
      rgba(10, 10, 14, 0.85) 0%,
      rgba(10, 10, 14, 0.25) 22%,
      rgba(10, 10, 14, 0.25) 70%,
      rgba(10, 10, 14, 0.97) 100%);
  pointer-events: none;
}

/* Keep header text & CTA above both bg + overlay */
.hero-wrap .gallery-header,
.hero-wrap .hero-cta {
  position: relative;
  z-index: 2;
}

/* Disable animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hvg-track      { animation: none !important; }
  .hvg-tile video { display: none; }
}

/* On mobile, simplify — lose the 3D tilt, just show a subtle fade */
@media (max-width: 640px) {
  .hero-video-bg { display: none; }
  .hero-video-overlay { display: none; }
}
