/* ============================================================
   Vault Digital Tools — Aurora Light
   Clean light SaaS. Theme lives ONLY in :root (below).
   White/soft-grey surfaces, near-navy ink, blue→indigo→violet
   gradient as the signature material. Depth via SHADOWS, not glows.
   ============================================================ */

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

:root {
    /* ===== Aurora Light — clean light SaaS, blue→indigo→violet signature ===== */
    /* Surfaces: white with a cool off-white zebra (not flat grey) */
    --bg:          #ffffff;   /* page base — white */
    --bg-alt:      #f5f7fb;   /* zebra section bg (.section-alt) — cool off-white */
    --bg-card:     #ffffff;   /* card / panel fill */
    --bg-card-2:   #f1f4fa;   /* raised card / hover fill, faint cool lift */
    --border:      #e6eaf1;   /* default hairline */
    --border-light:#d4dbe6;   /* lighter hairline / focus ring base */

    /* Text ramp — near-navy ink on white */
    --text:        #0d1426;   /* primary — near-navy */
    --text-dim:    #4a5567;   /* secondary prose / labels */
    --text-faint:  #5f6a7d;   /* captions / ghost / disabled — darkened to clear 4.5:1 on white */

    /* ===== Signature material — dual-gradient logic (reads on WHITE) ===== */
    /* TEXT: blue→indigo→violet for clipped headings/wordmark/numerals (vivid on light bg) */
    --accent:      linear-gradient(135deg, #4f74ff 0%, #4361ee 45%, #7c3aed 100%);
    /* FILLS: slightly deeper 2-stop for solid buttons — white text sits on this */
    --accent-btn:  linear-gradient(135deg, #4f74ff 0%, #4f37e0 100%);
    /* FLAT: hairlines, SVG icon strokes, active-nav underline, link-arrow */
    --accent-flat: #4361ee;

    /* ===== Atmosphere — soft colored gradient-mesh glow (NOT neon) ===== */
    --tint-cool:   rgba(79, 116, 255, 0.14);   /* indigo blob */
    --tint-warm:   rgba(124, 58, 237, 0.10);   /* violet blob */

    /* Light-theme depth (replaces dark glows): soft elevation shadows */
    --shadow-sm:   0 1px 3px rgba(13,20,38,0.06), 0 1px 2px rgba(13,20,38,0.04);
    --shadow-md:   0 8px 24px rgba(13,20,38,0.08);
    --shadow-lift: 0 16px 40px rgba(67,97,238,0.16);  /* accent-tinted hover lift */
}

/* ===== Base ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-flat);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2f47c4;
}

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

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.15;
    font-weight: 700;
}

/* Layout primitive — full-bleed sections, constrained content */
.container {
    width: min(1240px, 92%);
    margin: 0 auto;
}

/* Gradient (chrome) text material — apply sparingly to keyword span / wordmark / numerals */
.gradient-text {
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Sticky glass header (light) ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    width: min(1240px, 92%);
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    color: var(--text-dim);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.25rem 0;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a.active {
    color: var(--text);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-flat);
}

/* The nav CTA button should keep button styling, not the link underline */
.nav-links a.btn,
.nav-links a.btn:hover {
    color: #ffffff;
}

.nav-links a.btn.active::after {
    display: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0 1.5rem;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu .container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu a {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.7rem;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    border: 1px solid transparent;
    text-align: center;
}

.btn-sm {
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-primary {
    background: var(--accent-btn);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text);
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--bg-card-2);
    border-color: var(--accent-flat);
}

.btn-full {
    width: 100%;
}

/* ===== Section scaffold + zebra ===== */
.section {
    padding: 5.5rem 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ===== Heading cluster molecule ===== */
.eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-flat);
    margin-bottom: 1rem;
}

.eyebrow-center {
    display: block;
    text-align: center;
}

.section-head {
    max-width: 680px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.section-lede {
    color: var(--text-dim);
    font-size: 1.08rem;
    line-height: 1.7;
}

/* ===== Link-arrow (arrow slides on hover) ===== */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-flat);
}

.link-arrow span {
    transition: transform 0.25s ease;
}

.link-arrow:hover {
    color: #2f47c4;
}

.link-arrow:hover span {
    transform: translateX(4px);
}

