﻿/* ==========================================================================
   SmitCodes — design system
   Tokens → base → layout → components → sections → pages → motion
   ========================================================================== */

:root {
    --bg: #030303;
    --bg-2: rgba(255, 255, 255, .015);
    --surface: rgba(255, 255, 255, .03);
    --surface-2: #14161b;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .18);
    --text: #f1f3f6;
    --muted: #9aa3b0;
    --faint: #6c7584;
    --accent: #79edfc;          /* from the SmitCodes logo gradient */
    --accent-2: #55a9ff;
    --accent-ink: #04141a;
    --paper: #eceff3;
    --paper-2: #e1e6ec;
    --ink: #0b0d11;
    --ink-muted: #4b5563;
    --ok: #5ee0a0;
    --err: #ff8a8a;

    --font-display: 'Syne', 'Segoe UI', sans-serif;
    --font-accent: 'Instrument Serif', Georgia, serif;
    --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --wrap: 1240px;
    --gutter: clamp(20px, 5vw, 48px);
    --section: clamp(72px, 11vw, 150px);
    --radius: 24px;
    --radius-sm: 10px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --nav-h: 88px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
}

/* Ambient glow and grain, matching the home page */
body::before {
    content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(50vw 50vw at 0% 0%, rgba(10, 63, 176, .34), transparent 70%),
        radial-gradient(42vw 42vw at 100% 100%, rgba(10, 126, 168, .28), transparent 70%);
}
body::after {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)"/%3E%3C/svg%3E');
}

body {
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--accent); color: var(--accent-ink); }

@view-transition { navigation: auto; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: clamp(48px, 7vw, 96px); }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--accent); color: var(--accent-ink);
    padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
.display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.04;
}
h1.display { font-size: clamp(2.6rem, 7vw, 6rem); }
h2.display { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
.display em {
    font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -.01em; padding-right: .1em;
    background: linear-gradient(135deg, #fff 5%, var(--accent) 55%, var(--accent-2) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
h1, h2, h3, h4 { font-family: var(--font-display); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 60ch; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
    --h: 52px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: var(--h); padding: 0 26px; border-radius: 999px;
    font-weight: 700; font-size: .98rem; letter-spacing: .01em; white-space: nowrap;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }

.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -10px rgba(121, 237, 252, .6); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .05); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c2430; }
.btn-sm { --h: 42px; padding: 0 20px; font-size: .92rem; }

.text-link {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
    border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
    transition: border-color .25s, color .25s, gap .25s var(--ease);
}
.text-link:hover { border-color: var(--accent); color: var(--accent); gap: 12px; }

/* ---------- Navigation ---------- */
/* Floating pill, same as the home page: top on desktop, bottom on phones */
.nav {
    position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 100;
    width: 95%; max-width: 1400px; padding: 1.2rem 3rem;
    display: flex; justify-content: space-between; align-items: center; gap: 4rem;
    background: rgba(15, 15, 15, .4); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .05); border-radius: 100px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3);
    transition: all .6s var(--ease);
}
.nav.is-scrolled {
    width: 72%; max-width: 980px; padding: .8rem 1.5rem .8rem 2.5rem;
    background: rgba(15, 15, 15, .75); border-color: rgba(255, 255, 255, .15);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8);
}
.nav-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-link {
    position: relative; color: #fff; opacity: .8; font-size: .9rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; transition: opacity .3s;
}
.nav-link::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
    background: var(--accent); transform: scaleX(0); transition: transform .4s var(--ease);
}
.nav-link:hover, .nav-link[aria-current] { opacity: 1; }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }
.nav-btn {
    background: #fff; color: #000; padding: .8rem 1.5rem; border-radius: 50px; white-space: nowrap;
    font-weight: 700; font-size: .9rem; text-transform: uppercase; transition: background .3s, transform .3s;
}
.nav-btn:hover { background: var(--accent); transform: scale(1.05); }

