/* =====================================================================
   ROOT — design tokens  (Ember Dark theme)
   ===================================================================== */
:root {
    --bg:        #0c0b09;
    --surface:   #161411;
    --surface-2: #1e1b17;
    --ink:       #f0e8dc;
    --ink-2:     #9a8a7a;
    --ink-3:     #5a4d40;
    --border:    rgba(240,232,220,0.09);
    --border-d:  rgba(240,232,220,0.15);
    --header-h:  64px;
    --amber:     #f0a030;
}

/* =====================================================================
   RESET
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg);
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

/* Ensure all page sections sit above the dot grid and glow */
.site-header, .mobile-overlay, .hero, .section,
.code-interlude, .divider, .footer {
    position: relative;
    z-index: 2;
}
/* Contact section needs a higher z-index so the currency dropdown
   stacking context renders above the footer when the list opens */
#contact { z-index: 3; }

a, button { cursor: none; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }
svg { display: block; }

@media (hover: none) {
    body, a, button { cursor: auto; }
}

/* =====================================================================
   ACCENT COLOURS — used sparingly, each with one job:
   red   → service numbers (structural decoration)
   blue  → confidence/clarity words
   green → live/working/positive signals (echoes the status dot)
   ===================================================================== */
.ac-red  { color: #ff6b47 !important; }
.ac-blue { color: #60a5fa !important; }
.ac-green{ color: #34d399 !important; }

/* =====================================================================
   TYPOGRAPHY
   ===================================================================== */
.display, h1, h2, h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.eyebrow {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-3);
    transition: letter-spacing .3s cubic-bezier(.16,1,.3,1), color .2s;
}
.eyebrow:hover { letter-spacing: .3em; color: var(--ink-2); }

/* =====================================================================
   LAYOUT
   ===================================================================== */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 48px;
}

/* section spacing — generous on desktop, tighter on mobile */
.section { padding: 112px 0; }

/* =====================================================================
   CUSTOM CURSOR
   ===================================================================== */
.c-dot {
    position: fixed;
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: opacity .15s;
    mix-blend-mode: difference;
}
.c-dot.hidden { opacity: 0; }

.c-ring {
    position: fixed;
    width: 36px; height: 36px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: width .4s cubic-bezier(.16,1,.3,1),
                height .4s cubic-bezier(.16,1,.3,1),
                opacity .3s;
    opacity: 1;
    mix-blend-mode: difference;
}
.c-ring.hover { width: 64px; height: 64px; }
.c-ring.click { width: 20px; height: 20px; }

/* Touch screens — no custom cursor */
@media (hover: none) {
    .c-dot, .c-ring { display: none !important; }
}

/* =====================================================================
   DOT GRID CANVAS
   ===================================================================== */
#dotCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* =====================================================================
   GRAIN TEXTURE
   ===================================================================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 7999;
    opacity: .032;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* =====================================================================
   ╔══════════════════════════════════════════╗
   ║  HEADER                                  ║
   ╚══════════════════════════════════════════╝
   ===================================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 900;
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.scrolled {
    background: rgba(12,11,9,.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left side: burger (mobile-only) + nav links (desktop) */
.header-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Desktop nav links */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.hn-link {
    padding: 7px 13px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--ink-2);
    border-radius: 5px;
    position: relative;
    transition: color .18s;
}
.hn-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 13px; right: 13px;
    height: 1.5px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.hn-link:hover { color: var(--ink); }
.hn-link:hover::after { transform: scaleX(1); }

/* CTA button */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--ink);
    color: var(--bg);
    font-size: .825rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 6px;
    letter-spacing: .01em;
    white-space: nowrap;
    flex-shrink: 0;
}
.header-cta svg { flex-shrink: 0; }

/* Hamburger — hidden on desktop */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    padding: 6px;
    flex-shrink: 0;
}
.nav-burger span {
    display: block;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transform-origin: center;
    transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .2s;
}
/* X state */
.nav-burger.is-open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* =====================================================================
   FULL-SCREEN MOBILE OVERLAY
   ===================================================================== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 800;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* hidden by default */
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s cubic-bezier(.16,1,.3,1);
}
.mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 0 32px;
}

.on-link {
    display: block;
    width: 100%;
    max-width: 360px;
    text-align: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 8vw, 3.25rem);
    letter-spacing: -.02em;
    color: var(--ink-3);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    /* stagger reveal */
    opacity: 0;
    transform: translateY(16px);
    transition: color .2s, opacity .4s ease, transform .4s cubic-bezier(.16,1,.3,1), letter-spacing .25s;
}
.on-link:last-child { border-bottom: none; }
.on-link:hover {
    color: var(--ink);
    letter-spacing: .04em;
}

.on-cta {
    margin-top: 32px;
    color: var(--bg) !important;
    background: var(--ink);
    border-radius: 8px;
    border: none !important;
    padding: 16px 40px;
    font-size: clamp(1rem, 4vw, 1.25rem);
}
.on-cta:hover { background: var(--ink-2); }

/* Animate links in when overlay opens */
.mobile-overlay.is-open .on-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-overlay.is-open .on-link:nth-child(1) { transition-delay: .05s; }
.mobile-overlay.is-open .on-link:nth-child(2) { transition-delay: .10s; }
.mobile-overlay.is-open .on-link:nth-child(3) { transition-delay: .15s; }
.mobile-overlay.is-open .on-link:nth-child(4) { transition-delay: .22s; }

/* =====================================================================
   ╔══════════════════════════════════════════╗
   ║  HERO                                    ║
   ╚══════════════════════════════════════════╝
   ===================================================================== */
