/* ============================================================
   See Thru IT & Business Consulting — brand custom CSS
   Mirrors the screenshots in /assets/Screenshot From 2026-05-19 *.png
   Dark header/footer · light sections · cyan→violet gradient CTAs
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Light section palette */
    --stit-ink:        #06112f;
    --stit-ink-soft:   #3a4a6b;
    --stit-bg-page:    #ffffff;
    --stit-bg-soft:    #f0f5ff;
    --stit-bg-card:    #f5f8ff;
    --stit-bg-band:    #eef2ff;
    --stit-line:       #dde6f5;
    --stit-line-soft:  #c8d4f0;

    /* Brand accents */
    --stit-cyan:       #4cc2ff;
    --stit-cyan-hi:    #00b6ff;
    --stit-violet:     #7c5cff;
    --stit-blue:       #2348ff;
    --stit-cobalt:     #1a3f7d;

    /* Dark surfaces (header / footer / dividers / workshops) */
    --stit-dark:       #06080f;
    --stit-dark-2:     #0a0e1f;
    --stit-dark-3:     #0e1a35;
    --stit-on-dark:    #c8d8f8;
    --stit-on-dark-2:  #9caac8;

    /* Gradient */
    --stit-grad: linear-gradient(135deg, #4cc2ff 0%, #7c5cff 100%);

    /* Fonts */
    --stit-display: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --stit-sans:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --stit-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- base ---------- */
body {
    background: var(--stit-bg-page);
    color: var(--stit-ink);
    font-family: var(--stit-sans);
    font-weight: 400;
    line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--stit-display);
    color: var(--stit-ink);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.08;
}
a       { color: var(--stit-cobalt); }
a:hover { color: var(--stit-blue); }

/* ---------- mono eyebrow ---------- */
.stit-eyebrow,
.stit-eyebrow-cyan {
    margin: 0 0 16px;
    font-family: var(--stit-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--stit-cyan-hi);
}

/* ============================================================
   HEADER — dark gradient with violet bottom border + glass CTA
   ============================================================ */
#header {
    background:
        radial-gradient(60% 100% at 50% 0%, rgba(76,194,255,0.10) 0%, transparent 60%),
        linear-gradient(180deg, #04050b 0%, #0a0e1f 100%) !important;
    border-bottom: 1px solid transparent !important;
    /* !important beats the theme rule .header-fixed #header { z-index: 2 }
       which has higher specificity (110 vs 100) and was winning */
    z-index: 200 !important;
}
#header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--stit-violet) 40%, var(--stit-cyan) 70%, transparent);
    opacity: 0.85;
}
#header .container { max-width: 1280px; }
#header .navbar { align-items: center; }

/* Brand: mark + "See Thru IT" + // consulting suffix */
#header .navbar-brand.stit-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 4px 0;
}
.stit-brand-mark {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(76,194,255,0.35));
}
.stit-brand-name {
    font-family: var(--stit-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: #f5f7fa;
}
.stit-brand-suffix {
    font-family: var(--stit-mono);
    font-size: 0.78rem;
    color: var(--stit-on-dark-2);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-left: 1px solid rgba(255,255,255,0.10);
    padding-left: 12px;
    margin-left: -2px;
}

/* Navigation links */
#header .dropmenu > li > a {
    color: #d3dcef;
    font-family: var(--stit-sans);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    transition: color .15s ease;
}
#header .dropmenu > li > a:hover,
#header .dropmenu > li.active > a { color: #ffffff; }
ul.navigation li a.active { color: var(--stit-cyan); }

/* The "Book a call →" CTA pill */
#header a.stit-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1.15rem !important;
    margin-left: 10px;
    border-radius: 999px !important;
    background: var(--stit-grad);
    color: #0a1224 !important;
    font-family: var(--stit-display);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: -0.005em;
    box-shadow: 0 12px 30px -10px rgba(76,194,255,0.55), 0 0 0 1px rgba(255,255,255,0.10) inset;
    transition: transform .15s ease, box-shadow .15s ease, padding .5s ease, font-size .5s ease;
}
#header.scrolled a.stit-cta-button {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.8rem;
}
#header a.stit-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px -10px rgba(124,92,255,0.65), 0 0 0 1px rgba(255,255,255,0.18) inset;
    color: #0a1224 !important;
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section.modular-text {
    background: var(--stit-bg-page);
    color: var(--stit-ink);
    padding: 0 1rem;
    border: 0;
    position: relative;
    /* Vertical padding is moved to the inner .container so the section
       background extends edge-to-edge (no transparent gap between sections). */
}
.section.modular-text > .container {
    padding-top: 56px;
    padding-bottom: 56px;
}
.section.modular-text.stit-hero > .container {
    padding-top: calc(var(--sti-header-h, 80px) + 40px);
    padding-bottom: 56px;
}
/* When a section has a background video, drop the opaque base color so the
   video can actually show through. The veil + brand color tint sit ABOVE the
   video and now do the work the base background used to do. */
