/**
 * ============================================================================
 *  TEJAS PRAVAH — components
 * ============================================================================
 *  Requires tokens.css to be loaded FIRST — that file owns the palette and
 *  the light/dark band system. Nothing here hard-codes a surface or text
 *  colour; everything reads a semantic token, which is what lets a single
 *  band class re-theme an entire section.
 *
 *  1. Reset + base + atmosphere (vignette, grain)
 *  2. Primitives (container, buttons, icons, eyebrow, section header)
 *  3. Motion primitives
 *  4. Navigation + mega menu + drawer
 *  5. Hero
 *  6. Bento grid
 *  7. Metrics
 *  8. Approach
 *  9. Client marquee
 * 10. Closing CTA
 * 11. Footer
 * 12. Reduced motion + print
 * ============================================================================
 */


/* ===========================================================================
   1. RESET + BASE + ATMOSPHERE
   =========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
    position: relative;
    /* The navy-black ground the hero and footer bleed into — same family as
       the logo's monogram navy. Light bands paint over it. */
    background: #050a14;
    color: var(--text);
    font-family: 'IBM Plex Sans', ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--t-md);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Ambient colour wash — three soft light sources over the obsidian ground.
   Sits at z-index 0; real content is lifted to 1 below. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 55% at 50% -12%,  rgb(var(--brand-rgb)  / 0.16), transparent 62%),
        radial-gradient(ellipse 65% 55% at 108% 105%, rgb(var(--accent-rgb) / 0.10), transparent 62%),
        radial-gradient(ellipse 55% 45% at -8% 55%,   rgb(var(--accent-rgb) / 0.07), transparent 62%);
}

/* Film grain. Deliberately ONE global overlay rather than per-band: several
   bands already use their own ::before/::after (the hero fade, the metrics
   glow), so a per-band grain would collide with them. At 2% it gives the dark
   bands tooth and is imperceptible over the light ones. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

body.has-drawer-open { overflow: hidden; }

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

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

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

button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; }

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

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

/* Hairline that separates major bands without a hard edge. */
.rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 18%, var(--border) 82%, transparent);
}

/* ===========================================================================
   2. PRIMITIVES
   =========================================================================== */

.container {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    top: 0; left: 50%;
    transform: translate(-50%, -120%);
    z-index: 100;
    padding: 0.6rem 1.1rem;
    background: var(--accent);
    color: #03121a;
    font-size: var(--t-sm);
    font-weight: 600;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    transition: transform var(--fast) var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

.icon    { width: 1.25rem;    height: 1.25rem; }
.icon-sm { width: 1.0625rem;  height: 1.0625rem; }
.icon-xs { width: 0.875rem;   height: 0.875rem; }

/* --- Buttons -------------------------------------------------------- */

.btn {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    --btn-bd: var(--border-strong);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.62rem 1.2rem;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 1px solid var(--btn-bd);
    border-radius: var(--r-pill);
    font-size: var(--t-sm);
    font-weight: 500;
    letter-spacing: -0.005em;
    white-space: nowrap;
    transition: transform var(--fast) var(--ease-out),
                background var(--mid) var(--ease),
                border-color var(--mid) var(--ease),
                box-shadow var(--mid) var(--ease);
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }

.btn-lg { padding: 0.88rem 1.7rem; font-size: var(--t-base); }
.btn-sm { padding: 0.45rem 0.95rem; font-size: var(--t-xs); }

.btn-primary {
    --btn-bg: linear-gradient(135deg, var(--brand-400), var(--brand) 48%, var(--brand-600));
    --btn-fg: #fff;
    --btn-bd: transparent;
    box-shadow: var(--card-lift), 0 8px 24px rgb(var(--brand-rgb) / 0.34);
}

.btn-primary:hover {
    box-shadow: var(--card-lift), 0 14px 40px rgb(var(--brand-rgb) / 0.46);
}

.btn-ghost {
    --btn-bg: var(--surface);
    box-shadow: var(--card-lift);
}

.btn-ghost:hover {
    --btn-bg: var(--surface-2);
    --btn-bd: rgb(var(--accent-rgb) / 0.55);
}

.btn-arrow { transition: transform var(--mid) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-text);
    font-size: var(--t-sm);
    font-weight: 500;
}