.hero {
    min-height: 100svh;
    padding-top: var(--header-h);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-container {
    flex: 1;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 64px;
}

/* Status pill */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border-d);
    border-radius: 100px;
    padding: 6px 14px 6px 10px;
    font-size: .78rem;
    font-weight: 500;
    color: var(--ink-2);
    width: fit-content;
    margin-bottom: 44px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease, border-color .2s;
}
.hero-status.visible { opacity: 1; transform: translateY(0); }
.hero-status:hover { border-color: var(--ink); color: var(--ink); }

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.18);
    flex-shrink: 0;
    animation: pulse-dot 2.2s ease infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
    50%       { box-shadow: 0 0 0 7px rgba(34,197,94,.06); }
}

/* Headline */
.hero-headline {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 8vw, 8.5rem);
    line-height: .96;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 52px;
    width: 100%;
}

.hh-line {
    display: block;
    overflow: hidden;
    width: 100%;
}
.hh-inner {
    display: inline-block;
    transform: translateY(105%);
    transition: transform .9s cubic-bezier(.16,1,.3,1);
}
.hh-inner.up { transform: translateY(0); }
.hh-accent .hh-inner { color: var(--ink-3); }

/* Sub row: tagline + buttons */
.hero-sub-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 64px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.hero-sub-row.visible { opacity: 1; transform: translateY(0); }

.hero-tagline {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink-2);
    max-width: 400px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: var(--bg);
    font-size: .9rem;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 7px;
    letter-spacing: .01em;
    white-space: nowrap;
}
.btn-primary-hero svg { flex-shrink: 0; }

.btn-ghost-hero {
    display: inline-flex;
    align-items: center;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-2);
    padding: 13px 20px;
    border-radius: 7px;
    border: 1px solid var(--border-d);
    white-space: nowrap;
}

/* Meta strip */
.hero-meta {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
}
.hero-meta.visible { opacity: 1; transform: translateY(0); }

.hero-rule {
    border: none;
    border-top: 1px solid var(--border);
    margin-bottom: 28px;
}

.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 52px;
    flex-wrap: wrap;
}

.hs-val {
    display: block;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.625rem;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 4px;
    transition: transform .25s cubic-bezier(.16,1,.3,1);
    display: inline-block;
}
.hero-stat:hover .hs-val { transform: translateY(-3px) scale(1.06); }
.hs-key {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: var(--ink-3);
    font-size: .8rem;
    font-weight: 500;
}

/* Tech ticker */
.tech-ticker {
    border-top: 1px solid var(--border);
    padding: 13px 0;
    overflow: hidden;
    white-space: nowrap;
    background: transparent;
}
.ticker-track {
    display: inline-flex;
    align-items: center;
    animation: ticker 30s linear infinite;
}
.tt-item {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 0 18px;
}
.tt-dot {
    font-size: .65rem;
    color: var(--border-d);
    padding: 0 2px;
}
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =====================================================================
   ANIMATIONS — word masks + fade-up
   ===================================================================== */
.wm { overflow: hidden; display: inline-block; vertical-align: bottom; }
.wi {
    display: inline-block;
    transform: translateY(106%) skewY(4deg);
    transition: transform .9s cubic-bezier(.16,1,.3,1);
}
.wi.up { transform: translateY(0) skewY(0deg); }

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .07s; }
.fade-up:nth-child(3) { transition-delay: .14s; }
.fade-up:nth-child(4) { transition-delay: .21s; }
.fade-up:nth-child(5) { transition-delay: .28s; }
.fade-up:nth-child(6) { transition-delay: .35s; }

/* =====================================================================
   DIVIDER
   ===================================================================== */
.divider { height: 1px; background: var(--border); }

/* =====================================================================
   ABOUT
   ===================================================================== */
.about-header { margin-bottom: 72px; }
.about-section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 7vw, 8.5rem);
    line-height: .92;
    letter-spacing: -.03em;
    color: var(--ink);
}

.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    align-items: start;
}

.stat-row {
    padding: 22px 0;
    border-top: 1px solid var(--border);
    transition: border-color .25s;
}
.stat-row:last-child { border-bottom: 1px solid var(--border); }
.stat-row:hover { border-color: var(--ink-2); }
.stat-val {
    display: block;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--ink);
    transition: transform .3s cubic-bezier(.16,1,.3,1), letter-spacing .3s;
    display: inline-block;
}
.stat-row:hover .stat-val {
    transform: translateX(6px);
    letter-spacing: -.01em;
}
.stat-key {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.about-copy h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -.02em;
    color: var(--ink);
    margin-bottom: 24px;
}
.about-copy p {
    font-size: .9375rem;
    color: var(--ink-2);
    line-height: 1.8;
    margin-bottom: 18px;
}
.about-copy p:last-child { margin-bottom: 0; }

/* =====================================================================
   CODE INTERLUDE (between about + services)
   ===================================================================== */
.code-interlude {
    padding: 0 0 80px;
}
.code-interlude-inner {
    /* two-col: description left, code right */
    display: grid;
    grid-template-columns: 1fr;
}
.code-block {
    background: #0f1117;
    border-radius: 10px;
    overflow: hidden;
    font-size: .8rem;
    line-height: 1.7;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

/* =====================================================================
   SERVICES
   ===================================================================== */
.services-header {
    margin-bottom: 56px;
}
.services-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 7vw, 8.5rem);
    line-height: .92;
    letter-spacing: -.03em;
    color: var(--ink);
}
.services-desc {
    font-size: .9375rem;
    color: var(--ink-2);
    line-height: 1.78;
    max-width: 340px;
}

