/* ============================================================
   T-RECS — main.css
   ============================================================ */

/* ---- Skip link (accessibility) ---- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 1rem;
    z-index: 9999;
    background: var(--green, #00A86B);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}
.skip-link:focus {
    left: 1rem;
}

/* ---- Hero keyframe animations (moved from inline <style>) ---- */
@keyframes hs-breathe {
    0%, 100% { transform: rotateX(60deg) rotateZ(-13deg) scale(1.08); }
    50%       { transform: rotateX(57deg) rotateZ(-10deg) scale(1.1); }
}
@keyframes hs-drift {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
@keyframes hs-glow {
    0%, 100% { opacity: .45; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: .8;  transform: translate(-50%, -50%) scale(1.1); }
}
@keyframes hs-f1 {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}
@keyframes hs-f2 {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-16px); }
}
@keyframes hs-f3 {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-9px); }
}
@keyframes hs-scan {
    0%   { transform: translateX(-160px); opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translateX(160px);  opacity: 0; }
}
@keyframes hs-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.8); }
}

/* Respect reduced motion for hero + ticker */
@media (prefers-reduced-motion: reduce) {
    .hero-scene-inner * { animation: none !important; }
    .services-ticker-track { animation: none !important; }
}

/* Google Fonts is now loaded via <link> in each page's <head> — no @import needed here */


/* ============================================================
   TOKENS
   ============================================================ */

:root {
    --green:        #00A86B;
    --green-muted:  rgba(0, 168, 107, 0.12);

    /* Dark base — used everywhere */
    --dark:         #111314;
    --dark-surface: rgba(255, 255, 255, 0.04);
    --dark-rule:    rgba(255, 255, 255, 0.08);
    --dark-text-1:  #ffffff;
    --dark-text-2:  rgba(255, 255, 255, 0.55);
    --dark-text-3:  rgba(255, 255, 255, 0.45);

    /* Surface tokens — all flat dark */
    --surface:      #111314;
    --surface-alt:  #111314;
    --surface-rule: rgba(255, 255, 255, 0.08);

    /* Text tokens — remapped to dark-text equivalents */
    --text-1: #ffffff;
    --text-2: rgba(255, 255, 255, 0.55);
    --text-3: rgba(255, 255, 255, 0.28);

    /* Typography */
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Instrument Sans', -apple-system, sans-serif;

    /* Layout */
    --sidebar-width: 240px;
    --container:     1140px;
    --container-lg:  1360px;

    /* Radii */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;

    /* Motion */
    --ease:   cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 0.18s;
    --t-base: 0.24s;
}


/* ============================================================
   RESET
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--dark-text-1);
    background: var(--dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
ul, ol     { list-style: none; }
a          { color: inherit; text-decoration: none; }


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--dark-text-1);
}

h1 { font-size: clamp(2.25rem, 4vw, 3.75rem); }
h2 { font-size: clamp(1.625rem, 2.75vw, 2.375rem); }
h3 { font-size: clamp(1.125rem, 1.75vw, 1.5rem); }
h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }

p { color: var(--dark-text-2); line-height: 1.72; }


/* ============================================================
   LAYOUT
   ============================================================ */

.container       { width: 100%; max-width: var(--container);    margin: 0 auto; padding: 0 2rem; }
.container-wide  { width: 100%; max-width: 1280px;              margin: 0 auto; padding: 0 2rem; }
.container-lg    { width: 100%; max-width: var(--container-lg); margin: 0 auto; padding: 0 2rem; }


/* ============================================================
   APP SHELL
   ============================================================ */

body.app-layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: var(--dark);
    overflow-x: hidden;
}

.app-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--dark);          /* same token as hero + footer */
    border-right: 1px solid var(--dark-rule);
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}
.app-sidebar::-webkit-scrollbar { display: none; }

.app-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
    background: var(--dark);
}


/* ============================================================
   SIDEBAR INTERNALS
   ============================================================ */

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--dark-rule);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo-icon img,
.sidebar-logo-icon video { width: 100%; height: 100%; object-fit: contain; }

.sidebar-logo-text { display: none; }

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-nav-section { display: flex; flex-direction: column; gap: 0.125rem; }

.sidebar-nav-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dark-text-3);
    padding: 0 0.625rem 0.375rem;
}

.sidebar-nav-list { display: flex; flex-direction: column; gap: 2px; }

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5625rem 0.75rem;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-text-2);
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
    line-height: 1.3;
}