/* ============================================================
   HERO — LIGHT gradient-mesh (NOT a darkened photo)
   ============================================================ */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 7rem 0 5.5rem;
    background: var(--bg);
}

/* Two soft blurred radial blobs */
.hero-mesh {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.hero-mesh::before,
.hero-mesh::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.hero-mesh::before {
    width: 620px;
    height: 620px;
    top: -180px;
    left: -120px;
    background: var(--tint-cool);
}

.hero-mesh::after {
    width: 560px;
    height: 560px;
    top: -120px;
    right: -140px;
    background: var(--tint-warm);
}

/* Very faint dot grid */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    opacity: 0.6;
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

/* Brand name as the dominant hero element (sits above the headline) */
.hero-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(3.2rem, 9vw, 6.4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.4rem;
    color: var(--text-dim);
}

.hero .section-lede {
    max-width: 640px;
    margin: 0 auto 2rem;
    font-size: 1.18rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-microcopy {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--text-faint);
}

/* ===== Page hero (interior pages) ===== */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 6rem 0 4rem;
    text-align: center;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.page-hero .hero-inner {
    max-width: 720px;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.page-hero .section-lede {
    max-width: 580px;
    margin: 0 auto;
}

/* ============================================================
   TRUST STRIP — 4 static stats + GitHub link
   ============================================================ */
.trust-strip {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.trust-inner {
    padding: 2.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 2.5rem;
}

.trust-stat {
    text-align: left;
}

.trust-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-label {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.trust-github {
    white-space: nowrap;
}

/* ============================================================
   FEATURE — text + photo column (Who We Are)
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.feature-text .section-title {
    text-align: left;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.feature-text .eyebrow {
    margin-bottom: 0.9rem;
}

.feature-text p {
    color: var(--text-dim);
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 1.6rem;
}

/* Photo lives in a card at a LIGHT filter (no darkening) */
.feature-media {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.02);
}

/* DOM-order-stable column swap */
.feature-grid.reverse .feature-media {
    order: -1;
}

/* ============================================================
   SERVICES MOSAIC — clickable image tiles, light filter
   ============================================================ */
.services-mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 240px;
    gap: 16px;
}

.svc-tile {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    grid-column: span 3;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-end;
    color: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.svc-tile.svc-large {
    grid-column: span 3;
    grid-row: span 1;
}

/* the two .svc-large lead, the three smaller tiles share the second row */
.svc-tile:not(.svc-large) {
    grid-column: span 2;
}

/* light filter on the photo (applied to the bg via an underlay) */
.svc-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: saturate(1.02) contrast(1.02);
}

/* light-to-transparent bottom scrim so dark ink label reads ≥4.5:1 */
.svc-scrim {
    position: relative;
    width: 100%;
    padding: 1.4rem 1.5rem 1.3rem;
    background: linear-gradient(0deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.97) 55%, rgba(255,255,255,0.85) 75%, transparent 100%);
}

.svc-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-flat);
    margin-bottom: 0.4rem;
}

.svc-tile h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.svc-tile p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
}

.svc-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--accent-flat);
}

/* ============================================================
   PORTFOLIO PREVIEW — case cards
   ============================================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.case-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--accent-flat);
    color: inherit;
}

/* full-width flagship */
.case-large {
    grid-column: 1 / -1;
    flex-direction: row;
}

.case-img {
    position: relative;
    overflow: hidden;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.case-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: saturate(1.02) contrast(1.02);
}

.case-large .case-img {
    flex: 0 0 46%;
    height: auto;
    min-height: 320px;
}

.case-body {
    padding: 1.6rem 1.6rem 1.7rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-large .case-body {
    padding: 2.4rem;
    justify-content: center;
}

.case-tag {
    display: inline-block;
    align-self: flex-start;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-flat);
    margin-bottom: 0.7rem;
}

.case-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.case-large h3 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.case-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tech-pills,
.tech-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    list-style: none;
    padding: 0;
}

.tech-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-dim);
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    padding: 0.28rem 0.7rem;
    border-radius: 50px;
}

.case-outcome {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.55;
    padding: 0.9rem 0 1.1rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.case-card .link-arrow {
    margin-top: 0.2rem;
}

/* ============================================================
   ANONYMIZED CLIENT WORK — muted, non-linking capability cards
   (distinct from the linked .case-card; depth via shadows)
   ============================================================ */
.private-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.private-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px dashed var(--border-light);
    border-radius: 16px;
    padding: 1.6rem 1.6rem 1.7rem;
    box-shadow: none;
    color: inherit;
}

