/* ============================================================
   GeoClaw — Modern Geospatial Brand Design System
   Minimal typography, geospatial visuals, bold color blocks.
   ============================================================ */

:root {
    --bg:            #f5f4f0;
    --bg-alt:        #ffffff;
    --ink:           #0a0a0a;
    --ink-soft:      #2a2a2a;
    --ink-mute:      #6b6b6b;
    --ink-light:     #a0a0a0;
    --line:          #e5e3dd;
    --line-dark:     #1a1a1a;

    --accent-green:  #1e5f3e;
    --accent-lime:   #c4f542;
    --accent-gold:   #d4a456;
    --accent-blue:   #2e4ba8;
    --accent-orange: #e8673c;
    --accent-purple: #6b3aa0;
    --accent-red:    #c0392b;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    font-weight: 400;
    font-size: 16px;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
ul, ol { list-style: none; }
button { border: none; background: none; font-family: inherit; cursor: pointer; }

.serif {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========== TYPOGRAPHY ========== */
.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding-left: 18px;
    position: relative;
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
}
.eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 1px;
    background: var(--ink);
}
.eyebrow.light { color: rgba(255,255,255,0.6); }
.eyebrow.light::before { background: rgba(255,255,255,0.6); }

.section-header {
    max-width: 900px;
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 4.5vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--ink);
}
.section-title-sm {
    font-family: 'Inter', sans-serif;
    font-size: clamp(24px, 2.8vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-weight: 500;
    color: var(--ink);
    max-width: 760px;
}
.section-title em.serif,
.section-title-sm em.serif { font-size: 1.05em; }

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    transition: all 0.3s ease;
}
.nav.scrolled {
    background: rgba(245, 244, 240, 0.88);
    backdrop-filter: blur(20px);
    padding: 14px 40px;
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand img {
    height: 38px;
    transition: transform 0.3s ease;
}
.nav-brand:hover img { transform: scale(1.05); }

.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    position: relative;
}
.nav-menu a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--ink);
    transition: width 0.3s ease;
}
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--ink);
    color: var(--bg) !important;
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.nav-cta:hover { background: var(--accent-green); transform: translateY(-1px); }
.nav-cta i { font-size: 11px; transition: transform 0.3s ease; }
.nav-cta:hover i { transform: translateX(3px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s ease;
}

/* ============================================================ */
/* HERO                                                          */
/* ============================================================ */
.hero {
    padding: 140px 0 100px;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Rotating globe SVG in background */
.hero-globe {
    position: absolute;
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}
.hero-globe svg { width: 100%; height: 100%; animation: rotate-slow 80s linear infinite; }
.hero-globe .satellite { animation: orbit 12s linear infinite; transform-origin: 200px 200px; }
.hero-globe .pulse-point { animation: pulse-fade 3s ease infinite; }
.hero-globe .pulse-point:nth-child(3n) { animation-delay: 1s; }
.hero-globe .pulse-point:nth-child(3n+1) { animation-delay: 2s; }

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes pulse-fade {
    0%, 100% { r: 3; opacity: 1; }
    50% { r: 5; opacity: 0.4; }
}

/* Marquee ticker */
.hero-marquee {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    background: rgba(245, 244, 240, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1;
}
.marquee-track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: marquee 50s linear infinite;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--ink-mute);
}
.marquee-dot { color: var(--accent-lime); }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    font-size: 12px;
    color: var(--ink-mute);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--bg-alt);
    font-weight: 500;
}
.pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(30, 95, 62, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(30, 95, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 95, 62, 0); }
}
.hero-location { display: inline-flex; align-items: center; gap: 6px; }
.hero-location i { color: var(--accent-green); }

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(48px, 9vw, 140px);
    line-height: 0.94;
    letter-spacing: -0.04em;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 80px;
}
.hero-title em.serif {
    font-size: 1em;
    color: var(--accent-green);
}

.hero-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: end;
    padding-top: 40px;
    border-top: 1px solid var(--line);
    max-width: 1100px;
}
.hero-desc {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-soft);
}
.hero-desc strong { color: var(--ink); font-weight: 600; }

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 20px 30px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.hero-cta:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
}
.cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg);
    color: var(--ink);
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.hero-cta:hover .cta-arrow { transform: rotate(-45deg); }