.sidebar-nav-link:hover        { background: rgba(255,255,255,0.06); color: var(--dark-text-1); }
.sidebar-nav-link.active       { background: var(--green-muted); color: var(--green); }
.sidebar-nav-link svg          { flex-shrink: 0; opacity: 0.7; }
.sidebar-nav-link:hover svg,
.sidebar-nav-link.active svg   { opacity: 1; }

.sidebar-nav-sub { font-size: 0.85rem; padding: 0.5625rem 0.75rem 0.5625rem 0.875rem; }

/* CTAs */
.sidebar-ctas {
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--dark-rule);
    border-bottom: 1px solid var(--dark-rule);
    flex-shrink: 0;
}

.sidebar-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6875rem 1rem;
    background: var(--green);
    color: #fff;
    border-radius: var(--r-sm);
    font-size: 0.85rem;
    font-weight: 700;
    transition: background var(--t-fast) var(--ease);
    text-align: center;
    line-height: 1.3;
}
.sidebar-cta-primary:hover { background: #009960; color: #fff; }
.sidebar-cta-primary svg   { flex-shrink: 0; }

.sidebar-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5625rem 1rem;
    background: var(--dark-surface);
    color: var(--dark-text-2);
    border-radius: var(--r-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--dark-rule);
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
    text-align: center;
}
.sidebar-cta-secondary:hover { background: rgba(255,255,255,0.08); color: var(--dark-text-1); }
.sidebar-cta-secondary svg   { flex-shrink: 0; }

/* Social footer */
.sidebar-footer {
    padding: 0.875rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sidebar-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--r-sm);
    color: var(--dark-text-3);
    transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.sidebar-social:hover { color: var(--dark-text-1); background: rgba(255,255,255,0.06); }
.sidebar-social svg   { width: 14px; height: 14px; }


/* ============================================================
   MOBILE HEADER + OVERLAY
   ============================================================ */

.app-mobile-header { display: none; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 199;
    opacity: 0;
    transition: opacity var(--t-base) var(--ease);
    pointer-events: none;
}
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }


/* ============================================================
   HERO — dark, plain background
   ============================================================ */

.app-hero {
    min-height: 92vh;
    background: var(--dark);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.app-hero-content {
    padding: 6rem 4rem;
    max-width: 800px;
    -webkit-font-smoothing: antialiased;
}

.app-hero-scene {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 2rem;
    /* scene bleeds left into content column; scale controlled by CSS var */
    transform: translateX(calc(-420px * var(--scene-scale, 1)));
}

.hero-scene-inner {
    width: 900px;
    flex-shrink: 0;
    transform: scale(var(--scene-scale, 1));
    transform-origin: center center;
}

/* Location badge */
.app-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--dark-rule);
    color: var(--dark-text-2);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: var(--r-sm);
    margin-bottom: 2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.app-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.app-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 4.5vw, 5rem);
    font-weight: 800;
    line-height: 1.04;
    color: var(--dark-text-1);
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.app-hero-highlight { color: var(--green); }

.app-hero-desc {
    font-size: 1.0625rem;
    line-height: 1.72;
    color: var(--dark-text-2);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.app-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.app-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--green);
    color: #fff;
    padding: 0.875rem 1.75rem;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: background var(--t-fast) var(--ease);
}
.app-hero-btn-primary:hover     { background: #009960; color: #fff; }
.app-hero-btn-primary svg       { flex-shrink: 0; transition: transform var(--t-fast) var(--ease); }
.app-hero-btn-primary:hover svg { transform: translateX(3px); }

.app-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--dark-text-2);
    padding: 0.8125rem 1.625rem;
    border-radius: var(--r-md);
    border: 1.5px solid var(--dark-rule);
    font-weight: 500;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.app-hero-btn-secondary:hover       { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: var(--dark-text-1); }
.app-hero-btn-secondary svg         { opacity: 0.5; transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.app-hero-btn-secondary:hover svg   { transform: translateX(3px); opacity: 1; }

/* Stat strip */
.app-hero-stats {
    display: flex;
    align-items: center;
    padding-top: 1.75rem;
    border-top: 1px solid var(--dark-rule);
    flex-wrap: wrap;
}

.app-stat         { display: flex; flex-direction: column; gap: 4px; padding-right: 2rem; }

.app-stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-text-1);
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.app-stat-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--dark-text-3);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.app-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--dark-rule);
    margin-right: 2rem;
    flex-shrink: 0;
}