.section.modular-text.stit-has-video { background: transparent; padding-left: 0; padding-right: 0; }

/* ---------- background video (per-section, sticky parallax) -----
   The stage is position: sticky so the video stays pinned to the
   viewport while the section is scrolled through, like a fixed
   background. margin-bottom: -100vh pulls it out of layout flow so
   the section's content sits on top of it instead of after it. */
.stit-section-video-stage {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    margin-bottom: -100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.stit-section-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}
.stit-section-video-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* smokey veil that subdues the video while keeping text readable */
    background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.70));
}
.stit-has-video > .container { position: relative; z-index: 2; }

/* Workshops video: shift frame upward so the main action at the top stays visible */
.section.stit-workshops .stit-section-video {
    object-position: center 100%;
}

/* The workshops band is dark cobalt — heavier tint so light text stays legible */
.section.stit-workshops .stit-section-video-veil {
    background: linear-gradient(180deg, rgba(26,63,125,0.80), rgba(26,63,125,1.0));
}

/* Per-section veil tints — light sections */
.section.stit-hero .stit-section-video-veil      { background: linear-gradient(180deg, rgba(240,245,255,0.55), rgba(240,245,255,0.70)); }
.section.stit-services .stit-section-video-veil  { background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.70)); }
/* Approach/How-it-Works: loans1.mp4 is warm-yellow so we pull the video opacity
   down and layer a heavier cool-blue veil to neutralise the warmth. */
.section.stit-approach .stit-section-video       { opacity: 0.55; }
.section.stit-approach .stit-section-video-veil  { background: linear-gradient(180deg, rgba(175,205,255,0.82), rgba(190,218,255,0.92)); }

/* Keep text readable on top of full-strength video */
.stit-has-video h1,
.stit-has-video h2,
.stit-has-video h3,
.stit-has-video h4 { text-shadow: 0 1px 2px rgba(255,255,255,0.65); }
.section.stit-workshops.stit-has-video h1,
.section.stit-workshops.stit-has-video h2,
.section.stit-workshops.stit-has-video h3,
.section.stit-workshops.stit-has-video h4,
.section.stit-workshops.stit-has-video p,
.section.stit-workshops.stit-has-video li { text-shadow: 0 1px 3px rgba(6,8,15,0.55); }

/* Mobile: maintain veil strength for readability on smaller screens */
@media (max-width: 740px) {
    .stit-section-video-veil { background: linear-gradient(180deg, rgba(255,255,255,0.60), rgba(255,255,255,0.75)); }
    .section.stit-workshops .stit-section-video-veil {
        background: linear-gradient(180deg, rgba(26,63,125,0.85), rgba(26,63,125,1.0));
    }
    .section.stit-approach .stit-section-video-veil {
        background: linear-gradient(180deg, rgba(175,205,255,0.88), rgba(190,218,255,0.96));
    }
}

/* Respect user's reduced-motion preference: hide the video entirely. */
@media (prefers-reduced-motion: reduce) {
    .stit-section-video { display: none; }
}
.section.modular-text.bg-gray { background: var(--stit-bg-page); }
.section .container { max-width: 1100px; }