.private-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.private-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.private-card .tech-pills {
    margin-top: auto;
    margin-bottom: 0;
}

/* The one card in this grid that links out (to contact) — gets the active card treatment */
.private-card-cta {
    background: var(--bg-card);
    border-style: solid;
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.private-card-cta:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--accent-flat);
    color: inherit;
}

.private-card-cta .link-arrow {
    margin-top: auto;
}

/* ============================================================
   PROCESS STRIP — light step cards
   ============================================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    counter-reset: step;
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-flat);
}

.process-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
    display: block;
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.process-step p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ============================================================
   CTA BAND — light accent wash (NOT a darkened photo)
   ============================================================ */
.cta-band {
    padding: 5.5rem 0;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f0ff 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-inner .section-title {
    margin-bottom: 1rem;
}

.cta-inner p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* microcopy near the CTA buttons reads as a faint risk-reversal line (used here + services) */
.cta-inner .cta-microcopy,
.cta-microcopy {
    margin-top: 1rem;   /* sits as a faint sub-line BELOW the action buttons */
    margin-bottom: 0;
    font-size: 0.88rem;
    color: var(--text-faint);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   ABOUT — values grid, stats band, "One Standard" block
   ============================================================ */

/* Values grid — 6 SVG-icon cards (depth via shadow, accent-tinted hover) */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--accent-flat);
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--accent-flat);
    margin-bottom: 1.1rem;
}

.value-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Feature secondary note (founder block) — fainter than the lede above it */
.feature-note {
    color: var(--text-faint) !important;
    font-size: 0.95rem !important;
}

/* Stats band — honest static numbers, mono chrome numerals */
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stats-band .stat {
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

/* "One Standard" block — narrow, centered single block */
.narrow {
    max-width: 760px;
}

.standard-block {
    text-align: center;
}

.standard-block .eyebrow,
.standard-block .section-title {
    text-align: center;
}

.standard-block .section-title {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   FOOTER — deep navy grounding (light SaaS convention)
   ============================================================ */
.site-footer {
    background: #0d1426;
    color: #b9c2d4;
    padding: 3.5rem 0 2rem;
}

/* Footer wordmark (chrome on the dark footer) */
.wordmark {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text);
}

.site-header .wordmark {
    font-size: 1.25rem;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand,
.wordmark-footer,
.footer-wordmark {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 0.8rem;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer column headings — light on the dark footer (was invisible: <h2> inherited near-navy ink) */
.footer-heading {
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-soon {
    color: #6b7488;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
}

.footer-tagline {
    color: #8a94a6;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col a {
    color: #b9c2d4;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent-flat);
}

/* Pending footer link (GitHub/LinkedIn before real URLs) — non-link muted text, no hover */
.footer-link-pending {
    color: #8a93a6;
    font-size: 0.9rem;
    cursor: default;
}

.footer-link-pending small {
    font-size: 0.78rem;
    opacity: 0.8;
}

.footer-col li {
    color: #b9c2d4;
    font-size: 0.9rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    color: #6b7488;
    font-size: 0.82rem;
}

/* ============================================================
   CASE-STUDY PAGES (page-case) — shared template
   Light gradient-mesh hero, body blocks, numbered timeline.
   ============================================================ */
.case-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 5rem 0 4rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.case-hero-inner {
    max-width: 760px;
}

.back-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    margin-bottom: 1.6rem;
}

.back-link:hover {
    color: var(--accent-flat);
}

.case-hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.4rem 0 1.1rem;
}

.case-hero .section-lede {
    max-width: 620px;
    margin-bottom: 1.6rem;
}

.case-hero-note {
    margin-top: 1.4rem;
    font-size: 0.88rem;
    color: var(--text-faint);
}

/* Case body */
.case-content {
    max-width: 760px;
    margin: 0 auto;
}

.case-block {
    margin-bottom: 2.6rem;
}

.case-block:last-child {
    margin-bottom: 0;
}

.case-block .section-title {
    text-align: left;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.9rem;
}

.case-block > p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.75;
}

.case-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.1rem 0.4rem;
    color: var(--text);
}

