/* ============================================================
   FABIO CARLESSO — (fc) design system · site styles
   Ported from handoff/design-references to static multi-page HTML.
   Tokens are the contract — every value below is var(--fc-*).
   ============================================================ */

/* —— Reset ————————————————————————————————————————— */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--fc-ink);
  color: var(--fc-text);
  font-family: var(--fc-font-body);
  font-size: var(--fc-size-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

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

img { max-width: 100%; display: block; }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--fc-green);
  outline-offset: 2px;
  border-radius: var(--fc-r-1);
}

/* —— Background — subtle grid + glow ——————————————— */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(63, 185, 80, 0.05), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(227, 179, 65, 0.03), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* —— Layout shell —————————————————————————————————— */
.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--fc-container);
  margin: 0 auto;
  padding: 0 var(--fc-gutter);
  width: 100%;
}
.container--tight { max-width: 980px; }

.page {
  animation: fadeUp 0.4s ease-out;
  padding: 80px 0 120px;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* —— Brand mark: (fc) ——————————————————————————————— */
.logo-fc {
  font-family: var(--fc-font-mono);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fc-text-hi);
  line-height: 1;
  white-space: nowrap;
}
.logo-fc .paren { color: var(--fc-green); }

/* —— Generic utilities ————————————————————————————— */
.mono  { font-family: var(--fc-font-mono); }
.green { color: var(--fc-green); }
.amber { color: var(--fc-amber); }
.muted { color: var(--fc-text-mid); }
.faint { color: var(--fc-text-low); }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* —— Common section bits ——————————————————————————— */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fc-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fc-green);
  margin-bottom: 24px;
}
.kicker::before { content: "//"; opacity: 0.6; }
.kicker--bare::before { content: ""; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fc-ink-4);
  gap: 24px;
}
.section-head h2 {
  font-family: var(--fc-font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--fc-text-hi);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-head .sub {
  font-family: var(--fc-font-mono);
  font-size: 12px;
  color: var(--fc-text-low);
  letter-spacing: 0.04em;
}

.h-display {
  font-family: var(--fc-font-mono);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--fc-text-hi);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 13, 16, 0.78);
  border-bottom: 1px solid var(--fc-ink-4);
}
.topbar-inner {
  max-width: var(--fc-container);
  margin: 0 auto;
  padding: 14px var(--fc-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-brand .logo-fc { font-size: 22px; }
.topbar-status {
  font-family: var(--fc-font-mono);
  font-size: 11px;
  color: var(--fc-text-low);
  letter-spacing: 0.04em;
  padding-left: 14px;
  border-left: 1px solid var(--fc-ink-4);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pulse {
  width: 6px; height: 6px;
  border-radius: var(--fc-r-pill);
  background: var(--fc-green);
  box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.6); }
  60%  { box-shadow: 0 0 0 10px rgba(63, 185, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}
.topbar-nav { display: flex; gap: 4px; align-items: center; }
.topbar-nav a {
  font-family: var(--fc-font-mono);
  font-size: 13px;
  color: var(--fc-text-mid);
  padding: 8px 14px;
  border-radius: var(--fc-r-2);
  transition: all 0.15s ease;
}
.topbar-nav a:hover { color: var(--fc-text-hi); background: var(--fc-ink-3); }
.topbar-nav a.active { color: var(--fc-green); }
.topbar-nav a.active::before { content: "$ "; opacity: 0.7; }
.topbar-cta {
  font-family: var(--fc-font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fc-ink);
  background: var(--fc-green);
  padding: 8px 14px;
  border-radius: var(--fc-r-2);
  cursor: pointer;
  transition: background 0.15s ease;
  border: none;
}
.topbar-cta:hover { background: var(--fc-green-soft); }
.nav-toggle { display: none; }

/* —— Language toggle ——————————————————————————————— */
.lang-toggle {
  background: transparent;
  border: 1px solid var(--fc-ink-4);
  border-radius: var(--fc-r-2);
  color: var(--fc-text-mid);
  font-family: var(--fc-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-toggle:hover {
  color: var(--fc-green);
  border-color: var(--fc-green);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--fc-ink-4);
  background: #07090b;
}
.footer-inner {
  max-width: var(--fc-container);
  margin: 0 auto;
  padding: 56px var(--fc-gutter) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--fc-ink-4);
}
.footer-brand .logo-fc { font-size: 28px; }
.footer-brand h3 {
  font-family: var(--fc-font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--fc-text-hi);
  margin: 14px 0 10px;
  letter-spacing: -0.01em;
}
.footer-brand p { font-size: 14px; color: var(--fc-text-mid); max-width: 36ch; }
.footer-col h4 {
  font-family: var(--fc-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fc-green);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-family: var(--fc-font-mono);
  font-size: 13px;
  color: var(--fc-text-mid);
  transition: color 0.15s ease;
}
.footer-col li a:hover { color: var(--fc-green); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--fc-font-mono);
  font-size: 11px;
  color: var(--fc-text-low);
  letter-spacing: 0.04em;
}
.footer-bottom .easter { display: flex; align-items: center; gap: 10px; }
.footer-bottom .easter span { color: var(--fc-amber); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fc-font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 12px 18px;
  border-radius: var(--fc-r-2);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: -0.005em;
}
.btn svg { width: 1em; height: 1em; }
.btn-mono { font-family: var(--fc-font-mono); font-weight: 600; letter-spacing: 0; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-lg { padding: 16px 24px; font-size: 15px; }
.btn-primary { background: var(--fc-green); color: var(--fc-ink); border-color: var(--fc-green); }
.btn-primary:hover { background: var(--fc-green-soft); }
.btn-secondary { background: var(--fc-ink-3); color: var(--fc-text-hi); border-color: var(--fc-ink-4); }
.btn-secondary:hover { background: var(--fc-ink-4); }
.btn-ghost { background: transparent; color: var(--fc-text); border-color: var(--fc-ink-4); }
.btn-ghost:hover { color: var(--fc-green); border-color: var(--fc-green); }
.btn-terminal {
  background: var(--fc-ink);
  color: var(--fc-green);
  border-color: var(--fc-green);
  font-family: var(--fc-font-mono);
  font-weight: 600;
}
.btn-terminal::before { content: "> "; opacity: 0.7; }
.btn-terminal:hover { background: var(--fc-green-glow); }
.btn-danger { background: var(--fc-rust); color: var(--fc-bone); border-color: var(--fc-rust); }

/* ============================================================
   BADGES
   ============================================================ */
.bd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--fc-r-pill);
  font-family: var(--fc-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid;
}
.bd::before {
  content: "";
  width: 6px; height: 6px; border-radius: var(--fc-r-pill);
  background: currentColor;
  opacity: 0.85;
}
.bd-neutral { color: var(--fc-text-mid); border-color: var(--fc-ink-4); background: var(--fc-ink-2); }
.bd-active  { color: var(--fc-green); border-color: rgba(63, 185, 80, 0.35); background: rgba(63, 185, 80, 0.08); }
.bd-warn    { color: var(--fc-amber); border-color: rgba(227, 179, 65, 0.4); background: rgba(227, 179, 65, 0.08); }
.bd-error   { color: var(--fc-rust); border-color: rgba(200, 96, 42, 0.4); background: rgba(200, 96, 42, 0.08); }

/* ============================================================
   STAT BLOCK
   ============================================================ */
.statb { padding: 24px 0; display: flex; flex-direction: column; gap: 4px; }
.statb-num {
  font-family: var(--fc-font-mono);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fc-text-hi);
}
.statb-num.amber { color: var(--fc-amber); }
.statb-lab {
  font-family: var(--fc-font-mono);
  font-size: 11px;
  color: var(--fc-text-low);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   PROJECT CARD
   ============================================================ */
.proj {
  display: block;
  padding: 28px;
  background: var(--fc-ink-2);
  border: 1px solid var(--fc-ink-4);
  border-radius: var(--fc-r-3);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.proj:hover { border-color: var(--fc-green); transform: translateY(-2px); }
.proj:hover .proj-arrow { transform: translate(4px, -4px); color: var(--fc-green); }
.proj-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.proj-name {
  font-family: var(--fc-font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--fc-text-hi);
  display: flex;
  align-items: center;
  gap: 10px;
}
.proj-name .glyph { font-size: 18px; }
.proj-arrow { color: var(--fc-text-low); transition: all 0.2s ease; display: inline-flex; }
.proj-desc {
  font-size: 14px;
  color: var(--fc-text-mid);
  line-height: 1.55;
  margin-bottom: 18px;
  min-height: 44px;
}
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-meta-row {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--fc-ink-4);
  font-family: var(--fc-font-mono);
  font-size: 11px;
  color: var(--fc-text-low);
}
.proj-status.live    { color: var(--fc-green); }
.proj-status.study   { color: var(--fc-amber); }
.proj-status.archived { color: var(--fc-text-low); }

/* ============================================================
   TERMINAL CARD (home hero)
   ============================================================ */
.term-card {
  background: #07090b;
  border: 1px solid var(--fc-ink-4);
  border-radius: var(--fc-r-4);
  overflow: hidden;
  font-family: var(--fc-font-mono);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(63, 185, 80, 0.08) inset;
  min-height: 360px;
}
.term-card-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--fc-ink-2);
  border-bottom: 1px solid var(--fc-ink-4);
}
.dot { width: 11px; height: 11px; border-radius: var(--fc-r-pill); }
.dot-r { background: var(--fc-rust); }
.dot-y { background: var(--fc-amber); }
.dot-g { background: var(--fc-green); }
.term-title { margin-left: 14px; font-size: 11px; color: var(--fc-text-low); letter-spacing: 0.04em; }
.term-card-body {
  padding: 22px 24px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--fc-text);
  min-height: 300px;
}
.term-line { display: flex; align-items: center; gap: 10px; }
.prompt { color: var(--fc-green); font-weight: 700; }
.cmd { color: var(--fc-text-hi); }
.term-out { padding-left: 22px; color: var(--fc-text-mid); }
.term-out.amber { color: var(--fc-amber); }
.cursor {
  display: inline-block;
  width: 8px; height: 16px;
  vertical-align: -2px;
  background: var(--fc-green);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ============================================================
   TECH MARQUEE
   ============================================================ */
.marq {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--fc-ink-4);
  border-bottom: 1px solid var(--fc-ink-4);
  background: #07090b;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marq-track {
  display: flex;
  gap: 56px;
  animation: marq 40s linear infinite;
  width: max-content;
}
.marq-item {
  font-family: var(--fc-font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--fc-text-mid);
  letter-spacing: -0.01em;
  text-transform: lowercase;
  position: relative;
}
.marq-item::after { content: "·"; position: absolute; right: -32px; color: var(--fc-green); }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marq-track { animation: none; }
  .cursor { animation: none; }
  .pulse { animation: none; }
}

