/* ===== Theme ===== */
:root {
  --bg: #08080a;
  --surface: #121214;
  --surface-2: #1a1a1d;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --faint: #71717a;
  --grad: linear-gradient(120deg, #ffffff 0%, #a1a1aa 100%);
  --radius: 18px;
  --max: 1140px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 22px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.015em; }
img { max-width: 100%; display: block; }
::selection { background: rgba(255,255,255,.25); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border-strong);
  font: inherit; font-weight: 500; font-size: .94rem; cursor: pointer; color: var(--text); background: transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: #09090b; border-color: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.0); }
.btn-light:hover { box-shadow: 0 8px 30px -8px rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.btn-glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.16); }
.btn-sm { padding: 8px 16px; font-size: .86rem; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8,8,10,.7); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav-links { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.02); }
.nav-links a { color: var(--muted); font-size: .88rem; padding: 6px 13px; border-radius: 999px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,.08); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: transform .2s; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; border: 0; padding: 0; background: none; }
  .nav-links a { padding: 13px 0; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-links a.active { background: none; }
  .nav .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ===== Shared bits ===== */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-bottom: 16px; }
.eyebrow.pill { color: var(--muted); padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(255,255,255,.03); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; position: relative; flex-shrink: 0; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { transform: scale(2.8); opacity: 0; } }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.lead.big { font-size: 1.25rem; }
.muted { color: var(--muted); }
.label { font-size: .8rem; color: var(--faint); margin-bottom: 16px; display: block; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.updated { font-size: .82rem; color: var(--faint); margin-top: 8px; }
.section { margin-top: 120px; }
.section-intro { margin-bottom: 36px; max-width: 720px; }
.section-intro.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.page { padding-top: 80px; }
.page .section { margin-top: 88px; }
.page .section:first-child { margin-top: 0; }
.page-hero { position: relative; }
.page-hero::before { content: ""; position: absolute; top: -140px; left: -10%; width: min(620px, 110%); height: 420px; background: radial-gradient(closest-side, rgba(255,255,255,.06), transparent); pointer-events: none; z-index: -1; }

/* ===== Chips ===== */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .86rem; }
.chips.sm li { font-size: .76rem; padding: 3px 10px; color: var(--muted); background: rgba(255,255,255,.03); }

/* ===== Cards ===== */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .2s; }
.card:hover { border-color: var(--border-strong); }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--muted); font-size: .95rem; }
.card p:last-child { margin-bottom: 0; }
.card .small { font-size: .78rem; color: var(--faint); margin-bottom: 10px; display: block; text-transform: uppercase; letter-spacing: .08em; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.list li { color: var(--muted); font-size: .9rem; padding-left: 18px; position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--faint); }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; font-weight: 500; }
.statement { font-size: 1.1rem; color: var(--text); margin: 0; line-height: 1.5; }
.gradient-card { position: relative; overflow: hidden; background: #fff; color: #0a0a0a; border-radius: var(--radius); padding: 36px; }
.gradient-card::after { content: ""; position: absolute; inset: 0; background: none; pointer-events: none; }
.gradient-card .small { color: #52525b; font-size: .78rem; display: block; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; }
.gradient-card p { font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 500; margin: 0; max-width: 820px; letter-spacing: -0.01em; }

/* ===== Home: hero ===== */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 420px at 50% -10%, rgba(255,255,255,.08), transparent 70%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-top: 6px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } .hero { padding-top: 64px; } }

