/* ============================================================
   Bright Nkrumah — Portfolio
   Editorial-developer hybrid. Light/Dark + 4 surface tones.
   ============================================================ */

:root {
  /* Default: pure white paper */
  --bg: #FFFFFF;
  --bg-2: #F4F4F3;
  --bg-3: #ECECEA;
  --ink: #0A0A0A;
  --ink-soft: #2B2B2B;
  --muted: #767676;
  --muted-2: #B5B5B5;
  --rule: rgba(0, 0, 0, 0.10);
  --rule-strong: rgba(0, 0, 0, 0.24);

  --accent: #1F6B8C;        /* indigo */
  --accent-ink: oklch(0.52 0.10 220);
  --accent-soft: rgba(31, 107, 140, 0.12);

  --gold: #C8A951;
  --teal: #1F6B8C;

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1440px;
  --pad-x: clamp(20px, 4vw, 64px);

  color-scheme: light;
}

[data-surface="offwhite"] {
  --bg: #FAFAF9;
  --bg-2: #F0EFEC;
  --bg-3: #E6E5E1;
  --ink: #111110;
  --ink-soft: #2C2C29;
  --muted: #767670;
  --muted-2: #B8B7B1;
  --rule: rgba(0, 0, 0, 0.10);
  --rule-strong: rgba(0, 0, 0, 0.24);
}

[data-surface="cool"] {
  --bg: #F7F8FA;
  --bg-2: #ECEEF2;
  --bg-3: #E1E4EA;
  --ink: #0E1116;
  --ink-soft: #2A2F38;
  --muted: #6A7280;
  --muted-2: #AFB5BF;
  --rule: rgba(14, 17, 22, 0.10);
  --rule-strong: rgba(14, 17, 22, 0.24);
}

[data-surface="cream"] {
  --bg: #F2EEE4;
  --bg-2: #ECE6D7;
  --bg-3: #E1DAC7;
  --ink: #15130E;
  --ink-soft: #2B2820;
  --muted: #8A8276;
  --muted-2: #B6AE9E;
  --rule: rgba(21, 19, 14, 0.12);
  --rule-strong: rgba(21, 19, 14, 0.28);
}

[data-mode="ink"] {
  --bg: #0B0B0C;
  --bg-2: #15151A;
  --bg-3: #1F1F25;
  --ink: #F2F2F0;
  --ink-soft: #C9C9C5;
  --muted: #7A7A78;
  --muted-2: #4D4D4B;
  --rule: rgba(255, 255, 255, 0.10);
  --rule-strong: rgba(255, 255, 255, 0.24);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s ease, color 0.4s ease;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
[data-mode="ink"] body::before {
  mix-blend-mode: screen;
  opacity: 0.25;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

button {
  font-family: inherit;
  color: inherit;
}

/* ---------- Type ---------- */
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.accent { color: var(--accent); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--muted);
}

.h1-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 12vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: pretty;
}
.h1-display em { font-style: italic; color: var(--accent); }

.h2-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.h2-display em { font-style: italic; color: var(--accent); }

.h3-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}