/* ============================================================
   HOME — hero / about preview / writing preview / CTA
   ============================================================ */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.hero-h1 {
  font-family: var(--fc-font-mono);
  font-weight: 700;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fc-text-hi);
  margin: 24px 0 28px;
}
.hero-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fc-text-mid);
  max-width: 52ch;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 12px; margin-bottom: 56px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--fc-ink-4);
  max-width: 560px;
}

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.about-preview {
  padding: 80px 0;
  background: var(--fc-ink-2);
  border-top: 1px solid var(--fc-ink-4);
  border-bottom: 1px solid var(--fc-ink-4);
}
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-grid .lede { font-size: 17px; color: var(--fc-text); line-height: 1.6; margin-bottom: 16px; max-width: 55ch; }
.about-grid .sub  { font-size: 15px; color: var(--fc-text-mid); line-height: 1.6; margin-bottom: 32px; max-width: 55ch; }
.about-card-stack { display: flex; flex-direction: column; gap: 12px; }
.ac { padding: 20px 24px; background: #07090b; border: 1px solid var(--fc-ink-4); border-radius: var(--fc-r-3); }
.ac-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 11px; letter-spacing: 0.08em; font-family: var(--fc-font-mono); }
.ac-body { font-family: var(--fc-font-mono); font-size: 13px; color: var(--fc-text); line-height: 1.65; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: block;
  padding: 28px;
  background: var(--fc-ink-2);
  border: 1px solid var(--fc-ink-4);
  border-radius: var(--fc-r-3);
  transition: all 0.2s ease;
}
.post-card:hover { border-color: var(--fc-green); transform: translateY(-2px); }
.post-meta { display: flex; gap: 8px; font-family: var(--fc-font-mono); font-size: 11px; color: var(--fc-text-low); margin-bottom: 16px; letter-spacing: 0.04em; }
.post-card h3 { font-family: var(--fc-font-mono); font-size: 22px; font-weight: 700; color: var(--fc-text-hi); margin-bottom: 8px; letter-spacing: -0.01em; line-height: 1.2; }
.post-card p { font-size: 14px; color: var(--fc-text-mid); line-height: 1.55; }
.post-foot { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--fc-ink-4); font-family: var(--fc-font-mono); font-size: 12px; color: var(--fc-green); }