@media (max-width: 1100px) {
    .nav { padding: 1rem 1.6rem; gap: 1.5rem; }
    .nav.is-scrolled { width: 92%; padding: .7rem 1rem .7rem 1.6rem; }
    .nav-links { gap: 1.4rem; }
    .nav-link { font-size: .8rem; }
}
@media (max-width: 768px) {
    .nav, .nav.is-scrolled {
        top: auto; bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
        width: max-content; max-width: 95%; padding: .6rem 1rem; gap: 1.2rem;
        box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .5);
    }
    .nav-links { gap: .8rem; }
    .nav-link { font-size: .75rem; }
    .nav-btn { padding: .5rem 1rem; font-size: .75rem; }
    .nav-logo { font-size: 1.2rem; }
    .hide-mobile { display: none; }
    :root { --nav-h: 16px; }
    .footer { padding-bottom: 6.5rem !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(40px, 7vw, 96px)) 0 clamp(56px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
    opacity: .55;
}
.hero-bg::after {
    content: ''; position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; right: -15vw; top: -20vw;
    background: radial-gradient(circle, rgba(85, 169, 255, .22), transparent 62%);
    animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-6vw, 6vw, 0) scale(1.08); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: clamp(20px, 2.6vw, 32px); justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--faint); }
.hero-note li { display: inline-flex; align-items: center; gap: 8px; }
.hero-note li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.status-pill {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-strong);
    border-radius: 999px; font-size: .85rem; color: var(--muted);
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(94, 224, 160, .6); animation: ping 2.4s infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(94, 224, 160, 0); } }

/* Browser-frame showcase */
.showcase { position: relative; padding-bottom: 14%; }
.frame {
    border-radius: 12px; overflow: hidden; background: var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02);
}
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a303b; }
.frame-url { margin-left: 10px; flex: 1; font-size: .72rem; color: var(--faint); background: rgba(0, 0, 0, .3); border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; height: auto; aspect-ratio: 1865 / 944; object-fit: cover; }
.showcase .frame-main { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .8s var(--ease); }
.showcase:hover .frame-main { transform: perspective(1400px) rotateY(-2deg) rotateX(0); }
.showcase .frame-back { position: absolute; width: 62%; right: -2%; bottom: 0; transform: translateY(0); z-index: 2; }
.showcase .frame-back { animation: float 7s ease-in-out infinite alternate; }
@keyframes float { to { transform: translateY(-10px); } }
.showcase-tag {
    position: absolute; left: -2%; bottom: 4%; z-index: 3; display: grid; gap: 2px;
    background: rgba(12, 14, 18, .92); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 16px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.showcase-tag small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.showcase-tag strong { font-weight: 500; font-size: .95rem; }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .showcase { padding-bottom: 12%; max-width: 640px; }
    .showcase .frame-main { transform: none; }
}
@media (max-width: 560px) {
    .hero-actions .btn { width: 100%; }
    .showcase-tag { display: none; }
}

/* ---------- Audience strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; padding-block: 26px; }
.strip-label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--font-display); font-size: 1.35rem; color: var(--muted); }
.strip li:not(:last-child)::after { content: '/'; margin-left: 28px; color: var(--line-strong); }
@media (max-width: 640px) { .strip li:not(:last-child)::after { display: none; } .strip ul { gap: 6px 20px; font-size: 1.15rem; } }

/* ---------- Services ---------- */
.services-list { border-top: 1px solid var(--line); }
.service {
    display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); align-items: start;
    padding-block: clamp(28px, 3.6vw, 48px); border-bottom: 1px solid var(--line); position: relative;
    transition: padding .4s var(--ease);
}
.service::before { content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1); background: linear-gradient(90deg, rgba(121, 237, 252, .06), transparent 70%); opacity: 0; transition: opacity .4s; z-index: -1; }
.service:hover::before { opacity: 1; }
.service-num { font-size: .85rem; color: var(--faint); letter-spacing: .1em; padding-top: .6em; font-variant-numeric: tabular-nums; }
.service h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.1; letter-spacing: -.01em; }
.service p { color: var(--muted); margin-top: 12px; max-width: 46ch; }
.service ul { display: grid; gap: 10px; padding-top: .5em; }
.service li { display: flex; gap: 12px; align-items: baseline; color: var(--text); font-size: .98rem; }
.service li::before { content: ''; flex: none; width: 14px; height: 1px; background: var(--accent); transform: translateY(-4px); }
@media (max-width: 860px) {
    .service { grid-template-columns: 1fr; gap: 14px; }
    .service-num { padding: 0; }
}

