:root {
    --color-paper: #ffffff;
    --color-ink: #0a0a0a;
    --color-muted: #2c2c2c;
    --color-accent: #000000;
    --color-border: rgba(0,0,0,0.08);
    
    --font-headline: 'Instrument Serif', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --max-width: 1200px;
    --side-pad: 3rem;
}

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

html {
    scroll-behavior: smooth;
}

/* Disable smooth scroll on mobile to prevent iOS jank */
@media (max-width: 768px) {
    html { scroll-behavior: auto; }
}

html, body {
    background-color: var(--color-paper);
    color: var(--color-ink);
    font-family: var(--font-body);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
}

/* ============================================================
   CANVAS LAYER
   ============================================================ */
.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    touch-action: none;
}

.canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.0) 100%);
    pointer-events: none;
}

/* ============================================================
   CONTENT LAYER
   ============================================================ */
.content-layer {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-pad) 3rem var(--side-pad);
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--color-ink);
}

/* ============================================================
   HERO VIEWPORT (100VH FULL SCREEN)
   ============================================================ */
.hero-viewport {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    margin: 0;
}

/* ============================================================
   NAV
   ============================================================ */
.top-nav {
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0 var(--side-pad);
    z-index: 10;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.wordmark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #000000 !important;
    text-decoration: none;
    letter-spacing: -0.02em;
    text-shadow: none;
    display: inline-block;
}

.nav-left a.wordmark {
    font-family: Georgia, 'Times New Roman', serif;
    color: #000000 !important;
    text-shadow: none;
    opacity: 1;
}

.nav-left a:not(.wordmark) {
    color: var(--color-muted);
    transition: color 0.2s;
    text-shadow: 0 2px 10px rgba(255,255,255,0.8);
}

.nav-left a:not(.wordmark):hover,
.nav-left a:not(.wordmark).active {
    color: var(--color-ink);
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-ink);
    color: var(--color-paper) !important;
    padding: 0.55rem 1.15rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: opacity 0.2s;
    text-shadow: none !important;
}

.nav-cta-btn:hover {
    opacity: 0.85;
}

.nav-cta-btn .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 0.75rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding: 1rem var(--side-pad) 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.headline-block {
    text-shadow: 0 2px 20px rgba(255,255,255,0.95), 0 0 4px rgba(255,255,255,0.8);
    max-width: 860px;
}

.eyebrow {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-muted);
}

h1 {
    font-family: var(--font-headline);
    font-size: clamp(32px, 3.8vw, 54px);
    line-height: 1.14;
    letter-spacing: -0.025em;
    font-weight: 400;
    color: #000000;
    text-shadow: 0 2px 20px rgba(255,255,255,0.95), 0 0 4px rgba(255,255,255,0.8);
}

h1 .muted {
    color: var(--color-muted);
}

.hero-sub {
    max-width: 560px;
    margin: 0 auto;
}

.sub-paragraph {
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 450;
    color: #404040;
    text-shadow: 0 1px 12px rgba(255,255,255,0.95), 0 0 4px rgba(255,255,255,0.85);
}

/* Stats row in hero - smaller, refined & understated */
.stats-row {
    display: flex;
    gap: 3.25rem;
    justify-content: center;
    margin: 0.75rem 0 1rem;
}

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

.stat-value {
    font-family: var(--font-headline);
    font-size: 1.55rem;
    font-weight: 500;
    color: #000000;
    text-shadow: 0 2px 16px rgba(255,255,255,0.95), 0 0 2px rgba(255,255,255,0.8);
}

.stat-label {
    font-size: 0.6875rem;
    color: #666666;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.2rem;
    text-shadow: 0 1px 8px rgba(255,255,255,0.9);
}

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--color-ink);
    color: var(--color-paper) !important;
    padding: 0.8rem 1.85rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s, transform 0.2s;
    text-shadow: none !important;
}

.cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.cta-btn .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 0.75rem;
}

/* Underline CTA */
.main-cta {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    border-bottom: 1px solid var(--color-ink);
    padding-bottom: 4px;
    transition: opacity 0.2s;
    text-shadow: 0 2px 10px rgba(255,255,255,0.9);
}

.main-cta:hover {
    opacity: 0.7;
}

/* ============================================================
   STATS BAR (dark banner)
   ============================================================ */