.link-arrow svg { transition: transform var(--mid) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --- Eyebrow / kicker / badge / pulse ------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    box-shadow: var(--card-lift);
    color: var(--text-dim);
    font-size: var(--t-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.eyebrow svg { color: var(--accent-text); }

.badge {
    padding: 0.1rem 0.42rem;
    background: rgb(var(--gold-rgb) / 0.16);
    color: var(--gold);
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.pulse-dot {
    position: relative;
    width: 6px;
    height: 6px;
    background: var(--ok);
    border-radius: 50%;
    flex-shrink: 0;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--ok);
    border-radius: 50%;
    animation: pulse-ring 2.4s var(--ease) infinite;
}

/* --- Section scaffolding -------------------------------------------- */

.section { padding-block: clamp(4.5rem, 3rem + 8vw, 9rem); }

.section-header {
    max-width: 46rem;
    margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.section-header--split { max-width: none; }

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--accent-text);
    font-size: var(--t-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.section-kicker::before {
    content: '';
    width: 1.6rem;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-text), transparent);
}

.section-title { font-size: var(--t-3xl); }

.section-lede {
    margin-top: 1.1rem;
    color: var(--text-dim);
    font-size: var(--t-lg);
    line-height: 1.6;
}

/* ===========================================================================
   3. MOTION PRIMITIVES
   =========================================================================== */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    will-change: opacity, transform;
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity var(--slow) var(--ease) var(--rd, 0s),
                transform var(--slow) var(--ease) var(--rd, 0s);
}

/* Above-the-fold entrance. Pure CSS with fill-mode `both`, so it never
   depends on JS and can never leave content stranded at opacity 0. */
.rise {
    animation: rise-in 0.62s var(--ease) both;
    animation-delay: var(--rd, 0s);
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

@keyframes float-slow {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -18px, 0); }
}

@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); }
    50%      { transform: translate3d(14px, -22px, 0) rotate(calc(var(--rot, 0deg) + 4deg)); }
}