/* Shared animation */
.fade-in-up { animation: fadeInUp 0.5s var(--ease) both; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   FIT STRIP + SERVICES TICKER
   Both are horizontal info bars — same height, same visual weight.
   Fit strip: dark (extends hero). Ticker: light (opens content zone).
   ============================================================ */

/* --- Shared bar anatomy --- */
.fit-strip,
.services-ticker {
    display: flex;
    align-items: center;
    height: 52px;
    overflow: hidden;
    background: var(--dark);
    border-bottom: 1px solid var(--dark-rule);
}

.fit-strip {
    border-top: 1px solid var(--dark-rule);
}

/* Shared label column — identical on both bars */
.fit-strip-label,
.services-ticker-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 160px;
    padding: 0 1rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--dark-text-3);
    white-space: nowrap;
    border-right: 1px solid var(--dark-rule);
}

/* --- Fit strip (dark) --- */
.fit-strip {
    /* background/border already in shared rule */
}

.fit-strip-items { display: flex; align-items: center; flex: 1; height: 100%; }

.fit-strip-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    padding: 0 1.5rem;
    height: 100%;
    text-decoration: none;
    transition: background var(--t-fast) var(--ease);
}
.fit-strip-item:hover                      { background: rgba(255,255,255,0.03); }

/* Per-category colours on hover (title + arrow + num tint) */
.fit-item-plan:hover .fit-strip-title  { color: #00A86B; }
.fit-item-plan:hover .fit-strip-arrow  { color: #00A86B; transform: translateX(4px); }
.fit-item-build:hover .fit-strip-title { color: #60A5FA; }
.fit-item-build:hover .fit-strip-arrow { color: #60A5FA; transform: translateX(4px); }
.fit-item-equip:hover .fit-strip-title { color: #FBBF24; }
.fit-item-equip:hover .fit-strip-arrow { color: #FBBF24; transform: translateX(4px); }

.fit-strip-num {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}

/* Category num colours match ticker pills */
.fit-item-plan  .fit-strip-num { color: rgba(0, 168, 107, 0.55); }
.fit-item-build .fit-strip-num { color: rgba(96, 165, 250, 0.55); }
.fit-item-equip .fit-strip-num { color: rgba(251, 191, 36, 0.55); }

.fit-strip-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.fit-strip-title {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark-text-1);
    line-height: 1;
    transition: color var(--t-fast) var(--ease);
}

.fit-strip-desc {
    font-size: 0.6875rem;
    color: var(--dark-text-3);
    line-height: 1.3;
}

.fit-strip-arrow {
    color: var(--dark-text-3);
    flex-shrink: 0;
    transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.fit-strip-divider {
    width: 1px;
    height: 24px;
    background: var(--dark-rule);
    flex-shrink: 0;
}

/* --- Services ticker (dark, colour-coded by service category) --- */
.services-ticker {
    /* all base styles in shared rule above */
}

.services-ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.services-ticker-track {
    display: flex;
    align-items: center;
    animation: ticker-scroll 52s linear infinite;
    width: max-content;
}
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Category label pill */
.ticker-cat {
    display: inline-flex;
    align-items: center;
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.1875rem 0.5rem;
    border-radius: 3px;
    margin: 0 0.875rem 0 0.25rem;
    flex-shrink: 0;
}

/* Category colour tokens */
.ticker-cat-plan  { background: rgba(0, 168, 107, 0.15);  color: #00A86B; }
.ticker-cat-build { background: rgba(96, 165, 250, 0.14); color: #60A5FA; }
.ticker-cat-equip { background: rgba(251, 191, 36, 0.14); color: #FBBF24; }

/* Service items per category */
.services-ticker-item {
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0 0.25rem;
}

.ticker-plan  { color: rgba(0, 168, 107, 0.75); }
.ticker-build { color: rgba(96, 165, 250, 0.75); }
.ticker-equip { color: rgba(251, 191, 36, 0.75); }

/* Dot separators within a category */
.services-ticker-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    flex-shrink: 0;
    margin: 0 0.75rem;
}
.ticker-plan-dot  { background: rgba(0, 168, 107, 0.3); }
.ticker-build-dot { background: rgba(96, 165, 250, 0.3); }
.ticker-equip-dot { background: rgba(251, 191, 36, 0.3); }

/* Vertical rule between categories */
.ticker-cat-rule {
    display: inline-block;
    width: 1px;
    height: 22px;
    background: var(--dark-rule);
    flex-shrink: 0;
    margin: 0 1.25rem;
}


/* ============================================================
   VIDEO SECTION — light zone
   ============================================================ */

.video-section {
    background: var(--dark);
    padding: 5rem 0;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 420px;   /* video dominant, text compact */
    gap: 3.5rem;
    align-items: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--dark-rule);
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--r-lg);
}

.text-column { display: flex; flex-direction: column; justify-content: center; }

.video-title-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    display: block;
    margin-bottom: 0.375rem;
}

.video-title-box         { margin-bottom: 1.25rem; }
.video-title-box h2      { font-size: clamp(1.5rem, 2.5vw, 2rem); }

.text-column p           { font-size: 0.9375rem; color: var(--dark-text-2); line-height: 1.72; margin-bottom: 1rem; }
.text-column p:last-of-type { margin-bottom: 1.75rem; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--green);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--r-md);
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--t-fast) var(--ease);
    align-self: flex-start;
}
.btn-primary:hover { background: #009960; color: #fff; }


/* ============================================================
   REVIEWS ORBIT
   ============================================================ */

.reviews-section {
    background: var(--dark);
    border-top: 1px solid var(--dark-rule);
    border-bottom: 1px solid var(--dark-rule);
    overflow: hidden;
}

.reviews-header {
    padding: 2.5rem 4rem 0;
}

.reviews-header h2 {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    margin: 0.25rem 0 0;
}

/* Stage — three columns: left panel | dino | right panel */
.reviews-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 3rem 3rem 4rem;
    width: 100%;
    box-sizing: border-box;
}

/* Centre dino — clickable link */
.orbit-center {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}

.orbit-dino {
    width: 130px;
    height: 130px;
    object-fit: contain;
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: drop-shadow(0 0 18px rgba(0,168,107,0.25));
}

.orbit-center:hover .orbit-dino {
    transform: scale(1.1) rotate(-4deg);
    filter: drop-shadow(0 0 28px rgba(0,168,107,0.55));
}

.orbit-center-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.orbit-center:hover .orbit-center-label {
    opacity: 1;
    transform: translateY(0);
}

/* Pulsing rings behind the dino */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0,168,107,0.18);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbit-ring-1 {
    width: 200px;
    height: 200px;
    animation: ring-pulse 3s ease-in-out infinite;
}

.orbit-ring-2 {
    width: 280px;
    height: 280px;
    animation: ring-pulse 3s ease-in-out infinite 1s;
}

@keyframes ring-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.04); }
}

