:root {
    --glow-warm:        rgba(217, 122, 77, 0.22);
    --glow-warm-soft:   rgba(217, 122, 77, 0.10);
    --glow-warm-faint:  rgba(217, 122, 77, 0.05);
    --glow-warm-shadow: rgba(217, 122, 77, 0.18);
}

/* Reusable spotlight - drop on any positioned element to bathe its
   top in warm copper light. Works on both ivory and mocha backgrounds. */
.warm-spot {
    position: relative;
}
.warm-spot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 0%,
        var(--glow-warm) 0%,
        var(--glow-warm-soft) 25%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}
.warm-spot > * {
    position: relative;
    z-index: 1;
}

/* Softer variant for light backgrounds (hero, newsletter card) where
   the full-strength spotlight would muddy the cream. */
.warm-spot-soft::before {
    background: radial-gradient(
        ellipse at 50% 0%,
        var(--glow-warm-soft) 0%,
        var(--glow-warm-faint) 30%,
        transparent 65%
    );
}

.cinematic .lit {
    color: var(--text-strong);
    background-image: linear-gradient(
        135deg,
        var(--mocha) 0%,
        var(--walnut) 35%,
        #b88560 70%,
        #d97a4d 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Subtle copper aura around the text - only visible against ivory */
    filter: drop-shadow(0 1px 0 rgba(217, 122, 77, 0.06));
}

/* Inverted variant for use on dark backgrounds (CTA strip).
   Goes light-to-warm instead of dark-to-warm. */
.cinematic .lit-on-dark {
    color: var(--ivory);
    background-image: linear-gradient(
        135deg,
        var(--ivory) 0%,
        #f5d8b8 65%,
        #f1b582 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 24px rgba(217, 122, 77, 0.18));
}

.cinematic .hero-photo-caption {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--walnut);
    font-style: normal;
}

.count-up {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    min-width: 1ch;
}

.cinematic .nav-brand .nav-icon {
    transition: transform 0.35s var(--ease-emphasis);
}
.cinematic .nav-brand:hover .nav-icon {
    transform: rotate(-8deg) scale(1.06);
}
.cinematic .nav-links a {
    position: relative;
    padding-bottom: 4px;
}
.cinematic .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 100%;
    height: 1px;
    background: var(--mocha);
    transition: right 0.3s var(--ease-out);
}
.cinematic .nav-links a:hover::after {
    right: 0;
}
.cinematic .nav.scrolled {
    background: color-mix(in srgb, var(--ivory) 96%, transparent);
    box-shadow: 0 1px 0 var(--line-soft), 0 4px 20px rgba(78,64,52,0.04);
}

/* Gradient fade overlays at section edges so backgrounds don't hard-cut.
   Each section gets ::before (top edge) and ::after (bottom edge) bleeds. */
.cinematic .section,
.cinematic .hero,
.cinematic .cta-strip {
    position: relative;
}
.cinematic .section::before,
.cinematic .section::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 80px;
    pointer-events: none;
    z-index: 1;
}
.cinematic .section::before { top: 0; }
.cinematic .section::after { bottom: 0; }
.cinematic .section::before {
    background: linear-gradient(180deg, var(--ivory), transparent);
}
.cinematic .section::after {
    background: linear-gradient(0deg, var(--ivory), transparent);
}
.cinematic .section-tinted::before {
    background: linear-gradient(180deg, var(--surface-2), transparent);
}
.cinematic .section-tinted::after {
    background: linear-gradient(0deg, var(--surface-2), transparent);
}
.cinematic .section > .container,
.cinematic .section > .section-head,
.cinematic .hero > .container {
    position: relative;
    z-index: 2;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: transparent;
    z-index: 200;
    pointer-events: none;
}
.scroll-progress-fill {
    height: 100%;
    width: 100%;
    background: var(--walnut);
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform;
}

/* Default state: visible. Hidden states only apply once motion.js
   adds .motion-ready to <html>. If motion fails, content stays visible. */
.cinematic .display .word {
    display: inline-block;
}
html.motion-ready .cinematic .display .word {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(30px);
    will-change: opacity, filter, transform;
}

.cinematic .hero-photo-3d {
    perspective: 2000px;
    transform-style: preserve-3d;
}
.cinematic .hero-photo-3d img {
    will-change: transform, opacity;
    transform-origin: center top;
}

/* When the photo lives outside the hero (after the pill showcase), give it
   its own breathing room so it doesn't slam into the next section. */