/* ---------- Work ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter button {
    padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .92rem; color: var(--muted);
    transition: all .25s var(--ease);
}
.filter button:hover { color: var(--text); border-color: var(--text); }
.filter button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.project {
    position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); overflow: hidden;
    transition: transform .5s var(--ease), border-color .3s, box-shadow .5s;
}
.project:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.project-media { overflow: hidden; border-bottom: 1px solid var(--line); background: #000; }
.project-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1s var(--ease); }
.project:hover .project-media img { transform: scale(1.04); }
.project-body { padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 14px; flex: 1; align-content: start; }
.project-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.project h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 2.8vw, 2.5rem); line-height: 1.05; }
.project p { color: var(--muted); font-size: .98rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li, .tag { font-size: .8rem; padding: 4px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); }
.project-links { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 6px; }
.project-link-main::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* whole card clickable → case study */
.project-links a:not(.project-link-main) { position: relative; z-index: 2; }
.project[hidden] { display: none; }

.work-more { margin-top: 28px; color: var(--faint); font-size: .95rem; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Light section (businesses) ---------- */
.on-paper { background: rgba(255, 255, 255, .02); border-block: 1px solid var(--line); }

.biz-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.biz-copy { display: grid; gap: 24px; justify-items: start; }
.check-list { display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
    content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2304141a' stroke-width='3' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat;
}
@media (max-width: 900px) { .biz-split { grid-template-columns: 1fr; } }

/* ---------- Layout concept mockups ---------- */
.mock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mock-card { display: grid; gap: 12px; }
.mock {
    --h: 200;
    --c: hsl(var(--h) 55% 45%);
    --c-soft: hsl(var(--h) 40% 14%);
    background: #0d1014; color: #e9edf2; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong);
    box-shadow: 0 24px 48px -28px rgba(10, 20, 30, .55); font-size: 9px; line-height: 1.3; transition: transform .5s var(--ease), box-shadow .5s;
}
.mock-card:hover .mock { transform: translateY(-4px); box-shadow: 0 34px 60px -28px rgba(10, 20, 30, .6); }
.mock-nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mock-nav b { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 8px; }
.mock-nav span { padding: 3px 8px; border-radius: 99px; background: var(--c); color: #fff; font-weight: 500; }
.mock-hero { padding: 18px 12px 16px; background: radial-gradient(120% 120% at 100% 0%, var(--c) -30%, var(--c-soft) 55%); display: grid; gap: 7px; }
.mock-hero h4 { font-family: var(--font-display); font-weight: 400; font-size: 18px; line-height: 1; max-width: 12ch; }
.mock-hero p { opacity: .7; max-width: 26ch; }
.mock-hero i { justify-self: start; font-style: normal; padding: 4px 10px; border-radius: 99px; background: #fff; color: #0b0d11; font-weight: 600; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
.mock-row div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); border-radius: 6px; padding: 8px 7px; display: grid; gap: 3px; }
.mock-row div::before { content: ''; height: 18px; border-radius: 4px; background: linear-gradient(135deg, var(--c), transparent 120%); opacity: .8; margin-bottom: 3px; }
.mock-row strong { font-weight: 600; }
.mock-row span { opacity: .55; }
.mock-caption h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.mock-caption p { font-size: .92rem; color: var(--muted); margin-top: 4px; }
.mock-flag { display: inline-block; margin-top: 8px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); opacity: .8; }
@media (max-width: 560px) { .mock-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step { position: relative; padding: 28px clamp(14px, 1.6vw, 24px) 8px 0; display: grid; gap: 10px; align-content: start; }
.step::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--accent); transition: width 1.2s var(--ease); }
.step.in::before { width: 100%; }
.step-num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--accent); }
.step h3 { font-weight: 500; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) {
    .process { grid-template-columns: 1fr; border-top: 0; }
    .step { grid-template-columns: 70px 1fr; grid-template-areas: "n h" "n p"; column-gap: 12px; row-gap: 6px; padding: 24px 0; border-top: 1px solid var(--line); }
    .step-num { grid-area: n; }
    .step h3 { grid-area: h; }
    .step p { grid-area: p; }
    .step::before { display: none; }
}