.code-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #1a1d27;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.cb-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cb-red    { background: #ff5f57; }
.cb-yellow { background: #febc2e; }
.cb-green  { background: #28c840; }
.cb-filename {
    margin-left: 8px;
    font-size: .72rem;
    font-weight: 500;
    color: rgba(255,255,255,.35);
    letter-spacing: .04em;
    font-family: 'Bricolage Grotesque', monospace;
}
.code-body {
    flex: 1;
    min-width: 0;
    padding: 20px 22px;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: pre-wrap;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: .78rem;
    line-height: 1.75;
    color: #abb2bf;
}
/* Syntax token colours (One Dark palette) */
.code-body .ct-kw  { color: #c678dd; } /* keywords / PDO    */
.code-body .ct-fn  { color: #61afef; } /* function names     */
.code-body .ct-var { color: #e06c75; } /* variables          */
.code-body .ct-str { color: #98c379; } /* strings            */
.code-body .ct-co  { color: #5c6370; font-style: italic; } /* comments */
.code-body .ct-cn  { color: #e5c07b; } /* constants          */
.code-body .ct-tag { color: #e06c75; } /* HTML tags          */
.code-body .ct-atr { color: #d19a66; } /* HTML attributes    */

/* Code panes: editor left, output right */
.code-panes {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Output panel */
.code-output {
    width: 46%;
    border-left: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    background: #0d0d0d;
    flex-shrink: 0;
}
.co-bar {
    background: #1a1d27;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 6px 14px;
    display: flex;
    align-items: center;
}
.co-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #5c6370;
    font-family: 'Courier New', monospace;
}
.co-frame {
    flex: 1;
    border: none;
    width: 100%;
    min-height: 200px;
}

/* Rewind button */
.cb-rewind {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 4px;
    color: #abb2bf;
    font-size: .7rem;
    font-family: inherit;
    padding: 3px 10px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.cb-rewind:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.cb-rewind svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
}

.ct-cursor {
    display: inline-block;
    color: #528bff;
    animation: blink .9s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.services-grid {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}
.svc {
    padding: 36px 28px;
    border-right: 1px solid var(--border);
    transition: border-color .3s;
    overflow: hidden;
}
.svc:last-child  { border-right: none; }
.svc:hover { border-color: var(--amber); }

/* Service card hover — number scales, h3 shoots up */
.svc-n {
    transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .25s;
}
.svc h3 {
    transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.svc:hover .svc-n { transform: scale(1.4); transform-origin: left; opacity: 1; }
.svc:hover h3 { transform: translateY(-4px); }

.svc-n {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--ink-3);
    margin-bottom: 20px;
    display: block;
}
.svc h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -.01em;
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 14px;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
.svc p {
    font-size: .875rem;
    color: var(--ink-2);
    line-height: 1.72;
}

/* =====================================================================
   SERVICES — EXTRAS STRIP
   ===================================================================== */
.services-extras {
    margin-top: 52px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0 56px;
    align-items: start;
}
.se-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-top: 10px;
}
.se-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
}
.se-chip {
    display: block;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--ink-3);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: color .2s, padding-left .25s cubic-bezier(.16,1,.3,1);
}
.se-chip::before {
    content: '\2192\00a0';
    font-size: .65rem;
    opacity: .5;
}
.se-chip:hover {
    color: var(--ink);
    padding-left: 6px;
}

/* =====================================================================
   PROCESS — editorial numbered timeline
   ===================================================================== */
.process-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 7vw, 8.5rem);
    line-height: .92;
    letter-spacing: -.03em;
    color: var(--ink);
    margin-bottom: 48px;
}
.process-steps {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}
.pstep {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 0 56px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
    position: relative;
    overflow: hidden;
    transition: border-color .3s;
}
.pstep:hover { border-color: var(--ink); }
.pstep::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--amber);
    transform: translateY(102%);
    transition: transform .45s cubic-bezier(.16,1,.3,1);
    z-index: 0;
}
.pstep:hover::after { transform: translateY(0); }
.pstep > * { position: relative; z-index: 1; }
.pstep-n {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.75rem, 4.5vw, 4.5rem);
    line-height: .82;
    letter-spacing: -.05em;
    display: block;
    padding-top: 5px;
    transition: transform .4s cubic-bezier(.16,1,.3,1), color .3s;
}
.pstep:hover .pstep-n {
    transform: translateX(8px);
    color: rgba(12,11,9,.3);
}
.pstep-body { padding-top: 6px; }
.pstep-body h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.625rem;
    letter-spacing: -.02em;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 12px;
    transition: color .3s, transform .35s cubic-bezier(.16,1,.3,1);
}
.pstep:hover .pstep-body h3 { color: #0c0b09; transform: translateY(-2px); }
.pstep-body p {
    font-size: .875rem;
    color: var(--ink-2);
    line-height: 1.75;
    max-width: 580px;
    transition: color .3s;
}
.pstep:hover .pstep-body p { color: rgba(12,11,9,.6); }

/* =====================================================================
   WORK
   ===================================================================== */
.work-section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 7vw, 8.5rem);
    line-height: .92;
    letter-spacing: -.03em;
    color: var(--ink);
    margin-bottom: 48px;
}

.work-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 200px auto;
    align-items: center;
    gap: 0 24px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.work-row:last-child { border-bottom: 1px solid var(--border); }

.work-row::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--amber);
    transform: translateY(102%);
    transition: transform .45s cubic-bezier(.16,1,.3,1);
    z-index: 0;
}
.work-row:hover::after { transform: translateY(0); }
.work-row > * { position: relative; z-index: 1; transition: color .3s; }

