/* ===================================================================
   SimplyREM — site CSS (light luxury theme)
   Token names are kept from the original dark theme to avoid a sweeping
   rename across templates; values have been retuned for a warm-paper
   light surface with the brand orange accent.
   =================================================================== */

:root {
    /* Background scale (paper → white) */
    --bg-primary:    #FCFCF8;
    --bg-secondary:  #F2EFE8;
    --bg-tertiary:   #FFFFFF;
    --border:        #E5E1D6;

    /* Text scale */
    --text-primary:   #111111;
    --text-secondary: #525258;
    --text-tertiary:  #A1A1AA;

    /* Accents (driven by the logo) */
    --accent-orange:  #FF5320;
    --accent-coral:   #FF7B5C;
    --accent-ink:     #181818;

    /* Legacy variable names retained for backwards compatibility */
    --accent-gold:      var(--accent-orange);
    --accent-gold-soft: var(--accent-coral);
    --accent-blue:      var(--accent-ink);
    --accent-purple:    var(--accent-ink);
    --accent-cyan:      var(--accent-coral);

    --gradient-hero: linear-gradient(135deg, #181818 0%, #FF5320 60%, #FF7B5C 100%);
    --gradient-gold: linear-gradient(135deg, #FF5320 0%, #FF7B5C 100%);

    color-scheme: light;
}

html.is-loading body > *:not(#preloader) {
    opacity: 0;
    pointer-events: none;
}

[x-cloak] { display: none !important; }

html, body { background: var(--bg-primary); color: var(--text-primary); }

/* Playfair Display ships with real weights 400-900 + italics — no
 * synthesis workaround needed. Templates can use font-medium/font-semibold
 * on .font-display headings and the browser pulls the right cut. */

::selection { background: rgba(255,83,32,.20); color: #111; }

/* ===== Bespoke scrollbar (warm) ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255,83,32,.5), rgba(24,24,24,.4));
    border-radius: 10px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(255,83,32,.8), rgba(24,24,24,.6)); }

/* ===================================================================
   Custom cursor — ethereal light premium effect.
   - Inner dot: crisp white pearl with soft luminous glow.
   - Outer ring: ultra-thin white border, transparent fill, radiating
     white halo that breathes subtly. Pure light — no heavy fills.
   - Sparkle particles trail from cursor.js on mousemove.
   - Hover states intensify the glow for an aura-like expand.
   - Cubic-bezier easing throughout for buttery motion.
   =================================================================== */
.cursor {
    width: 0; height: 0;
    pointer-events: none;
    will-change: transform;
    z-index: 99999;
}

.cursor-dot {
    position: absolute;
    top: -4px; left: -4px;
    width: 8px; height: 8px;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow:
        0 0 6px 2px rgba(255,255,255,0.85),
        0 0 14px 4px rgba(255,255,255,0.35);
    transition: transform .2s cubic-bezier(.22,1,.36,1), opacity .25s ease;
}

.cursor-ring {
    position: absolute;
    top: -22px; left: -22px;
    width: 44px; height: 44px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.30);
    box-shadow:
        inset 0 0 10px rgba(255,255,255,0.06),
        0 0 18px rgba(255,255,255,0.14),
        0 0 36px rgba(255,255,255,0.06);
    transition:
        transform .45s cubic-bezier(.22,1,.36,1),
        border-color .35s ease,
        box-shadow .35s ease,
        opacity .25s ease;
}

/* Subtle idle pulse — ring breathes softly */
@keyframes cursor-breathe {
    0%, 100% { box-shadow: inset 0 0 10px rgba(255,255,255,0.06), 0 0 18px rgba(255,255,255,0.14), 0 0 36px rgba(255,255,255,0.06); }
    50%       { box-shadow: inset 0 0 10px rgba(255,255,255,0.10), 0 0 26px rgba(255,255,255,0.22), 0 0 52px rgba(255,255,255,0.10); }
}
.cursor-ring { animation: cursor-breathe 3s ease-in-out infinite; }

/* Spinning arc sweep — bright comet tail orbiting the ring */
.cursor-ring::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 999px;
    background: conic-gradient(
        transparent 0%,
        transparent 60%,
        rgba(255,255,255,0.18) 72%,
        rgba(255,255,255,0.75) 82%,
        rgba(255,255,255,1)    88%,
        rgba(255,255,255,0.50) 93%,
        transparent 100%
    );
    /* Mask to only show the 1-2px ring stroke, not the fill */
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), white calc(100% - 2px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), white calc(100% - 2px));
    animation: cursor-arc-spin 2s linear infinite;
    opacity: 0.9;
    pointer-events: none;
}
@keyframes cursor-arc-spin { to { transform: rotate(360deg); } }