.cta-card {
  position: relative;
  padding: 64px;
  background: linear-gradient(135deg, var(--fc-ink-2), #07090b);
  border: 1px solid var(--fc-ink-4);
  border-radius: var(--fc-r-4);
  overflow: hidden;
}
.cta-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(63, 185, 80, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 185, 80, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 80% 50%, black, transparent 70%);
  mask-image: radial-gradient(circle at 80% 50%, black, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.cta-inner .lede { font-size: 16px; color: var(--fc-text-mid); max-width: 50ch; margin-top: 16px; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-link { display: flex; align-items: center; gap: 10px; font-family: var(--fc-font-mono); font-size: 13px; color: var(--fc-text-mid); }
.cta-link:hover { color: var(--fc-green); }
.cta-link svg { width: 16px; height: 16px; }

.section-pad { padding: 96px 0; }
.section-pad--bordered { border-top: 1px solid var(--fc-ink-4); }

/* ============================================================
   WORK
   ============================================================ */
.work-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fc-ink-4);
  gap: 24px;
  flex-wrap: wrap;
}
.work-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--fc-ink-4);
  border-radius: var(--fc-r-2);
  font-family: var(--fc-font-mono);
  font-size: 12px;
  color: var(--fc-text-mid);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter:hover { color: var(--fc-text-hi); border-color: var(--fc-ink-3); }