.wr-n {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--ink-3);
}
.wr-domain {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -.01em;
    line-height: 1;
    color: var(--ink);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wr-cat {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.wr-visit {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink-2);
    transition: gap .3s;
}
.wr-visit svg { width: 13px; height: 13px; transition: transform .3s; }

.work-row:hover .wr-n      { color: rgba(12,11,9,.5); }
.work-row:hover .wr-domain { color: #0c0b09; }
.work-row:hover .wr-cat    { color: rgba(12,11,9,.55); }
.work-row:hover .wr-visit  { color: #0c0b09; gap: 10px; }
.work-row:hover .wr-visit svg { transform: translate(3px, -3px); }

.wr-desc {
    grid-column: 2 / -2;
    font-size: .8rem;
    line-height: 1.65;
    color: var(--ink-3);
    padding-bottom: 6px;
    white-space: normal;
    letter-spacing: .01em;
}
.work-row:hover .wr-desc { color: rgba(12,11,9,.55); }

/* =====================================================================
   CONTACT / FORM
   ===================================================================== */
.contact-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 64px;
}
.contact-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 7vw, 8.5rem);
    line-height: .92;
    letter-spacing: -.03em;
    color: var(--ink);
}
.contact-sub {
    font-size: .9375rem;
    color: var(--ink-2);
    line-height: 1.78;
    max-width: 440px;
}

/* Centred form shell */
.form-shell {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 52px;
    max-width: 720px;
    border-radius: 10px;
    margin: 0 auto;
}

.form-prog { margin-bottom: 48px; }
.prog-track {
    height: 1px;
    background: var(--border);
    position: relative;
    margin-bottom: 14px;
}
.prog-fill {
    position: absolute;
    top: 0; left: 0;
    height: 1px;
    background: var(--ink);
    width: 25%;
    transition: width .4s ease;
}
.prog-labels { display: flex; justify-content: space-between; }
.prog-lbl {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
    transition: color .3s;
}
.prog-lbl.is-active { color: var(--ink); }
.prog-lbl.is-done   { color: var(--ink-2); }

.form-step { display: none; }
.form-step.is-active { display: block; }

.step-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2.25rem;
    letter-spacing: -.02em;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 8px;
}
.step-sub {
    font-size: .9rem;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 32px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 32px;
}
.choice-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.choice-card { cursor: none; }
.choice-card input { display: none; }
.choice-label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 13px 10px;
    min-height: 50px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--ink-2);
    background: var(--bg);
    transition: border-color .18s, color .18s, background .18s;
    line-height: 1.3;
}
.choice-label:hover { border-color: var(--ink-2); color: var(--ink); }
.choice-card input:checked + .choice-label {
    border-color: var(--amber);
    background: var(--amber);
    color: var(--bg);
}

.form-textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 13px 15px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: .9rem;
    color: var(--ink);
    resize: vertical;
    min-height: 140px;
    line-height: 1.65;
    transition: border-color .2s;
    margin-bottom: 32px;
}
.form-textarea:focus { outline: none; border-color: var(--ink); }
.form-textarea::placeholder { color: var(--ink-3); }

.form-field { margin-bottom: 32px; }
.form-label {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 9px;
}
.form-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 13px 15px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: .9rem;
    color: var(--ink);
    transition: border-color .2s;
}
.form-input:focus { outline: none; border-color: var(--ink); }
.form-input::placeholder { color: var(--ink-3); }
.input-error { border-color: #d00 !important; }

/* Budget row — currency dropdown + freeform input */
.budget-row {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border: 1px solid var(--border-d);
    border-radius: 6px;
    transition: border-color .2s;
}
.budget-row:focus-within { border-color: var(--ink); }

.currency-select-wrap {
    flex-shrink: 0;
    border-right: 1px solid var(--border-d);
    border-radius: 6px 0 0 6px;
    background: var(--surface-2);
    position: relative;
}
.currency-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink);
    cursor: none;
    white-space: nowrap;
}
.currency-chevron {
    width: 10px;
    height: 6px;
    color: var(--ink-2);
    flex-shrink: 0;
    transition: transform .2s;
}
.currency-select-wrap.is-open .currency-chevron { transform: rotate(180deg); }
.currency-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border-d);
    border-radius: 6px;
    padding: 4px 0;
    list-style: none;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.currency-select-wrap.is-open .currency-list { display: block; }
.currency-option {
    padding: 10px 16px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: .875rem;
    font-weight: 500;
    color: var(--ink-2);
    cursor: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.currency-option:hover { background: var(--surface); color: var(--ink); }
.currency-option.is-active { color: var(--amber); }

.budget-input {
    flex: 1;
    border: none !important;
    border-radius: 0 6px 6px 0 !important;
    margin: 0;
    padding: 13px 15px;
}
.budget-input:focus { outline: none; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: 6px;
    border: none;
    white-space: nowrap;
    cursor: none;
}

.btn-primary { background: var(--ink); color: var(--bg); }

.btn-outline {
    background: transparent;
    color: var(--ink-2);
    border: 1px solid var(--border-d);
}

.step-actions { display: flex; gap: 10px; align-items: center; }

.success-step { text-align: center; padding: 48px 0; }
.success-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 1px solid var(--border-d);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--ink);
}
.success-icon svg { width: 26px; height: 26px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--border); padding: 64px 0 0; background: var(--surface); }

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 64px;
    padding-bottom: 52px;
    align-items: start;
}

.footer-brand {}
.footer-name {
    display: block;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -.02em;
    color: var(--ink);
    margin-bottom: 10px;
    transition: letter-spacing .3s cubic-bezier(.16,1,.3,1);
}
.footer-name:hover { letter-spacing: .04em; }
.footer-tagline {
    font-size: .875rem;
    color: var(--ink-3);
    line-height: 1.65;
    max-width: 280px;
}