.cinematic .hero-photo-standalone {
    margin-top: clamp(80px, 10vw, 140px);
    margin-bottom: clamp(80px, 10vw, 140px);
}

html.motion-ready .cinematic [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    will-change: opacity, transform;
}
html.motion-ready .cinematic [data-stagger] > * {
    opacity: 0;
    transform: translateY(28px);
    will-change: opacity, transform;
}

.cinematic .tilt-card {
    transform-style: preserve-3d;
    transition: box-shadow 0.3s var(--ease-out);
}
.cinematic .tilt-card .feature-icon,
.cinematic .tilt-card .util-icon,
.cinematic .tilt-card .step-num {
    transform: translateZ(20px);
    transition: transform 0.3s var(--ease-out);
}
.cinematic .tilt-card h3 {
    transform: translateZ(12px);
    transition: transform 0.3s var(--ease-out);
}
.cinematic .tilt-card p,
.cinematic .tilt-card .shortcut-list {
    transform: translateZ(6px);
    transition: transform 0.3s var(--ease-out);
}

.showcase-pinned {
    position: relative;
    
    height: 240vh;
    background: var(--ivory);
}
.showcase-track {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2400px;
}

.showcase-track::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--mocha) 8%, transparent), transparent 70%),
        linear-gradient(180deg, var(--surface-2), var(--ivory) 60%);
    z-index: 0;
}

.showcase-pill {
    position: relative;
    z-index: 2;
    width: min(82vw, 900px);
    will-change: transform;
    transform-style: preserve-3d;
    perspective: 2400px;
}
.showcase-pill-rig {
    
    --shadow-x-near: 0px;
    --shadow-x-far: 0px;
    --rim-x: 0px;
    --rim-alpha: 0;

    position: relative;
    will-change: transform, filter;
    transform-style: preserve-3d;
    
    filter:
        drop-shadow(var(--shadow-x-near) 30px 60px rgba(78, 64, 52, 0.25))
        drop-shadow(var(--shadow-x-far) 80px 140px rgba(78, 64, 52, 0.18))
        drop-shadow(var(--rim-x) -10px 22px rgba(255, 200, 150, var(--rim-alpha)));
}
.showcase-pill img {
    display: block;
    width: 100%;
    height: auto;
}

.showcase-phases {
    position: absolute;
    top: clamp(40px, 8vh, 100px);
    left: 50%;
    transform: translateX(-50%);
    width: min(640px, 86vw);
    text-align: center;
    z-index: 3;
    pointer-events: none;
}
.showcase-phases .phase {
    position: absolute;
    top: 0; left: 0; right: 0;
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}
.showcase-phases .phase .eyebrow {
    margin-bottom: 14px;
}
.showcase-phases .phase .heading {
    font-size: clamp(28px, 4vw, 48px);
    margin: 0 0 12px;
}
.showcase-phases .phase p {
    color: var(--text-muted);
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.55;
    max-width: 540px;
    margin: 0 auto;
}

.showcase-dots {
    position: absolute;
    bottom: clamp(32px, 6vh, 60px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.showcase-dots .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--stone);
    opacity: 0.4;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.showcase-dots .dot.active {
    opacity: 1;
    transform: scale(1.3);
    background: var(--mocha);
}

.section-tinted + .showcase-pinned { background: var(--surface-2); }
.showcase-track::before {
    background:
        radial-gradient(ellipse at 50% 18%, var(--glow-warm), transparent 55%),
        radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--mocha) 6%, transparent), transparent 70%),
        linear-gradient(180deg, transparent 0%, var(--surface-2) 18%, var(--ivory) 65%) !important;
}

body.cinematic {
    background: var(--ivory);
}

.cinematic .hero {
    overflow: hidden;
    padding-bottom: clamp(80px, 11vh, 140px);
}
.cinematic .hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: radial-gradient(
        ellipse at 50% 0%,
        var(--glow-warm-soft) 0%,
        var(--glow-warm-faint) 25%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}
.cinematic .hero > .container {
    position: relative;
    z-index: 2;
}

/* Power Mode active card: warm spotlight from above so the highlighted
   profile reads as "this is the one currently in use, lit on stage". */
.cinematic .power-card-active {
    overflow: hidden;
    position: relative;
}
.cinematic .power-card-active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 0%,
        var(--glow-warm) 0%,
        var(--glow-warm-soft) 28%,
        transparent 65%
    );
    pointer-events: none;
    z-index: 0;
}
.cinematic .power-card-active > * {
    position: relative;
    z-index: 1;
}