.filter.active { color: var(--fc-green); border-color: var(--fc-green); background: rgba(63, 185, 80, 0.06); }
.filter-count { font-size: 10px; padding: 1px 6px; background: var(--fc-ink-3); border-radius: var(--fc-r-pill); color: var(--fc-text-low); }
.filter.active .filter-count { background: rgba(63, 185, 80, 0.18); color: var(--fc-green); }
.work-link { font-family: var(--fc-font-mono); font-size: 12px; color: var(--fc-text-mid); display: inline-flex; align-items: center; gap: 8px; }
.work-link:hover { color: var(--fc-green); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj.is-hidden { display: none; }
.empty { padding: 64px; text-align: center; color: var(--fc-text-low); border: 1px dashed var(--fc-ink-4); border-radius: var(--fc-r-3); display: none; }
.empty.show { display: block; }

.case-study { padding: 64px 0; border-top: 1px solid var(--fc-ink-4); background: var(--fc-ink-2); }
.cs-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.cs-stat-col { display: flex; flex-direction: column; gap: 20px; padding-right: 32px; border-right: 1px solid var(--fc-ink-4); }
.cs-stat { display: flex; flex-direction: column; gap: 4px; }
.cs-stat b { font-family: var(--fc-font-mono); font-weight: 800; font-size: 44px; color: var(--fc-green); letter-spacing: -0.04em; line-height: 1; }
.cs-stat span { font-family: var(--fc-font-mono); font-size: 11px; color: var(--fc-text-low); letter-spacing: 0.08em; text-transform: uppercase; }
.cs-body h3 { font-family: var(--fc-font-mono); font-size: 14px; font-weight: 700; color: var(--fc-green); margin-bottom: 8px; margin-top: 24px; letter-spacing: 0.04em; text-transform: uppercase; }
.cs-body h3:first-child { margin-top: 0; }
.cs-body p { font-size: 15px; color: var(--fc-text); line-height: 1.65; max-width: 60ch; }
.cs-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-2col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.about-2col .lede { font-size: 18px; color: var(--fc-text); line-height: 1.65; margin-bottom: 20px; max-width: 60ch; }
.about-2col p + p { font-size: 16px; color: var(--fc-text-mid); line-height: 1.65; margin-bottom: 20px; max-width: 60ch; }
.about-portrait {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--fc-ink-2), #07090b);
  border: 1px solid var(--fc-ink-4);
  border-radius: var(--fc-r-3);
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.portrait-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(63, 185, 80, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 185, 80, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 60% 30%, black, transparent 80%);
  mask-image: radial-gradient(circle at 60% 30%, black, transparent 80%);
}
.portrait-content { position: relative; z-index: 1; }
.portrait-mono { font-family: var(--fc-font-mono); font-size: 12px; color: var(--fc-green); margin-bottom: 16px; }
.portrait-name {
  font-family: var(--fc-font-mono);
  font-weight: 800;
  font-size: 42px;
  color: var(--fc-text-hi);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 20px;
}
.portrait-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.portrait-loc { display: flex; align-items: center; gap: 8px; font-family: var(--fc-font-mono); font-size: 12px; color: var(--fc-text-low); padding-top: 16px; border-top: 1px solid var(--fc-ink-4); }

