/* IBM Plex Sans/Mono — self-hosted (CSP-friendly, no Google Fonts request) */
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Page styles
   ============================================================ */

:root {
  --bg: #0d0e11;
  --bg-2: #14151b;
  --bg-3: #181a21;
  --ink: #ECEDF0;
  --muted: #9ca0ab;
  --faint: #868a94;
  --line: rgba(255,255,255,0.09);
  --line-soft: rgba(255,255,255,0.06);
  --gold: #c9a24b;
  --gold-bright: #ddb867;
  --gold-glow: rgba(201,162,75,0.14);
  --sans: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  position: relative;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* subtle atmospheric glow */
/* slow-drifting gold aurora — fills the dark without a screensaver vibe */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  background:
    linear-gradient(135deg, rgba(201,162,75,0.15) 0%, rgba(201,162,75,0.03) 26%, transparent 52%, rgba(201,162,75,0.04) 78%, rgba(201,162,75,0.09) 100%),
    radial-gradient(135% 120% at 6% -12%, rgba(201,162,75,0.20), transparent 58%),
    radial-gradient(130% 120% at 104% 112%, rgba(201,162,75,0.11), transparent 58%);
  pointer-events: none;
  z-index: 0;
  /* Aurora runs constantly — keep on its own GPU layer to avoid per-frame promotion */
  will-change: transform;
  animation: aurora 26s ease-in-out infinite alternate;
}
/* faint grain so the black never reads as flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes aurora {
  0%   { transform: translate3d(-2%, -1.5%, 0) scale(1.04) rotate(0deg); }
  100% { transform: translate3d(3%, 2%, 0)     scale(1.12) rotate(1.5deg); }
}

::selection { background: var(--gold); color: #11120f; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(13,14,17,0.72);
  border-bottom: 1px solid var(--line-soft);
}
nav { transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
nav.scrolled {
  background: rgba(11,12,15,0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(0,0,0,0.42);
}
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0); transform-origin: 0 50%;
  z-index: 60; pointer-events: none;
  box-shadow: 0 0 12px rgba(201,162,75,0.55);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em; font-size: 19px; }
.brand .dot { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-item { display: none; }

.lang {
  display: flex; gap: 2px; font-family: var(--mono); font-size: 12px;
  border: 1px solid #676a73; border-radius: 6px; overflow: hidden;
}
.lang a {
  color: var(--faint);
  padding: 7px 11px; font-family: var(--mono); font-size: 12px; transition: all 0.2s;
}
.lang a.active { background: var(--gold); color: #11120f; font-weight: 600; }
.lang a:not(.active):hover { color: var(--ink); }

@media (min-width: 720px) { .nav-links .nav-item { display: inline; } }

/* ---------- Section scaffolding ---------- */
section { padding: 68px 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: none; }

.kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--gold); opacity: 0.6; }

h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 56px; }
.hero .kicker { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(2.9rem, 8vw, 5rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
  max-width: none;
}
.hero h1 .dot { color: var(--gold); }
.hero h1 .accent { color: var(--gold); }
.hero h1 .h1-title {
  display: block;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
}
.hero .statement {
  margin-top: 20px; font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  color: var(--ink); font-weight: 500; letter-spacing: -0.01em;
  line-height: 1.28; max-width: 24ch;
}
.hero .lead {
  margin-top: 18px; font-size: clamp(1rem, 1.9vw, 1.15rem);
  color: var(--muted); max-width: 56ch; line-height: 1.6;
}
.hero .availability {
  margin-top: 30px; font-family: var(--mono); font-size: 13px; color: var(--faint);
  display: inline-flex; align-items: center; gap: 10px;
}
.hero .availability .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,162,75,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(201,162,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,75,0); }
}

.cta-row { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  font-family: var(--mono); font-size: 13.5px; padding: 12px 20px;
  border-radius: 8px; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--gold); color: #11120f; font-weight: 600; }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { border: 1px solid #676a73; color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translate(2px,-2px); }