.section.modular-text.stit-hero       { background: var(--stit-bg-soft); }
.section.modular-text.stit-services   { background: var(--stit-bg-page); }
.section.modular-text.stit-approach   { background: var(--stit-bg-band); }
.section.modular-text.stit-workshops  { background: var(--stit-cobalt); color: #ffffff; }
.section.modular-text.stit-proof      { background: var(--stit-bg-soft); }

/* Dark "scanline" band between sections.
   Each non-hero section is preceded by a <div id="..."> anchor, not a sibling section,
   so we target that pattern instead of the broken + adjacent-sibling selector.
   :not(.stit-hero) excludes the hero — it's also preceded by an id-div but is
   the first section on the page, so a top border there shows as a gap below the navbar. */
[id] + .section.modular-text:not(.stit-hero) {
    border-top: 48px solid var(--stit-dark);
}

/* Container columns reset (Quark default fights us) */
.section.modular-text .columns,
.section.modular-text .column { display: block; width: auto; padding: 0; }

/* Common typography */
.section.modular-text h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.4rem);
    line-height: 1.05;
    font-weight: 800;
    margin: 0 0 18px;
    color: var(--stit-ink);
}
.section.modular-text h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 18px;
    color: var(--stit-ink);
}
.section.modular-text p {
    color: var(--stit-ink-soft);
    line-height: 1.7;
    font-size: 1.05rem;
    max-width: 70ch;
}

/* ============================================================
   HERO
   ============================================================ */