/* Review panels — left and right of dino */
.reviews-panel {
    position: relative;
    flex: 1;
    max-width: 320px;
    height: 230px;
}

/* Cards stack on top of each other; JS fades between them */
.reviews-panel .review-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
    margin: 0;
}
.reviews-panel .review-card.rc-active {
    opacity: 1;
    pointer-events: auto;
}

/* Shared card styling */
.review-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--dark-rule);
    border-radius: 14px;
    padding: 1.25rem 1.375rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 10px 36px rgba(0,0,0,0.45);
    border-color: rgba(255,255,255,0.16);
}

.rc-quote {
    font-size: 0.8125rem;
    line-height: 1.68;
    color: var(--dark-text-2);
    font-style: italic;
    margin: 0 0 0.875rem;
}

.rc-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--dark-rule);
}

.rc-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green-muted);
    color: var(--green);
    font-size: 0.5625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.rc-name { font-size: 0.75rem; font-weight: 600; color: var(--dark-text-1); margin: 0; }
.rc-org  { font-size: 0.6875rem; color: var(--dark-text-3); margin: 0; }

@media (prefers-reduced-motion: reduce) {
    .orbit-ring { animation: none !important; }
    .reviews-panel .review-card { transition: none !important; }
}

/* Desktop: hide the mobile carousel track */
.reviews-carousel-track { display: none; }