/* Newsletter card: subtle warm wash so the only "form" on the page
   feels lit instead of flat. */
.cinematic .newsletter-card {
    overflow: hidden;
    position: relative;
}
.cinematic .newsletter-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 0%,
        var(--glow-warm-soft) 0%,
        var(--glow-warm-faint) 30%,
        transparent 65%
    );
    pointer-events: none;
    z-index: 0;
}
.cinematic .newsletter-card > * {
    position: relative;
    z-index: 1;
}

/* Primary buttons get a copper-tinted shadow on hover instead of plain
   black. Subtle but unifies the warm-light language. */
.cinematic .btn-primary:hover {
    box-shadow:
        0 12px 30px rgba(78, 64, 52, 0.32),
        0 6px 18px var(--glow-warm-shadow);
}

.cinematic .tilt-card:hover {
    box-shadow:
        0 18px 50px rgba(78, 64, 52, 0.14),
        0 4px 16px var(--glow-warm-shadow);
}

/* Demo stages (Marquee / Spring / Progress / Visualizer) inherit the
   spotlight so each mini-stage reads as a tiny lit theatre. */
.cinematic .demo-stage {
    position: relative;
}
.cinematic .demo-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 0%,
        var(--glow-warm-soft) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}
.cinematic .demo-stage > * {
    position: relative;
    z-index: 1;
}

.cinematic #how {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, var(--glow-warm-faint), transparent 70%),
        var(--ivory);
}
.cinematic #features {
    background:
        radial-gradient(ellipse 90% 55% at 50% 0%, var(--glow-warm-soft), transparent 72%),
        var(--surface-2);
}
.cinematic #showcase-cards {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, var(--glow-warm-faint), transparent 70%),
        var(--ivory);
}
.cinematic #utilities {
    background:
        radial-gradient(ellipse 90% 55% at 50% 0%, var(--glow-warm-soft), transparent 72%),
        var(--surface-2);
}
.cinematic #power {
    background:
        radial-gradient(ellipse 85% 60% at 50% 0%, var(--glow-warm-faint), transparent 70%),
        var(--ivory);
}
.cinematic #requirements {
    background:
        radial-gradient(ellipse 90% 50% at 50% 0%, var(--glow-warm-soft), transparent 72%),
        var(--surface-2);
}
.cinematic #faq {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, var(--glow-warm-faint), transparent 72%),
        var(--surface-2);
}
.cinematic #newsletter {
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, var(--glow-warm-faint), transparent 70%),
        var(--ivory);
}

.cinematic .legal-hero {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, var(--glow-warm-soft), transparent 70%),
        var(--ivory);
    overflow: hidden;
    position: relative;
}
.cinematic .legal-body {
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, var(--glow-warm-faint), transparent 70%),
        var(--ivory);
}

/* Step cards (How it works) - gentle warm tint on hover so the
   "story arc" feels lit as you read through it */
.cinematic .step:hover {
    background:
        radial-gradient(ellipse at 50% 0%, var(--glow-warm-soft), transparent 60%),
        var(--surface);
}

/* Step numbers (01, 02, 03) - gradient fill from stone → copper.
   A small accent that catches the eye without screaming. */
.cinematic .step-num {
    background-image: linear-gradient(135deg, var(--stone) 0%, #c89876 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cinematic .heading em {
    color: var(--walnut);
    -webkit-text-fill-color: var(--walnut);
}

.cinematic .showcase-phases .phase .eyebrow {
    background-image: linear-gradient(90deg, #c89876 0%, var(--walnut) 30%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-color: transparent;
    border-color: var(--line);
}

/* CTA title gets a luxurious ivory→copper gradient on dark mocha bg.
   This is THE typographic moment of the page; the text now glows. */
.cinematic .cta-cinematic .cta-title {
    color: var(--ivory); /* fallback */
    background-image: linear-gradient(
        135deg,
        var(--ivory) 0%,
        #f5d8b8 60%,
        #e8a877 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 32px rgba(217, 122, 77, 0.22));
}
.cinematic .cta-cinematic .cta-title span {
    /* Sub-clause stays solid ivory at low opacity; gradient only on lead */
    background-image: none;
    -webkit-text-fill-color: rgba(245, 242, 236, 0.55);
    color: rgba(245, 242, 236, 0.55);
    filter: none;
}

.cinematic .hero .display-line {
    color: var(--text-strong);
    -webkit-text-fill-color: var(--text-strong);
    background: none;
    background-image: none;
}
.cinematic .hero .display-line.italic {
    color: var(--walnut);
    -webkit-text-fill-color: var(--walnut);
    background: none;
    background-image: none;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 2.5vw, 28px);
}
.demo-card {
    background: var(--surface);
    border-radius: 22px;
    padding: 0 0 28px;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    transform-style: preserve-3d;
}
.demo-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    margin: 24px 28px 8px;
}
.demo-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0 28px;
}