.timeline-section { padding: 80px 0; background: var(--fc-ink-2); border-top: 1px solid var(--fc-ink-4); border-bottom: 1px solid var(--fc-ink-4); }
.tl { position: relative; }
.tl-line { position: absolute; left: 80px; top: 8px; bottom: 8px; width: 1px; background: var(--fc-ink-4); }
.tl-row { display: grid; grid-template-columns: 80px 24px 1fr; gap: 20px; padding: 20px 0; align-items: start; }
.tl-year { font-family: var(--fc-font-mono); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.tl-dot {
  width: 12px; height: 12px;
  border-radius: var(--fc-r-pill);
  background: var(--fc-ink-2);
  border: 2px solid;
  margin-top: 8px;
  margin-left: 6px;
  position: relative;
  z-index: 1;
}
.tl-content { padding-top: 4px; }
.tl-tag { font-family: var(--fc-font-mono); font-size: 11px; letter-spacing: 0.08em; margin-bottom: 4px; display: block; }
.tl-content p { font-size: 15px; color: var(--fc-text); line-height: 1.55; max-width: 60ch; }
/* timeline tag colors */
.tag-java, .tag-ship { color: var(--fc-green); }
.tag-education, .tag-cert { color: var(--fc-amber); }
.tag-career { color: var(--fc-text-hi); }
.tag-now { color: var(--fc-rust); }
.tl-dot.tag-java, .tl-dot.tag-ship { border-color: var(--fc-green); }
.tl-dot.tag-education, .tl-dot.tag-cert { border-color: var(--fc-amber); }
.tl-dot.tag-career { border-color: var(--fc-text-hi); }
.tl-dot.tag-now { border-color: var(--fc-rust); }

.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert {
  position: relative;
  padding: 28px;
  background: var(--fc-ink-2);
  border: 1px solid var(--fc-ink-4);
  border-radius: var(--fc-r-3);
}
.cert--easter { border-color: rgba(227, 179, 65, 0.3); background: linear-gradient(135deg, var(--fc-ink-2), rgba(227, 179, 65, 0.04)); }
.cert-year { position: absolute; top: 20px; right: 24px; font-family: var(--fc-font-mono); font-size: 11px; color: var(--fc-text-low); letter-spacing: 0.04em; }
.cert h4 { font-family: var(--fc-font-mono); font-size: 16px; font-weight: 700; color: var(--fc-text-hi); margin: 16px 0 6px; letter-spacing: -0.005em; }
.cert p { font-size: 13px; color: var(--fc-text-mid); }

/* ============================================================
   WRITING
   ============================================================ */
.writing-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 80px; }
.writing-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--fc-ink-4);
  transition: all 0.2s ease;
  align-items: start;
}
.writing-row:hover { background: var(--fc-ink-2); padding-left: 16px; padding-right: 16px; border-radius: var(--fc-r-3); }
.writing-row:hover h3 { color: var(--fc-green); }
.writing-row:last-child { border-bottom: 1px solid var(--fc-ink-4); }
.wr-date { font-family: var(--fc-font-mono); display: flex; flex-direction: column; gap: 4px; }
.wr-year { font-size: 11px; color: var(--fc-text-low); letter-spacing: 0.08em; text-transform: uppercase; }
.wr-day { font-size: 13px; color: var(--fc-text); }
.wr-meta { display: flex; gap: 8px; font-family: var(--fc-font-mono); font-size: 11px; color: var(--fc-text-low); margin-bottom: 12px; letter-spacing: 0.04em; }
.wr-meta span:first-child { color: var(--fc-green); }
.wr-body h3 {
  font-family: var(--fc-font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--fc-text-hi);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.wr-body p { font-size: 15px; color: var(--fc-text-mid); line-height: 1.6; max-width: 65ch; }
.wr-foot { margin-top: 14px; font-family: var(--fc-font-mono); font-size: 12px; color: var(--fc-green); }

.sub-block {
  padding: 40px;
  background: var(--fc-ink-2);
  border: 1px solid var(--fc-ink-4);
  border-radius: var(--fc-r-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.sub-block h3 { font-family: var(--fc-font-mono); font-size: 28px; color: var(--fc-text-hi); margin-bottom: 12px; letter-spacing: -0.02em; }
.sub-block p { font-size: 14px; color: var(--fc-text-mid); max-width: 44ch; }
.sub-form { display: flex; gap: 8px; }
.sub-form input {
  flex: 1;
  padding: 12px 14px;
  background: #07090b;
  border: 1px solid var(--fc-ink-4);
  border-radius: var(--fc-r-2);
  color: var(--fc-text-hi);
  font-family: var(--fc-font-mono);
  font-size: 13px;
  outline: none;
}
.sub-form input:focus { border-color: var(--fc-green); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
/* Single-column variant used while the contact form is disabled (no backend). */
.contact-grid--solo { grid-template-columns: 1fr; max-width: 640px; }
.contact-left .lede { font-size: 17px; color: var(--fc-text); margin-bottom: 32px; line-height: 1.6; max-width: 50ch; }
.methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.method {
  display: grid;
  grid-template-columns: 24px 1fr 16px;
  gap: 16px;
  padding: 16px 20px;
  background: var(--fc-ink-2);
  border: 1px solid var(--fc-ink-4);
  border-radius: var(--fc-r-3);
  align-items: center;
  transition: all 0.15s ease;
}
.method:hover { border-color: var(--fc-green); transform: translateX(4px); }
.method--info { cursor: default; }
.method--info:hover { transform: none; border-color: var(--fc-ink-4); }
.method-label { font-family: var(--fc-font-mono); font-size: 10px; color: var(--fc-text-low); letter-spacing: 0.12em; }
.method-value { font-family: var(--fc-font-mono); font-size: 14px; color: var(--fc-text-hi); margin-top: 2px; }
.method svg { width: 20px; height: 20px; }
.method .arrow { width: 16px; height: 16px; color: var(--fc-text-low); }

.response-box {
  padding: 20px 24px;
  background: rgba(63, 185, 80, 0.04);
  border: 1px solid rgba(63, 185, 80, 0.25);
  border-radius: var(--fc-r-3);
  display: flex;
  align-items: center;
  gap: 16px;
}
.response-pulse { width: 12px; }
.response-pulse span {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: var(--fc-r-pill);
  background: var(--fc-green);
  animation: pulse 2.2s ease-out infinite;
}
.response-box .big { font-family: var(--fc-font-mono); font-size: 20px; color: var(--fc-text-hi); margin-top: 4px; }

.contact-right {
  background: #07090b;
  border: 1px solid var(--fc-ink-4);
  border-radius: var(--fc-r-3);
  overflow: hidden;
  font-family: var(--fc-font-mono);
}
.form-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--fc-ink-2);
  border-bottom: 1px solid var(--fc-ink-4);
}
.form-title { margin-left: 14px; font-size: 11px; color: var(--fc-text-low); letter-spacing: 0.04em; }
.form-body { padding: 32px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--fc-font-mono); font-size: 12px; color: var(--fc-green); }
.req { color: var(--fc-rust); }
.form-group input, .form-group textarea {
  padding: 10px 14px;
  background: var(--fc-ink-2);
  border: 1px solid var(--fc-ink-4);
  border-radius: var(--fc-r-2);
  color: var(--fc-text-hi);
  font-family: var(--fc-font-mono);
  font-size: 14px;
  outline: none;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--fc-green); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--fc-ink-4); flex-wrap: wrap; }