.hero-panel { background: linear-gradient(180deg, rgba(26,26,29,.9), rgba(18,18,20,.9)); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset; overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.panel-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3f3f46; }
.panel-bar em { font-style: normal; font-family: var(--mono); font-size: .75rem; color: var(--faint); margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checks { list-style: none; margin: 0; padding: 10px 8px; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 11px 10px; font-size: .9rem; color: #d4d4d8; border-radius: 10px; }
.checks li:hover { background: rgba(255,255,255,.03); }
.checks li svg { flex-shrink: 0; }
.checks li span { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: #4ade80; background: rgba(34,197,94,.1); padding: 2px 8px; border-radius: 6px; }
.panel-log { border-top: 1px solid var(--border); padding: 14px 18px; display: grid; gap: 6px; background: rgba(0,0,0,.25); }
.panel-log code { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.panel-log code b { color: var(--text); font-weight: 500; }
.panel-log code.ok { color: #4ade80; }
@media (max-width: 480px) { .checks li { font-size: .84rem; } .checks li span { display: none; } }

/* ===== Tools marquee ===== */
.tools { display: flex; align-items: center; gap: 28px; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tools-label { font-size: .78rem; color: var(--faint); white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; }
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { color: var(--muted); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .tools { flex-direction: column; align-items: stretch; gap: 14px; } .tools-label { text-align: center; } }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stats div { padding: 28px 24px; border-left: 1px solid var(--border); }
.stats div:first-child { border-left: 0; }
.stats strong { display: block; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--border); } }

/* ===== Bento services ===== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.b-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; overflow: hidden; transition: border-color .25s, transform .25s; }
.b-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 160px at 0% 0%, rgba(255,255,255,.05), transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.b-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.b-card:hover::before { opacity: 1; }
.b-wide { grid-column: span 2; }
.b-card h3 { margin: 18px 0 10px; font-size: 1.2rem; }
.b-card p { color: var(--muted); font-size: .95rem; max-width: 520px; }
.b-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); color: var(--text); }
.b-icon svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; } .b-wide { grid-column: span 2; } }
@media (max-width: 580px) { .bento { grid-template-columns: 1fr; } .b-wide { grid-column: auto; } }

/* ===== Work grid (home) ===== */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .25s, transform .25s; }
.work-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.work-card h3 { font-size: 1.3rem; }
.work-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.work-meta { display: flex; justify-content: space-between; align-items: center; }
.tag { font-size: .74rem; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 10px; }
.arrow { color: var(--faint); transition: color .2s, transform .2s; }
.work-card:hover .arrow { color: var(--text); transform: translate(2px,-2px); }
.work-hero { grid-row: span 2; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, rgba(255,255,255,.45), var(--border) 55%) border-box; border: 1px solid transparent; }
.work-hero h3 { font-size: 1.8rem; }
.mini-ui { margin: 8px 0 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.mini-row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.mini-row b { color: #4ade80; font-weight: 500; }
.mini-bar { height: 8px; border-radius: 99px; background: rgba(239,68,68,.35); overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #4ade80); border-radius: 99px; }
.mini-cols { display: flex; gap: 14px; margin-top: 12px; font-size: .74rem; color: var(--faint); }
.mini-cols span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 6px; }
.mini-cols .p::before { background: #4ade80; } .mini-cols .f::before { background: #ef4444; } .mini-cols .b::before { background: #f59e0b; }
.work-hero .chips { margin-top: auto; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr 1fr; } .work-hero { grid-column: span 2; grid-row: auto; } }
@media (max-width: 580px) { .work-grid { grid-template-columns: 1fr; } .work-hero { grid-column: auto; } }

/* ===== Process ===== */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.process li { padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), transparent); }
.process span { font-family: var(--mono); font-size: .8rem; color: var(--text); display: inline-block; margin-bottom: 26px; padding: 3px 9px; border-radius: 8px; background: rgba(255,255,255,.07); }
.process h3 { margin-bottom: 8px; }
.process p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ===== Projects page ===== */
.project { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: border-color .25s; scroll-margin-top: 90px; }
.project:hover { border-color: var(--border-strong); }
.project-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.project h3 { font-size: 1.35rem; margin: 0; }
.project .kind { font-size: .74rem; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 10px; }
.project p { color: var(--muted); font-size: .95rem; margin: 0; }
.project details { border-top: 1px solid var(--border); padding-top: 14px; }
.project summary { cursor: pointer; font-size: .88rem; font-weight: 500; color: var(--text); list-style: none; display: flex; justify-content: space-between; }
.project summary::-webkit-details-marker { display: none; }
.project summary::after { content: "+"; color: var(--faint); font-size: 1.1rem; line-height: 1; transition: transform .2s; }
.project details[open] summary::after { transform: rotate(45deg); }
.project details p { margin-top: 10px; }
.project .links { display: flex; gap: 18px; font-size: .9rem; margin-top: auto; padding-top: 4px; }
.project .links a { color: var(--text); font-weight: 500; }
.project .links a:hover { color: var(--muted); }
.project.featured { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, rgba(255,255,255,.45), var(--border) 55%) border-box; border: 1px solid transparent; }

/* ===== Timeline ===== */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 0; width: 1px; background: linear-gradient(var(--text), var(--border) 40%); }
.timeline li { position: relative; padding: 0 0 40px 36px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--faint); }
.timeline li.now::before { background: var(--text); border-color: var(--text); box-shadow: 0 0 0 5px rgba(255,255,255,.12); }
.timeline .when { font-family: var(--mono); font-size: .76rem; color: var(--faint); display: block; margin-bottom: 6px; }
.timeline h3 { margin-bottom: 6px; font-size: 1.15rem; }
.timeline p { color: var(--muted); font-size: .95rem; margin: 0; max-width: 640px; }