.demo-stage {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--mocha) 5%, transparent), transparent 70%),
        linear-gradient(180deg, var(--surface-2), var(--greige) 200%);
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
}

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

.demo-pill-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(44, 36, 31, 0.82);
    border-radius: 14px;
    width: 220px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 26px rgba(78, 64, 52, 0.18);
}
.demo-art-mini {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 6px;
    background:
        linear-gradient(135deg, #d97a4d 0%, #8c6244 50%, #4e3422 100%);
}
.demo-marquee {
    flex: 1;
    overflow: hidden;
    color: rgba(245, 242, 236, 0.92);
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.demo-marquee-track {
    display: inline-block;
    animation: marquee-loop 14s linear infinite;
    will-change: transform;
}
@keyframes marquee-loop {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.demo-controls-row {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 16px 26px;
    background: rgba(44, 36, 31, 0.82);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 26px rgba(78, 64, 52, 0.18);
}
.demo-ctrl {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 242, 236, 0.85);
    font-size: 12px;
    border-radius: 50%;
    will-change: transform, background;
    animation: ctrl-pulse 2.4s var(--ease-out) infinite;
}
.demo-ctrl-play {
    width: 36px;
    height: 36px;
    background: rgba(245, 242, 236, 0.18);
    font-size: 13px;
    animation-delay: 0.4s;
}
.demo-controls-row .demo-ctrl:nth-child(3) {
    animation-delay: 0.8s;
}
@keyframes ctrl-pulse {
    0%, 60%, 100% { background: transparent; transform: scale(1); }
    20% { background: rgba(245, 242, 236, 0.22); transform: scale(1.12); }
    40% { background: rgba(245, 242, 236, 0.10); transform: scale(0.98); }
}
.demo-ctrl-play {
    /* Override so the play button keeps its "active" base background */
    background: rgba(245, 242, 236, 0.18);
}
@keyframes ctrl-pulse-play {
    0%, 60%, 100% { background: rgba(245, 242, 236, 0.18); transform: scale(1); }
    20% { background: rgba(245, 242, 236, 0.32); transform: scale(1.12); }
    40% { background: rgba(245, 242, 236, 0.12); transform: scale(0.98); }
}
.demo-ctrl-play { animation-name: ctrl-pulse-play; }

.demo-progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 86%;
    max-width: 360px;
}
.demo-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--walnut);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.demo-progress-track {
    position: relative;
    flex: 1;
    height: 4px;
    background: rgba(78, 64, 52, 0.16);
    border-radius: 999px;
}
.demo-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--mocha);
    border-radius: 999px;
    animation: progress-walk 4s ease-in-out infinite;
    will-change: width;
}
.demo-progress-thumb {
    position: absolute;
    left: 0%;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mocha);
    box-shadow: 0 2px 6px rgba(78, 64, 52, 0.4);
    transform: translate(-50%, -50%);
    animation: progress-thumb 4s ease-in-out infinite;
    will-change: left;
}
@keyframes progress-walk {
    0%   { width: 0%; }
    50%  { width: 60%; }
    100% { width: 0%; }
}
@keyframes progress-thumb {
    0%   { left: 0%; }
    50%  { left: 60%; }
    100% { left: 0%; }
}

.demo-viz-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    padding: 16px 26px;
    background: rgba(44, 36, 31, 0.82);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 26px rgba(78, 64, 52, 0.18);
}
.demo-viz-bars span {
    width: 5px;
    background: linear-gradient(180deg, rgba(245, 242, 236, 0.92), rgba(245, 242, 236, 0.6));
    border-radius: 2px;
    animation: viz-bar 0.85s ease-in-out infinite alternate;
    will-change: height;
}
.demo-viz-bars span:nth-child(1) { height: 14px; animation-delay: 0s; }
.demo-viz-bars span:nth-child(2) { height: 22px; animation-delay: 0.18s; }
.demo-viz-bars span:nth-child(3) { height: 18px; animation-delay: 0.36s; }
.demo-viz-bars span:nth-child(4) { height: 12px; animation-delay: 0.54s; }
@keyframes viz-bar {
    from { height: 6px; }
    to   { height: 28px; }
}