/* Mobile: dino on top, swipe carousel */
@media (max-width: 900px) {
    .reviews-stage {
        flex-direction: column;
        padding: 1.5rem 0 2.5rem;
        gap: 1.25rem;
        align-items: center;
    }
    .orbit-center { order: -1; }
    .orbit-ring { display: none; }

    /* Hide desktop fade panels */
    .reviews-panel { display: none; }

    /* Show mobile carousel */
    .reviews-carousel-track {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.5rem 11vw;
        width: 100%;
        box-sizing: border-box;
        order: 1;
    }
    .reviews-carousel-track::-webkit-scrollbar { display: none; }

    .reviews-carousel-track .review-card {
        position: static;
        opacity: 1;
        pointer-events: auto;
        flex-shrink: 0;
        width: 78vw;
        max-width: 300px;
        scroll-snap-align: center;
    }

    .reviews-header { padding: 2rem 1.25rem 0; }
}


/* ============================================================
   ABOUT BENTO — light zone (continues from testimonials)
   ============================================================ */

.about-bento-section {
    background: var(--dark);
    padding: 4.5rem 0 0;
    border-top: 1px solid var(--dark-rule);
}

.about-bento-header {
    padding: 0 2rem 2.5rem;
}

.solutions-header-flow   { margin-bottom: 2.5rem; max-width: 640px; }
.solutions-header-flow h2 { margin-bottom: 0.625rem; }

.section-label-small {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 0.75rem;
}

.section-description-left {
    font-size: 0.9375rem;
    color: var(--dark-text-2);
    line-height: 1.72;
    margin: 0;
    max-width: 540px;
}

/* Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0;
    border-top: 1px solid var(--dark-rule);
}

.bento-card {
    background: var(--dark);
    padding: 1.875rem 2rem;
    border-right: 1px solid var(--dark-rule);
    border-bottom: 1px solid var(--dark-rule);
}
.bento-card:nth-child(3n) { border-right: none; }

.bento-founder    { grid-column: 1 / 2; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 1.25rem; }
.bento-different  { grid-column: 2 / 4; grid-row: 1 / 2; border-right: none; }
.bento-values     { grid-column: 2 / 3; grid-row: 2 / 3; }
.bento-mission    { grid-column: 3 / 4; grid-row: 2 / 3; border-right: none; background: rgba(0,168,107,0.06); }
.bento-experience { grid-column: 1 / 3; grid-row: 3 / 4; border-right: 1px solid var(--dark-rule); border-bottom: none; }
.bento-vision     { grid-column: 3 / 4; grid-row: 3 / 4; border-right: none; border-bottom: none; }

/* Founder */
.bento-founder-image {
    width: 68px; height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.12);
}

.bento-founder-info h3 { font-size: 1.0625rem; margin-bottom: 0.125rem; }

.founder-title     { font-size: 0.8125rem; color: var(--green); font-weight: 600; margin-bottom: 0.875rem; }
.founder-bio       { font-size: 0.9rem; line-height: 1.68; color: var(--dark-text-2); margin-bottom: 0.75rem; }
.founder-education { font-size: 0.75rem; font-weight: 600; color: var(--dark-text-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }

.founder-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dark-rule);
    margin-top: auto;
}

.stat-item   { display: flex; flex-direction: column; gap: 2px; }
.stat-number { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--dark-text-1); letter-spacing: -0.04em; line-height: 1; }
.stat-label  { font-size: 0.625rem; font-weight: 600; color: var(--dark-text-3); text-transform: uppercase; letter-spacing: 0.08em; }

/* Card icon */
.bento-card-icon { color: var(--green); margin-bottom: 0.875rem; }

/* Mission card — slightly green-tinted dark */
.bento-mission .bento-card-icon { color: var(--green); }
.bento-mission h4               { color: var(--dark-text-1); }
.bento-mission p                { color: var(--dark-text-2); margin: 0; line-height: 1.68; font-size: 0.9rem; }

/* General card copy */
.bento-different h3             { font-size: 1.0625rem; margin-bottom: 0.625rem; }
.bento-values h4,
.bento-experience h4,
.bento-vision h4                { margin-bottom: 0.5rem; }
.bento-different p,
.bento-values p,
.bento-experience p,
.bento-vision p                 { font-size: 0.9rem; color: var(--dark-text-2); margin: 0; line-height: 1.68; }
.values-intro                   { font-size: 0.8125rem; color: var(--dark-text-3); margin-bottom: 0.875rem; }