.dek {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.3;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Layout ---------- */
.shell {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;
  z-index: 1;
}

main { position: relative; z-index: 1; }

/* ---------- Decorative signature stripe ---------- */
.kente-stripe {
  display: inline-flex;
  align-items: stretch;
  height: 14px;
  width: 64px;
  gap: 2px;
}
.kente-stripe span {
  flex: 1;
  display: block;
}
.kente-stripe span:nth-child(1) { background: var(--accent); }
.kente-stripe span:nth-child(2) { background: var(--gold); }
.kente-stripe span:nth-child(3) { background: var(--ink); }

/* ---------- Asterisk divider ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 48px 0;
  color: var(--muted);
  font-family: var(--serif);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.divider .star {
  font-size: 28px;
  line-height: 1;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--rule);
}

main {
  padding-top: 68px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  opacity: 0.2;
}

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name em { font-style: italic; color: var(--accent); }
.brand-name small {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-style: normal;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-link {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active {
  color: var(--ink);
  background: var(--bg-2);
  border-color: var(--rule);
}
.nav-link.active::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.nav-link.active { padding-left: 22px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: transform 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--accent); border-color: var(--accent); color: #fff; }

.mode-toggle {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: all 0.2s;
}
.mode-toggle:hover { border-color: var(--rule-strong); background: var(--bg-2); }

.menu-btn { display: none; }
.mobile-menu { display: none; }

@media (max-width: 920px) {
  .nav-links, .nav-right .nav-cta { display: none; }
  .menu-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--rule);
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    color: var(--ink);
  }
  .mobile-menu {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--bg);
    z-index: 49;
    padding: 32px var(--pad-x) 40px;
    display: none;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--rule);
    overflow-y: auto;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu .nav-link {
    font-size: 24px;
    font-family: var(--serif);
    letter-spacing: 0;
    text-transform: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    color: var(--ink);
  }
  .mobile-menu .nav-link.active { padding-left: 0; background: transparent; border-bottom-color: var(--accent); }
  .mobile-menu .nav-link.active::before { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(32px, 5vw, 56px);
  position: relative;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta-item .label { color: var(--muted-2); }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(0.68 0.18 145);
  box-shadow: 0 0 0 3px oklch(0.68 0.18 145 / 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 9.5vw, 144px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(24px, 4vw, 48px);
  text-wrap: balance;
  position: relative;
  padding-right: clamp(0px, 22vw, 280px);
}
@media (max-width: 880px) {
  .hero-headline { padding-right: 0; }
}
.hero-headline em { font-style: italic; color: var(--accent); }

.word-wrap { display: inline; }
.word-wrap > span { display: inline; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  margin-top: 56px;
  align-items: end;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.3;
  color: var(--ink-soft);
  max-width: 26ch;
  margin: 0;
}
.hero-dek em { color: var(--accent); }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-side-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  align-items: baseline;
}
.hero-side-row:first-child { border-top: 1px dashed var(--rule); }
.hero-side-row .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.hero-side-row .val {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.3;
}
.hero-side-row .val a {
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s, color 0.2s;
}
.hero-side-row .val a:hover { border-color: var(--accent); color: var(--accent); }

/* Hero portrait inset */
.hero-portrait {
  position: absolute;
  right: var(--pad-x);
  top: clamp(40px, 6vw, 80px);
  width: clamp(160px, 18vw, 220px);
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--rule);
  transform: rotate(2deg);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.3), 0 8px 20px -10px rgba(0,0,0,0.1);
  z-index: 2;
  transition: transform 0.4s ease;
}
.hero-portrait:hover { transform: rotate(0deg) translateY(-4px); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-portrait .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 999px;
}
.hero-portrait .caption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  font-family: var(--mono);
  font-size: 9px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 880px) {
  .hero-portrait { display: none; }
}

/* Rotating "open for work" badge */
.work-badge {
  position: absolute;
  right: calc(var(--pad-x) + 80px);
  top: calc(clamp(40px, 6vw, 80px) + 200px);
  width: 120px;
  height: 120px;
  z-index: 3;
  animation: spin 28s linear infinite;
}
.work-badge svg { width: 100%; height: 100%; }
.work-badge .core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  animation: spin 28s linear infinite reverse;
  font-family: var(--mono);
  font-size: 24px;
  color: var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .work-badge { display: none; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 76px);
  white-space: nowrap;
  font-style: italic;
  background: var(--bg-2);
}
.marquee-inner {
  display: inline-flex;
  padding-right: 60px;
  animation: scroll 50s linear infinite;
  gap: 60px;
  align-items: center;
}
.marquee-inner > * { flex-shrink: 0; }
.marquee em { color: var(--accent); font-style: italic; }
.marquee .star { color: var(--gold); font-style: normal; }

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Stats strip ---------- */
.stats {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--rule);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 880px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 540px) { .stats-grid { grid-template-columns: 1fr; gap: 20px; } }

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  padding-left: 18px;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--accent);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-num small {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-left: 4px;
}
.stat-num em { font-style: italic; color: var(--accent); }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.stat-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 24ch;
}

/* ---------- Section ---------- */
.section {
  padding: clamp(64px, 9vw, 128px) 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--rule); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: 20px; } }

.section-head .label-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.section-head .label-num strong {
  color: var(--ink);
  font-weight: 500;
}
.section-head .label-num .dash { color: var(--muted-2); }

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head h2 em { font-style: italic; color: var(--accent); }