/* State: hovering a regular link — ring expands, aura brightens */
.cursor.is-link .cursor-ring {
    transform: scale(1.6);
    border-color: rgba(255,255,255,0.65);
    box-shadow:
        inset 0 0 12px rgba(255,255,255,0.12),
        0 0 28px rgba(255,255,255,0.35),
        0 0 60px rgba(255,255,255,0.15);
    animation: none;
}
.cursor.is-link .cursor-dot {
    transform: scale(1.3);
    box-shadow:
        0 0 8px 3px rgba(255,255,255,0.95),
        0 0 20px 6px rgba(255,255,255,0.45);
}

/* State: hovering a magnetic CTA — large white spotlight */
.cursor.is-magnetic .cursor-ring {
    transform: scale(2.2);
    border-color: rgba(255,255,255,0.50);
    box-shadow:
        inset 0 0 20px rgba(255,255,255,0.10),
        0 0 50px rgba(255,255,255,0.28),
        0 0 90px rgba(255,255,255,0.10);
    animation: none;
}
.cursor.is-magnetic .cursor-dot { transform: scale(0); opacity: 0; }

/* State: pressing the mouse button */
.cursor.is-click .cursor-ring  { transform: scale(0.82); animation: none; }
.cursor.is-click.is-link       .cursor-ring { transform: scale(1.35); }
.cursor.is-click.is-magnetic   .cursor-ring { transform: scale(1.8); }

.cursor.is-hidden .cursor-dot,
.cursor.is-hidden .cursor-ring { opacity: 0; }

/* Sparkle particles — dot trail */
.cursor-sparkle {
    position: fixed;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 5px 2px rgba(255,255,255,0.75), 0 0 10px rgba(255,255,255,0.35);
    pointer-events: none;
    z-index: 99998;
    will-change: transform, opacity;
}

/* Star sparkle — 4-point light flare, mixed into trail */
.cursor-sparkle-star {
    position: fixed;
    width: 6px; height: 6px;
    background: #ffffff;
    clip-path: polygon(50% 0%, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0% 50%, 44% 44%);
    box-shadow: 0 0 6px 2px rgba(255,255,255,0.80);
    pointer-events: none;
    z-index: 99998;
    will-change: transform, opacity;
}

/* Click burst ring — expands outward and fades on mousedown */
.cursor-burst {
    position: fixed;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow: 0 0 10px rgba(255,255,255,0.40), 0 0 22px rgba(255,255,255,0.18);
    pointer-events: none;
    z-index: 99997;
    will-change: transform, opacity;
    transform: translate(-50%, -50%) scale(0);
}

/* ===================================================================
   Noise overlay (subtle on warm paper)
   =================================================================== */
.noise {
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.55'/></svg>");
    background-size: 200px 200px;
}

/* ===================================================================
   Marquee
   =================================================================== */
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ===================================================================
   3D tilt
   =================================================================== */
.tilt {
    transform-style: preserve-3d;
    transform: perspective(900px)
        rotateX(var(--ry, 0deg))
        rotateY(var(--rx, 0deg))
        translate3d(0,0,0);
    transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.tilt > * { transform: translateZ(0); }
.tilt .tilt-lift { transform: translateZ(40px); }

/* Cursor-glow inside a card (orange tint on light surface) */
.spotlight::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        260px circle at var(--mx, 50%) var(--my, 50%),
        rgba(255,83,32,.12),
        transparent 60%
    );
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }

/* ===================================================================
   Border-beam (animated conic-gradient)
   =================================================================== */
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.beam-border {
    position: relative;
    isolation: isolate;
}
.beam-border::before {
    content: "";
    position: absolute; inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--angle),
        transparent 0deg,
        #181818 50deg,
        #FF5320 130deg,
        #FF7B5C 200deg,
        transparent 270deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: beam-spin 6s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease;
}
.beam-border:hover::before { opacity: 1; }
@keyframes beam-spin { to { --angle: 360deg; } }