/* ============================================================ */
/* STATS                                                         */
/* ============================================================ */
.stats {
    padding: 60px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-alt);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: none; }
.stat-num {
    font-size: 56px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--accent-green);
    margin-bottom: 12px;
}
.stat-label {
    font-size: 13px;
    color: var(--ink-mute);
    line-height: 1.4;
    font-family: 'JetBrains Mono', monospace;
}

section { padding: 140px 0; }

/* ============================================================ */
/* WORK / PORTFOLIO TILES                                        */
/* ============================================================ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tile:hover { transform: translateY(-6px); }

.tile-lg { grid-column: span 3; grid-row: span 2; }
.tile-md { grid-column: span 2; grid-row: span 1; }
.tile-wide { grid-column: span 3; grid-row: span 1; }

/* Tile content wrapper */
.tile-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

/* Image backgrounds */
.tile-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s ease;
}
.tile-bg.contained { object-fit: contain; background: #fafafa; padding: 10px; }
.tile:hover .tile-bg { transform: scale(1.06); }

.tile-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.55) 50%, rgba(10,10,10,0.8) 100%);
}
.tile-overlay-light {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.4) 100%);
}

.tile-image { color: #fff; }
.tile-image-small { color: #fff; }

.tile-label {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
}
.tile-label.label-dark { color: var(--ink); opacity: 0.65; }

.tile-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

.tile-brand {
    font-size: clamp(36px, 4.5vw, 74px);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
}
.tile-brand.dark { color: var(--ink); }
.tile-brand em.serif { font-size: 1em; }

.tile-brand-sm {
    font-size: clamp(22px, 2.6vw, 40px);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.tile-tag {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid currentColor;
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.tile-text, .tile-text-sm {
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.9;
}
.tile-text { font-size: 15px; max-width: 420px; }
.tile-text.dark { color: var(--ink-soft); opacity: 1; }
.tile-text-sm { font-size: 12px; opacity: 0.85; }

.tile-stat {
    font-size: clamp(54px, 6vw, 98px);
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}
.tile-stat.dark { color: var(--ink); }
.tile-stat .small {
    font-size: 0.4em;
    vertical-align: middle;
    margin-left: 2px;
    opacity: 0.7;
    font-weight: 400;
}
.tile-stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
}
.tile-stat-label.dark { color: var(--ink-mute); }

.tile-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.tile-bottom.dark { color: var(--ink-mute); }
.tile-bottom i { transition: transform 0.3s ease; font-size: 14px; }
.tile:hover .tile-bottom i { transform: translateX(6px); }

/* Tile color variants */
.tile-dark { background: var(--ink); color: #fff; }
.tile-dark .tile-brand { color: #fff; }
.tile-dark .tile-tag { border-color: var(--accent-lime); color: var(--accent-lime); }

.tile-green { background: var(--accent-green); color: var(--accent-lime); }
.tile-green .tile-stat { color: var(--accent-lime); }

.tile-gold { background: var(--accent-gold); color: var(--ink); }
.tile-blue { background: var(--accent-blue); color: #fff; }
.tile-orange { background: var(--accent-orange); color: #fff; }
.tile-purple { background: var(--accent-purple); color: #fff; }

.tile-light {
    background: var(--bg-alt);
    color: var(--ink);
    border: 1px solid var(--line);
}

/* ===== Tile data visualizations ===== */

/* Sparkline (InSAR tile) */
.tile-sparkline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
}
.tile-sparkline svg { width: 100%; height: 100%; }

/* Bar chart (Rainfall tile) */
.tile-bars {
    position: absolute;
    bottom: 0;
    left: 28px;
    right: 28px;
    height: 70px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    z-index: 1;
    pointer-events: none;
}
.tile-bars .bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px 2px 0 0;
    min-height: 6px;
    transition: height 0.3s ease;
}
.tile-bars .bar-orange { background: #ffb366; }
.tile-bars .bar-red { background: #ff5252; }

/* Scatter dots (ML tile) */
.tile-scatter {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.tile-scatter .dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.8);
}
.tile-scatter .dot.green { background: #4ade80; }
.tile-scatter .dot.orange { background: #fb923c; }
.tile-scatter .dot.red { background: #f87171; }

/* ============================================================ */
/* SERVICES                                                      */
/* ============================================================ */
.services {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service-list {
    border-top: 1px solid var(--line);
}

.service-row {
    display: grid;
    grid-template-columns: 60px 60px 1fr auto 40px;
    align-items: center;
    gap: 30px;
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
    transition: all 0.3s ease;
    cursor: pointer;
}
.service-row:hover {
    padding-left: 20px;
    background: var(--bg);
}

.service-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-mute);
    letter-spacing: 1px;
}

.service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: all 0.3s ease;
}
.service-icon svg { width: 40px; height: 40px; }
.service-row:hover .service-icon {
    color: var(--accent-green);
    transform: rotate(5deg) scale(1.1);
}

.service-content h3 {
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
    color: var(--ink);
}
.service-content p {
    font-size: 14px;
    color: var(--ink-mute);
    max-width: 620px;
    line-height: 1.55;
}

.service-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}
.service-meta span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.service-arrow {
    display: flex;
    justify-content: flex-end;
    font-size: 20px;
    color: var(--ink-light);
    transition: all 0.3s ease;
}
.service-row:hover .service-arrow {
    color: var(--accent-green);
    transform: translateX(10px);
}

/* ============================================================ */
/* APPROACH                                                      */
/* ============================================================ */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.approach-card {
    padding: 36px 28px 40px;
    background: var(--bg-alt);
    border-radius: 20px;
    border: 1px solid var(--line);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}
.approach-card:hover {
    transform: translateY(-6px);
    border-color: var(--ink);
}

.approach-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.approach-icon {
    width: 52px;
    height: 52px;
    color: var(--ink);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}
.approach-icon svg { width: 100%; height: 100%; }
.approach-card:hover .approach-icon {
    color: var(--accent-green);
    transform: scale(1.08) rotate(5deg);
}

.approach-card h3 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--ink);
}
.approach-card p {
    font-size: 14px;
    color: var(--ink-mute);
    line-height: 1.55;
}

.approach-line {
    position: absolute;
    bottom: 0;
    left: 28px;
    right: 28px;
    height: 2px;
    background: var(--accent-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.approach-card:hover .approach-line { transform: scaleX(1); }

/* ============================================================ */
/* DATA SOURCES                                                  */
/* ============================================================ */
.data-sources {
    padding: 100px 0 140px;
    background: var(--bg);
}
.data-sources .section-header {
    margin-bottom: 60px;
}
.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-alt);
}
.data-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: all 0.3s ease;
    cursor: default;
}
.data-item:nth-child(4n) { border-right: none; }
.data-item:nth-last-child(-n+4) { border-bottom: none; }
.data-item:hover {
    background: var(--bg);
    transform: translateY(-1px);
}

.data-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--accent-lime);
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.data-item:hover .data-logo {
    background: var(--accent-green);
    transform: rotate(-3deg);
}

.data-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
}
.data-info p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink-mute);
    letter-spacing: 0.5px;
}