.section-head .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 40ch;
  text-wrap: pretty;
}

/* ---------- Project list (editorial numbered) ---------- */
.project-row {
  display: grid;
  grid-template-columns: 70px 1fr 240px 100px;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease, padding 0.3s ease;
}
.project-row:last-child { border-bottom: 1px solid var(--rule); }
.project-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.project-row:hover {
  padding-left: 24px;
  background: var(--bg-2);
}
.project-row:hover::before { transform: scaleY(1); transform-origin: top; }
.project-row:hover .project-arrow { transform: translateX(8px); color: var(--accent); }

.project-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  padding-top: 8px;
}

.project-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 8px 0;
  font-weight: 400;
}
.project-row:hover .project-title { color: var(--accent); }

.project-blurb {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0;
}

.project-tags {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.8;
  text-transform: uppercase;
}
.project-tags span:not(:last-child)::after {
  content: " · ";
  color: var(--muted-2);
}

.project-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
  padding-top: 8px;
  text-align: right;
}
.project-role .role-label {
  display: block;
  color: var(--muted-2);
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.project-year {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 8px;
}

.project-arrow {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--muted);
  transition: all 0.3s ease;
}

@media (max-width: 880px) {
  .project-row {
    grid-template-columns: 44px 1fr;
    gap: 12px 18px;
    padding: 26px 0;
  }
  .project-role, .project-year { grid-column: 2; text-align: left; flex-direction: row; gap: 14px; align-items: center; padding-top: 0; }
}

/* ---------- Pull quote ---------- */
.pullquote-section {
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.pullquote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.6;
}
.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.pullquote::before, .pullquote::after {
  content: '"';
  color: var(--accent);
  font-family: var(--serif);
  font-style: normal;
  font-size: 0.7em;
  line-height: 0;
  position: relative;
  top: 0.2em;
}
.pullquote::after { content: '"'; }

.pullquote-attr {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-align: center;
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- About hero ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
  align-items: start;
}
@media (max-width: 880px) { .about-hero { grid-template-columns: 1fr; gap: 40px; } }

.portrait-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.3);
}
.portrait-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
}
.portrait-card .portrait-frame {
  position: absolute; inset: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  pointer-events: none;
  border-radius: 2px;
}
.portrait-card .portrait-meta {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  justify-content: space-between;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.portrait-card .portrait-tag {
  position: absolute;
  top: 18px; left: 18px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
}

.about-body p {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.4;
  margin: 0 0 24px 0;
  text-wrap: pretty;
  color: var(--ink);
}
.about-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4.2em;
  float: left;
  line-height: 0.85;
  padding: 6px 14px 0 0;
  font-style: italic;
  color: var(--accent);
}

/* Marginalia */
.marginalia {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
  align-items: start;
  margin: 32px 0;
}
@media (max-width: 880px) { .marginalia { grid-template-columns: 1fr; } }
.marginalia .note {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-left: 1px solid var(--accent);
  padding-left: 14px;
  font-style: normal;
}

/* ---------- Experience ---------- */
.exp-row {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
  position: relative;
}
.exp-row:last-child { border-bottom: 1px solid var(--rule); }
.exp-row::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 40px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.exp-row:hover::before { opacity: 1; }
.exp-year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.exp-year .type {
  display: block;
  color: var(--muted-2);
  margin-top: 4px;
  font-size: 10px;
}
.exp-role {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  margin: 0 0 6px 0;
  font-weight: 400;
}
.exp-company { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; }
.exp-company em { font-style: italic; color: var(--muted); }
.exp-blurb { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; max-width: 56ch; }
.exp-stack {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
  line-height: 1.8;
}
@media (max-width: 880px) {
  .exp-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .exp-stack { text-align: left; }
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 24px;
}
.skill-block {
  grid-column: span 4;
  padding: 36px 0 0 0;
  border-top: 2px solid var(--ink);
  position: relative;
}
@media (max-width: 880px) { .skill-block { grid-column: span 12; } }
.skill-block .subtitle {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.skill-block .subtitle::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.skill-block h3 {
  font-family: var(--serif);
  font-size: 36px;
  margin: 0 0 6px 0;
  font-weight: 400;
  line-height: 1.05;
}
.skill-block h3 em { font-style: italic; color: var(--accent); }
.skill-block .note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}