.footer-col {}
.footer-col-label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 16px;
}
.footer-col nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col nav a {
    font-size: .875rem;
    color: var(--ink-3);
    transition: color .18s, transform .25s cubic-bezier(.16,1,.3,1);
    display: inline-block;
}
.footer-col nav a:hover {
    color: var(--ink);
    transform: translateX(6px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copy {
    font-size: .75rem;
    color: var(--ink-3);
}

/* =====================================================================
   CHAT WIDGET
   ===================================================================== */
.chat-widget {
    display: none !important;
}
.chat-fab {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--ink);
    border: none;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.16);
    transition: transform .2s, background .2s;
}
.chat-fab:hover { transform: scale(1.06); background: #252525; }
.chat-fab svg { width: 20px; height: 20px; }
.chat-fab .icon-close { position: absolute; display: none; }
.chat-widget.open .icon-open  { display: none; }
.chat-widget.open .icon-close { display: block; position: static; }

.chat-panel {
    width: 310px;
    background: #fff;
    border: 1px solid var(--border-d);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0,0,0,.1);
    display: none;
    flex-direction: column;
    max-height: 440px;
}
.chat-widget.open .chat-panel { display: flex; }

.chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8f8f8;
    border-bottom: 1px solid var(--border);
}
.chat-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: .58rem;
    letter-spacing: .04em;
    color: #fff;
    flex-shrink: 0;
}
.chat-head-info strong { display: block; font-size: .875rem; color: var(--ink); }
.chat-head-info span   { font-size: .72rem; color: var(--ink-3); }