/* ===================================================================
   Scroll reveals (initial states)
   =================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    will-change: transform, opacity;
}
/* Word-rise mask. padding-bottom hosts descenders (g, y, p) so overflow:hidden
 * doesn't clip them; the matching negative margin keeps line spacing unchanged. */
.reveal-word-wrap {
    padding-bottom: 0.22em;
    margin-bottom: -0.22em;
}
.reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(135%);   /* clears the padded mask so the word starts hidden */
}
.reveal-image {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s cubic-bezier(.7,0,.2,1);
}
.reveal-image.is-shown { clip-path: inset(0 0 0 0); }

/* Magnetic */
.magnetic {
    transition: transform .35s cubic-bezier(.22,1,.36,1);
    will-change: transform;
}

/* ===================================================================
   Prose (blog post body)
   =================================================================== */
.prose {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.85;
}
.prose h1, .prose h2, .prose h3 {
    color: var(--text-primary);
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    line-height: 1.15;
    margin-top: 2.5em;
    margin-bottom: .8em;
}
.prose h1 { font-size: 2.5rem; }
.prose h2 { font-size: 1.875rem; }
.prose h3 { font-size: 1.5rem; }
.prose p  { margin-bottom: 1.5em; }
.prose a  { color: var(--accent-orange); text-decoration: underline; text-underline-offset: 4px; }
.prose blockquote {
    border-left: 2px solid var(--accent-orange);
    padding-left: 1.5rem;
    color: var(--text-primary);
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    margin: 2em 0;
}
.prose ul, .prose ol { margin: 1.5em 0; padding-left: 1.5em; }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: 12px; margin: 2em 0; }
.prose code {
    font-family: 'JetBrains Mono', monospace;
    font-size: .9em;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-primary);
}

.counter { font-variant-numeric: tabular-nums; }

/* ===================================================================
   Scroll progress (top bar) + scroll-to-top (FAB)
   =================================================================== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 5px;
    z-index: 200;
    background: rgba(229,225,214,.85);   /* visible track even at scroll=0 */
    pointer-events: none;
    box-shadow: 0 1px 0 rgba(17,17,17,.04);
}
.scroll-progress__bar {
    position: relative;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #181818 0%, #FF5320 55%, #FF7B5C 100%);
    box-shadow: 0 0 12px rgba(255,83,32,.45);
    will-change: transform;
}
/* Leading-edge highlight on the bar — adds a subtle "comet" feel */
.scroll-progress__bar::after {
    content: "";
    position: absolute;
    right: -2px; top: 0;
    width: 12px; height: 100%;
    background: linear-gradient(90deg, transparent, #FF7B5C);
    filter: blur(3px);
    border-radius: 999px;
    opacity: .9;
}

/* ===================================================================
   Section-dot navigator — right edge, vertical column
   Populated by JS from [data-section][data-section-label] elements.
   =================================================================== */
.section-nav {
    position: fixed;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    z-index: 140;
    display: none;                    /* JS reveals when ≥3 sections */
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.5);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.section-nav.is-active { display: flex; }
.section-nav__dot {
    position: relative;
    width: 8px; height: 8px;
    border-radius: 999px;
    background: rgba(17,17,17,.18);
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: background .25s, transform .25s, width .25s, height .25s;
}
.section-nav__dot:hover { background: rgba(255,83,32,.55); transform: scale(1.15); }
.section-nav__dot.is-current {
    background: var(--accent-orange);
    width: 10px; height: 10px;
    box-shadow: 0 0 0 3px rgba(255,83,32,.18), 0 0 14px rgba(255,83,32,.55);
}
.section-nav__dot:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 4px;
}
/* Hover label slides out to the left of the dot */
.section-nav__label {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    background: var(--text-primary);
    color: #fff;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s cubic-bezier(.22,1,.36,1);
}
.section-nav__dot:hover .section-nav__label,
.section-nav__dot:focus-visible .section-nav__label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
@media (max-width: 1024px) {
    .section-nav { display: none !important; }
}