.skill-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 15px;
  position: relative;
}
.skill-item .name { display: flex; align-items: baseline; gap: 12px; }
.skill-item .marker {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  width: 28px;
}
.skill-item .years {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.skill-item .bar {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--accent);
  width: var(--w, 0%);
  transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Articles ---------- */
.articles-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.tag-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.tag-chip:hover { color: var(--ink); border-color: var(--rule-strong); }
.tag-chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.layout-toggle {
  display: flex;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.layout-toggle button {
  background: none;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  border-bottom: 1px solid transparent;
}
.layout-toggle button.active { color: var(--ink); border-bottom-color: var(--ink); }

.article-row {
  display: grid;
  grid-template-columns: 100px 1fr 200px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: all 0.25s ease;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
}
.article-row:hover {
  padding-left: 14px;
  background: var(--bg-2);
}
.article-row:hover .article-title { color: var(--accent); }
.article-row .date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.article-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.15;
  margin: 0 0 8px 0;
  font-weight: 400;
  transition: color 0.2s;
}
.article-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}
.article-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 880px) {
  .article-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .article-meta { text-align: left; flex-direction: row; gap: 14px; }
}

/* Article grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px 28px;
}
.article-card {
  cursor: pointer;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  grid-column: span 4;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.article-card.featured {
  grid-column: span 12;
  padding-top: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.article-card.featured .article-card-img { aspect-ratio: 4/3; margin-bottom: 0; }
.article-card.featured .article-card-title { font-size: clamp(34px, 5vw, 64px); }
.article-card.featured .article-card-excerpt { max-width: 56ch; font-size: 17px; }
.article-card:hover .article-card-title { color: var(--accent); }
.article-card-img {
  background: var(--bg-2);
  aspect-ratio: 4/3;
  border-radius: 4px;
  border: 1px solid var(--rule);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}
.article-card-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.article-card-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 8px 0;
  font-weight: 400;
  transition: color 0.2s;
}
.article-card-excerpt {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 880px) {
  .article-card, .article-card.featured { grid-column: span 12; grid-template-columns: 1fr; }
}

/* Cover art SVG variants */
.cover-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 14px,
      var(--rule) 14px,
      var(--rule) 28px
    ),
    var(--bg-2);
}
.cover-art-1 { background: linear-gradient(135deg, var(--accent) 0%, oklch(0.75 0.12 60) 100%); color: #fff; }
.cover-art-2 { background: var(--bg-3); }
.cover-art-3 { background: var(--ink); color: var(--bg); }
.cover-art .cover-glyph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 96px;
  font-weight: 400;
  line-height: 1;
}
.cover-art .cover-num {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cover-art .cover-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Article reader ---------- */
.reader {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) 0;
}
.reader-back {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 32px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
}
.reader-back:hover { color: var(--accent); }
.reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 24px;
}
.reader-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
  font-weight: 400;
}
.reader-title em { font-style: italic; color: var(--accent); }
.reader-cover {
  margin: 32px 0 40px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.reader-cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.reader-dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink-soft);
  margin: 0 0 40px 0;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.reader-body p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 22px 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.reader-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4.6em;
  float: left;
  line-height: 0.85;
  padding: 8px 14px 0 0;
  font-style: italic;
  color: var(--accent);
}
.reader-body h2 {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.2;
  font-weight: 400;
  margin: 48px 0 16px 0;
  position: relative;
  padding-left: 24px;
}
.reader-body h2::before {
  content: "§";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-style: italic;
}
.reader-body pre {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-2);
  padding: 20px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  overflow-x: auto;
  line-height: 1.55;
  margin: 24px 0;
}
.reader-body code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 3px;
}
.reader-body pre code { background: transparent; padding: 0; }
.reader-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.35;
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  color: var(--ink);
}