/* The Result — concrete outcome line, lifted */
.case-outcome {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    border-left: 3px solid var(--accent-flat);
    padding-left: 1.1rem;
    margin-bottom: 1rem;
}

/* Numbered approach timeline (real <ol>) */
.process-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline-item {
    display: flex;
    gap: 1.2rem;
    padding-bottom: 1.8rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 44px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-num {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    background-image: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-body p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.65;
}

/* Tech stack list */
.tech-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.tech-list li {
    color: var(--text-dim);
    font-size: 1rem;
    padding: 0.7rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.tech-list strong {
    color: var(--text);
    font-weight: 600;
}

/* Single focused case CTA (when not using the .cta-band wash) */
.case-cta {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f0ff 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.case-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.8rem;
}

.case-cta p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.6rem;
}

/* Flagship case figure (photo in a card at the light filter) */
.case-figure {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.case-figure-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.02);
}

.case-figure-cap {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: var(--text-faint);
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.case-stack-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* ============================================================
   CONTACT PAGE (page-contact)
   Methods grid · Web3Forms card + "what happens next" rail · FAQ
   Light surfaces, depth via shadows (Spec §1b.6).
   ============================================================ */

/* ----- Methods grid (3 full-card anchors) ----- */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.method-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: var(--text);
}

.method-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--accent-flat);
}

.method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--accent-flat);
    margin-bottom: 1.1rem;
}

.method-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.method-card p {
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.method-value {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: var(--text);
    word-break: break-word;
    margin-bottom: 1.1rem;
}

.method-card .link-arrow {
    margin-top: auto;
}

/* Pending method card (e.g. GitHub before a real URL exists) — NOT a link, so it
   must not invite a click: no hover-lift, default cursor, muted "coming soon" cue. */
.method-card-pending {
    cursor: default;
}

.method-card-pending:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
}

.link-arrow-muted {
    color: var(--text-faint);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

/* ----- Contact form cluster (form + "what happens next" rail) ----- */
.form-cluster {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
    align-items: start;
}

.form-intro .section-title {
    margin-bottom: 1rem;
}

.form-intro .section-lede {
    margin-bottom: 1rem;
}

.trust-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: var(--accent-flat);
    margin-bottom: 2.2rem;
}

/* "What happens next" — real ordered list */
.next-rail {
    padding: 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.next-rail h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.3rem;
}

.next-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.3rem;
}

.next-steps li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.next-num {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    background-image: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.next-steps strong {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.next-steps p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ----- Form card ----- */
.form-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.field {
    margin-bottom: 1.2rem;
}

.field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.45rem;
}

.field-optional {
    color: var(--text-faint);
    font-weight: 400;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent-flat);
    box-shadow: 0 0 0 3px var(--tint-cool);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.4rem 0 1.4rem;
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    margin-top: 0.15rem;
    accent-color: var(--accent-flat);
    flex: 0 0 auto;
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.form-fineprint {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-faint);
    text-align: center;
}

/* ----- FAQ (native <details>, + → × marker, zero JS) ----- */
.faq-container {
    max-width: 760px;
}

.faq-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-list {
    display: grid;
    gap: 0.9rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    flex: 0 0 auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
    color: var(--accent-flat);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '×';
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--accent-flat);
    outline-offset: -2px;
}

.faq-answer {
    padding: 0 1.4rem 1.3rem;
}