.scroll-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 52px; height: 52px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.85);
    color: var(--text-primary);
    display: grid; place-items: center;
    cursor: pointer;
    z-index: 140;
    opacity: 0;
    transform: translateY(20px) scale(.85);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1), background .25s, border-color .25s, color .25s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 32px -12px rgba(17,17,17,.22);
}
.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.scroll-top:hover {
    background: linear-gradient(135deg, #181818 0%, #FF5320 80%);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}
.scroll-top:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 3px;
}
.scroll-top svg { width: 18px; height: 18px; transition: transform .25s; }
.scroll-top:hover svg { transform: translateY(-2px); }

/* Conic progress ring around the FAB — driven by --p (0–100) */
.scroll-top::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 999px;
    padding: 3px;
    background: conic-gradient(from -90deg, var(--accent-orange) 0%, var(--accent-orange) calc(var(--p,0) * 1%), transparent 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .85;
}

@media (max-width: 640px) {
    .scroll-top { bottom: 20px; right: 20px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-progress__bar { transition: none; }
    .scroll-top { transition: opacity .15s ease; }
    .scroll-top:hover { transform: none; }
}

/* ===================================================================
   Hero — cinematic
   =================================================================== */
.hero { position: relative; isolation: isolate; overflow: hidden; }

/* Letterbox bars — slide off on load */
.hero-letterbox {
    position: absolute; left: 0; right: 0;
    height: 56px;
    background: #0F0F0F;
    z-index: 50;
    will-change: transform;
}
.hero-letterbox-top    { top: 0; }
.hero-letterbox-bottom { bottom: 0; }

/* Aurora orb glowing behind the gradient phrase */
.hero-aurora {
    position: absolute;
    top: 38%; left: 8%;
    width: 55%; height: 40%;
    z-index: 0;                        /* above section bg, below content (which uses z-10) */
    background: radial-gradient(closest-side,
        rgba(255,83,32,0.32) 0%,
        rgba(255,123,92,0.18) 45%,
        rgba(24,24,24,0.04) 75%,
        transparent 90%);
    filter: blur(40px);
    animation: aurora-drift 16s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.9;
}
@keyframes aurora-drift {
    0%, 100% { transform: translate(0,0) scale(1) rotate(0deg); }
    33%      { transform: translate(60px,-40px) scale(1.12) rotate(8deg); }
    66%      { transform: translate(-40px,30px) scale(0.92) rotate(-6deg); }
}

/* Vignette — radial darkening at edges */
.hero-vignette {
    position: absolute; inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at center, transparent 50%, rgba(17,17,17,0.05) 85%, rgba(17,17,17,0.10) 100%);
    pointer-events: none;
}

/* Soft horizontal scan lines (very faint) */
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(17,17,17,.012) 3px, rgba(17,17,17,.012) 4px);
    pointer-events: none;
    z-index: 1;
}

/* Hero word initial state — words rise out of overflow, blur clears.
 * padding-bottom needs to be generous enough to host descenders (g, p, q)
 * AND the underline SVG that sits beneath the gradient phrase. */
.hero-line { overflow: hidden; padding-bottom: 0.55em; line-height: 1; }
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(120%);
    filter: blur(10px);
    will-change: transform, opacity, filter;
    vertical-align: baseline;          /* keep gradient inline-blocks aligned with neighbours */
}

/* Underline path beneath "digital excellence" */
.hero-italic {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
}
.hero-underline {
    position: absolute;
    left: -4px; right: -4px;
    bottom: -0.30em;                   /* sits below descenders (g, p, q), inside line padding */
    width: calc(100% + 8px);
    height: 0.18em;
    overflow: visible;
    pointer-events: none;
}
.hero-underline-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

/* Initial-hidden helpers (animated in via GSAP) */
.hero-eyebrow,
.hero-desc,
.hero-ctas,
.hero-meta,
.hero-corner,
.hero-strip,
.hero-scroll-ind {
    opacity: 0;
    will-change: opacity, transform;
}
.hero-eyebrow,
.hero-desc,
.hero-ctas,
.hero-meta {
    transform: translateY(20px);
}