.util-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}
.util-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.util-stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone);
}
.util-stat-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
}

.util-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.util-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
    transition: background 0.18s var(--ease-out);
}
.util-list-active {
    background: var(--surface-2);
    color: var(--text-strong);
    font-weight: 500;
}
.util-list-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
    flex-shrink: 0;
}
.util-list-item:not(.util-list-active) {
    padding-left: 26px;
}

.util-link-row {
    margin-top: 16px;
    padding: 10px 12px;
    background: var(--surface-2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.util-link-url {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.util-link-copied {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2f7d4a;
    flex-shrink: 0;
}

.power-grid-3d {
    perspective: 1500px;
    transform-style: preserve-3d;
    will-change: transform;
}
.power-grid-3d .power-card {
    transform-style: preserve-3d;
    will-change: transform;
}
.power-grid-3d .power-card-low  { transform: translateZ(-30px) rotateY(8deg); }
.power-grid-3d .power-card-mid  { transform: translateZ(0) rotateY(0); z-index: 2; }
.power-grid-3d .power-card-high { transform: translateZ(-30px) rotateY(-8deg); }

.cinematic .power-card-active {
    background: var(--mocha);
    border-color: var(--mocha);
}
.cinematic .power-card-active .power-tag {
    background: rgba(245, 242, 236, 0.18);
    color: var(--ivory);
}
.cinematic .power-card-active h3 {
    color: var(--ivory);
}
.cinematic .power-card-active p {
    color: rgba(245, 242, 236, 0.78);
}

.power-stats {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cinematic .power-card-active .power-stats {
    border-top-color: rgba(245, 242, 236, 0.16);
}
.power-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.power-stat-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone);
}
.cinematic .power-card-active .power-stat-label {
    color: rgba(245, 242, 236, 0.6);
}
.power-stat-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: -0.01em;
    color: var(--text-strong);
    font-variant-numeric: tabular-nums;
}
.cinematic .power-card-active .power-stat-value {
    color: var(--ivory);
}

.cinematic .footer-clean {
    background: var(--paper);
    border-top: 1px solid var(--line-soft);
    padding: 60px 0 44px;
    margin-top: 40px;
}

/* Three-column grid: brand pinned left, links justified center, meta pinned right. */
.cinematic .fc-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

/* Left: 38px logo + Sonant title + tiny "A product of TB Tech" sub. */
.cinematic .fc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cinematic .fc-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}
.cinematic .fc-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-strong);
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.cinematic .fc-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.cinematic .fc-tb {
    background: linear-gradient(120deg, #d97a4d, var(--walnut));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s var(--ease-out);
}
.cinematic a.fc-tb:hover { opacity: 0.8; }

.cinematic .fc-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}
.cinematic .fc-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.18s var(--ease-out);
}
.cinematic .fc-links a:hover { color: var(--text-strong); }

/* Right: stacked meta. Copyright on top, "Made with Swift" on the second line. */
.cinematic .fc-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
    color: var(--stone);
}
.cinematic .fc-swift {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cinematic .fc-swift-logo {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Centered studio pill, separate element below the grid with its own divider. */
.cinematic .fc-studio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 40px auto 0;
    padding-top: 26px;
    border-top: 1px solid var(--line-soft);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.cinematic .fc-studio:hover {
    opacity: 1;
    transform: translateY(-1px);
}
.cinematic .fc-studio-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone);
}
.cinematic .fc-studio-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--espresso);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s var(--ease-out);
}
.cinematic .fc-studio-mark img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.cinematic .fc-studio:hover .fc-studio-mark {
    background: #000;
}

/* Tablet: collapse to single centered column, drop right-alignment. */
@media (max-width: 980px) {
    .cinematic .fc-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    .cinematic .fc-brand { justify-content: center; }
    .cinematic .fc-meta { align-items: center; }
}

@media (max-width: 720px) {
    .cinematic .fc-links {
        flex-wrap: wrap;
        gap: 6px 20px;
        white-space: normal;
    }
}

