:root {
    /* Neutrals — dark navy scale, all authored in OKLCH for perceptual consistency */
    --bg: oklch(15.29% 0.0289 268.91);       /* #070b18 */
    --bg-2: oklch(17.96% 0.0422 269.26);     /* #0a1024 */
    --bg-3: oklch(14.72% 0.0272 267.12);     /* #060a16 — ambient gradient stop */
    --bg-4: oklch(20.73% 0.0536 266.05);     /* #0c1630 — ambient gradient stop */
    --bg-5: oklch(17.63% 0.0394 264.39);     /* #081022 — ambient gradient stop */
    --surface: oklch(100% 0 0 / 3.5%);
    --surface-hover: oklch(100% 0 0 / 6%);
    --border: oklch(100% 0 0 / 9%);
    --border-strong: oklch(100% 0 0 / 16%);
    --text: oklch(94.84% 0.0187 265.98);     /* #e8eefb */
    --text-muted: oklch(73.01% 0.0437 264.26); /* #9aa8c4 */
    --text-dim: oklch(57.32% 0.0490 266.54);   /* #6b7896 */
    --ink: oklch(19.85% 0.0458 61.82);         /* #241000 — text on the warm primary button */

    /* Primary — cool blue (structure) */
    --blue: oklch(66.48% 0.1771 264.57);      /* #5c8dff */
    --blue-bright: oklch(77.23% 0.1154 263.77); /* #8fb4ff */
    --blue-deep: oklch(50.63% 0.1784 263.03);   /* #2a5cc9 — brand mark gradient stop */
    /* Complement — warm amber → gold (energy, focal points) */
    --warm: oklch(75.00% 0.1668 50.54);       /* #ff8a3d */
    --amber: oklch(80.50% 0.1586 70.38);      /* #ffab33 */
    --gold: oklch(87.93% 0.1426 87.51);       /* #ffd15c */
    --warm-tint: oklch(from var(--warm) l c h / 14%);
    /* Ambient background field — near, but not identical to, the accent hues above */
    --ambient-warm: oklch(76.72% 0.1556 52.69); /* rgb(255,148,74) */
    --ambient-blue: oklch(49.43% 0.1636 263.52); /* rgb(46,90,189) */

    /* Spacing scale — tokenizes the values already reused across the sheet */
    --space-1: 8px;
    --space-2: 14px;
    --space-3: 18px;
    --space-4: 20px;
    --space-5: 28px;
    --space-6: 44px;
    --space-7: 54px;
    --space-8: 70px;
    --space-9: 100px;
    --space-10: 110px;

    --max: 1120px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
    font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient gradient field — dark blue depth with a soft orange undertone */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(85% 60% at 22% 8%, oklch(from var(--ambient-warm) l c h / 9%), transparent 62%),
        radial-gradient(70% 70% at 100% 100%, oklch(from var(--ambient-blue) l c h / 22%), transparent 65%),
        linear-gradient(165deg, var(--bg-3), var(--bg-2) 35%, var(--bg-4) 65%, var(--bg-5));
    background-size: 160% 160%, 160% 160%, 180% 180%;
    animation: bgDrift 50s ease-in-out infinite;
}
/* subtle grain overlay */
.ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

@keyframes bgDrift {
    0%, 100% { background-position: 0% 0%, 100% 100%, 0% 50%; }
    50% { background-position: 12% 8%, 88% 92%, 100% 50%; }
}

.wrap { position: relative; z-index: 1; }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

a { color: inherit; text-decoration: none; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: oklch(from var(--bg) l c h / 72%);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 16px;
}
.brand-mark {
    position: relative;
    width: 30px; height: 30px;
    border-radius: 9px;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(140deg, var(--blue) 15%, var(--blue-deep) 50%, var(--warm) 105%);
    box-shadow: 0 4px 18px oklch(from var(--blue) l c h / 35%);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 14.5px;
    color: var(--text-muted);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    padding: 9px var(--space-3);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text) !important;
    font-weight: 500;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-cta:hover {
    background: var(--warm-tint);
    border-color: var(--amber);
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    transition: color 0.2s ease, gap 0.2s ease;
}
.back-link:hover { color: var(--text); }
.back-link svg { transition: transform 0.25s var(--ease); }
.back-link:hover svg { transform: translateX(-3px); }

/* ---------- Hero ---------- */
.hero {
    padding: 170px 0 110px;
}
.hero h1 {
    font-weight: 700;
    font-size: clamp(2.8rem, 7vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--text);
}
/* Complementary focal phrase — solid warm accent, italic for contrast */
.warm-word {
    position: relative;
    font-style: italic;
    font-weight: 500;
    color: var(--gold);
    white-space: nowrap;
}

.hero-lede {
    margin: 32px 0 0;
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
    color: var(--text-muted);
    line-height: 1.62;
}
.hero-lede strong { color: var(--text); font-weight: 600; }
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: 38px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: var(--space-2) 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
/* Primary CTA carries the warm complement — the single loudest accent */
.btn-primary {
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold), var(--amber) 55%, var(--warm));
}
.btn-ghost {
    color: var(--text);
    border: 1px solid var(--border-strong);
    background: var(--surface);
}
.btn-ghost:hover {
    border-color: var(--blue);
    background: var(--surface-hover);
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Section shell ---------- */
section { padding: var(--space-9) 0; }
/* About and What I do continue the same personal narrative as the section
   before them, so they sit closer together; Experience and the CTA are real
   breaks and keep the full, generous gap. */
#about { padding-top: 56px; }
#work { padding-top: 56px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    font-weight: 600;
    margin-bottom: var(--space-3);
}
.eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--warm), var(--amber));
}
.section-title {
    font-weight: 700;
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 var(--space-4);
}
.section-intro {
    color: var(--text-muted);
    font-size: 1.08rem;
    margin: 0 0 var(--space-7);
}