.stats-bar {
    width: 100%;
    margin-left: calc(-1 * var(--side-pad));
    margin-right: calc(-1 * var(--side-pad));
    background: var(--color-ink);
    color: var(--color-paper);
    padding: 2.5rem var(--side-pad);
    display: flex;
    justify-content: center;
    gap: 4rem;
    overflow: hidden;
}

.stats-bar .stat-item {
    text-align: center;
}

.stats-bar .stat-value {
    font-family: var(--font-headline);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--color-paper);
    text-shadow: none;
}

.stats-bar .stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: lowercase;
    margin-top: 0.25rem;
}

/* ============================================================
   BOTTOM SCROLL CUE (HERO VIEWPORT)
   ============================================================ */
.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555555;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    cursor: pointer;
    text-shadow: 0 1px 8px rgba(255,255,255,0.9);
    z-index: 10;
}

.scroll-cue:hover {
    color: #000000;
    transform: translateX(-50%) translateY(2px);
}

.scroll-cue .cue-arrow {
    font-size: 0.8125rem;
    display: inline-block;
    animation: cueBounce 2s infinite ease-in-out;
}

@keyframes cueBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* ============================================================
   TRANSITIONAL DIVIDER (EDITORIAL TO SERVICES)
   ============================================================ */
/* ============================================================
   BORDERLESS MINIMALIST TECH STREAM (END OF "WHAT WE BUILD")
   ============================================================ */
.tech-stream-section {
    margin-top: 3.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.tech-stream-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #555555;
}

.tech-stream-label .tech-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #000000;
    opacity: 0.6;
}

.tech-stream-wrap {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.5rem 0;
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.tech-stream-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: techStreamSlide 36s linear infinite;
    will-change: transform;
}

.stream-item {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: #404040;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.stream-item:hover {
    color: #000000;
}

.stream-sep {
    color: rgba(0, 0, 0, 0.22);
    font-size: 0.6875rem;
    margin: 0 1rem;
    user-select: none;
}

@keyframes techStreamSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Card 05 (Full-width custom card) */
.glass-card.card-full {
    grid-column: 1 / -1;
}

/* ============================================================
   CONTENT SECTIONS (shared)
   ============================================================ */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 0;
    width: 100%;
}

#services.section {
    padding-top: 2rem;
}

.section-title {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 0 4px 32px rgba(255,255,255,1), 0 2px 12px rgba(255,255,255,0.8);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.6;
    max-width: 560px;
    text-shadow: 0 2px 16px rgba(255,255,255,0.8);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-subtitle {
    margin: 0.75rem auto 0;
}

/* ============================================================
   GLASS CARDS
   ============================================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.glass-card h3 {
    font-family: var(--font-headline);
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.glass-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-muted);
}

/* Card icon */
.card-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    background: rgba(255,255,255,0.6);
}

/* Tag pills */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    color: var(--color-muted);
    background: rgba(255,255,255,0.5);
    transition: all 0.2s ease;
}

.tag:hover {
    color: var(--color-ink);
    border-color: rgba(0, 0, 0, 0.22);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ============================================================
   SPLIT SECTION (text + image)
   ============================================================ */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-text h2 {
    font-family: var(--font-headline);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    text-shadow: 0 4px 32px rgba(255,255,255,1);
}

.split-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-muted);
    margin-bottom: 1rem;
    text-shadow: 0 2px 16px rgba(255,255,255,0.8);
}

.split-image {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.6);
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   PROCESS / STEP NUMBERS
   ============================================================ */
.step-num {
    font-family: var(--font-headline);
    font-size: 2rem;
    color: var(--color-ink);
    opacity: 0.15;
    margin-bottom: 1rem;
}

/* ============================================================
   PROCESS ("HOW WE WORK") - HIGH-CONTRAST DARK THEME
   ============================================================ */
.dark-section {
    width: calc(100% + var(--side-pad) * 2);
    position: relative;
    margin-left: calc(-1 * var(--side-pad));
    margin-right: calc(-1 * var(--side-pad));
    background: #09090b;
    color: #ffffff;
    padding: 5.5rem var(--side-pad);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    overflow: hidden;
}

.dark-section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.dark-section .section-header .section-title {
    color: #ffffff;
    text-shadow: none;
    font-family: var(--font-headline);
    font-weight: 400;
}