/* ===== Journal ===== */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.post-list a { display: flex; justify-content: space-between; gap: 20px; padding: 24px 26px; align-items: baseline; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.post-list a:hover { border-color: var(--border-strong); }
.post-list p { color: var(--muted); margin: 6px 0 0; font-size: .95rem; }
.post-list time { color: var(--faint); font-size: .8rem; font-family: var(--mono); white-space: nowrap; }
.prose { max-width: 700px; }
.prose p, .prose li { color: #d4d4d8; font-size: 1.06rem; line-height: 1.75; }
.prose h2 { font-size: 1.45rem; margin: 44px 0 14px; }
.prose code { font-family: var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .86em; }
.prose pre { font-family: var(--mono); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; overflow-x: auto; font-size: .86rem; color: var(--text); }
.prose a { border-bottom: 1px solid var(--faint); }

/* ===== Contact ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; gap: 36px; } }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-points li { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: .95rem; }
.contact-points svg { flex-shrink: 0; }
.form { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .form { padding: 20px; } }
.form label { display: grid; gap: 8px; font-size: .84rem; color: var(--muted); font-weight: 500; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: inherit; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.form .btn { justify-self: start; }
.form .hp { position: absolute; left: -9999px; }
.form-status { padding: 12px 14px; border-radius: 10px; font-size: .92rem; }
.form-status.ok { background: rgba(34,197,94,.12); color: #86efac; }
.form-status.err { background: rgba(239,68,68,.12); color: #fca5a5; }

/* ===== CTA panel ===== */
.cta-panel { position: relative; margin-top: 130px; border-radius: 28px; overflow: hidden; padding: clamp(40px, 7vw, 80px); background: #0e0e10; border: 1px solid var(--border-strong); isolation: isolate; }
.cta-glow { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 360px at 15% -20%, rgba(255,255,255,.12), transparent 70%);
}
.cta-glow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }
.cta-content { max-width: 640px; }
.cta-content .eyebrow { color: var(--muted); }
.cta-content h2 { font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,.75); font-size: 1.08rem; margin-bottom: 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.copy-email.copied { border-color: #4ade80; color: #4ade80; }

/* ===== Footer ===== */
.site-footer { position: relative; margin-top: 100px; border-top: 1px solid var(--border); padding-top: 64px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: .78rem; font-weight: 500; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-grid a:not(.logo) { display: block; color: var(--muted); font-size: .92rem; padding: 4px 0; transition: color .15s; }
.footer-grid a:not(.logo):hover { color: var(--text); }
.footer-brand p { color: var(--muted); font-size: .92rem; margin: 16px 0 18px; max-width: 320px; }
.availability { display: inline-flex; align-items: center; font-size: .82rem; color: var(--muted); border: 1px solid var(--border-strong); padding: 6px 12px; border-radius: 999px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--border); font-size: .85rem; color: var(--faint); }
.footer-bottom p { margin: 0; }
.to-top:hover { color: var(--text); }
.footer-wordmark { font-weight: 700; letter-spacing: -0.06em; line-height: .78; text-align: center; font-size: clamp(4rem, 19vw, 15.5rem); background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; margin-bottom: -0.08em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }

/* ===== 404 ===== */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error-page h1 { font-size: clamp(5rem, 16vw, 8rem); margin-bottom: 8px; }

/* ===== Motion ===== */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .pulse::after { animation: none; }
}
.arrow-link { color: var(--text); border-bottom: 1px solid var(--border-strong); }
.arrow-link:hover { border-color: var(--text); }