/* ---------- About ---------- */
.about-body { max-width: none; }
.about-body p {
    font-size: 1.14rem;
    color: var(--text-muted);
    margin: 0 0 22px;
    line-height: 1.7;
}
.about-body strong { color: var(--text); font-weight: 600; }
/* warm ink for the signature phrase */
.about-body .mark { color: var(--gold); font-weight: 500; font-style: italic; }

/* ---------- Capabilities ---------- */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}
.cap {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px var(--space-5);
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
/* editorial index numeral — reads as hand-composed */
.cap-index {
    position: absolute;
    top: 18px; right: 22px;
    font-size: 1.5rem;
    font-weight: 600;
    font-feature-settings: "tnum";
    color: var(--warm);
    opacity: 0.32;
    transition: opacity 0.4s var(--ease);
}
.cap::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--warm), var(--amber), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
}
.cap:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
}
.cap:hover::after { transform: scaleX(1); }
.cap:hover .cap-index { opacity: 0.7; }
.cap-ico {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, oklch(from var(--blue) l c h / 20%), oklch(from var(--warm) l c h / 16%));
    color: var(--blue-bright);
    margin-bottom: var(--space-4);
}
.cap h3 {
    margin: 0 0 10px;
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.cap p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* ---------- Experience / featured case study ---------- */
.feature-case {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.feature-case:hover {
    border-color: var(--border-strong);
    background: var(--surface);
}
.feature-case-media {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.feature-case-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s var(--ease);
}
.feature-case:hover .feature-case-media img { transform: scale(1.02); }
.feature-case-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    transition: color 0.3s var(--ease);
}
.feature-case:hover .feature-case-title { color: var(--gold); }
.feature-case-title .arrow {
    opacity: 0;
    transform: translate(-6px, 0);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    color: var(--amber);
}
.feature-case:hover .feature-case-title .arrow { opacity: 1; transform: translate(0,0); }
.feature-case-body p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 0 22px;
}
.feature-case-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--amber);
}
.feature-case-cta svg { transition: transform 0.25s var(--ease); }
.feature-case:hover .feature-case-cta svg { transform: translateX(3px); }

/* ---------- CTA ---------- */
.cta { padding: var(--space-10) 0; }
.cta-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: var(--space-8) 40px;
    text-align: center;
    background:
        radial-gradient(70% 130% at 20% 0%, oklch(from var(--blue) l c h / 16%), transparent 55%),
        radial-gradient(70% 130% at 85% 100%, oklch(from var(--warm) l c h / 16%), transparent 55%),
        var(--surface);
}
.cta h2 {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0 auto var(--space-3);
    max-width: 640px;
}
.cta h2 em { font-style: italic; color: var(--gold); }
.cta p {
    color: var(--text-muted);
    font-size: 1.12rem;
    margin: 0 auto 34px;
    max-width: 500px;
}

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}
.foot-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--text-dim);
    font-size: 14px;
}
.foot-links { display: flex; gap: 24px; }
.foot-links a { transition: color 0.2s ease; }
.foot-links a:hover { color: var(--amber); }

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Case study page (seek.html) ---------- */
.case-hero {
    padding: 160px 0 var(--space-9);
}
.case-hero h1 {
    font-weight: 700;
    font-size: clamp(2.2rem, 5.2vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0 0 22px;
    max-width: 820px;
}
.case-hero-lede {
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    color: var(--text-muted);
    line-height: 1.62;
    margin: 0 0 40px;
}

.meta-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    padding-top: 34px;
    border-top: 1px solid var(--border);
}
.meta-strip .item { position: relative; padding-left: 16px; }
.meta-strip .item::before {
    content: "";
    position: absolute;
    left: 0; top: 3px; bottom: 3px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(var(--amber), var(--warm));
}
.meta-strip .k {
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
}
.meta-strip .v {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
}

.prose p {
    font-size: 1.06rem;
    color: var(--text-muted);
    margin: 0 0 var(--space-4);
    line-height: 1.72;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }

.fig {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}
.fig img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}
.fig figcaption {
    padding: 16px 22px;
    font-size: 13.5px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 64px;
}
.step {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--space-6);
    align-items: center;
}
.step:nth-child(even) .step-media { order: 2; }
.step:nth-child(even) .step-body { order: 1; }
.step-num {
    font-size: 1rem;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    display: block;
}
.step-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 14px;
}
.step-body p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.68;
    margin: 0 0 14px;
}
.step-body p:last-child { margin-bottom: 0; }
.step-media .fig { margin: 0; }
.step-noimg { grid-template-columns: 1fr; }
.step-noimg .step-body { max-width: 720px; }

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
.impact-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 24px;
}
.impact-stat .num {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gold);
}
.impact-stat .label {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .feature-case { grid-template-columns: 1fr; gap: 26px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .meta-strip { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
    .step { grid-template-columns: 1fr; gap: 26px; }
    .step:nth-child(even) .step-media { order: 1; }
    .step:nth-child(even) .step-body { order: 2; }
}
@media (max-width: 560px) {
    .container { padding: 0 20px; }
    section { padding: 72px 0; }
    .hero { padding: 110px 0 60px; }
    .cap-grid { grid-template-columns: 1fr; }
    .warm-word { white-space: normal; }
    .nav-cta { display: none; }
    .feature-case-title { font-size: 1.4rem; }
    .cta-card { padding: 50px 24px; }
    .case-hero { padding: 120px 0 60px; }
    .meta-strip { grid-template-columns: 1fr 1fr; }
    .impact-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .impact-stat { padding: 20px 18px; }
    .impact-stat .num { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ambient { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .cap, .feature-case, .nav-cta { transition: none; }
}