.reader-linkedin {
  margin: 48px 0 0;
  padding: 20px 24px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.reader-linkedin a { color: var(--muted); }
.reader-linkedin a:hover { color: var(--accent); }

.reader-author {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 60px;
  padding: 24px;
  background: var(--bg-2);
  border-radius: 4px;
}
.reader-author .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: url(assets/bright.jpg) center 22% / cover;
  flex-shrink: 0;
}
.reader-author .info { flex: 1; }
.reader-author .info .name {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 4px;
}
.reader-author .info .bio {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Contact ---------- */
.contact-hero {
  padding-top: clamp(48px, 8vw, 120px);
  padding-bottom: clamp(40px, 6vw, 72px);
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  margin-top: 56px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 2px solid var(--ink);
}
.contact-field {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
@media (max-width: 540px) {
  .contact-field { grid-template-columns: 1fr; gap: 8px; }
}
.contact-field label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.contact-field label::before {
  content: "→";
  color: var(--accent);
  font-family: var(--serif);
}
.contact-field input,
.contact-field textarea,
.contact-field select {
  font-family: var(--serif);
  font-size: 22px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  width: 100%;
  padding: 0;
  resize: none;
  font-weight: 400;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--muted-2);
  font-style: italic;
}
.contact-field textarea { min-height: 120px; line-height: 1.4; }
.contact-submit { margin-top: 28px; align-self: flex-start; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 2px solid var(--ink);
}
.contact-info-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.contact-info-item .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-info-item .val {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
}
.contact-info-item .val a {
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s, color 0.2s;
}
.contact-info-item .val a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- CTA footer block ---------- */
.cta-section {
  padding-top: clamp(80px, 13vw, 180px);
  padding-bottom: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
.cta-text {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
.cta-text em { font-style: italic; color: var(--accent); }
.cta-meta {
  margin-top: 40px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.cta-side-info {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 16px 0;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-family: var(--serif);
  font-size: 19px;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}
.footer-col a:hover { color: var(--accent); border-color: var(--accent); }

.footer-brand .brand {
  margin-bottom: 16px;
}
.footer-brand .blurb {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 32ch;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(32px, 5vw, 48px);
  position: relative;
}
.page-hero h1 {
  margin-top: 24px;
  max-width: 14ch;
}
.page-hero .dek {
  margin-top: 28px;
  max-width: 48ch;
}

/* ---------- Reveal (progressive enhancement) ---------- */
/* Only hide-then-animate when JS has added .reveals-ready to <body>;
   otherwise content is visible by default (no JS, slow IO, etc). */
.reveals-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveals-ready .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Cursor blob ---------- */
.cursor-blob {
  pointer-events: none;
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s;
  mix-blend-mode: multiply;
}
[data-mode="ink"] .cursor-blob { mix-blend-mode: screen; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 100;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Tweaks panel (vanilla) ---------- */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  z-index: 110;
  font-family: var(--sans);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.3);
  padding: 0;
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.tweaks-head button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.tweaks-head button:hover { color: var(--accent); }
.tweaks-body { padding: 12px 16px 18px; }
.tweak-group { margin-bottom: 16px; }
.tweak-group:last-child { margin-bottom: 0; }
.tweak-group .glabel {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
}
.tweak-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tweak-row button {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.15s;
}
.tweak-row button:hover { border-color: var(--rule-strong); }
.tweak-row button.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--rule);
  transition: transform 0.15s;
  padding: 0;
}
.tweak-swatch:hover { transform: scale(1.1); }
.tweak-swatch.active {
  border-color: var(--ink);
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink);
}

/* ---------- Utilities ---------- */
.text-right { text-align: right; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.flex { display: flex; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ============ PAGINATION ============ */
.pagination {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.pagination-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pagination-pages {
  display: flex;
  gap: 4px;
}
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: var(--mono);
  font-size: 13px;
  border-radius: 2px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.page-num:hover {
  color: var(--ink);
  border-color: var(--rule);
}
.page-num.active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--bg-2);
}

/* ============ TIMELINE ============ */
.timeline {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tl-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.tl-item:last-child {
  border-bottom: 1px solid var(--rule);
}
.tl-year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 2px;
}
.tl-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============ CONTACT HERO ============ */
.contact-hero {
  padding-top: 80px;
  padding-bottom: 56px;
}

/* ============ ABOUT PAGE EXTENDED ============ */
.about-hero .about-body h2 {
  font-style: italic;
  color: var(--ink-soft);
}