.stit-hero .container { max-width: 1100px; }
.stit-hero h2 {
    color: var(--stit-cobalt);
    font-family: var(--stit-display);
    font-weight: 700;
    font-style: normal;
    font-size: clamp(1.25rem, 2.3vw, 1.7rem);
    line-height: 1.3;
    margin-bottom: 26px;
    letter-spacing: -0.015em;
}
.stit-hero p {
    color: var(--stit-ink-soft);
    max-width: 70ch;
    margin-bottom: 36px;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.stit-cta-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.stit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: var(--stit-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.005em;
    text-decoration: none !important;
    border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.stit-btn:hover { transform: translateY(-1px); }
.stit-btn-primary {
    background: var(--stit-grad);
    color: #0a1224;
    box-shadow: 0 18px 40px -12px rgba(76,194,255,0.55), 0 0 0 1px rgba(255,255,255,0.10) inset;
}
.stit-btn-primary:hover {
    color: #0a1224;
    box-shadow: 0 22px 48px -12px rgba(124,92,255,0.70), 0 0 0 1px rgba(255,255,255,0.18) inset;
}
.stit-btn-outline {
    background: transparent;
    color: var(--stit-cobalt);
    border-color: var(--stit-cobalt);
}
.stit-btn-outline:hover {
    background: var(--stit-cobalt);
    color: #ffffff;
    border-color: var(--stit-cobalt);
}
.stit-btn-light {
    background: var(--stit-grad);
    color: #0a1224;
    box-shadow: 0 18px 40px -12px rgba(76,194,255,0.50), 0 0 0 1px rgba(255,255,255,0.10) inset;
}
.stit-btn-light:hover { color: #0a1224; }

/* ============================================================
   SERVICES
   ============================================================ */
.stit-services .container { max-width: 1100px; }
.stit-services h2 { color: var(--stit-ink); }
.stit-svc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}
@media (max-width: 740px) { .stit-svc-grid { grid-template-columns: 1fr; } }
.stit-svc-card {
    background: var(--stit-bg-card);
    border: 1.5px solid var(--stit-line);
    border-radius: 16px;
    padding: 32px 28px;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.stit-svc-card:hover {
    border-color: var(--stit-blue);
    transform: translateY(-2px);
    box-shadow: 0 24px 50px -28px rgba(35, 72, 255, 0.35);
}
.stit-svc-kicker {
    color: var(--stit-cobalt);
    margin: 0 0 12px;
    font-family: var(--stit-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.stit-svc-title {
    color: var(--stit-ink);
    margin: 0 0 10px;
    font-family: var(--stit-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}
.stit-svc-card p {
    color: var(--stit-ink-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    max-width: none;
}

/* ============================================================
   APPROACH (numbered steps)
   ============================================================ */
.stit-approach { background: var(--stit-bg-band) !important; }
.stit-approach .container { max-width: 900px; }
.stit-approach .stit-eyebrow { color: var(--stit-blue); }
.stit-step-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 32px;
    align-items: start;
    padding: 22px 0;
}
.stit-step-num {
    font-family: var(--stit-display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--stit-cobalt);
    letter-spacing: -0.02em;
}
.stit-step-body h3 {
    color: var(--stit-ink);
    margin: 0 0 6px;
    font-family: var(--stit-display);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}
.stit-step-body p {
    color: var(--stit-ink-soft);
    margin: 0;
    line-height: 1.7;
}
hr.stit-step-divider {
    border: 0;
    border-top: 1px solid var(--stit-line-soft);
    margin: 0;
}

/* ============================================================
   WORKSHOPS — cobalt band, light text
   ============================================================ */
.stit-workshops { background: var(--stit-cobalt) !important; }
.stit-workshops .container { max-width: 780px; }
.stit-workshops .stit-eyebrow { color: var(--stit-cyan); }
.stit-workshops h2 { color: #ffffff; margin-bottom: 24px; }
.stit-workshops p  { color: var(--stit-on-dark); }
.stit-workshop-bullets {
    color: var(--stit-on-dark);
    margin: 0 0 40px;
    padding-left: 22px;
    line-height: 1.85;
    font-size: 1.05rem;
}
.stit-workshop-bullets li { margin-bottom: 0.3rem; }

/* ============================================================
   PROOF — quote
   ============================================================ */
.stit-proof { background: var(--stit-bg-soft) !important; }
.stit-proof .container { max-width: 880px; }
.stit-proof .stit-eyebrow { color: var(--stit-cyan-hi); margin-bottom: 36px; }
.stit-quote {
    margin: 0;
    padding: 8px 0 8px 32px;
    border-left: 4px solid var(--stit-cobalt);
    color: var(--stit-ink);
    font-family: var(--stit-display);
    font-weight: 500;
    font-style: normal;
    font-size: clamp(1.15rem, 1.9vw, 1.45rem);
    line-height: 1.7;
    max-width: none;
}
.stit-quote p {
    color: var(--stit-ink);
    font-family: var(--stit-display);
    font-size: inherit;
    margin: 0 0 18px;
    line-height: inherit;
    max-width: none;
}
.stit-quote cite {
    display: block;
    margin-top: 14px;
    font-family: var(--stit-sans);
    font-style: normal;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--stit-ink-soft);
}
.stit-quote cite strong { color: var(--stit-ink); font-weight: 600; }
.stit-quote a { color: var(--stit-cyan-hi); text-decoration: none; }
.stit-quote a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER — dark
   ============================================================ */
#footer.stit-footer {
    background: var(--stit-dark);
    color: var(--stit-on-dark-2);
    border-top: 22px solid var(--stit-dark);
    padding: 80px 1rem 50px;
}
#footer.stit-footer .container { max-width: 1100px; }
#footer.stit-footer a {
    color: var(--stit-on-dark);
    text-decoration: none;
    transition: color .15s ease;
}
#footer.stit-footer a:hover { color: var(--stit-cyan); }

.stit-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    align-items: start;
}
@media (max-width: 740px) {
    .stit-footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
.stit-footer-brand-row {
    display: block;
}
.stit-footer-mark {
    display: block;
    width: clamp(150px, 19vw, 250px);
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 0 8px rgba(76,194,255,0.30));
}
.stit-footer-name {
    display: none;
}
.stit-footer-tagline {
    margin: 18px 0 0;
    color: var(--stit-on-dark-2);
    font-size: 0.95rem;
    line-height: 1.65;
}
.stit-footer-heading {
    margin: 0 0 12px;
    color: var(--stit-cyan);
    font-family: var(--stit-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.stit-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    line-height: 2.0;
}
.stit-footer-contact {
    margin: 0;
    color: var(--stit-on-dark-2);
    font-size: 0.95rem;
    line-height: 1.85;
}
.stit-footer-sep {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 50px 0 28px;
}
.stit-footer-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.stit-footer-copy {
    margin: 0;
    color: var(--stit-on-dark-2);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}
.stit-footer-status {
    margin: 0;
    color: var(--stit-cyan);
    font-family: var(--stit-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.stit-hero-split {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    width: 100%;
    text-align: left;
}
.stit-hero-split-text {
    flex: 1 1 0;
    min-width: 0;
}
.stit-hero-logo-col {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}
.stit-hero-brand-logo {
    display: block;
    width: clamp(300px, 38vw, 500px);
    height: auto;
}
.stit-hero-logo-mobile {
    display: none;
}
@media (max-width: 740px) {
    .section.modular-text > .container {
        padding-top: 32px;
        padding-bottom: 32px;
    }
    .section.modular-text.stit-hero > .container {
        padding-top: calc(var(--sti-header-h, 80px) + 24px);
        padding-bottom: 32px;
    }
    .stit-hero-split {
        flex-direction: column;
        text-align: center;
    }
    .stit-hero-logo-col {
        display: none;
    }
    .stit-hero-logo-mobile {
        display: block;
        width: clamp(180px, 64vw, 260px);
        height: auto;
        margin: 1rem auto;
    }
    .stit-footer-brand-row {
        display: block;
    }
    .stit-footer-mark {
        width: calc(100vw - 2rem);
        height: auto;
        max-width: none;
    }
}

.stit-footer-grid {
    padding-bottom: 16px;
}
.stit-footer-schedule {
    margin-top: 72px;
    padding-top: 56px;
    padding-bottom: 56px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.stit-footer-schedule-label {
    margin: 0 0 24px;
    color: var(--stit-on-dark);
    font-size: 1rem;
    font-weight: 600;
}
#my-cal-inline-ta {
    min-height: 700px;
    border-radius: 8px;
    overflow: hidden;
}
@media (max-width: 740px) {
    .stit-footer-schedule {
        margin-top: 48px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    #my-cal-inline-ta {
        min-height: 600px;
    }
}

/* Quark Spectre frame-box reset */
.frame-box { background: transparent !important; box-shadow: none !important; padding: 0 !important; }

/* Hide Quark's pulsing chevron at the bottom of hero — it doesn't fit our hero */
.modular-hero #to-start { display: none; }

/* ============================================================
   Back-to-top floating button
   ============================================================ */
.stit-back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: var(--stit-grad);
    color: #0a1224;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 202;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    box-shadow: 0 18px 40px -12px rgba(76,194,255,0.55), 0 0 0 1px rgba(255,255,255,0.10) inset;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease, box-shadow .2s ease;
}
.stit-back-to-top:hover {
    box-shadow: 0 22px 48px -12px rgba(124,92,255,0.70), 0 0 0 1px rgba(255,255,255,0.20) inset;
}
.stit-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.stit-back-to-top svg { display: block; }
@media (max-width: 600px) {
    .stit-back-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .stit-back-to-top { transition: opacity .15s ease, visibility .15s ease; transform: none; }
    .stit-back-to-top.is-visible { transform: none; }
}

/* ============================================================
   MOBILE MENU OVERRIDE — 30% width sidebar (all viewports)
   ============================================================ */

/* The mobile-menu (containing the hamburger/X button) MUST sit above the
   menu overlay, otherwise the overlay covers the X — making it both invisible
   (hidden behind 95% opaque dark panel) and un-clickable. */
.mobile-menu     { z-index: 310 !important; }
.mobile-container{ z-index: 201 !important; }

/* When the menu is open, the hamburger morphs into an X — Quark defaults the
   active bars to white, which gets lost against our dark overlay. Force them
   to the same blue as the closed-state bars (#3085EE) so the X stays visible. */
.mobile-menu .button_container.active .top,
.mobile-menu .button_container.active .middle,
.mobile-menu .button_container.active .bottom {
    background: #3085EE !important;
}

/* Full-screen click-to-close backdrop behind the menu panel.
   Renders only while the menu is open. Pointer-events:auto so taps register;
   JS (in base.html.twig) listens for clicks here and closes the menu. */
.stit-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6,8,15,0.55);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    cursor: pointer;
}
body.mobile-nav-open .stit-menu-backdrop {
    opacity: 1;
    visibility: visible;
}

.overlay {
    width: 30vw !important;
    min-width: 280px;
    right: 0 !important;
    left: auto !important;
    top: 4rem;                    /* fallback: sit below the fixed navbar */
}
.overlay.open {
    height: calc(100% - 4rem);   /* fallback: fill viewport below navbar */
}
.overlay-menu {
    display: flex;
    flex-direction: column;
    height: calc(100% - 90px);
    padding: 20px 0;
    overflow-y: auto;
}
.overlay-menu .navigation {
    list-style: none;
    margin: 0;
    padding: 0;
}
.overlay-menu .navigation li {
    margin: 0;
    padding: 0;
}
.overlay-menu .navigation a {
    display: block;
    padding: 16px 24px;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--stit-display);
    font-size: 1.05rem;
    font-weight: 600;
    transition: background-color .2s ease;
}
.overlay-menu .navigation a:hover {
    background-color: rgba(255,255,255,0.10);
    color: var(--stit-cyan);
}
/* Mobile CTA pill — sits inside the nav list, visually matches desktop */
.overlay-menu .navigation li.stit-mobile-cta-li {
    padding: 10px 24px 18px;
}
.overlay-menu .navigation a.stit-cta-button {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1.15rem !important;
    border-radius: 999px !important;
    background: var(--stit-grad) !important;
    color: #0a1224 !important;
    font-family: var(--stit-display);
    font-size: 0.92rem !important;
    font-weight: 600;
    letter-spacing: -0.005em;
    box-shadow: 0 12px 30px -10px rgba(76,194,255,0.55), 0 0 0 1px rgba(255,255,255,0.10) inset;
    transition: transform .15s ease, box-shadow .15s ease;
    line-height: 1.3;
}
.overlay-menu .navigation a.stit-cta-button:hover {
    background: var(--stit-grad) !important;
    color: #0a1224 !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 36px -10px rgba(124,92,255,0.65), 0 0 0 1px rgba(255,255,255,0.18) inset;
}

/* ============================================================
   REGISTRATION PAGE
   ============================================================ */
.stit-register-wrap {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 1rem 60px;
    background: var(--stit-bg-soft);
}
.stit-register-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border: 1.5px solid var(--stit-line);
    border-radius: 20px;
    padding: 52px 48px;
    box-shadow: 0 24px 64px -24px rgba(6,17,47,0.12);
}
@media (max-width: 600px) {
    .stit-register-card { padding: 36px 24px; border-radius: 12px; }
}
.stit-register-card h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 0 0 10px;
    color: var(--stit-ink);
}
.stit-register-sub {
    color: var(--stit-ink-soft);
    font-size: 0.97rem;
    line-height: 1.65;
    margin: 0 0 32px;
    max-width: none;
}