.chat-msgs {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.chat-msg { max-width: 88%; }
.chat-msg.from-bot  { align-self: flex-start; }
.chat-msg.from-user { align-self: flex-end; }
.chat-msg p {
    padding: 9px 12px;
    font-size: .84rem;
    line-height: 1.5;
    border-radius: 8px;
}
.chat-msg.from-bot  p { background: #f2f2f2; color: var(--ink-2); border-radius: 2px 8px 8px 8px; }
.chat-msg.from-user p { background: var(--ink); color: #fff; border-radius: 8px 2px 8px 8px; }

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    border-top: 1px solid var(--border);
    background: #f8f8f8;
}
.chat-input-row input {
    flex: 1;
    background: #fff;
    border: 1px solid var(--border-d);
    border-radius: 6px;
    padding: 8px 11px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: .84rem;
    color: var(--ink);
    transition: border-color .2s;
}
.chat-input-row input:focus { outline: none; border-color: var(--ink); }
.chat-input-row input::placeholder { color: var(--ink-3); }
.chat-send {
    width: 32px; height: 32px;
    background: var(--ink);
    border: none;
    border-radius: 6px;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    flex-shrink: 0;
    transition: background .2s;
}
.chat-send:hover { background: var(--ink-2); }
.chat-send svg { width: 13px; height: 13px; }

/* =====================================================================
   ╔══════════════════════════════════════════╗
   ║  RESPONSIVE                              ║
   ╚══════════════════════════════════════════╝

   Breakpoints:
     1040px — tablet landscape / small desktop
      860px — tablet portrait
      768px — large phone / tablet
      480px — phone
   ===================================================================== */

/* ── 1040px ── */
@media (max-width: 1040px) {

    /* services — stack sf above trio */
    .sf { grid-template-columns: 1fr; }
    .sf-left { padding-right: 0; border-right: none; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
    .sf-right { padding-left: 0; padding-top: 28px; }
    .svc-trio { grid-template-columns: 1fr 1fr; }
    .svc-trio .svc:last-child { grid-column: 1 / -1; border-right: none; border-top: 1px solid var(--border); }
    .pstep { grid-template-columns: 96px 1fr; gap: 0 32px; }
    .pstep-n { font-size: 3.5rem; }

    /* work */
    .work-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 0 18px; }
    .wr-cat { display: none; }

    /* contact header stacks */
    .contact-header { grid-template-columns: 1fr; gap: 16px; }

    /* code block */
    .code-block { min-height: 300px; }

    /* hero sub-row */
    .hero-sub-row { flex-direction: column; align-items: flex-start; gap: 28px; }
    .hero-meta-row { gap: 32px; }
    .hero-location { margin-left: 0; }

    /* process timeline — already single column, just tighten padding */
    .pstep { padding: 32px 0; gap: 0 36px; }
    .pstep-n { font-size: 3rem; }
}

/* ── 860px — tablet portrait ── */
@media (max-width: 860px) {
    /* swap to burger */
    .header-nav { display: none; }
    .nav-burger  { display: flex; }

    /* about: stats above copy */
    .about-grid { grid-template-columns: 1fr; gap: 48px; }

}

/* ── 768px ── */
@media (max-width: 768px) {
    :root { --header-h: 60px; }

    /* spacing */
    .container      { padding: 0 20px; }
    .header-inner   { padding: 0 20px; }
    .hero-container { padding: 0 20px; padding-top: 48px; padding-bottom: 48px; }
    .section        { padding: 72px 0; }

    /* hero */
    .hero-headline     { margin-bottom: 32px; }
    .hero-status       { margin-bottom: 28px; }
    .hero-sub-row      { gap: 24px; margin-bottom: 40px; }
    .hero-tagline      { font-size: .9375rem; }
    .hero-actions      { flex-direction: column; align-items: stretch; width: 100%; }
    .btn-primary-hero,
    .btn-ghost-hero    { justify-content: center; }
    .hero-meta-row     { flex-direction: column; gap: 18px; }

    /* services → single col */
    .sf { grid-template-columns: 1fr; }
    .sf-left { padding-right: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
    .sf-right { padding-left: 0; padding-top: 24px; }
    .svc-trio { grid-template-columns: 1fr; }
    .svc-trio .svc { border-right: none; border-top: 1px solid var(--border); padding: 24px 0; }
    .svc-trio .svc:first-child { padding-left: 0; }
    .svc-trio .svc:last-child  { padding-right: 0; border-right: none; }
    .pstep { grid-template-columns: 80px 1fr; gap: 0 24px; padding: 28px 0; }
    .pstep-n { font-size: 2.75rem; }

    /* work */
    .work-row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 0 12px; }
    .wr-domain { font-size: 1.125rem; }

    /* process timeline — compact on mobile */
    .pstep { padding: 24px 0; grid-template-columns: 72px 1fr; gap: 0 24px; }
    .pstep-n { font-size: 2.25rem; }
    .pstep-body h3 { font-size: 1.25rem; }

    /* services extras */
    .services-extras { grid-template-columns: 1fr; gap: 20px 0; }
    .se-chips { grid-template-columns: repeat(2, 1fr); }

    /* form */
    .form-shell  { padding: 24px 18px; }
    .choice-grid { grid-template-columns: repeat(2, 1fr); }
    .step-title  { font-size: 1.625rem; }
    .step-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    .step-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* budget row */
    .budget-row { flex-direction: column; border-radius: 6px; }
    .currency-select-wrap {
        border-right: none;
        border-bottom: 1px solid var(--border-d);
        border-radius: 6px 6px 0 0;
    }
    .currency-trigger { width: 100%; padding: 13px 14px; }
    .budget-input { border-radius: 0 0 6px 6px !important; }

    /* footer */
    .footer-top   { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; }

    /* chat */
    .chat-panel  { width: calc(100vw - 40px); }
    .chat-widget { bottom: 20px; right: 20px; }
}

/* ── 480px ── */
@media (max-width: 480px) {
    .container      { padding: 0 16px; }
    .header-inner   { padding: 0 16px; }
    .hero-container { padding: 0 16px; padding-top: 40px; padding-bottom: 40px; }
    .section        { padding: 60px 0; }

    .about-copy h3 { font-size: 1.5rem; }
    .step-title    { font-size: 1.375rem; }

    .about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
    .stat-row:last-child { grid-column: 1 / -1; }
    .stat-val { font-size: 3rem; }

    .hero-meta-row { gap: 12px; flex-wrap: wrap; }
    .services-extras { grid-template-columns: 1fr; }
    .se-chips { grid-template-columns: 1fr; }
    .pstep { grid-template-columns: 64px 1fr; gap: 0 20px; padding: 22px 0; }
    .pstep-n { font-size: 2rem; }
    .hs-val { font-size: 1.375rem; }

    .choice-grid   { grid-template-columns: 1fr; }
    .prog-labels   { display: none; }
    .form-shell    { padding: 20px 16px; }

    .work-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 0 10px; }
    .wr-n     { font-size: .65rem; }
    .wr-domain { font-size: 1rem; }

    .footer-top    { grid-template-columns: 1fr; gap: 28px; }
    .footer-brand  { grid-column: auto; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

    .code-panes  { flex-direction: column; }
    .code-output { width: 100%; border-left: none; border-top: 1px solid rgba(255,255,255,.06); }
    .co-frame    { min-height: 160px; }

    .chat-widget { bottom: 16px; right: 16px; }
    .chat-panel  { width: calc(100vw - 32px); }
    .chat-fab    { width: 44px; height: 44px; }
}

/* =====================================================================
   EMBER DARK — supplemental polish
   ============================/* Hero: warm amber ambient glow */
.hero::before {
    content: '';
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 680px;
    background: radial-gradient(ellipse at center,
        rgba(240,160,48,.05) 0%,
        rgba(240,160,48,.02) 35%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Progress fill: amber accent */
.prog-fill { background: var(--amber); }
.prog-lbl.is-active { color: var(--amber); }

/* Custom scrollbar for dark bg */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* =====================================================================
   SERVICES — NEW LAYOUT (featured card + trio)
   ===================================================================== */

/* Featured service card (01 — Web Design) */
.sf {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
    transition: border-color .3s;
}
.sf:hover { border-color: var(--amber); }

.sf-left {
    padding-right: 48px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sf-num {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 20px;
    display: block;
    transition: color .25s;
}
.sf:hover .sf-num { color: var(--amber); }
.sf-left h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 5.5rem);
    letter-spacing: -.03em;
    line-height: .88;
    color: var(--ink);
}

.sf-right {
    padding-left: 48px;
    display: flex;
    align-items: flex-end;
}
.sf-right p {
    font-size: 1rem;
    color: var(--ink-2);
    line-height: 1.8;
    max-width: 480px;
}

/* Trio wrapper (02–04) */
.svc-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: none;
}

/* Override svc padding for trio context */
.svc-trio .svc:first-child { padding-left: 0; }
.svc-trio .svc:last-child  { padding-right: 0; border-right: none; }

/* Services extras strip */
.services-extras {
    margin-top: 52px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0 56px;
}
.se-label {
    flex: 0 0 160px;
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-top: 9px;          /* align with first chip row */
    line-height: 1.5;
}
.se-chips {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.se-chip {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: border-color .2s, color .2s;
    white-space: nowrap;
}
.se-chip:hover { border-color: var(--amber); color: var(--ink); }

/* =====================================================================
   PROCESS SECTION
   ===================================================================== */
.process-header { margin-bottom: 56px; }
.process-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 7vw, 8.5rem);
    line-height: .92;
    letter-spacing: -.03em;
    color: var(--ink);
}

.process-steps {
    display: flex;
    flex-direction: column;
}
.pstep {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0 48px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    align-items: start;
    transition: border-color .3s;
}
.pstep:last-child { border-bottom: 1px solid var(--border); }
.pstep:hover { border-color: var(--amber); }

.pstep-n {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 4.5rem;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--ink-3);
    display: inline-block;
    transition: color .35s cubic-bezier(.16,1,.3,1),
                transform .35s cubic-bezier(.16,1,.3,1);
}
.pstep:hover .pstep-n { color: var(--amber); transform: scale(1.08); }