/* ============================================================ */
/* ABOUT                                                         */
/* ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-para {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 24px 0;
    max-width: 560px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}
.about-tags span {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all 0.2s ease;
}
.about-tags span:hover {
    background: var(--ink);
    color: var(--accent-lime);
    border-color: var(--ink);
}

.about-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.about-card {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.4s ease;
}
.about-card:hover { transform: translateY(-6px); }

.about-card-num {
    font-size: clamp(44px, 4.5vw, 72px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}
.about-card-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.75;
}

.about-card-1 { background: var(--accent-green); color: var(--accent-lime); }
.about-card-2 { background: var(--ink); color: #fff; }
.about-card-3 { background: var(--accent-gold); color: var(--ink); }
.about-card-4 { background: var(--accent-blue); color: #fff; }

/* ============================================================ */
/* CTA                                                           */
/* ============================================================ */
.cta {
    background: var(--ink);
    color: var(--bg);
    border-radius: 40px 40px 0 0;
    margin-top: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-globe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    opacity: 0.15;
    pointer-events: none;
}
.cta-globe svg {
    width: 100%;
    height: 100%;
    animation: rotate-slow 120s linear infinite;
}
.cta .container { position: relative; z-index: 2; }

.cta .eyebrow.light { margin-bottom: 32px; }

