@font-face {
  font-family: "Geist";
  src: url("fonts/geist-variable.woff") format("woff"),
       url("fonts/geist-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-variable.woff") format("woff"),
       url("fonts/geist-mono-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff") format("woff"),
       url("fonts/instrument-serif.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0a0b0d;
  --bg-soft: #101217;
  --card: #15171d;
  --card-2: #1b1e26;
  --line: rgba(243, 239, 231, 0.09);
  --line-strong: rgba(243, 239, 231, 0.16);
  --text: #f3efe7;
  --muted: #9c968c;
  --faint: #6f6b64;
  --gold: #e2b56a;
  --gold-dim: rgba(226, 181, 106, 0.14);
  --gold-line: rgba(226, 181, 106, 0.35);
  --live: #6ece8f;
  --running: #7ec8d6;
  --paper: #d7c59a;
  --shipped: #cfc0a0;
  --completed: #b5c9a6;
  --draft: #e2b56a;
  --paused: #9a9da6;
  --stopped: #d08a80;
  --concept: #c4b0ec;
  --prototype: #9aa7d6;
  --todo: #ffc14d;
  --todo-bg: rgba(255, 193, 77, 0.1);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 420;
  min-height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(226, 181, 106, 0.08), transparent 55%),
    radial-gradient(700px 420px at 110% 0%, rgba(126, 200, 214, 0.05), transparent 50%),
    linear-gradient(180deg, #0c0d11 0%, var(--bg) 28%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.wrap, .site-header, main, footer { position: relative; z-index: 1; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f0c888; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--gold);
  color: #1a1408;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 11, 13, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--text); }
.nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255,255,255,0.02);
  margin-left: 8px;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--gold-dim);
  color: var(--gold);
}

.hero {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 48px;
  align-items: start;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}
.display-name {
  font-family: var(--serif);
  font-size: clamp(4.2rem, 11vw, 7.2rem);
  line-height: 0.86;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.legal-name { margin: 0 0 22px; font-size: 0.95rem; color: var(--muted); }
.headline {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 520;
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 34ch;
}
.lede {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.02rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn, .btn-ghost, .contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn {
  background: var(--gold);
  color: #1a1408;
}
.btn:hover { color: #1a1408; background: #f0c888; }
.btn-ghost, .contact-chip {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover, .contact-chip:hover { background: rgba(255,255,255,0.04); color: var(--text); }

.todo, .todo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed var(--todo);
  background: var(--todo-bg);
  color: var(--todo);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
  vertical-align: 2px;
}
.todo-chip { padding: 8px 12px; font-size: 0.82rem; }
.todo-chip:hover { color: #ffd27a; }
.todo-mark {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-placeholder {
  width: 200px;
  aspect-ratio: 1 / 1.12;
  border: 1px dashed var(--gold-line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(226,181,106,0.07), rgba(255,255,255,0.02));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  padding: 16px;
}
.photo-placeholder .mono-a {
  font-family: var(--serif);
  font-size: 4rem;
  color: rgba(243,239,231,0.18);
  line-height: 1;
}
.photo-placeholder p { margin: 0; font-size: 0.8rem; }

section { padding: 28px 0 12px; }
.section-head { margin-bottom: 22px; max-width: 62ch; }
.section-head h2 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 650;
}
.section-head p { margin: 0; color: var(--muted); }

.skill-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.skill-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
}
.skill-box h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
}
.skill-box ul { margin: 0; padding: 0; list-style: none; }
.skill-box li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.skill-box li:first-of-type { border-top: 0; padding-top: 0; }
.skill-box strong { color: var(--text); font-weight: 600; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.filters button {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font: 550 0.82rem/1 var(--sans);
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  background: var(--gold-dim);
  border-color: var(--gold-line);
  color: var(--gold);
}

.group { margin-bottom: 40px; }
.group[hidden], .card[hidden] { display: none; }
.group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.group-title h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.group-title span { color: var(--faint); font-size: 0.8rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}
.card:hover { border-color: var(--line-strong); background: var(--card-2); }
.card.featured {
  grid-column: 1 / -1;
  background:
    linear-gradient(180deg, rgba(226,181,106,0.07), transparent 40%),
    var(--card);
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-top h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-weight: 600;
}
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.did {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
}
.did-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 600;
}
.did p { color: var(--text); font-size: 0.9rem; }
.note {
  font-size: 0.82rem;
  color: var(--faint);
  font-style: italic;
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid currentColor;
  background: rgba(255,255,255,0.03);
}
.badge-live { color: var(--live); }
.badge-running, .badge-ondemand { color: var(--running); }
.badge-paper, .badge-shipped { color: var(--shipped); }
.badge-completed { color: var(--completed); }
.badge-draft { color: var(--draft); }
.badge-paused { color: var(--paused); }
.badge-stopped { color: var(--stopped); }
.badge-concept { color: var(--concept); }
.badge-prototype { color: var(--prototype); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.tags li {
  list-style: none;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}
.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--gold);
  width: fit-content;
}
.card-link:hover { color: #f0c888; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.method-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.method-card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.method-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.num {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}

.learn-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.learn-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
}
.learn-list h3 { margin: 0 0 6px; font-size: 1.02rem; }
.learn-list p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.contact-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  gap: 16px;
}
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }

.site-footer {
  padding: 48px 0 56px;
  color: var(--faint);
  font-size: 0.82rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 36px; gap: 28px; }
  .photo-placeholder { width: 140px; }
  .skill-grid, .method-grid, .learn-list, .grid { grid-template-columns: 1fr; }
  .card.featured { grid-column: auto; }
  .display-name { font-size: clamp(3.4rem, 18vw, 5rem); }
}
@media (max-width: 640px) {
  .wrap, .header-inner { width: min(var(--max), calc(100% - 28px)); }
  .nav a:not(.keep-mobile) { display: none; }
  .header-inner { min-height: 56px; }
  .card, .skill-box, .method-card, .contact-panel { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