@keyframes marquee-run {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes scroll-hint {
    0%   { transform: scaleY(0); transform-origin: top; }
    45%  { transform: scaleY(1); transform-origin: top; }
    55%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes pulse-ring {
    0%   { transform: scale(0.7); opacity: 0.9; }
    100% { transform: scale(1.9); opacity: 0; }
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

/* ===========================================================================
   4. NAVIGATION
   =========================================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    border-bottom: 1px solid transparent;
    transition: transform var(--mid) var(--ease),
                border-color var(--mid) var(--ease),
                box-shadow var(--mid) var(--ease);
}

.navbar.is-condensed {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-md);
}

/* The nav is sticky, so it travels across bands. motion.js adds .is-on-light
   whenever a light band sits under the nav's lower edge, and these tokens
   re-theme it in place — otherwise light-on-light goes invisible. */
.navbar.is-on-light {
    --surface:       #ffffff;
    --surface-2:     #eef2f8;
    --border:        rgb(10 14 22 / 0.10);
    --border-strong: rgb(10 14 22 / 0.18);
    --text:          #0a0e16;
    --text-dim:      #4a5568;
    --text-mute:     #78839a;
    --accent-text:   #0b6f85;
    --card-lift:     inset 0 1px 0 #ffffff;
    --shadow-md:     0 8px 24px rgb(10 14 22 / 0.075);
    background: rgb(255 255 255 / 0.82);
    color: var(--text);
}

.navbar.is-hidden { transform: translateY(-100%); }

.navbar-inner {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    height: var(--nav-h);
    transition: height var(--mid) var(--ease);
}

.navbar.is-condensed .navbar-inner { height: 62px; }

/* --- Brand ---------------------------------------------------------- */

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
}

.navbar-mark { width: 2.25rem; height: 2.25rem; }
.navbar-mark svg { width: 100%; height: 100%; }

/* A logo FILE is a wide lockup, not a square. Pin its height and let the
   width follow, or the infinity ribbon gets squashed into the 36px box. */
img.navbar-mark {
    width: auto;
    height: 2rem;
    max-width: none;
}

.navbar.is-condensed img.navbar-mark { height: 1.75rem; }

.mark-bg   { fill: rgb(var(--brand-rgb) / 0.20); }
.mark-loop { stroke: var(--accent); fill: none; }

.navbar-wordmark {
    display: flex;
    flex-direction: column;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.15;
    white-space: nowrap;
}

.navbar-wordmark em {
    font-size: 0.5625rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.navbar.is-condensed .navbar-wordmark em { display: none; }

/* --- Links ---------------------------------------------------------- */

.navbar-nav {
    display: none;
    align-items: center;
    gap: 0.2rem;
    margin-inline: auto;
}

@media (min-width: 1024px) { .navbar-nav { display: flex; } }

.nav-item { position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--r-pill);
    color: var(--text-dim);
    font-size: var(--t-sm);
    font-weight: 500;
    transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.nav-link:hover,
.nav-link.is-active,
.nav-link[aria-expanded="true"] {
    color: var(--text);
    background: var(--surface);
}

.nav-chevron { transition: transform var(--mid) var(--ease); opacity: 0.6; }
.nav-link[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

/* --- Actions -------------------------------------------------------- */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
}

@media (min-width: 1024px) { .navbar-actions { margin-left: 0; } }

.theme-toggle {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    box-shadow: var(--card-lift);
    color: var(--text-dim);
    transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.theme-toggle:hover { color: var(--accent); border-color: rgb(var(--accent-rgb) / 0.6); }

.theme-icon {
    grid-area: 1 / 1;
    transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
}

/* Balanced (default) shows the moon = "dim everything".
   Dimmed shows the sun = "restore the balanced bands". */
.theme-icon--moon { opacity: 1; transform: none; }
.theme-icon--sun  { opacity: 0; transform: rotate(45deg) scale(0.6); }

:root[data-theme="dark"] .theme-icon--moon { opacity: 0; transform: rotate(-45deg) scale(0.6); }
:root[data-theme="dark"] .theme-icon--sun  { opacity: 1; transform: none; }

.navbar-hide-sm { display: none; }
@media (min-width: 640px) { .navbar-hide-sm { display: inline-flex; } }

.navbar-toggle {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--text);
}

@media (min-width: 1024px) { .navbar-toggle { display: none; } }

/* --- Mega menu ------------------------------------------------------ */

.mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--mid) var(--ease),
                transform var(--mid) var(--ease),
                visibility var(--mid) linear;
}

.mega.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Closed panels must never intercept clicks over the hero. */
.mega:not(.is-open) { pointer-events: none; }

.mega-inner {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding-block: 2.25rem;
}

@media (min-width: 1024px) { .mega-inner { grid-template-columns: 1fr 20rem; } }

.mega-columns {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.mega-heading {
    margin-bottom: 1rem;
    color: var(--text-mute);
    font-size: var(--t-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.mega-column ul { display: grid; gap: 0.25rem; }

.mega-link {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem;
    margin-inline: -0.65rem;
    border-radius: var(--r-sm);
    transition: background-color var(--fast) var(--ease);
}

.mega-link:hover { background: var(--surface-2); }

.mega-link-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    box-shadow: var(--card-lift);
    color: var(--accent-text);
    transition: border-color var(--fast) var(--ease);
}

.mega-link:hover .mega-link-icon { border-color: rgb(var(--accent-rgb) / 0.6); }

.mega-link-text { display: grid; gap: 0.1rem; }
.mega-link-text strong { font-size: var(--t-base); font-weight: 600; }
.mega-link-text em {
    font-style: normal;
    color: var(--text-mute);
    font-size: var(--t-sm);
    line-height: 1.4;
}

.mega-promo {
    padding: 1.6rem;
    background:
        linear-gradient(150deg, rgb(var(--brand-rgb) / 0.16), rgb(var(--accent-rgb) / 0.08));
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--card-lift);
}

.mega-promo h3 { margin-bottom: 0.6rem; font-size: var(--t-lg); }
.mega-promo p  { margin-bottom: 1rem; color: var(--text-dim); font-size: var(--t-sm); }

/* --- Mobile drawer -------------------------------------------------- */

.drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgb(2 3 6 / 0.66);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity var(--mid) var(--ease);
}

.drawer.is-open { opacity: 1; }

.drawer-panel {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: min(23rem, 88vw);
    height: 100%;
    margin-left: auto;
    padding: 1.5rem;
    background: var(--bg-elev-2);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--mid) var(--ease);
}

.drawer.is-open .drawer-panel { transform: none; }

.drawer-head { display: flex; align-items: center; justify-content: space-between; }

.drawer-title { font-weight: 700; letter-spacing: 0.06em; }

.drawer-close { color: var(--text-dim); }
.drawer-close:hover { color: var(--text); }

.drawer-nav { display: grid; gap: 0.15rem; }

.drawer-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--t-lg);
    font-weight: 500;
}

.drawer-nav .drawer-sub {
    padding-left: 1rem;
    border-bottom: 0;
    color: var(--text-mute);
    font-size: var(--t-base);
    font-weight: 400;
}

.drawer-nav a:hover { color: var(--accent); }

.drawer-foot { display: grid; gap: 0.6rem; margin-top: auto; }

.drawer-meta {
    margin-top: 0.75rem;
    color: var(--text-mute);
    font-size: var(--t-sm);
    line-height: 1.7;
}

/* ===========================================================================
   5. HERO
   =========================================================================== */

.hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(88svh, 860px);
    padding-block: clamp(3rem, 2.5rem + 4vw, 5.5rem);
    overflow: hidden;
    isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* The hero clips its own orbs (overflow:hidden), which otherwise leaves a hard
   horizontal seam where the blue wash stops. This fades it into the page. */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    height: 24%;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: float-slow 15s var(--ease) infinite;
}

.hero-orb--1 {
    top: -14%; right: -8%;
    width: 46vw; height: 46vw; max-width: 660px; max-height: 660px;
    background: radial-gradient(circle, rgb(var(--brand-rgb) / 0.62), transparent 68%);
}

.hero-orb--2 {
    bottom: -20%; left: -12%;
    width: 40vw; height: 40vw; max-width: 560px; max-height: 560px;
    background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.52), transparent 68%);
    animation-delay: -6s;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: radial-gradient(ellipse 62% 50% at 50% 42%, #000 5%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 62% 50% at 50% 42%, #000 5%, transparent 72%);
    opacity: 0.35;
}

/* Floating glass panes — the "3D abstract" layer in pure CSS, no WebGL.
   Kept near-invisible on purpose: at higher alpha they read as flat grey
   rectangles rather than glass, which cheapens the whole hero. */
.hero-glass {
    position: absolute;
    display: none;
    background: linear-gradient(140deg,
                rgb(var(--lift-rgb) / 0.055), rgb(var(--lift-rgb) / 0.005) 60%);
    border: 1px solid rgb(var(--lift-rgb) / 0.065);
    border-radius: var(--r-lg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: drift 18s var(--ease) infinite;
}

@media (min-width: 1024px) { .hero-glass { display: block; } }

.hero-glass--1 { --rot: -12deg; top: 17%;    left: 4%;   width: 112px; height: 146px; transform: rotate(-12deg); }
.hero-glass--2 { --rot: 9deg;   bottom: 19%; right: 5%;  width: 148px; height: 102px; transform: rotate(9deg); animation-delay: -5s; }
.hero-glass--3 { --rot: 0deg;   top: 62%;    left: 10%;  width: 68px;  height: 68px;  border-radius: 50%; animation-delay: -11s; }

.hero-inner { position: relative; text-align: center; max-width: 62rem; }

.hero-headline {
    margin-block: 1.75rem 1.5rem;
    font-size: var(--t-4xl);
    font-weight: 700;
    letter-spacing: -0.042em;
}

.headline-line { display: block; }

/* Words are emitted with no whitespace between them (see hero.php), so this
   margin is the ONLY inter-word gap. */
.headline-word { display: inline-block; margin-right: 0.26em; }

.headline-word.is-accent {
    /* Endpoints stay saturated and the handover is quick — blending pale blue
       straight into pale gold passes through a muddy grey midpoint. */
    background: linear-gradient(100deg,
                var(--brand-400) 0%, var(--brand) 32%,
                var(--accent) 62%, var(--accent-300) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lede {
    max-width: 46rem;
    margin-inline: auto;
    color: var(--text-dim);
    font-size: var(--t-lg);
    line-height: 1.68;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
}

/* --- "Selling live on" channel strip -------------------------------- */

.hero-channels { margin-top: 3rem; }

.hero-channels-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-mute);
    font-size: var(--t-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.chip {
    padding: 0.42rem 0.95rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    box-shadow: var(--card-lift);
    color: var(--text-dim);
    font-size: var(--t-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color var(--fast) var(--ease),
                border-color var(--fast) var(--ease),
                transform var(--fast) var(--ease-out);
}

.chip:hover {
    color: var(--text);
    border-color: rgb(var(--accent-rgb) / 0.6);
    transform: translateY(-2px);
}

.hero-trust {
    max-width: 36rem;
    margin: 1.75rem auto 0;
    color: var(--text-mute);
    font-size: var(--t-sm);
}

/* --- Seller operations console -------------------------------------- */

.showcase {
    position: relative;
    width: 100%;
    max-width: var(--max);
    margin: clamp(2.5rem, 2rem + 3vw, 4.5rem) auto 0;
    padding-inline: var(--gutter);
    perspective: 1600px;
}

.showcase-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.075), rgb(255 255 255 / 0.022));
    border: 1px solid rgb(255 255 255 / 0.115);
    border-radius: var(--r-lg);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.10),
                0 40px 90px rgb(0 0 0 / 0.55),
                0 0 0 1px rgb(var(--brand-rgb) / 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    /* A slight recline reads as a real screen rather than a flat card. */
    transform: rotateX(7deg) scale(0.985);
    transform-origin: 50% 0;
    transition: transform var(--slow) var(--ease);
}

.showcase-panel:hover { transform: rotateX(0deg) scale(1); }

@media (max-width: 700px) {
    .showcase-panel { transform: none; }
}

/* Chrome bar */
.showcase-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1rem;
    background: rgb(255 255 255 / 0.030);
    border-bottom: 1px solid rgb(255 255 255 / 0.085);
}