/* Badges */
.experience-badges { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.exp-badge         { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; font-weight: 500; color: var(--dark-text-2); }
.exp-badge svg     { flex-shrink: 0; color: var(--green); opacity: 0.7; }


/* ============================================================
   SCROLL CTA POPUP
   ============================================================ */

.cta-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease);
}
.cta-popup-backdrop.visible { opacity: 1; pointer-events: auto; }

.cta-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 401;
    width: 360px;
    background: var(--dark);
    border: 1px solid var(--dark-rule);
    border-radius: var(--r-lg);
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.cta-popup.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

body.popup-open { /* no scroll-lock — popup is a corner card, not a full overlay */ }

.cta-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--dark-surface);
    border: 1px solid var(--dark-rule);
    border-radius: var(--r-sm);
    cursor: pointer;
    color: var(--dark-text-3);
    transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.cta-popup-close:hover { color: var(--dark-text-1); background: rgba(255,255,255,0.08); }

.cta-popup-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--green);
    margin-bottom: 0.625rem;
}

.cta-popup-title {
    font-family: var(--font-display);
    font-size: 1.3125rem;
    font-weight: 800;
    color: var(--dark-text-1);
    line-height: 1.14;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.cta-popup-desc {
    font-size: 0.875rem;
    color: var(--dark-text-2);
    line-height: 1.65;
    margin-bottom: 1.375rem;
}

.cta-popup-actions { display: flex; flex-direction: column; gap: 0.5rem; }

.cta-popup-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--green);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    font-weight: 700;
    transition: background var(--t-fast) var(--ease);
}
.cta-popup-btn-primary:hover     { background: #009960; color: #fff; }
.cta-popup-btn-primary svg       { flex-shrink: 0; transition: transform var(--t-fast) var(--ease); }
.cta-popup-btn-primary:hover svg { transform: translateX(3px); }

.cta-popup-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--dark-text-2);
    padding: 0.6875rem 1.25rem;
    border-radius: var(--r-md);
    border: 1.5px solid var(--dark-rule);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.cta-popup-btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); color: var(--dark-text-1); }


/* ============================================================
   FOOTER — dark (continuous from CTA)
   ============================================================ */

footer {
    background: var(--dark);
    border-top: 1px solid var(--dark-rule);
    padding: 3.5rem 0 2rem;
}

.footer-header {
    margin-bottom: 2.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--dark-rule);
}

.footer-header h2 { font-size: 0.9375rem; font-weight: 600; color: var(--dark-text-2); letter-spacing: 0; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.25rem;
}

.footer-section h4 {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dark-text-3);
    margin-bottom: 1rem;
    line-height: 1;
    font-family: var(--font-body);
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a,
.footer-links span { font-size: 0.875rem; color: var(--dark-text-2); transition: color var(--t-fast) var(--ease); }
.footer-links a:hover { color: var(--dark-text-1); }

.footer-contact-info li  { display: flex; align-items: center; gap: 0.5rem; }
.footer-contact-info svg { color: var(--dark-text-3); flex-shrink: 0; }

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--dark-rule);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: var(--r-sm);
    color: var(--dark-text-3);
    border: 1px solid var(--dark-rule);
    transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.social-link:hover { color: var(--dark-text-1); border-color: rgba(255,255,255,0.16); }