/* ---------- Hero grid + terminal ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr); gap: 54px; align-items: center; }
.hero-left { min-width: 0; }
.hero-right { min-width: 0; }
.hero .hero-right { animation-delay: 0.34s; }
.term {
  background: #0f1117;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 26px 64px rgba(0,0,0,0.5), 0 0 42px rgba(201,162,75,0.06);
  font-family: var(--mono);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.term-dot--red { background: #e0695a; }
.term-dot--yellow { background: #d8a64a; }
.term-dot--green { background: #5fb07a; }
.term-title { margin-left: 8px; font-size: 11.5px; color: var(--faint); }
.term-body {
  margin: 0; padding: 16px 18px 18px; font-size: 13px; line-height: 1.75;
  overflow-x: auto; color: var(--ink); white-space: pre; tab-size: 4;
}
.term-body code { font-family: inherit; }
.t-user { color: var(--gold); } .t-prompt { color: var(--gold-bright); } .t-path { color: var(--muted); }
.t-cmd { color: var(--ink); } .t-out { color: var(--muted); }
.t-fn { color: #cdd2db; } .t-str { color: var(--gold-bright); } .t-num { color: var(--gold); }
.t-key { color: var(--muted); } .t-com { color: var(--faint); }
.t-cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--gold); vertical-align: -2px; margin-left: 3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* stack hero on tablet & below */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { max-width: 520px; }
}

/* ---------- Metric strip ---------- */
.metric-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 26px 0;
  position: relative;
  z-index: 1;
}
.metric-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.metric { text-align: center; }
.metric-num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.metric-label {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 680px) {
  .metric-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 0 20px; }
}

/* ---------- Work ---------- */
.project {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  transition: border-color 0.25s;
}
.project:hover { border-top-color: var(--gold); }
.project .p-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.project h3 { font-size: 1.32rem; font-weight: 600; letter-spacing: -0.015em; }
.project h3 .h3-dim { color: var(--faint); font-weight: 400; }
.project .p-period { font-family: var(--mono); font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.project .p-role { font-family: var(--mono); font-size: 12.5px; color: var(--gold); margin-top: 6px; }
.project .p-summary { margin-top: 14px; color: var(--muted); max-width: 70ch; }
.project ul { list-style: none; margin-top: 16px; display: grid; gap: 9px; }
.project li { position: relative; padding-left: 20px; color: var(--ink); font-size: 15px; max-width: 76ch; }
.project li::before {
  content: "›"; position: absolute; left: 2px; top: -1px;
  color: var(--gold); font-family: var(--mono);
}
.tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg-2); transition: all 0.2s;
}
.project:hover .tag { border-color: var(--line); }