/* Corner mark — coordinate label, top-right */
.hero-corner {
    position: absolute;
    z-index: 11;                       /* above content (z-10), below letterbox bars (50) */
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-corner-tick {
    position: relative;
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--accent-orange);
}
.hero-corner-tick::before {
    content: "";
    position: absolute; inset: -4px;
    border-radius: 999px;
    background: rgba(255,83,32,.20);
    animation: corner-pulse 2.4s ease-out infinite;
}
@keyframes corner-pulse {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Bottom marquee strip — "now showing" cinema banner */
.hero-strip {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(250,250,245,0) 0%, rgba(255,255,255,.5) 50%, rgba(255,83,32,.04) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 4;
}

/* Mouse-shaped scroll indicator — sits at the bottom of the hero */
.hero-scroll-ind {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    bottom: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 20;                       /* above the hero content layer (z-10) so clicks register */
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 8px 12px;
    cursor: pointer;
    color: inherit;
    font: inherit;
}
.hero-scroll-ind:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 6px;
    border-radius: 12px;
}
.hero-mouse {
    width: 30px; height: 48px;
    border: 1.8px solid var(--text-primary);
    border-radius: 16px;
    position: relative;
    background: rgba(255,255,255,.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 18px -4px rgba(17,17,17,.12);
}
.hero-mouse-dot {
    position: absolute;
    top: 8px; left: 50%;
    width: 4px; height: 9px;
    border-radius: 2.5px;
    background: var(--accent-orange);
    box-shadow: 0 0 8px rgba(255,83,32,.65);
    animation: mouse-drop 1.9s cubic-bezier(.7,.0,.3,1) infinite;
}
@keyframes mouse-drop {
    0%   { transform: translate(-50%, 0); opacity: 0; }
    20%  { opacity: 1; }
    70%  { transform: translate(-50%, 18px); opacity: 0; }
    100% { opacity: 0; }
}
/* Subtle downward chevron under the label, repeats */
.hero-scroll-ind__chevron {
    width: 12px; height: 6px;
    opacity: 0;
    animation: chevron-pulse 1.9s cubic-bezier(.7,.0,.3,1) infinite;
}
@keyframes chevron-pulse {
    0%   { opacity: 0; transform: translateY(-4px); }
    50%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-word { opacity: 1; transform: none; filter: none; }
    .hero-eyebrow, .hero-desc, .hero-ctas, .hero-meta, .hero-corner,
    .hero-strip, .hero-scroll-ind { opacity: 1; transform: none; }
    .hero-letterbox { display: none; }
    .hero-aurora { animation: none; }
    .hero-mouse-dot { animation: none; }
}

.timeline-line {
    background: linear-gradient(180deg, rgba(24,24,24,.25), rgba(255,83,32,.30), rgba(255,123,92,.25));
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal, .reveal-word { opacity: 1; transform: none; }
    .reveal-image { clip-path: inset(0 0 0 0); }
}

/* ============================================================================
 * Accessibility widget — floating button, panel, and effect classes.
 * ========================================================================== */
.a11y-fab {
    position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 9998;
    height: 3rem; width: 3rem; border-radius: 9999px;
    display: grid; place-items: center;
    background: var(--accent-ink); color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 12px 32px -10px rgba(0,0,0,.45);
    cursor: pointer; transition: background .2s, transform .2s;
}
.a11y-fab:hover { background: var(--accent-orange); transform: translateY(-2px); }
.a11y-fab:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 3px; }
.a11y-fab svg { width: 1.4rem; height: 1.4rem; }

.a11y-panel {
    position: fixed; left: 1.25rem; bottom: 5rem; z-index: 9998;
    width: 320px; max-width: calc(100vw - 2.5rem);
    background: var(--bg-tertiary); color: var(--text-primary);
    border: 1px solid var(--border); border-radius: 1rem;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.4);
    padding: 1.1rem 1.25rem 1.25rem;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.a11y-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.a11y-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.a11y-panel-head h2 { font-size: .95rem; font-weight: 600; margin: 0; }
.a11y-x { background: none; border: 0; color: var(--text-tertiary); cursor: pointer; padding: .25rem; border-radius: .5rem; }
.a11y-x:hover { color: var(--text-primary); background: var(--bg-secondary); }
.a11y-x svg { width: 1.1rem; height: 1.1rem; }