.showcase-dots { display: flex; gap: 0.3rem; }

.showcase-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.18);
}

.showcase-label {
    color: #cdd6e4;
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.showcase-tabs {
    display: none;
    gap: 0.3rem;
    margin-left: auto;
}

@media (min-width: 720px) { .showcase-tabs { display: flex; } }

.showcase-tabs li {
    padding: 0.22rem 0.7rem;
    border-radius: var(--r-pill);
    color: #8e99ac;
    font-size: var(--t-xs);
    font-weight: 600;
}

.showcase-tabs li.is-active {
    background: rgb(var(--brand-rgb) / 0.22);
    color: #dbe8f8;
    box-shadow: inset 0 0 0 1px rgb(var(--brand-rgb) / 0.45);
}

.showcase-tag {
    margin-left: auto;
    padding: 0.16rem 0.5rem;
    border: 1px dashed rgb(255 255 255 / 0.22);
    border-radius: 4px;
    color: #8e99ac;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.showcase-tabs + .showcase-tag { margin-left: 0.5rem; }

/* Body */
.showcase-body {
    display: grid;
    gap: 0;
    text-align: left;
}

@media (min-width: 860px) {
    .showcase-body { grid-template-columns: 1.15fr 1fr; }
}

.showcase-stats {
    display: grid;
    gap: 1px;
    background: rgb(255 255 255 / 0.075);
}

@media (min-width: 520px) {
    .showcase-stats { grid-template-columns: repeat(3, 1fr); }
}

/* Flex column so the chart bottom-aligns across all three cells — grid
   stretches them to equal height, and a top-aligned bar next to a taller
   sparkline leaves an obvious pocket of dead space. */
.stat {
    display: flex;
    flex-direction: column;
    min-height: 7.5rem;
    padding: 1.05rem 1.1rem 1.15rem;
    background: #070d1a;
}

.stat-label {
    color: #8e99ac;
    font-size: var(--t-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-row {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-top: 0.45rem;
}

.stat-value {
    color: #f2f5fa;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-delta {
    color: #4ade80;
    font-size: var(--t-xs);
    font-weight: 600;
}

.spark { display: block; width: 100%; height: 34px; margin-top: auto; padding-top: 0.7rem; }
.spark-area { fill: rgb(var(--accent-rgb) / 0.16); }
.spark-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.stat-bar {
    display: block;
    height: 5px;
    margin-top: auto;
    background: rgb(255 255 255 / 0.09);
    border-radius: var(--r-pill);
    overflow: hidden;
}

.stat-bar span {
    display: block;
    height: 100%;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* Order feed */
.showcase-feed {
    padding: 1.05rem 1.1rem 1.15rem;
    background: #060b16;
    border-top: 1px solid rgb(255 255 255 / 0.075);
}

@media (min-width: 860px) {
    .showcase-feed {
        border-top: 0;
        border-left: 1px solid rgb(255 255 255 / 0.075);
    }
}

.showcase-feed-label {
    margin-bottom: 0.7rem;
    color: #8e99ac;
    font-size: var(--t-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.showcase-feed ul { display: grid; gap: 0.1rem; }

.showcase-feed li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.42rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.045);
}

.showcase-feed li:last-child { border-bottom: 0; }

.feed-sku {
    color: #b9c2d2;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: var(--t-xs);
}

.feed-channel { color: #78839a; font-size: var(--t-xs); }

.feed-state {
    padding: 0.14rem 0.5rem;
    border-radius: var(--r-pill);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.feed-state[data-tone="ok"]   { background: rgb(74 222 128 / 0.14); color: #6ee7a0; }
.feed-state[data-tone="warn"] { background: rgb(var(--accent-rgb) / 0.16); color: var(--accent-300); }
.feed-state[data-tone="info"] { background: rgb(var(--brand-rgb) / 0.20); color: #8fbdf5; }

.hero-scroll {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    translate: -50% 0;
    display: none;
    width: 1px;
    height: 3.5rem;
    background: var(--border-strong);
    overflow: hidden;
}

@media (min-width: 900px) { .hero-scroll { display: block; } }

.hero-scroll-line {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scroll-hint 2.6s var(--ease) infinite;
}

/* ===========================================================================
   6. BENTO GRID
   =========================================================================== */

.bento-grid {
    display: grid;
    gap: clamp(0.85rem, 0.6rem + 0.8vw, 1.25rem);
    grid-template-columns: 1fr;
}

@media (min-width: 640px)  { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento-grid { grid-template-columns: repeat(4, 1fr); } }

.bento-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 15rem;
    padding: clamp(1.35rem, 1rem + 1vw, 2rem);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--card-lift), var(--card-shadow);
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--mid) var(--ease),
                border-color var(--mid) var(--ease),
                box-shadow var(--mid) var(--ease);
}

/* The magnetic glow. --mx/--my are written by motion.js on pointermove. */
.bento-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
                rgb(var(--accent-rgb) / 0.15), transparent 66%);
    opacity: 0;
    transition: opacity var(--mid) var(--ease);
}

.bento-tile:hover {
    transform: translateY(-4px);
    border-color: rgb(var(--accent-rgb) / 0.42);
    box-shadow: var(--card-lift), var(--glow);
}

.bento-tile:hover::after { opacity: 1; }

@media (min-width: 640px) {
    .bento-tile.wide { grid-column: span 2; }
    .bento-tile.tall { grid-row: span 2; }
}

.bento-tile.is-feature { min-height: 24rem; }

/* The statement tile stays DARK even inside a light band. As a pale tint it
   washed out against the white cards; as a dark slab among them it reads as
   the point of the section. Carries its own token set so its contents invert. */
.bento-tile.is-accent {
    --text:          #f2f5fa;
    --text-dim:      #b9c2d2;
    --text-mute:     #8b95a8;
    --border:        rgb(255 255 255 / 0.140);
    --border-strong: rgb(255 255 255 / 0.220);
    --surface-2:     rgb(255 255 255 / 0.080);
    --accent-text:   var(--accent-300);
    --card-lift:     inset 0 1px 0 rgb(255 255 255 / 0.090);

    background:
        radial-gradient(130% 100% at 0% 0%, rgb(var(--brand-rgb) / 0.55), transparent 62%),
        radial-gradient(120% 110% at 100% 100%, rgb(var(--accent-rgb) / 0.38), transparent 60%),
        #080d18;
    border-color: rgb(255 255 255 / 0.14);
    color: var(--text);
    justify-content: center;
}

.bento-tile.is-accent:hover {
    border-color: rgb(var(--accent-rgb) / 0.55);
}

/* Decorative per-tile graphic. Sits behind the copy, so every sibling is
   lifted to z-index 1 — the tile's ::after glow lives at -1 below it. */
.bento-visual {
    position: absolute;
    right: -0.5rem;
    bottom: -0.5rem;
    z-index: 0;
    width: 8.5rem;
    height: auto;
    color: var(--text-mute);
    /* Low enough that the points list stays fully legible over it — these
       tiles are narrow, so some overlap with copy is unavoidable. */
    opacity: 0.24;
    transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
    pointer-events: none;
}

.bento-tile:hover .bento-visual {
    opacity: 0.55;
    transform: translateY(-4px) scale(1.03);
}

.bento-tile.wide .bento-visual,
.bento-tile.is-feature .bento-visual { width: 11rem; }

.bento-tile > *:not(.bento-visual) { position: relative; z-index: 1; }

.bento-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.bento-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 11px;
    box-shadow: var(--card-lift);
    color: var(--accent-text);
    transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease);
}

.bento-tile:hover .bento-icon {
    border-color: rgb(var(--accent-rgb) / 0.6);
    transform: translateY(-2px) rotate(-4deg);
}

.bento-kicker {
    color: var(--text-mute);
    font-size: var(--t-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.bento-title { margin-bottom: 0.65rem; font-size: var(--t-xl); }

.bento-tile.is-feature .bento-title,
.bento-tile.is-accent  .bento-title { font-size: var(--t-2xl); }

.bento-summary {
    color: var(--text-dim);
    font-size: var(--t-base);
    line-height: 1.65;
}

/* `margin-top:auto` bottom-anchors the detail block, so `tall` tiles whose
   copy is short do not leave a pocket of dead space under the list. */
.bento-points {
    display: grid;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border);
}

.bento-points li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-dim);
    font-size: var(--t-sm);
}

.bento-points svg { flex-shrink: 0; color: var(--accent-text); }

/* --- Channel pills inside the Sales tile ---------------------------- */

.bento-channels { padding-top: 1.5rem; }

.bento-channels-label {
    margin-bottom: 0.7rem;
    color: var(--text-mute);
    font-size: var(--t-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.bento-channels ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.channel-pill {
    padding: 0.35rem 0.8rem;
    background: rgb(var(--lift-rgb) / 0.05);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    color: var(--text);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.bento-tile:hover .channel-pill { border-color: rgb(var(--accent-rgb) / 0.45); }

.bento-cta {
    position: absolute;
    top: clamp(1.35rem, 1rem + 1vw, 2rem);
    right: clamp(1.35rem, 1rem + 1vw, 2rem);
    color: var(--text-mute);
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
}

.bento-tile:hover .bento-cta {
    opacity: 1;
    transform: none;
    color: var(--accent-text);
}

/* ===========================================================================
   7. METRICS
   =========================================================================== */

/* The band system supplies this section's contrast, so it needs no borders or
   overlay gradient of its own — a dark band between two light ones already
   separates cleanly. The glow sits behind the numerals only. */
.section--metrics {
    position: relative;
    overflow: hidden;
}

.section--metrics::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgb(var(--brand-rgb) / 0.16), transparent 64%),
        radial-gradient(ellipse 50% 60% at 90% 100%, rgb(var(--accent-rgb) / 0.11), transparent 64%);
}

.section--metrics > * { position: relative; }

.metrics-grid {
    display: grid;
    gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.metric {
    padding: clamp(1.35rem, 1rem + 1vw, 1.85rem);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--card-lift), var(--card-shadow);
    transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease);
}

.metric:hover {
    border-color: rgb(var(--accent-rgb) / 0.42);
    transform: translateY(-3px);
}

.metric-value {
    display: flex;
    align-items: baseline;
    gap: 0.05rem;
    font-size: var(--t-3xl);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(120deg, var(--text) 20%, var(--accent-text));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.metric-suffix { font-size: 0.7em; }

.metric-label { margin-top: 0.95rem; font-size: var(--t-base); font-weight: 600; }

.metric-note { margin-top: 0.25rem; color: var(--text-mute); font-size: var(--t-sm); }

/* ===========================================================================
   8. APPROACH
   =========================================================================== */

.approach-steps { display: grid; gap: 0; }

.step {
    position: relative;
    display: grid;
    grid-template-columns: 3.25rem 1fr;
    gap: clamp(1rem, 0.8rem + 1.5vw, 2.5rem);
    padding-block: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    border-top: 1px solid var(--border);
    transition: background-color var(--mid) var(--ease);
}

.step:last-child { border-bottom: 1px solid var(--border); }

.step:hover { background: rgb(var(--lift-rgb) / 0.018); }

@media (min-width: 768px) { .step { grid-template-columns: 6rem 1fr; } }

/* Accent rail that draws in when the row reveals. */
.step-rail {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgb(var(--accent-rgb) / 0.55), transparent 45%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease) var(--rd, 0s);
}

.step.is-in .step-rail { transform: scaleX(1); }

.step-number {
    color: var(--accent-text);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: var(--t-lg);
    font-weight: 500;
}

.step-body h3 { margin-bottom: 0.5rem; font-size: var(--t-xl); }

.step-body p {
    max-width: 44rem;
    color: var(--text-dim);
    font-size: var(--t-base);
    line-height: 1.68;
}

/* ===========================================================================
   9. CLIENT MARQUEE
   =========================================================================== */

.marquee {
    overflow: hidden;
    padding-block: 0.6rem;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
    width: max-content;
    animation: marquee-run var(--marquee-duration, 34s) linear infinite;
}

.marquee--reverse .marquee-track { animation-direction: reverse; }

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

.client-logo {
    display: grid;
    place-items: center;
    min-width: 11rem;
    padding: 1.2rem 1.6rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--card-lift), var(--card-shadow);
    color: var(--text-mute);
    font-size: var(--t-sm);
    font-weight: 600;
    letter-spacing: 0.14em;
    white-space: nowrap;
    transition: color var(--mid) var(--ease), border-color var(--mid) var(--ease);
}