.dark-section .section-header .section-subtitle {
    color: rgba(255, 255, 255, 0.72);
    text-shadow: none;
    max-width: 580px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

.dark-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dark-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(255, 255, 255, 0.28);
}

.dark-card .step-num {
    font-family: var(--font-headline);
    font-size: 1.75rem;
    font-style: italic;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.dark-card h3 {
    font-family: var(--font-headline);
    font-size: 1.35rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    text-shadow: none;
}

.dark-card p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.68);
    text-shadow: none;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
    text-align: center;
    padding: 4.75rem 0 3.5rem;
}

.final-cta .section-title {
    text-shadow: none;
    font-family: var(--font-headline);
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.final-cta .section-subtitle {
    margin: 0 auto;
    text-shadow: none;
    color: var(--color-muted);
    line-height: 1.6;
    max-width: 580px;
}

.final-cta .cta-btn {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

/* ============================================================
   TEAM GRID
   ============================================================ */
.team-card {
    text-align: left;
}

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-muted);
}

/* ============================================================
   FROSTED GLASS FOOTER PANE
   ============================================================ */
.footer-glass-pane {
    width: 100%;
    margin-top: 3.5rem;
    margin-bottom: 2.5rem;
    padding: 3.25rem 3.5rem 2.25rem 3.5rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.footer-left {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-wordmark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    letter-spacing: -0.02em;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.footer-bio {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

/* Pill CTA Button inside Footer */
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #000000;
    color: #ffffff !important;
    padding: 0.6rem 1.35rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.footer-cta-btn:hover {
    background: #222222;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.footer-cta-btn .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.footer-cta-btn:hover .arrow {
    transform: translateX(2px);
}

.footer-right {
    display: flex;
    gap: 4.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #777777;
    margin-bottom: 0.4rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: #444444;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: #000000;
    transform: translateX(2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.75rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
    gap: 1.5rem;
}

.footer-watermark-wrap {
    display: flex;
    align-items: center;
}

.footer-watermark {
    display: inline-flex;
    align-items: center;
    color: #000000;
    opacity: 0.22;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.footer-watermark:hover {
    opacity: 0.65;
    transform: translateY(-2px);
}

.footer-watermark .watermark-svg {
    display: block;
    width: 44px;
    height: 44px;
}

.footer-copy {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-muted);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8125rem;
    color: var(--color-muted);
    cursor: pointer;
    transition: color 0.18s;
    font-family: inherit;
}

.legal-link:hover {
    color: #000000;
}

.legal-sep {
    color: rgba(0, 0, 0, 0.2);
    font-size: 0.6875rem;
}

@media (max-width: 768px) {
    .footer-glass-pane {
        padding: 2.25rem 1.75rem 1.75rem 1.75rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-right {
        gap: 3rem;
        flex-wrap: wrap;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ============================================================
   LEGAL MODAL (PRIVACY & TERMS)
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 1.5rem;
}

.modal-overlay.active,
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-pane {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-pane,
.modal-overlay.open .modal-pane {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-header h3 {
    font-family: var(--font-headline);
    font-size: 1.35rem;
    font-weight: 500;
    margin: 0;
    color: #000000;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #777777;
    transition: color 0.15s;
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: #000000;
}

.modal-body {
    padding: 1.75rem;
    max-height: 65vh;
    overflow-y: auto;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #444444;
}

.modal-body h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111111;
    margin: 1.25rem 0 0.35rem 0;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 0.85rem;
    color: #555555;
}

.modal-body a {
    color: #000000;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }
}

/* ============================================================
   HERO ENTRANCE ANIMATIONS (STAGGERED ON PAGE LOAD)
   ============================================================ */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .headline-block {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.hero-section .hero-sub {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-section .stats-row {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.hero-section .cta-btn {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both;
}

.scroll-cue {
    animation: cueFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both;
}

@keyframes cueFadeUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================================
   ANIMATIONS & SCROLL REVEALS
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.fade-up[data-delay="1"] { transition-delay: 0.06s; }
.fade-up[data-delay="2"] { transition-delay: 0.12s; }
.fade-up[data-delay="3"] { transition-delay: 0.18s; }
.fade-up[data-delay="4"] { transition-delay: 0.24s; }
.fade-up[data-delay="5"] { transition-delay: 0.30s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { gap: 2rem; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    :root { --side-pad: 1.25rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .why-us-grid { grid-template-columns: 1fr; }
    .split-section { grid-template-columns: 1fr; }
    .stats-row { flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
    .stats-bar { gap: 1.25rem; padding: 2rem var(--side-pad); flex-wrap: wrap; justify-content: center; }
    .stats-bar .stat-value { font-size: 1.5rem; }

    /* Hero mobile fixes */
    .hero-viewport { height: 100dvh; min-height: 580px; }
    h1 { font-size: clamp(26px, 7vw, 38px); }
    .hero-section { padding: 0.5rem var(--side-pad) 1.5rem; gap: 1rem; }
    .sub-paragraph { font-size: 0.875rem; }
    .stats-row { gap: 1.5rem; }
    .stat-value { font-size: 1.3rem; }
    .stat-label { font-size: 0.625rem; }
    .cta-btn { padding: 0.7rem 1.5rem; font-size: 0.8125rem; }

    /* Nav mobile fixes */
    .top-nav { top: 1rem; padding: 0 var(--side-pad); }
    .wordmark { font-size: 1.25rem; }
    .nav-cta-btn { padding: 0.45rem 0.9rem; font-size: 0.75rem; }
    .nav-left a:not(.wordmark) { display: none; }

    /* Dark section mobile */
    .dark-section-inner { padding: 3rem var(--side-pad); }
    .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .section-subtitle { font-size: 0.875rem; }

    /* Final CTA mobile */
    .final-cta { padding: 3rem var(--side-pad); }

    /* Scroll cue hide on small screens */
    .scroll-cue { bottom: 1.25rem; font-size: 0.6875rem; }
}

/* ============================================================
   CARD NUMBERING (Minimalist Typography)
   ============================================================ */
.card-num {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
    display: inline-block;
}

/* ============================================================
   PHILOSOPHY SECTION (SPACIOUS DEDICATED PANE)
   ============================================================ */
.philosophy-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 0 10rem 0;
    scroll-margin-top: 3.5rem;
    position: relative;
    z-index: 2;
}

.philosophy-pane {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    padding: 3.5rem 4rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.philosophy-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #555555;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1.35rem;
}

.philosophy-left h2 {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 2.75vw, 2.65rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #000000;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.95);
}

.philosophy-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.philosophy-right p {
    font-size: 0.96875rem;
    line-height: 1.7;
    color: #383838;
    font-weight: 450;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
    .philosophy-section {
        min-height: auto;
        padding: 4rem 0;
    }
    .philosophy-pane {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        padding: 2.5rem 2rem;
    }
}

/* ============================================================
   BOOKING / STRATEGY SESSION PAGE
   ============================================================ */
.booking-page-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 5.5rem var(--side-pad) 2.5rem var(--side-pad);
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.booking-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 1.5rem auto;
}

.booking-header h1 {
    font-family: var(--font-headline);
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.025em;
    font-weight: 400;
    color: #000000;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(255,255,255,0.95);
}

.booking-header p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #444444;
    max-width: 620px;
    margin: 0 auto;
    text-shadow: 0 1px 8px rgba(255,255,255,0.9);
}

.booking-calendar-wrapper {
    max-width: 1100px;
    margin: 0 auto 2.5rem auto;
    width: 100%;
}

.booking-calendar-pane {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    padding: 0.75rem 1rem 1.25rem 1rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.calendly-inline-widget,
.calendly-inline-widget iframe {
    width: 100% !important;
    min-width: 1000px !important;
    max-width: 1060px !important;
    height: 525px !important;
    margin: 0 auto !important;
    display: block !important;
    border-radius: 14px;
    overflow: hidden !important;
}

.calendly-fallback {
    text-align: center;
    padding-top: 0.85rem;
    font-size: 0.8125rem;
    color: #666666;
}

.calendly-fallback a {
    color: #000000;
    font-weight: 500;
    text-decoration: underline;
}

@media (max-width: 1080px) {
    .calendly-inline-widget,
    .calendly-inline-widget iframe {
        min-width: 100% !important;
        height: 680px !important;
    }
    .booking-calendar-pane {
        padding: 0.75rem;
        border-radius: 14px;
    }
}