.cta-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(48px, 7vw, 120px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    font-weight: 500;
    color: var(--bg);
    margin-bottom: 40px;
}
.cta-title em.serif { color: var(--accent-lime); }

.cta-desc {
    max-width: 640px;
    margin: 0 auto 60px;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.cta-contact { margin-bottom: 80px; }

.cta-email {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 24px 40px;
    background: var(--bg);
    color: var(--ink);
    border-radius: 100px;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.cta-email:hover {
    background: var(--accent-lime);
    transform: translateY(-2px);
}
.cta-email i {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: transform 0.3s ease;
}
.cta-email:hover i { transform: rotate(-45deg); }

.cta-meta {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.cta-meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}
.cta-meta-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.cta-meta-value {
    font-size: 20px;
    font-weight: 500;
    color: var(--bg);
}

/* ============================================================ */
/* FOOTER                                                        */
/* ============================================================ */
.footer {
    background: var(--ink);
    color: var(--bg);
    padding: 60px 0 40px;
}
.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-col h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    padding: 6px 0;
    transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent-lime); }
.footer-col a i { margin-right: 8px; font-size: 12px; }

.footer-brand {
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
}
.footer-brand h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(100px, 22vw, 360px);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(245, 244, 240, 0.25) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}
.pulse-dot {
    color: var(--accent-lime);
    font-size: 8px;
    animation: pulse 2s ease infinite;
}

/* ============================================================ */
/* RESPONSIVE                                                    */
/* ============================================================ */
@media (max-width: 1200px) {
    .work-grid { grid-template-columns: repeat(4, 1fr); }
    .tile-lg { grid-column: span 2; grid-row: span 2; }
    .tile-md { grid-column: span 2; }
    .tile-wide { grid-column: span 4; }
    .data-grid { grid-template-columns: repeat(2, 1fr); }
    .data-item:nth-child(4n) { border-right: 1px solid var(--line); }
    .data-item:nth-child(2n) { border-right: none; }
    .data-item:nth-last-child(-n+2) { border-bottom: none; }
    .data-item:nth-child(n+5):nth-child(-n+6) { border-bottom: 1px solid var(--line); }
    .service-row { grid-template-columns: 50px 50px 1fr auto 30px; gap: 20px; }
}

@media (max-width: 968px) {
    .container { padding: 0 24px; }
    section { padding: 100px 0; }

    .nav { padding: 16px 24px; }
    .nav.scrolled { padding: 12px 24px; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--line);
    }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: flex; }

    .hero { padding: 120px 0 60px; }
    .hero-globe { width: 500px; height: 500px; right: -150px; opacity: 0.3; }
    .hero-title { font-size: clamp(42px, 11vw, 70px); }
    .hero-meta { flex-direction: column; gap: 12px; align-items: flex-start; }
    .hero-bottom { grid-template-columns: 1fr; gap: 30px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .stat { padding-left: 0; border-left: none; padding-top: 20px; border-top: 1px solid var(--line); }
    .stat:nth-child(-n+2) { border-top: none; padding-top: 0; }

    .work-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .tile-lg, .tile-md, .tile-wide { grid-column: span 1; grid-row: span 1; }

    .service-row { grid-template-columns: 40px 40px 1fr 30px; gap: 16px; padding: 28px 0; }
    .service-meta { display: none; }
    .service-icon svg { width: 32px; height: 32px; }
    .service-row:hover { padding-left: 0; }

    .approach-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .data-grid { grid-template-columns: 1fr; }
    .data-item { border-right: none !important; }

    .about-grid { grid-template-columns: 1fr; gap: 60px; }

    .cta-title { font-size: clamp(42px, 12vw, 80px); }
    .cta-meta { flex-direction: column; gap: 30px; }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 50px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 540px) {
    .approach-grid { grid-template-columns: 1fr; }
    .about-visual { grid-template-columns: 1fr 1fr; }
    .hero-cta { padding: 16px 24px; font-size: 14px; }
    .footer-top { grid-template-columns: 1fr; }
    .hero-globe { display: none; }
}