.faq-answer p {
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ============================================================
   SERVICES PAGE COMPONENTS (services.html)
   jump-nav · editorial spreads · pricing tiers · small utilities
   Light surfaces, depth via shadows (Spec §1b.6 / §3.2 / §4).
   ============================================================ */

/* Footer wordmark variant (used in the dark footer) — keep gradient clip */
.logo-footer {
    display: inline-block;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

/* Centered lede under a centered section head */
.section-lede-center {
    margin-left: auto;
    margin-right: auto;
    max-width: 640px;
    text-align: center;
}

/* ----- Sticky jump nav ----- */
.jump-nav {
    position: sticky;
    top: 64px; /* sits just below the sticky glass header */
    z-index: 40;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.jump-nav-inner {
    display: flex;
    gap: 1.75rem;
    overflow-x: auto;
    padding: 0.85rem 0;
    scrollbar-width: none;
}

.jump-nav-inner::-webkit-scrollbar {
    display: none;
}

.jump-nav-inner a {
    flex: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
}

.jump-nav-inner a:hover {
    color: var(--accent-flat);
}

/* ----- Editorial spreads (4 alternating service features) ----- */
.editorial {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

/* .reverse swaps visual order without reordering the DOM */
.editorial-grid.reverse .editorial-img {
    order: 2;
}

.editorial-img {
    position: relative;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.editorial-img img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    /* LIGHT filter — never darkened (Spec §1b.3) */
    filter: saturate(1.02) contrast(1.02);
}

.editorial-num {
    position: absolute;
    right: 0.5rem;
    bottom: -0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(4rem, 10vw, 7rem);
    line-height: 1;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 2px 14px rgba(13, 20, 38, 0.45);
    pointer-events: none;
}

.editorial-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0.5rem 0 1rem;
}

.editorial-text > p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.4rem;
}

.editorial-text .link-arrow {
    margin-top: 0.5rem;
}

/* ----- Pricing — depth-tier card grids (headline feature) ----- */
.pricing-service-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.pricing-service-title:first-of-type {
    margin-top: 1rem;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.tier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--border-light);
    border-radius: 14px;
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-flat);
}

/* Featured (middle) tier — lifted, accent top border, Most Popular pill */
.tier-card.featured {
    background: var(--bg-card-2);
    border-top: 2px solid var(--accent-flat);
    box-shadow: var(--shadow-lift);
}

.tier-pill {
    position: absolute;
    top: -0.75rem;
    left: 1.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--accent-flat);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.tier-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tier-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tier-depth {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* ----- Check-list — CSS-drawn checkmark (rotated box, no icon font) ----- */
.check-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.check-list li {
    position: relative;
    padding-left: 1.85rem;
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.55;
}

/* The tick: a box with only its right + bottom borders, rotated 45deg. */
.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 0.55rem;
    height: 0.95rem;
    border: solid var(--accent-flat);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transform-origin: center;
}

.tier-card .check-list {
    margin-bottom: 1.4rem;
}

.tier-card .check-list li {
    font-size: 0.9rem;
}

.tier-note {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.tier-note a {
    color: var(--accent-flat);
    font-weight: 600;
}

.tier-card .link-arrow {
    margin-top: auto;
}

/* Custom / Let's Talk lane — full-width card at the top of the ladder */
.tier-custom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.tier-custom-text {
    max-width: 640px;
}

.tier-custom-text h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.4rem 0 0.6rem;
}

.tier-custom-text p {
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ============================================================
   RESPONSIVE — two breakpoints (980 / 640)
   ============================================================ */
@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* images lead on mobile */
    .feature-grid.reverse .feature-media,
    .feature-media {
        order: -1;
    }

    /* Services: editorial spreads stack, image leads on mobile (reset .reverse order) */
    .editorial-grid,
    .editorial-grid.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .editorial-grid .editorial-img,
    .editorial-grid.reverse .editorial-img {
        order: -1;
    }

    /* Services: pricing tier grid collapses to a single column at 980 (Spec §7) */
    .tier-grid {
        grid-template-columns: 1fr;
    }

    .tier-custom {
        flex-direction: column;
        align-items: flex-start;
    }

    .services-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 220px;
    }

    .svc-tile,
    .svc-tile.svc-large,
    .svc-tile:not(.svc-large) {
        grid-column: span 1;
    }

    .case-large {
        flex-direction: column;
    }

    .case-large .case-img {
        flex: none;
        min-height: 220px;
        height: 220px;
    }

    .case-large .case-body {
        padding: 1.6rem;
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 2rem;
    }

    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-band {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Contact: form + "what happens next" rail stack; rail leads on mobile */
    .form-cluster {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-intro {
        order: -1;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 3.5rem 0;
    }

    .hero {
        padding: 4.5rem 0 3.5rem;
    }

    .services-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .trust-inner {
        justify-content: center;
        text-align: center;
    }

    .trust-stat {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================================
   PRINT — reset clipped text so gradient headings stay visible
   ============================================================ */
@media print {
    .site-header,
    .mobile-menu,
    .jump-nav,
    .hero-mesh,
    .hero-grid,
    .cta-band {
        display: none !important;
    }

    * {
        -webkit-text-fill-color: initial !important;
        color: #000 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    a {
        text-decoration: underline;
    }
}