.form-success { text-align: center; padding: 48px 24px; }
.form-success[hidden] { display: none; }
.success-glyph {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  border-radius: var(--fc-r-pill);
  background: rgba(63, 185, 80, 0.1);
  border: 2px solid var(--fc-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success h3 { font-family: var(--fc-font-mono); font-size: 28px; color: var(--fc-text-hi); margin-bottom: 12px; letter-spacing: -0.02em; }
.form-success p { color: var(--fc-text-mid); max-width: 42ch; margin: 0 auto; line-height: 1.6; }
.form-success .exit { font-family: var(--fc-font-mono); font-size: 13px; color: var(--fc-text-low); margin-top: 24px; }
.form-success .exit .amber { color: var(--fc-amber); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-grid, .about-2col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cs-grid { grid-template-columns: 1fr; gap: 32px; }
  .cs-stat-col { flex-direction: row; flex-wrap: wrap; gap: 32px; padding-right: 0; border-right: none; padding-bottom: 24px; border-bottom: 1px solid var(--fc-ink-4); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .proj-grid, .post-grid, .work-grid, .certs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .topbar-status { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: transparent;
    border: 1px solid var(--fc-ink-4);
    border-radius: var(--fc-r-2);
    color: var(--fc-text-hi);
    font-family: var(--fc-font-mono);
    font-size: 13px;
    padding: 8px 12px;
    cursor: pointer;
  }
  .topbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 13, 16, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fc-ink-4);
    padding: 8px var(--fc-gutter) 16px;
  }
  .topbar-nav.open { display: flex; }
  .topbar-nav a { padding: 12px 8px; }
  .topbar-cta { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .proj-grid, .post-grid, .work-grid, .certs, .footer-grid, .sub-block { grid-template-columns: 1fr; }
  .page { padding: 48px 0 80px; }
  .cta-card { padding: 40px 24px; }
  .tl-line { left: 64px; }
  .tl-row { grid-template-columns: 64px 16px 1fr; gap: 12px; }
  .tl-year { font-size: 18px; }
  .writing-row { grid-template-columns: 1fr; gap: 12px; }
  .form-body, .cta-card { padding: 24px; }
}