/* Form fields */
.stit-register-card .form-field,
.stit-register-card .form-type-text,
.stit-register-card .form-type-email,
.stit-register-card .form-type-password {
    margin-bottom: 20px;
}
.stit-register-card label {
    display: block;
    font-family: var(--stit-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stit-cobalt);
    margin-bottom: 6px;
}
.stit-register-card input[type="text"],
.stit-register-card input[type="email"],
.stit-register-card input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--stit-line);
    border-radius: 10px;
    font-family: var(--stit-sans);
    font-size: 1rem;
    color: var(--stit-ink);
    background: var(--stit-bg-soft);
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}
.stit-register-card input[type="text"]:focus,
.stit-register-card input[type="email"]:focus,
.stit-register-card input[type="password"]:focus {
    outline: none;
    border-color: var(--stit-cyan-hi);
    box-shadow: 0 0 0 3px rgba(76,194,255,0.18);
    background: #ffffff;
}

/* Checkbox */
.stit-register-card .form-type-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0 28px;
    padding: 16px;
    background: var(--stit-bg-soft);
    border: 1.5px solid var(--stit-line);
    border-radius: 10px;
}
.stit-register-card .form-type-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--stit-cyan-hi);
    cursor: pointer;
}
.stit-register-card .form-type-checkbox label {
    font-family: var(--stit-sans);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--stit-ink-soft);
    cursor: pointer;
    margin: 0;
    line-height: 1.5;
}