.legal-page {
    background: var(--ivory);
}
.legal-hero {
    padding: clamp(80px, 12vw, 140px) 0 clamp(48px, 6vw, 80px);
    text-align: center;
    border-bottom: 1px solid var(--line-soft);
}
.legal-hero .eyebrow {
    margin-bottom: 22px;
}
.legal-hero .display {
    margin: 0 0 22px;
    font-size: clamp(40px, 6.5vw, 84px);
    line-height: 1.02;
}
.legal-hero .display-line.italic {
    /* On legal pages, the second line uses lighter weight + walnut for breath */
    font-weight: 500;
    color: var(--walnut);
    letter-spacing: -0.04em;
}
.legal-meta {
    display: inline-block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone);
    padding: 6px 12px;
    background: var(--surface-2);
    border-radius: 999px;
}

.legal-body {
    padding: clamp(56px, 7vw, 96px) 0;
}
.legal-prose {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}
.legal-prose .legal-lede {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-strong);
    font-weight: 500;
    margin: 0 0 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line-soft);
}
.legal-prose h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    margin: 56px 0 16px;
    scroll-margin-top: 96px;
}
.legal-prose h2:first-of-type { margin-top: 8px; }
.legal-prose p {
    margin: 0 0 18px;
    color: var(--text-muted);
}
.legal-prose strong {
    color: var(--text-strong);
    font-weight: 600;
}
.legal-prose em {
    font-style: normal;
    color: var(--walnut);
    font-weight: 500;
}
.legal-prose a {
    color: var(--brand);
    border-bottom: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
    transition: color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.legal-prose a:hover {
    color: var(--brand-deep);
    border-color: var(--brand-deep);
}
.legal-prose ul {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.legal-prose ul li {
    position: relative;
    padding-left: 22px;
    color: var(--text-muted);
}
.legal-prose ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--stone);
}
.legal-prose code {
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 2px 6px;
    background: var(--surface-2);
    border-radius: 4px;
    color: var(--text-strong);
}

.cta-cinematic {
    overflow: hidden;
}
.cta-cinematic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(217, 122, 77, 0.22) 0%,
        rgba(217, 122, 77, 0.10) 25%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}
.cta-cinematic > .container {
    position: relative;
    z-index: 1;
}

/* Title size + weight tuned to match the new spotlight presence:
   bigger, bolder, no italic. Pairs with the stronger backdrop. */
.cta-cinematic .cta-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: normal;
    font-size: clamp(44px, 6.5vw, 88px);
    line-height: 1.0;
    letter-spacing: -0.045em;
    color: var(--ivory);
    margin: 0 0 36px;
    will-change: opacity, transform;
}
.cta-cinematic .cta-title span {
    /* Sub-clauses (e.g. "We read every email.") softened in walnut-tinged
       ivory so the bold first phrase still leads. */
    font-weight: 500;
    color: rgba(245, 242, 236, 0.55);
    display: inline-block;
}
.cta-cinematic .cta-actions > * {
    will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
    .cinematic .display .word { opacity: 1; filter: none; transform: none; }
    .cinematic [data-reveal],
    .cinematic [data-stagger] > * { opacity: 1; transform: none; }
    .cinematic .hero-photo-3d img { transform: none; opacity: 1; }
    .showcase-pinned { height: auto; }
    .showcase-track { position: relative; height: auto; padding: 80px 0; }
    .showcase-pill { transform: none; margin: 40px auto; }
    .showcase-phases { position: relative; transform: none; left: auto; }
    .showcase-phases .phase { position: relative; opacity: 1; transform: none; margin-bottom: 60px; }
    .pill-overlay { display: none; }
}

@media (max-width: 720px) {
    .showcase-pinned { height: auto; }
    .showcase-track { position: relative; height: auto; padding: 60px 0; flex-direction: column; }
    .showcase-pill { transform: none; margin: 0 0 40px; width: 92vw; }
    .showcase-pill-rig { transform: none; }
    .showcase-phases {
        position: relative;
        transform: none;
        left: auto;
        top: 0;
        margin: 0 auto 30px;
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    .showcase-phases .phase {
        position: relative;
        opacity: 1;
        transform: none;
        margin: 0;
    }
    .showcase-dots { display: none; }
    .power-grid-3d .power-card-low,
    .power-grid-3d .power-card-mid,
    .power-grid-3d .power-card-high { transform: none; }
}