/* ---------- How I work ---------- */
.principles { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
@media (min-width: 680px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle { background: var(--bg-2); padding: 26px 24px; }
.principle .n { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.principle p { margin-top: 10px; color: var(--ink); font-size: 15.5px; line-height: 1.55; }

/* ---------- Section lead ---------- */
.section-lead { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 62ch; margin: 12px 0 28px; }

/* ---------- Stack ---------- */
.stack-table { width: 100%; }
.stack-table tr { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 680px) { .stack-table tr { grid-template-columns: 180px 1fr; gap: 20px; align-items: baseline; } }
.stack-table tr:last-child { border-bottom: none; }
.stack-table th { font-family: var(--mono); font-size: 13px; color: var(--gold); font-weight: normal; text-align: left; }
.stack-table td { color: var(--muted); font-size: 15px; }
.stack-table td b { color: var(--ink); font-weight: 500; }

/* ---------- Open source ---------- */
.os-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px;
  background: var(--bg-2); display: flex; flex-direction: column; gap: 10px;
}
.os-card .os-label { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.os-card p { color: var(--muted); }
.os-link { font-family: var(--mono); font-size: 13.5px; color: var(--gold-bright); margin-top: 6px; display: inline-flex; gap: 8px; }
.os-link:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.75fr; gap: 60px; align-items: start; }
.contact-left { display: flex; flex-direction: column; }
.contact-left .c-lead { margin-top: 12px; color: var(--muted); }
.contact-alt { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.c-social { font-family: var(--mono); font-size: 12.5px; color: var(--faint); transition: color 0.2s; }
.c-social:hover { color: var(--gold-bright); }

/* ---------- Contact form ---------- */
.c-form { display: flex; flex-direction: column; gap: 28px; }
.c-form__row { display: flex; gap: 24px; }
.c-form__row--half > * { flex: 1 1 0; min-width: 0; }
.c-form__field { display: flex; flex-direction: column; gap: 10px; }
.c-form__label { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.c-form__input {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.18);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  padding: 12px 0;
  outline: none;
  width: 100%;
  transition: border-color 0.18s ease;
}
.c-form__input::placeholder { color: var(--faint); }
.c-form__input:hover { border-bottom-color: rgba(255,255,255,0.28); }
.c-form__input:focus,
.c-form__input:focus-visible { border-bottom-color: var(--gold); }
.c-form__input--textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 16px;
  background: rgba(255,255,255,0.025);
  transition: border-color 0.18s ease;
}
.c-form__input--textarea:hover { border-color: rgba(255,255,255,0.2); }
.c-form__input--textarea:focus,
.c-form__input--textarea:focus-visible { border-color: var(--gold); }
.c-form__honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.c-form__submit-group { display: flex; flex-direction: column; gap: 14px; }
.c-form__submit { padding: 18px 32px; width: 100%; justify-content: center; font-size: 15px; }
.c-form__note { font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-align: center; }
.c-form__error { font-family: var(--mono); font-size: 12.5px; color: #e0695a; text-align: center; padding: 10px 14px; border: 1px solid rgba(224,105,90,0.35); border-radius: 6px; background: rgba(224,105,90,0.08); }

/* ---------- Footer ---------- */
footer { padding: 40px 0 56px; border-top: 1px solid var(--line-soft); }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-inner span { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

/* ---------- Error pages ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 28px;
  text-align: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.error-code {
  font-family: var(--mono);
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.05em;
  line-height: 1;
}
.error-page h1 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.error-page p {
  color: var(--muted);
  max-width: 50ch;
}
.error-page .btn { margin-top: 14px; }
.error-page .error-sep { color: var(--faint); margin: 0 8px; }

/* ---------- Privacy / static text page ---------- */
.prose {
  max-width: 70ch;
  margin: 0 auto;
}
.prose section { padding: 36px 0; border-top: 1px solid var(--line-soft); }
.prose section:first-of-type { border-top: none; padding-top: 0; }
.prose h2 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 14px; }
.prose p { color: var(--ink); margin-top: 12px; line-height: 1.65; }
.prose p + p { margin-top: 10px; }
.prose ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 20px; color: var(--ink); }
.prose li::before {
  content: "›"; position: absolute; left: 2px; top: -1px;
  color: var(--gold); font-family: var(--mono);
}
.prose a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.prose a:hover { text-decoration-color: var(--gold-bright); }
.prose-meta { font-family: var(--mono); font-size: 12.5px; color: var(--faint); margin-top: 8px; }

/* ---------- Load animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.7s cubic-bezier(0.2,0.7,0.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero .kicker { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.14s; }
.hero .statement { animation-delay: 0.20s; }
.hero .lead { animation-delay: 0.28s; }
.hero .availability { animation-delay: 0.32s; }
.hero .cta-row { animation-delay: 0.40s; }

/* in-view reveal for later sections */
.io { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.io.shown { opacity: 1; transform: none; }

address { font-style: normal; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 14px; top: -64px; z-index: 100;
  background: var(--gold); color: #11120f; font-family: var(--mono); font-size: 13px;
  font-weight: 600; padding: 11px 18px; border-radius: 8px; transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; }

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

@media (max-width: 760px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 560px) {
  section { padding: 56px 0; }
  .hero { padding: 60px 0 48px; }
  .wrap, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); max-width: 100%; }
  .kicker { margin-bottom: 18px; }
  .cta-row { gap: 10px; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .c-form__row { flex-direction: column; gap: 18px; }
  .project { padding: 26px 0; }
  .term-body { font-size: 12px; padding: 14px 14px 16px; }
  .hero-grid { gap: 32px; }
  .project h3 { font-size: 1.16rem; }
  .p-head { gap: 4px; }
  .principle { padding: 22px 18px; }
  h2 { font-size: clamp(1.45rem, 6vw, 1.9rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .io { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