.a11y-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.a11y-row-label { font-size: .8rem; color: var(--text-secondary); }
.a11y-stepper { display: inline-flex; align-items: center; gap: .5rem; }
.a11y-stepper button {
    height: 2rem; min-width: 2rem; padding: 0 .6rem; border-radius: .6rem;
    border: 1px solid var(--border); background: var(--bg-secondary);
    color: var(--text-primary); font-weight: 600; cursor: pointer;
}
.a11y-stepper button:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.a11y-stepper span { font-size: .75rem; color: var(--text-secondary); min-width: 3.5rem; text-align: center; }

.a11y-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.a11y-toggle {
    text-align: left; font-size: .8rem; padding: .6rem .7rem; border-radius: .6rem;
    border: 1px solid var(--border); background: var(--bg-secondary);
    color: var(--text-secondary); cursor: pointer; transition: all .15s;
}
.a11y-toggle:hover { border-color: var(--text-tertiary); color: var(--text-primary); }
.a11y-toggle.is-on { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.a11y-toggle:focus-visible,
.a11y-stepper button:focus-visible,
.a11y-reset:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 2px; }

.a11y-reset {
    width: 100%; padding: .6rem; border-radius: .6rem; cursor: pointer;
    border: 1px solid var(--border); background: transparent; color: var(--text-secondary);
    font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
}
.a11y-reset:hover { color: var(--accent-orange); border-color: var(--accent-orange); }

/* ---- Effect classes applied to <html> ---- */
html.a11y-font-1 { font-size: 106.25%; }   /* 17px */
html.a11y-font-2 { font-size: 112.5%; }    /* 18px */
html.a11y-font-3 { font-size: 125%; }      /* 20px */
html.a11y-font-4 { font-size: 137.5%; }    /* 22px */

/* High contrast — darken the muted text + borders baked into the utilities. */
html.a11y-contrast .text-fog-secondary { color: #26262b !important; }
html.a11y-contrast .text-fog-tertiary  { color: #3c3c44 !important; }
html.a11y-contrast .border-ink-line    { border-color: #8b8779 !important; }
html.a11y-contrast a:not(.btn-primary):not(.a11y-toggle) { text-decoration: underline; text-underline-offset: 3px; }

/* Readable font — swap display serif for a legible sans, open up spacing. */
html.a11y-readable, html.a11y-readable * {
    font-family: "Atkinson Hyperlegible", "Plus Jakarta Sans", Inter, system-ui, sans-serif !important;
    letter-spacing: .01em !important;
}
html.a11y-readable p, html.a11y-readable li { line-height: 1.85 !important; }

/* Highlight links */
html.a11y-links a:not(.a11y-toggle):not(.a11y-reset) {
    text-decoration: underline !important; text-underline-offset: 3px !important;
    font-weight: 600;
    outline: 1px solid rgba(255,83,32,.45); outline-offset: 2px; border-radius: 2px;
}

/* Reduce motion — kill CSS animation/transition and reveal-from-hidden states. */
html.a11y-no-motion *, html.a11y-no-motion *::before, html.a11y-no-motion *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
}
html.a11y-no-motion .reveal,
html.a11y-no-motion .reveal-word,
html.a11y-no-motion .hero-word { opacity: 1 !important; transform: none !important; filter: none !important; }

/* Big cursor — 48px arrow with white outline so it shows on any background. */
html.a11y-big-cursor, html.a11y-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7-6 2-2 6z' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 4, auto !important;
}

/* ===== PWA install button (bottom-center, shown only when installable) ===== */
.pwa-install-btn {
    position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%) translateY(8px);
    z-index: 9997;
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .7rem 1.2rem; border-radius: 9999px;
    background: var(--accent-ink); color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 14px 34px -12px rgba(0,0,0,.5);
    font-size: .85rem; font-weight: 500; cursor: pointer;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.pwa-install-btn[hidden] { display: none; }
.pwa-install-btn.is-ready { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.pwa-install-btn:hover { background: var(--accent-orange); }
.pwa-install-btn:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 3px; }
.pwa-install-btn svg { width: 1.05rem; height: 1.05rem; }
@media (max-width: 640px) {
    .pwa-install-btn { bottom: 1rem; }
}

/* ===== Mobile hero fixes — hide desktop-only decorative flourishes that
 * overlap content on small screens (the corner coordinate marker collided
 * with the eyebrow pill; the scroll cue collided with the hero copy). ===== */
@media (max-width: 1023px) {
    .hero-corner { display: none !important; }
    .hero-scroll-ind { display: none !important; }
}