.pstep-body h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -.01em;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 14px;
}
.pstep-body p {
    font-size: .9375rem;
    color: var(--ink-2);
    line-height: 1.78;
    max-width: 580px;
}

/* =====================================================================
   ABOUT STATEMENT (large pull-quote at bottom of about)
   ===================================================================== */
.about-statement {
    margin-top: 96px;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 9vw, 8.5rem);
    line-height: .9;
    letter-spacing: -.04em;
    color: var(--ink-3);
    text-align: right;
}
.as-em { color: var(--amber); }


/* ── Bold copy highlights ── */
.about-copy p strong,
.sf-right p strong,
.svc p strong,
.pstep-body p strong,
.contact-sub strong {
    font-weight: 700;
    color: var(--ink);           /* full-brightness ink vs muted paragraph text */
}

/* =====================================================================
   MOBILE — COMPREHENSIVE FIX PASS
   Fixes horizontal overflow, corrects dead responsive rules,
   adds 1100px and 380px breakpoints, and guards all text overflow.
   ===================================================================== */

/* ── Global overflow guards ── */
html { overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }

/* Text overflow safety on any element that could bleed */
.stat-val,
.hs-val,
.about-statement,
.about-section-title,
.services-title,
.work-section-title,
.process-title,
.sf-left h3,
.pstep-body h3,
.svc h3,
.footer-name {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Contact title must never break mid-word — font-size handles overflow */
.contact-title {
    overflow-wrap: normal;
    word-break: normal;
}

/* Work domains — ensure ellipsis clipping works */
.wr-domain {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── 1100px — tighten container before it starts cramping ── */
@media (max-width: 1100px) {
    .container,
    .header-inner { padding-left: 32px; padding-right: 32px; }
    .hero-container { padding-left: 32px; padding-right: 32px; }

    .sf-left h3 { font-size: clamp(2rem, 5vw, 4.5rem); }
    .stat-val   { font-size: 3.25rem; }
}

/* ── 1040px — supplement existing rules ── */
@media (max-width: 1040px) {
    .about-statement {
        margin-top: 64px;
        font-size: clamp(2.5rem, 7vw, 6rem);
    }
}

/* ── 860px — supplement existing rules ── */
@media (max-width: 860px) {
    /* Switch statement to left-align — right-align looks crushed on tablet */
    .about-statement { text-align: left; margin-top: 56px; }

    /* Section titles — cap growth before viewport gets too narrow */
    .services-title,
    .work-section-title,
    .process-title,
    .contact-title { font-size: clamp(2rem, 9vw, 6rem); }

    .stat-val { font-size: 3rem; }
}

/* ── 768px — supplement + fix dead rules ── */
@media (max-width: 768px) {
    /* Stack label above chips on mobile */
    .services-extras {
        flex-direction: column !important;
        gap: 14px;
        margin-top: 40px;
    }
    .se-label { flex: none; padding-top: 0; }
    .se-chips {
        flex-wrap: wrap;
        gap: 6px;
    }
    .se-chip {
        font-size: .74rem;
        padding: 7px 12px;
        border-radius: 100px;
    }

    /* About statement */
    .about-statement { text-align: left; margin-top: 48px; }

    /* Consolidate conflicting pstep rules — one winner at 768px */
    .pstep     { grid-template-columns: 70px 1fr; gap: 0 20px; padding: 24px 0; }
    .pstep-n   { font-size: 2.25rem; }

    /* Stat values on tablet */
    .stat-val  { font-size: 2.75rem; }

    /* sf-left heading */
    .sf-left h3 { font-size: clamp(1.75rem, 7vw, 3.5rem); }

    /* Hero location — shrink text */
    .hero-location { font-size: .72rem; }
    .hero-location span { font-size: .72rem; }
}

/* ── 480px — supplement existing rules ── */
@media (max-width: 480px) {
    /* Stat text labels "On-Time" / "Zero" need tighter sizing */
    .stat-val   { font-size: 2.25rem; }
    .stat-text  { font-size: 2rem !important; }

    /* Prevent long stat labels overflowing */
    .about-stats { max-width: 100%; overflow: hidden; }
    .stat-row    { overflow: hidden; }

    /* About statement */
    .about-statement {
        font-size: clamp(2.25rem, 11vw, 3.5rem);
        text-align: left;
        margin-top: 40px;
    }

    /* Process steps */
    .pstep       { grid-template-columns: 52px 1fr; gap: 0 16px; padding: 20px 0; }
    .pstep-n     { font-size: 1.75rem; }
    .pstep-body h3 { font-size: 1.1rem; }
    .pstep-body p  { font-size: .84rem; }

    /* Services */
    .sf-left h3  { font-size: clamp(1.75rem, 9vw, 3rem); }
    .svc h3      { font-size: 1.2rem; }
    .svc p       { font-size: .83rem; }

    /* Work */
    .wr-domain   { font-size: .9rem; }
    .wr-n        { font-size: .6rem; }
    .wr-visit    { font-size: .75rem; }

    /* Hero tagline — kill the forced line-break */
    .hero-tagline     { font-size: .875rem; }
    .hero-tagline br  { display: none; }

    /* Form */
    .form-shell  { padding: 20px 14px; }
    .step-title  { font-size: 1.25rem; }

    /* Footer */
    .footer-name { font-size: 1.5rem; }
}

/* ── 380px — very small phones (iPhone SE, Galaxy A series) ── */
@media (max-width: 380px) {
    .container,
    .header-inner  { padding-left: 14px; padding-right: 14px; }
    .hero-container { padding-left: 14px; padding-right: 14px; }

    .section        { padding: 52px 0; }

    /* Typography scale-down */
    .hero-headline  { font-size: clamp(1.75rem, 9vw, 2.5rem); }
    .hero-tagline   { font-size: .82rem; }
    .hero-status    { font-size: .72rem; }

    .about-section-title { font-size: clamp(1.75rem, 9vw, 3rem); }
    .about-statement     { font-size: clamp(2rem, 10vw, 3rem); margin-top: 32px; }

    .stat-val            { font-size: 1.875rem; }
    .stat-text           { font-size: 1.625rem !important; }
    .stat-key            { font-size: .62rem; }

    .sf-left h3          { font-size: clamp(1.5rem, 8vw, 2.5rem); }
    .svc h3              { font-size: 1.1rem; }

    .process-title       { font-size: clamp(1.75rem, 9vw, 3rem); }
    .pstep               { grid-template-columns: 44px 1fr; gap: 0 12px; padding: 18px 0; }
    .pstep-n             { font-size: 1.5rem; }
    .pstep-body h3       { font-size: 1rem; }

    .work-section-title  { font-size: clamp(1.75rem, 9vw, 3rem); }
    .work-row            { grid-template-columns: 22px minmax(0,1fr) auto; gap: 0 8px; }
    .wr-n                { display: none; }
    .wr-domain           { font-size: .85rem; }
    .wr-visit            { font-size: .7rem; }

    .contact-title       { font-size: clamp(1.75rem, 9vw, 3rem); }
    .form-shell          { padding: 16px 12px; border-radius: 8px; }
    .step-title          { font-size: 1.1rem; }
    .choice-label        { font-size: .8rem; padding: 11px 8px; min-height: 44px; }

    /* Mobile overlay nav */
    .on-link             { font-size: clamp(1.5rem, 7vw, 2.5rem); }
    .on-cta              { padding: 14px 32px; font-size: .95rem; }

    /* Footer */
    .footer-name    { font-size: 1.25rem; }
    .footer-tagline { font-size: .8rem; }
}

/* =====================================================================
   SERVICES + WORK — MOBILE REDESIGN  (overrides all previous rules)
   ===================================================================== */

@media (max-width: 768px) {

    /* ───────────────────────────────────────────────
       SERVICES
    ─────────────────────────────────────────────── */

    /* Featured card: simple flex column */
    .sf {
        display: flex !important;
        flex-direction: column;
        padding: 36px 0 0;
        gap: 0;
        border-bottom: none;
    }
    .sf-left {
        padding-right: 0;
        border-right: none;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 20px;
        justify-content: flex-start;
        gap: 12px;
    }
    .sf-left h3 {
        font-size: clamp(2.25rem, 9.5vw, 4rem);
        line-height: .9;
    }
    .sf-right {
        padding-left: 0;
        padding-top: 0;
        align-items: flex-start;
    }
    .sf-right p {
        font-size: .9rem;
        line-height: 1.75;
        padding-bottom: 36px;
        border-bottom: 1px solid var(--border);
        max-width: 100%;
    }

    /* Trio: clean vertical stack, no grid weirdness */
    .svc-trio {
        display: flex !important;
        flex-direction: column;
    }
    .svc-trio .svc {
        border-right: none !important;
        border-top: 1px solid var(--border);
        border-bottom: none;
        padding: 28px 0 !important;
        grid-column: auto !important;
    }
    .svc-trio .svc:last-child {
        border-bottom: 1px solid var(--border);
    }
    .svc-n    { margin-bottom: 14px; }
    .svc h3   { font-size: 1.125rem; margin-bottom: 10px; }
    .svc p    { font-size: .875rem; line-height: 1.72; }

    /* ───────────────────────────────────────────────
       WORK ROWS — flex column stack, no more grid
    ─────────────────────────────────────────────── */

    .work-row {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 28px 0;
        /* keep for the amber fill effect */
        position: relative;
        overflow: hidden;
    }

    /* Number: small decorative tag */
    .wr-n {
        font-size: .62rem;
        letter-spacing: .16em;
        color: var(--ink-3);
        margin-bottom: 6px;
        display: block;
    }

    /* Domain: wraps naturally, no ellipsis */
    .wr-domain {
        font-size: 1.2rem;
        font-weight: 800;
        line-height: 1.15;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        width: 100%;
        margin-bottom: 4px;
        display: block;
    }

    /* Category: show it again, small */
    .wr-cat {
        display: block !important;
        font-size: .65rem;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--ink-3);
        margin-bottom: 10px;
    }

    /* Description: full width */
    .wr-desc {
        grid-column: unset !important;
        font-size: .84rem;
        line-height: 1.65;
        color: var(--ink-3);
        width: 100%;
        padding-bottom: 12px;
        display: block;
    }

    /* Visit link: bottom */
    .wr-visit {
        font-size: .78rem;
        gap: 5px;
        color: var(--ink-2);
        align-self: flex-start;
    }

    /* Hover colour overrides still apply on flex children */
    .work-row:hover .wr-n      { color: rgba(12,11,9,.5); }
    .work-row:hover .wr-domain { color: #0c0b09; }
    .work-row:hover .wr-cat    { color: rgba(12,11,9,.55); }
    .work-row:hover .wr-desc   { color: rgba(12,11,9,.55); }
    .work-row:hover .wr-visit  { color: rgba(12,11,9,.6); }
}

@media (max-width: 480px) {
    .wr-domain  { font-size: 1.05rem; }
    .sf-left h3 { font-size: clamp(2rem, 10vw, 3.25rem); }
    .svc h3     { font-size: 1.05rem; }
}

@media (max-width: 480px) {
    .wr-domain  { font-size: 1.05rem; }
    .sf-left h3 { font-size: clamp(2rem, 10vw, 3.25rem); }
    .svc h3     { font-size: 1.05rem; }
}

@media (max-width: 380px) {
    .wr-domain  { font-size: .95rem; }
    .sf-left h3 { font-size: clamp(1.75rem, 9.5vw, 2.75rem); }
}