.client-logo:hover { color: var(--text); border-color: rgb(var(--accent-rgb) / 0.5); }

/* ===========================================================================
  10. CLOSING CTA
   =========================================================================== */

.cta-panel {
    position: relative;
    padding: clamp(2rem, 1.5rem + 4vw, 4.5rem);
    background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--card-lift), var(--shadow-lg);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.cta-glow {
    position: absolute;
    top: -65%;
    left: 50%;
    translate: -50% 0;
    z-index: -1;
    width: 130%;
    aspect-ratio: 2 / 1;
    background: radial-gradient(ellipse at center,
                rgb(var(--brand-rgb) / 0.34), rgb(var(--accent-rgb) / 0.16) 40%, transparent 66%);
    filter: blur(46px);
}

.cta-title { max-width: 34rem; margin: 0 auto 1rem; font-size: var(--t-3xl); }

.cta-lede {
    max-width: 34rem;
    margin-inline: auto;
    color: var(--text-dim);
    font-size: var(--t-lg);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (max-width: 480px) {
    .cta-actions { flex-direction: column; align-items: stretch; }
}

.cta-meta {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: left;
}

.cta-meta dt {
    color: var(--text-mute);
    font-size: var(--t-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.cta-meta dd { margin-top: 0.3rem; font-size: var(--t-base); }

/* ===========================================================================
  11. FOOTER
   =========================================================================== */

.footer {
    padding-block: clamp(3rem, 2.5rem + 4vw, 5.5rem) 2rem;
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    gap: clamp(2.5rem, 2rem + 4vw, 5rem);
    padding-bottom: clamp(2.5rem, 2rem + 3vw, 4rem);
}

@media (min-width: 1024px) { .footer-top { grid-template-columns: 22rem 1fr; } }

.footer-wordmark {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.footer-blurb { max-width: 24rem; color: var(--text-dim); font-size: var(--t-base); }

.footer-social { display: flex; gap: 0.5rem; margin-top: 1.75rem; }

.footer-social a {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    box-shadow: var(--card-lift);
    color: var(--text-dim);
    transition: color var(--fast) var(--ease),
                border-color var(--fast) var(--ease),
                transform var(--fast) var(--ease);
}

.footer-social a:hover {
    color: var(--accent);
    border-color: rgb(var(--accent-rgb) / 0.6);
    transform: translateY(-2px);
}

.footer-columns {
    display: grid;
    gap: clamp(1.75rem, 1.5rem + 2vw, 3rem);
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.footer-column--wide { grid-column: 1 / -1; }

@media (min-width: 640px) { .footer-column--wide { grid-column: span 2; } }

.footer-heading {
    margin-bottom: 1.1rem;
    font-size: var(--t-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.footer-column ul { display: grid; gap: 0.6rem; }

.footer-column li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: var(--t-base);
    transition: color var(--fast) var(--ease), padding-left var(--fast) var(--ease);
}

.footer-column li a:hover { color: var(--text); padding-left: 4px; }

.footer-note { margin-bottom: 1.1rem; color: var(--text-mute); font-size: var(--t-sm); }

/* --- Newsletter ----------------------------------------------------- */

.newsletter-field {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 22rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    box-shadow: var(--card-lift);
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.newsletter-field:focus-within {
    border-color: rgb(var(--accent-rgb) / 0.7);
    box-shadow: var(--card-lift), 0 0 0 4px rgb(var(--accent-rgb) / 0.13);
}

.newsletter-field input {
    flex: 1;
    min-width: 0;
    padding: 0.72rem 0.5rem 0.72rem 1.15rem;
    background: none;
    border: 0;
    font-size: var(--t-base);
}

.newsletter-field input:focus { outline: none; }
.newsletter-field input::placeholder { color: var(--text-mute); }
.newsletter-field input[aria-invalid="true"] { color: var(--error); }

.newsletter-submit {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    margin-right: 0.35rem;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
    border-radius: var(--r-pill);
    color: #fff;
    transition: transform var(--fast) var(--ease-out);
}

.newsletter-submit:hover:not(:disabled) { transform: translateX(2px) scale(1.06); }
.newsletter-submit:disabled { opacity: 0.6; cursor: progress; }

.newsletter.is-busy .newsletter-submit svg { animation: spin-slow 0.9s linear infinite; }

.newsletter-status {
    min-height: 1.25rem;
    margin-top: 0.6rem;
    font-size: var(--t-sm);
    color: var(--text-mute);
}

.newsletter-status[data-state="error"]   { color: var(--error); }
.newsletter-status[data-state="success"] { color: var(--ok); }

/* --- Bottom bar ----------------------------------------------------- */

.footer-bottom {
    display: grid;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-mute);
    font-size: var(--t-sm);
}

@media (min-width: 900px) {
    .footer-bottom {
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 2rem;
    }
    .footer-legal  { justify-self: center; }
    .footer-locale { justify-self: end; }
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a { transition: color var(--fast) var(--ease); }
.footer-legal a:hover { color: var(--text); }

/* ===========================================================================
  12. REDUCED MOTION + PRINT
   =========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js [data-reveal] { opacity: 1; transform: none; }
    .rise { animation: none; }
    .marquee-track { animation: none; }
}

@media print {
    .navbar, .drawer, .hero-bg, .hero-scroll, .marquee, .theme-toggle { display: none !important; }
    body { background: #fff; color: #000; }
    body::before, body::after { display: none; }
    .js [data-reveal] { opacity: 1; transform: none; }
}