/* ---------- Why / About ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.why-card { position: relative; overflow: hidden; padding: clamp(24px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(170deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); display: grid; gap: 12px; align-content: start; transition: border-color .4s, transform .4s var(--ease), box-shadow .4s; }
.why-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(121, 237, 252, .09), transparent 50%); }
.why-card:hover { border-color: rgba(255, 255, 255, .22); transform: translateY(-8px); box-shadow: 0 20px 45px -15px rgba(0, 0, 0, .7), 0 0 30px -10px rgba(121, 237, 252, .12); }
.why-card:hover::before { opacity: 1; }
.why-card .icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(121, 237, 252, .1); color: var(--accent); }
.why-card .icon svg { width: 22px; height: 22px; }
.why-card h3 { font-weight: 500; font-size: 1.2rem; }
.why-card p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; margin-top: clamp(56px, 8vw, 110px); padding-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.about img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line-strong); filter: grayscale(.2); }
.about-copy { display: grid; gap: 18px; justify-items: start; }
.about-copy blockquote { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.01em; }
.about-copy p { color: var(--muted); max-width: 56ch; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about img { max-width: 260px; } }

/* ---------- Contact / form ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-side { display: grid; gap: 28px; position: sticky; top: calc(var(--nav-h) + 24px); }
.contact-methods { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-methods a, .contact-methods div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease), color .2s; }
.contact-methods a:hover { padding-left: 8px; color: var(--accent); }
.contact-methods small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.contact-methods span { font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-methods svg { width: 18px; height: 18px; flex: none; color: var(--faint); }

.form { display: grid; gap: 20px; padding: clamp(22px, 3.2vw, 42px); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: .85rem; color: var(--muted); font-weight: 500; }
.field label .opt { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s; font-size: 1rem; -webkit-appearance: none; appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239aa3b0' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.field select option { background: #101318; color: #f1f3f6; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(121, 237, 252, .15); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: .84rem; min-height: 0; }
.field-error:empty { display: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot small { color: var(--faint); font-size: .85rem; flex: 1; min-width: 200px; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .96rem; border: 1px solid; }
.form-status.is-success { color: var(--ok); border-color: rgba(94, 224, 160, .4); background: rgba(94, 224, 160, .07); }
.form-status.is-error { color: var(--err); border-color: rgba(255, 138, 138, .4); background: rgba(255, 138, 138, .07); }
.form-status a { text-decoration: underline; }
.btn[disabled] { opacity: .6; cursor: progress; pointer-events: none; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-side { position: static; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 36px; align-items: center; color: var(--faint); font-size: .9rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a:hover { color: var(--accent); }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(48px, 8vw, 110px)) 0 clamp(40px, 6vw, 80px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero .wrap { display: grid; gap: 24px; justify-items: start; }
.crumbs { display: flex; gap: 10px; font-size: .88rem; color: var(--faint); }
.crumbs a:hover { color: var(--accent); }

/* ---------- Business benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.benefit { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: background .3s; }
.benefit:hover { background: rgba(255, 255, 255, .025); }
.benefit .n { color: var(--accent); font-size: .85rem; letter-spacing: .1em; }
.benefit h3 { font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.benefit p { color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .benefits { grid-template-columns: 1fr; } }

.industry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.industry:nth-child(even) .mock-card { order: 2; }
.industry .mock { font-size: 10px; }
.industry .mock-hero h4 { font-size: 24px; }
.industry-copy { display: grid; gap: 16px; justify-items: start; }
.industry-copy h3 { font-weight: 700; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.1; }
.industry-copy p { color: var(--muted); }
.industry-copy .check-list { gap: 10px; }
@media (max-width: 860px) { .industry { grid-template-columns: 1fr; } .industry:nth-child(even) .mock-card { order: 0; } }

.cta-band { text-align: center; display: grid; gap: 24px; justify-items: center; padding-block: clamp(72px, 10vw, 140px); }
.cta-band h2 { max-width: 16ch; }

/* ---------- Case study ---------- */
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-block: 28px; border-block: 1px solid var(--line); margin-top: 8px; width: 100%; }
.case-meta dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.case-meta dd { margin-top: 4px; }
.case-cover { margin-top: clamp(24px, 4vw, 48px); }
.case-body { display: grid; gap: clamp(40px, 6vw, 80px); }
.case-block { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(20px, 5vw, 80px); }
.case-block h2 { font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; }
.case-block h2 small { display: block; font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.prose { display: grid; gap: 16px; color: var(--muted); max-width: 66ch; }
.prose strong { color: var(--text); font-weight: 500; }
.prose .check-list li::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2304141a' stroke-width='3' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat; }
.prose .check-list li { color: var(--text); }
.case-next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: 32px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-block { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.nf > div { display: grid; gap: 22px; justify-items: center; }

/* ---------- Motion: reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Loading / page-load */
.js .hero-copy > * { animation: rise .9s var(--ease) both; }
.js .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.js .hero-copy > *:nth-child(5) { animation-delay: .32s; }
.js .showcase { animation: rise 1.1s .2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
    .js .reveal { opacity: 1; transform: none; }
    .progress { display: none; }
    @view-transition { navigation: none; }
}


.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Custom cursor (added by main.js) ---------- */
.cursor, .cursor-follower { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform; }
.cursor { width: 10px; height: 10px; background: var(--accent); z-index: 9999; transition: width .25s, height .25s, background-color .25s, opacity .25s; }
.cursor-follower { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .3); z-index: 9998; transition: background-color .25s, border-color .25s, opacity .25s; }
.cursor.active { width: 20px; height: 20px; background: rgba(121, 237, 252, .25); border: 1px solid var(--accent); }
.cursor-follower.active { background: rgba(255, 255, 255, .08); border-color: rgba(121, 237, 252, .7); }
body.has-cursor .cursor, body.has-cursor .cursor-follower { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
    body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

.progress { height: 3px; z-index: 150; }

/* ---------- MoonDim page ---------- */
.moon-hero .wrap { justify-items: stretch; }
.moon-hero .hero-grid { align-items: center; }
.moon-hero .hero-copy { justify-items: start; }
.moon-shot { display: flex; justify-content: center; }
.moon-shot img { width: min(100%, 400px); height: auto; border-radius: 20px; border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -30px rgba(47, 128, 255, .55); }
.download-note { font-size: .9rem; color: var(--faint); }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.shots figure { display: grid; gap: 12px; }
.shots img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line-strong); }
.shots figcaption { font-size: .92rem; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.info-grid ul { display: grid; gap: 10px; color: var(--muted); font-size: .98rem; }
.info-grid li { position: relative; padding-left: 26px; }
.info-grid li::before { content: ''; position: absolute; left: 0; top: .8em; width: 14px; height: 1px; background: var(--accent); }
.info-grid strong { color: var(--text); font-weight: 600; }
.why-card h3 { font-weight: 700; }
.why-card a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.hash { display: block; font-family: Consolas, 'Courier New', monospace; font-size: .86rem; color: var(--text); overflow-wrap: anywhere; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .35); }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; max-width: 360px; } }

/* ---------- Privacy page ---------- */
.legal { display: grid; gap: 14px; max-width: 72ch; color: var(--muted); }
.legal h2 { font-weight: 700; font-size: 1.35rem; color: var(--text); margin-top: 18px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal ul { display: grid; gap: 10px; }
.legal li { position: relative; padding-left: 26px; }
.legal li::before { content: ''; position: absolute; left: 0; top: .8em; width: 14px; height: 1px; background: var(--accent); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