.social-link svg   { width: 13px; height: 13px; fill: currentColor; }

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1.25rem;
    background: var(--green);
    color: #fff;
    padding: 0.5rem 0.9375rem;
    border-radius: var(--r-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    transition: background var(--t-fast) var(--ease);
}
.footer-cta-button:hover { background: #009960; color: #fff; }
.footer-cta-button svg   { width: 13px; height: 13px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.625rem;
    border-top: 1px solid var(--dark-rule);
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom p          { font-size: 0.8125rem; color: var(--dark-text-3); margin: 0; }
.footer-bottom-links      { display: flex; gap: 1.5rem; }
.footer-bottom-links a    { font-size: 0.8125rem; color: var(--dark-text-3); transition: color var(--t-fast) var(--ease); }
.footer-bottom-links a:hover { color: var(--dark-text-2); }


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Hero scene graceful scaling ---
   The scene inner div is 900px wide with a 420px left bleed.
   We shrink both proportionally via --scene-scale so the scene
   stays within its column and never crunches the text.
   ------------------------------------------------------------ */

/* Large displays: scene fits at full size */
@media (max-width: 1440px) {
    .app-hero { --scene-scale: 0.88; }
}

@media (max-width: 1280px) {
    .app-hero { --scene-scale: 0.72; }
    .app-hero-content { padding: 5rem 3rem; }
}

/* Below 1100px: scene is too cramped — hide it, go full-width single column */
@media (max-width: 1100px) {
    .app-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 0;
    }
    .app-hero-content {
        padding: 4rem 3rem;
        max-width: 720px;
    }
    .app-hero-scene { display: none; }
}

@media (max-width: 900px) {

    /* Sidebar slides off-screen */
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.28s var(--ease);
        z-index: 300;
    }
    .app-sidebar.open  { transform: translateX(0); }
    .sidebar-overlay        { display: block; }
    .app-main               { margin-left: 0; }
    .cta-popup,
    .cta-popup-backdrop     { display: none !important; }

    /* Mobile sticky header */
    .app-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--dark);
        border-bottom: 1px solid var(--dark-rule);
        padding: 0 1.25rem;
        height: 56px;
        gap: 1rem;
    }

    .mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px; height: 36px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--dark-text-2);
        border-radius: var(--r-sm);
        transition: background var(--t-fast) var(--ease);
    }
    .mobile-sidebar-toggle:hover { background: rgba(255,255,255,0.06); color: var(--dark-text-1); }

    .mobile-header-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
    }
    .mobile-header-logo img  { width: 26px; height: 26px; object-fit: contain; }
    .mobile-header-logo span { font-size: 0.9375rem; font-weight: 800; color: var(--dark-text-1); }

    .mobile-header-cta {
        display: inline-flex;
        align-items: center;
        padding: 0.4375rem 0.875rem;
        background: var(--green);
        color: #fff;
        border-radius: var(--r-sm);
        font-size: 0.8125rem;
        font-weight: 700;
        white-space: nowrap;
    }

    /* Hero — scene already hidden above; single-column layout */
    .app-hero         { min-height: 100svh; grid-template-columns: 1fr; align-items: flex-start; }
    .app-hero-content { padding: 3rem 1.5rem; max-width: 100%; }
    .app-hero-desc    { max-width: 100%; }

    /* Fit strip stacks vertically on mobile; ticker just scrolls at reduced height */
    .fit-strip {
        padding: 0 1.5rem;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
    }
    .fit-strip-label {
        padding: 0.875rem 0;
        border-right: none;
        border-bottom: 1px solid var(--dark-rule);
        width: 100%;
        line-height: 1.3;
    }
    .fit-strip-items  { flex-direction: column; width: 100%; height: auto; }
    .fit-strip-item   { padding: 1rem 0; height: auto; width: 100%; border-bottom: 1px solid var(--dark-rule); }
    .fit-strip-item:last-child { border-bottom: none; }
    .fit-strip-divider { display: none; }

    .services-ticker { height: 48px; }
    .services-ticker-label { display: none; }
    .services-ticker-track { animation-duration: 90s; }

    /* Video stacks */
    .video-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Bento collapses to 2 col */
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
    }
    .bento-founder,
    .bento-different,
    .bento-values,
    .bento-mission,
    .bento-experience,
    .bento-vision  { grid-column: auto; grid-row: auto; }
    .bento-founder { grid-column: 1 / 3; }

    /* CTA */
    .cta-home-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.75rem;
        gap: 2rem;
    }
    .cta-home-actions        { width: 100%; min-width: 0; }
    .cta-btn-primary,
    .cta-btn-secondary        { width: 100%; }

    /* Footer */
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {

    .app-hero-content { padding: 2.5rem 1.25rem; }
    .app-hero-title   { font-size: 2.25rem; }

    .app-hero-actions {
        flex-direction: column;
        margin-bottom: 2rem;
    }
    .app-hero-btn-primary,
    .app-hero-btn-secondary  { width: 100%; justify-content: center; }

    .app-hero-stats   { gap: 1.5rem; }
    .app-stat         { padding-right: 0; }
    .app-stat-divider { display: none; }

    .bento-grid    { grid-template-columns: 1fr; }
    .bento-founder { grid-column: 1 / 2; }

    .footer-content { grid-template-columns: 1fr; }
    .footer-bottom  { flex-direction: column; align-items: flex-start; }

    .cta-popup { width: calc(100vw - 2rem); bottom: 1rem; right: 1rem; padding: 1.625rem 1.5rem 1.5rem; }
}