/* Submit button */
.stit-register-card .form-actions,
.stit-register-card .form-type-submit {
    margin-top: 4px;
}
.stit-register-card .form-actions button,
.stit-register-card input[type="submit"],
.stit-register-card button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background: var(--stit-grad);
    color: #0a1224;
    font-family: var(--stit-display);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 18px 40px -12px rgba(76,194,255,0.55);
    transition: transform .15s ease, box-shadow .15s ease;
}
.stit-register-card .form-actions button:hover,
.stit-register-card input[type="submit"]:hover,
.stit-register-card button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 48px -12px rgba(124,92,255,0.70);
}

/* Validation messages */
.stit-register-card .form-errors,
.stit-register-card .messages,
.stit-register-card .notice {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.stit-register-card .form-errors,
.stit-register-card .messages.error {
    background: #fff1f1;
    border: 1.5px solid #fca5a5;
    color: #b91c1c;
}
.stit-register-card .messages.success {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}

.stit-register-login-hint {
    margin: 24px 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--stit-ink-soft);
    max-width: none;
}
.stit-register-login-hint a {
    color: var(--stit-cobalt);
    font-weight: 500;
}

/* Success state */
.stit-register-success h1 { margin: 0 0 14px; }
.stit-register-success p  { color: var(--stit-ink-soft); max-width: none; }
