/*
 * Public-site art direction — 2026
 * Bold editorial / live-system visual layer. The admin UI intentionally stays
 * on the quieter base stylesheet.
 */

/* ── Public tokens ────────────────────────────────────────────────────── */
.page-home,
.page-writing,
.page-article {
  --bg: #0b0b0b;
  --bg-2: #141414;
  --bg-3: #1d1d1d;
  --nav-bg: rgba(11, 11, 11, 0.86);
  --text: #f3f1e9;
  --text-mid: #aaa9a2;
  --text-dim: #6d6d68;
  --line: rgba(243, 241, 233, 0.16);
  --line-h: rgba(255, 212, 0, 0.72);
  --gold-rgb: 255, 212, 0;
  --gold: #ffd400;
  --gold-dim: rgba(255, 212, 0, 0.72);
  --acid: #ffd400;
  --accent-text: #ffd400;
  --orange: #ff5b35;
  --blue: #2f6bff;
  --ink: #0b0b0b;
  --green: #ff8a00;
  --red: #ff7058;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 0;
  --t: 180ms cubic-bezier(.2, .75, .2, 1);
  --page-pad: clamp(22px, 4vw, 64px);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  overflow-x: hidden;
  font-family: var(--sans);
}

:root[data-theme="light"] .page-home,
:root[data-theme="light"] .page-writing,
:root[data-theme="light"] .page-article {
  --bg: #f2efe7;
  --bg-2: #e6e2d8;
  --bg-3: #d9d4c8;
  --nav-bg: rgba(242, 239, 231, 0.88);
  --text: #10100f;
  --text-mid: #55544f;
  --text-dim: #77756d;
  --line: rgba(16, 16, 15, 0.17);
  --line-h: rgba(16, 16, 15, 0.7);
  --gold-rgb: 184, 74, 0;
  --gold: #b84a00;
  --gold-dim: rgba(184, 74, 0, 0.75);
  --acid: #ffd000;
  --accent-text: #b84a00;
  --ink: #10100f;
  --green: #d94b20;
  --red: #c43a20;
  background:
    linear-gradient(rgba(16,16,15,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,16,15,.035) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
}

.page-home a:focus-visible,
.page-writing a:focus-visible,
.page-article a:focus-visible,
.site-nav button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

/* ── Navigation ───────────────────────────────────────────────────────── */
nav.site-nav {
  height: 72px;
  padding: 0 var(--page-pad);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(130%);
}

.site-nav .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.site-nav .logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  transform: rotate(-4deg);
  transition: transform var(--t), background var(--t);
}

.site-nav .logo:hover .logo-mark {
  background: var(--orange);
  transform: rotate(4deg) scale(1.06);
}

.site-nav .nav-r { gap: clamp(18px, 2.5vw, 40px); }
.site-nav .nav-r a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--text-mid);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav .nav-r a:hover,
.site-nav .nav-r a.on { color: var(--text); }
.site-nav .nav-r a.on::after {
  content: '';
  width: 5px;
  height: 5px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--acid);
}
.site-nav .nav-num { color: var(--text-dim); font-size: 8px; }
.site-nav .theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 0;
  border-color: var(--line);
}
.site-nav .theme-toggle:hover {
  color: var(--ink);
  border-color: var(--acid);
  background: var(--acid);
}

.page-home .adminbar,
.page-writing .adminbar,
.page-article .adminbar {
  padding-inline: var(--page-pad);
  border-color: var(--line);
  background: var(--acid);
  color: var(--ink);
}
.page-home .adminbar-btn,
.page-writing .adminbar-btn,
.page-article .adminbar-btn {
  color: var(--ink);
  border-color: rgba(0,0,0,.35);
  background: rgba(0,0,0,.08);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.page-home .hero {
  max-width: none;
  margin: 0;
  padding: 0;
}

.page-home .hero-fullscreen {
  position: relative;
  min-height: calc(100svh - 72px);
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-backdrop::before {
  content: '';
  position: absolute;
  width: clamp(220px, 32vw, 560px);
  aspect-ratio: 1;
  right: -7vw;
  top: -12vw;
  border-radius: 50%;
  border: clamp(28px, 5vw, 80px) solid var(--orange);
  opacity: .9;
  filter: saturate(115%);
}

.hero-backdrop-word {
  position: absolute;
  left: -1.6vw;
  bottom: -10vw;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  font-family: var(--sans);
  font-size: clamp(240px, 39vw, 720px);
  font-weight: 700;
  line-height: .72;
  letter-spacing: -.1em;
  opacity: .65;
  user-select: none;
}

.hero-cross {
  position: absolute;
  color: var(--blue);
  font-family: var(--sans);
  font-size: clamp(56px, 6vw, 110px);
  font-weight: 300;
  line-height: 1;
}
.hero-cross-a { left: 44%; top: 13%; transform: rotate(14deg); }
.hero-cross-b { left: 4%; bottom: 15%; transform: rotate(-12deg); color: var(--orange); }

.hero-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 1640px);
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 26px var(--page-pad) 92px;
  display: flex;
  flex-direction: column;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.system-tag { display: inline-flex; align-items: center; gap: 9px; }
.system-tag i,
.console-head i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255,91,53,.11), 0 0 18px rgba(255,91,53,.58);
  animation: signal-pulse 2.2s ease-in-out infinite;
}

.hero-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: center;
  gap: clamp(38px, 6vw, 100px);
  padding: clamp(54px, 8vh, 110px) 0 20px;
}

.hero-copy { min-width: 0; }
.hero-name {
  margin-bottom: clamp(20px, 3vh, 38px);
  color: var(--text-mid);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(68px, 8.1vw, 138px);
  font-weight: 700;
  line-height: .77;
  letter-spacing: -.085em;
  text-transform: uppercase;
}
.hero-title span,
.hero-title strong,
.hero-title em { display: block; }
.hero-title strong {
  color: var(--acid);
  font-weight: 700;
  transform: translateX(-.025em);
}
.hero-title em {
  margin-top: .18em;
  color: var(--text);
  font-family: var(--serif);
  font-size: .68em;
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.04em;
  text-transform: none;
  white-space: nowrap;
}

.hero-lower {
  display: grid;
  grid-template-columns: minmax(260px, 520px) auto;
  align-items: end;
  gap: clamp(24px, 4vw, 60px);
  margin-top: clamp(34px, 5vh, 60px);
}
.hero-bio {
  max-width: 520px;
  margin: 0;
  color: var(--text-mid);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.65;
}
.hero-actions { display: flex; align-items: stretch; gap: 10px; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--t), background var(--t), border-color var(--t), transform var(--t);
}
.hero-cta:hover { border-color: var(--text); transform: translateY(-3px); }
.hero-cta-primary { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.hero-cta-primary:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.hero-console {
  position: relative;
  align-self: center;
  width: 100%;
  min-height: 500px;
  padding: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 82%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 16px 16px 0 var(--acid);
}
.console-head,
.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.console-head { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.console-head > span:first-child { display: inline-flex; align-items: center; gap: 9px; color: var(--text-mid); }
.console-head i { width: 5px; height: 5px; box-shadow: 0 0 12px rgba(255,91,53,.58); }
.console-orbit {
  position: relative;
  width: min(250px, 82%);
  aspect-ratio: 1;
  margin: 30px auto 26px;
  display: grid;
  place-items: center;
}
.orbit-ring { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%; }
.orbit-ring-a::before,
.orbit-ring-b::before {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acid);
  top: 9%;
  left: 23%;
  box-shadow: 0 0 20px rgba(255,212,0,.72);
}
.orbit-ring-a { animation: orbit-spin 12s linear infinite; }
.orbit-ring-b { inset: 14%; border-style: dashed; animation: orbit-spin 18s linear reverse infinite; }
.orbit-ring-b::before { top: auto; left: auto; bottom: 7%; right: 22%; background: var(--orange); box-shadow: none; }
.orbit-core {
  width: 47%;
  aspect-ratio: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  transform: rotate(-8deg);
}
.orbit-core span { align-self: center; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.orbit-core strong { align-self: center; font-family: var(--sans); font-size: 72px; line-height: 1; letter-spacing: -.12em; }
.orbit-dot {
  position: absolute;
  width: 36px;
  height: 36px;
  right: 2%;
  top: 12%;
  border-radius: 50%;
  background: var(--blue);
}
.console-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.console-stats > div { min-width: 0; padding: 12px 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.console-stats dt { color: var(--text-dim); font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.console-stats dd { margin: 8px 0 0; color: var(--text); font-family: var(--mono); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-stats dd.warm { color: var(--accent-text); }
.console-foot { margin-top: 14px; font-size: 7px; }

.scroll-down {
  left: var(--page-pad);
  bottom: 22px;
  transform: none;
  flex-direction: row;
  gap: 12px;
  font-size: 8px;
  color: var(--text-dim);
}
.scroll-track { width: 52px; height: 1px; overflow: hidden; background: var(--line); }
.scroll-track i { display: block; width: 45%; height: 1px; background: var(--acid); animation: scroll-track 1.8s ease-in-out infinite; }

/* ── Moving signal strip ──────────────────────────────────────────────── */
.signal-ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
}
.signal-ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 13px 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
}
.signal-ticker-track i { color: var(--orange); font-size: 14px; }

/* ── Project grid ─────────────────────────────────────────────────────── */
.work-shell {
  max-width: 1640px;
  margin: 0 auto;
  padding: clamp(100px, 12vw, 180px) var(--page-pad);
}
.work-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  align-items: end;
  gap: 50px;
  margin-bottom: clamp(55px, 7vw, 100px);
}
.section-index {
  display: block;
  margin-bottom: 18px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.work-heading h2,
.notes-heading h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(64px, 9vw, 152px);
  font-weight: 700;
  line-height: .72;
  letter-spacing: -.085em;
  text-transform: uppercase;
}
.work-heading h2 em,
.notes-heading h2 em {
  color: var(--orange);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.04em;
  text-transform: none;
}
.work-heading-note {
  padding: 24px 0 5px;
  border-top: 1px solid var(--line);
}
.work-heading-note span { color: var(--accent-text); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.work-heading-note p { max-width: 330px; margin-top: 14px; color: var(--text-mid); font-size: 15px; line-height: 1.55; }

.page-home .project-list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 22px);
  padding: 0;
}
.page-home .project-item {
  position: relative;
  grid-column: span 4;
  min-height: 390px;
  padding: clamp(22px, 2.2vw, 34px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  text-decoration: none;
  isolation: isolate;
  transition: transform var(--t), border-color var(--t), background var(--t), color var(--t);
}
.page-home .project-item:nth-child(1),
.page-home .project-item:nth-child(6),
.page-home .project-item:nth-child(9) { grid-column: span 8; }
.page-home .project-item:nth-child(1) { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.page-home .project-item:nth-child(6) { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.page-home .project-item:nth-child(9) { background: var(--blue); color: #f7f5ed; border-color: var(--blue); }
.page-home .project-item::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 180px;
  aspect-ratio: 1;
  right: -110px;
  bottom: -110px;
  border: 24px solid var(--acid);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.6);
  transition: opacity var(--t), transform 420ms cubic-bezier(.2,.8,.2,1);
}
.page-home .project-item:hover {
  border-color: var(--acid);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-7px);
}
.page-home .project-item:hover::before { opacity: 1; transform: scale(1); }
.page-home .project-item:nth-child(1):hover,
.page-home .project-item:nth-child(6):hover,
.page-home .project-item:nth-child(9):hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.proj-top,
.proj-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.page-home .proj-num { position: static; padding: 0; color: currentColor; opacity: .55; font-size: 8px; }
.page-home .status { color: currentColor; font-size: 8px; text-transform: uppercase; opacity: .75; }
.page-home .status-dot { background: currentColor !important; box-shadow: none !important; }
.proj-body { position: relative; z-index: 2; margin: auto 0; padding: 38px 0; }
.page-home .proj-title {
  max-width: 720px;
  margin: 0;
  color: currentColor;
  font-family: var(--sans);
  font-size: clamp(30px, 3.3vw, 58px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.055em;
}
.page-home .project-item:hover .proj-title { color: currentColor; }
.page-home .proj-story {
  max-width: 520px;
  margin: 20px 0 0;
  color: currentColor;
  font-size: 13px;
  line-height: 1.55;
  opacity: .67;
}
.page-home .proj-tags { position: relative; z-index: 2; gap: 6px; }
.page-home .tag {
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 2px 0;
  color: currentColor;
  font-size: 8px;
  opacity: .55;
}
.page-home .proj-arrow {
  position: static;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  color: currentColor;
  font-size: 18px;
  transition: transform var(--t), background var(--t), color var(--t);
}
.page-home .project-item:hover .proj-arrow { color: var(--text); background: var(--bg); transform: rotate(45deg); }
.proj-watermark {
  position: absolute;
  right: -8px;
  bottom: -36px;
  z-index: 0;
  color: currentColor;
  font-family: var(--sans);
  font-size: clamp(150px, 17vw, 290px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.12em;
  opacity: .035;
  user-select: none;
}
.project-item:nth-child(1) .proj-watermark,
.project-item:nth-child(6) .proj-watermark,
.project-item:nth-child(9) .proj-watermark { opacity: .09; }
.empty-state { grid-column: 1 / -1; padding: 60px 0; color: var(--text-dim); font-family: var(--mono); font-size: 11px; }

/* ── Field notes panel ────────────────────────────────────────────────── */
.notes-section {
  background: var(--orange);
  color: var(--ink);
}
.notes-shell { max-width: 1640px; margin: 0 auto; padding: clamp(90px, 10vw, 150px) var(--page-pad); }
.notes-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(55px, 7vw, 90px);
}
.notes-heading .section-index { color: rgba(11,11,11,.55); }
.notes-heading h2 { color: var(--ink); font-size: clamp(64px, 8vw, 132px); }
.notes-heading h2 em { color: var(--ink); }
.notes-all {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
}
.notes-all span { font-size: 18px; transition: transform var(--t); }
.notes-all:hover span { transform: rotate(45deg); }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(11,11,11,.4); border-left: 1px solid rgba(11,11,11,.4); }
.note-card {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 38px);
  border-right: 1px solid rgba(11,11,11,.4);
  border-bottom: 1px solid rgba(11,11,11,.4);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--t), color var(--t), transform var(--t);
}
.note-card:hover { background: var(--ink); color: var(--orange); transform: translateY(-6px); }
.note-card-top,
.note-card-foot { display: flex; justify-content: space-between; gap: 20px; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.note-card h3 { margin: auto 0 18px; font-size: clamp(26px, 2.7vw, 46px); font-weight: 600; line-height: 1.02; letter-spacing: -.05em; }
.note-card p { margin: 0 0 40px; font-size: 13px; line-height: 1.6; opacity: .68; }
.note-card-foot { padding-top: 14px; border-top: 1px solid currentColor; }
.surprise-note {
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  padding: 24px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
}
.surprise-label,
.surprise-go { font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: .09em; }
.surprise-note strong { font-size: clamp(22px, 2.5vw, 40px); line-height: 1.1; letter-spacing: -.04em; }
.surprise-go { transition: transform var(--t); }
.surprise-note:hover .surprise-go { transform: translateX(7px); }

/* ── Public footer ────────────────────────────────────────────────────── */
.site-footer {
  max-width: none;
  margin: 0;
  padding: clamp(70px, 9vw, 130px) var(--page-pad) 30px;
  display: block;
  overflow: hidden;
  border: 0;
  background: var(--ink);
  color: #f3f1e9;
}
.footer-statement {
  width: max-content;
  transform: translateX(-.035em);
  color: #f3f1e9;
  font-size: clamp(60px, 13.2vw, 230px);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.095em;
  white-space: nowrap;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(60px, 8vw, 110px);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.site-footer .footer-l { color: rgba(255,255,255,.5); font-size: 8px; letter-spacing: .08em; }
.site-footer .footer-r { flex-wrap: wrap; }
.site-footer .footer-r a { color: rgba(255,255,255,.68); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.site-footer .footer-r a:hover { color: var(--acid); }

/* ── Writing index ───────────────────────────────────────────────────── */
.page-writing .writing-hero {
  position: relative;
  max-width: 1480px;
  min-height: 68vh;
  margin: 0 auto;
  padding: clamp(100px, 12vw, 190px) var(--page-pad) clamp(80px, 9vw, 140px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-writing .writing-eyebrow { margin-bottom: 32px; color: var(--text-dim); font-size: 9px; }
.page-writing .writing-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(76px, 12vw, 190px);
  font-weight: 700;
  line-height: .75;
  letter-spacing: -.09em;
  text-transform: uppercase;
}
.page-writing .writing-title em { color: var(--accent-text); font-family: var(--serif); font-weight: 400; text-transform: none; }
.page-writing .writing-desc { max-width: 530px; margin-top: 44px; color: var(--text-mid); font-size: 16px; }
.writing-stamp {
  position: absolute;
  right: var(--page-pad);
  top: clamp(70px, 8vw, 120px);
  width: clamp(130px, 16vw, 230px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(16px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  transform: rotate(11deg);
}
.page-writing .posts-wrap { max-width: 1320px; margin: 0 auto; padding: 100px var(--page-pad) 140px; }
.page-writing .month-group { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin-bottom: 80px; }
.page-writing .month-label {
  grid-column: 1;
  align-self: stretch;
  padding: 18px 22px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--accent-text);
  font-size: 9px;
}
.page-writing .post-item-link { grid-column: 2; }
.page-writing .post-item {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  transition: padding var(--t), color var(--t);
}
.page-writing .post-item-link:last-child .post-item { border-bottom: 1px solid var(--line); }
.page-writing .post-item:hover { padding-inline: 22px; border-color: var(--acid); background: var(--acid); color: var(--ink); }
.page-writing .post-item-inner { gap: 28px; }
.page-writing .post-item-inner.has-cover { grid-template-columns: 210px minmax(0, 1fr) auto; }
.page-writing .post-cover { width: 210px; border-radius: 0; border: 0; filter: saturate(.7) contrast(1.08); }
.page-writing .post-title { color: currentColor; font-family: var(--sans); font-size: clamp(25px, 3vw, 42px); line-height: 1.04; letter-spacing: -.05em; }
.page-writing .post-item:hover .post-title { color: currentColor; }
.page-writing .post-lede { max-width: 650px; margin-top: 13px; color: currentColor; opacity: .62; }
.page-writing .post-foot { color: currentColor; opacity: .55; flex-wrap: wrap; }
.page-writing .post-tag-inline { color: currentColor; border-color: currentColor; border-radius: 0; }
.page-writing .post-date-col { color: currentColor; opacity: .5; }

.page-writing footer.footer-col,
.page-article footer.footer-col {
  max-width: 1320px !important;
  margin: 0 auto;
  padding: 30px var(--page-pad) !important;
  border-top: 1px solid var(--line) !important;
}

/* ── Article detail ───────────────────────────────────────────────────── */
.page-article .article-wrap { max-width: 820px; padding: 100px 40px 120px; }
.page-article .back-btn { margin-bottom: 78px; color: var(--accent-text); font-size: 9px; text-transform: uppercase; }
.page-article .article-meta-top { margin-bottom: 24px; }
.page-article .article-title {
  margin-bottom: 28px;
  font-family: var(--sans);
  font-size: clamp(48px, 7.5vw, 104px);
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.07em;
}
.page-article .article-lede {
  margin: 0 0 46px;
  padding: 0;
  border: 0;
  color: var(--text-mid);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
}
.page-article .article-cover {
  width: min(1180px, calc(100vw - 64px));
  margin: 50px 0 12px;
  margin-left: calc(50% - min(590px, calc(50vw - 32px)));
  border: 0;
  border-radius: 0;
}
.page-article .article-divider { margin: 50px 0; background: var(--line); }
.page-article .article-body { color: var(--text-mid); font-size: 17px; line-height: 1.9; }
.page-article .article-body h1,
.page-article .article-body h2 {
  border-color: var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.045em;
}
.page-article .article-body h3 { color: var(--accent-text); font-family: var(--sans); }
.page-article .article-body pre { border-left: 5px solid var(--acid); border-radius: 0; }
.page-article .article-body blockquote { border-left: 5px solid var(--orange); font-size: 20px; }
.page-article .article-body .article-img,
.page-article .article-body figure img { border-radius: 0; }
.page-article .comments-section { margin-top: 110px; border-color: var(--line); }
.page-article .comments-heading { font-family: var(--sans); font-size: 34px; letter-spacing: -.04em; }
.page-article .comment-form { padding: 28px; border-radius: 0; border-color: var(--line); }
.page-article .comment-name-input,
.page-article .comment-body-input { border-radius: 0; }
.page-article .comment-submit { border-radius: 0; background: var(--acid); color: var(--ink); }

/* ── Motion ───────────────────────────────────────────────────────────── */
@keyframes signal-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.72); }
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes scroll-track {
  0% { transform: translateX(-120%); }
  55%, 100% { transform: translateX(240%); }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 38px; }
  .hero-console { min-height: 440px; box-shadow: 10px 10px 0 var(--acid); }
  .console-orbit { width: 205px; margin-block: 26px 22px; }
  .orbit-core strong { font-size: 58px; }
  .hero-lower { grid-template-columns: 1fr; align-items: start; }
  .page-home .project-item { grid-column: span 6; }
  .page-home .project-item:nth-child(1),
  .page-home .project-item:nth-child(6),
  .page-home .project-item:nth-child(9) { grid-column: span 6; }
}

@media (max-width: 860px) {
  nav.site-nav { height: 64px; }
  .hero-frame { min-height: calc(100svh - 64px); }
  .page-home .hero-fullscreen { min-height: calc(100svh - 64px); }
  .hero-layout { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-title { font-size: clamp(66px, 14vw, 110px); }
  .hero-console { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
  .console-head { grid-column: 1 / -1; }
  .console-orbit { width: 180px; margin: 10px auto; }
  .console-stats { grid-template-columns: 1fr; }
  .console-foot { grid-column: 1 / -1; }
  .scroll-down { display: none; }
  .work-heading { grid-template-columns: 1fr; align-items: start; }
  .work-heading-note { max-width: 420px; }
  .notes-grid { grid-template-columns: 1fr; }
  .note-card { min-height: 310px; }
  .surprise-note { grid-template-columns: 1fr auto; }
  .surprise-label { grid-column: 1 / -1; }
  .page-writing .month-group { grid-template-columns: 1fr; }
  .page-writing .month-label,
  .page-writing .post-item-link { grid-column: 1; }
  .page-writing .month-label { padding-bottom: 14px; }
}

@media (max-width: 640px) {
  .page-home,
  .page-writing,
  .page-article { --page-pad: 18px; background-size: 40px 40px; }
  .site-nav .logo-word,
  .site-nav .nav-num,
  .site-nav .nav-github { display: none; }
  .site-nav .nav-r { gap: 16px; }
  .site-nav .nav-r a { font-size: 9px; }
  .site-nav .logo-mark { width: 32px; height: 32px; }
  .hero-frame { padding-top: 18px; padding-bottom: 54px; }
  .hero-topline { font-size: 7px; }
  .hero-index { display: none; }
  .hero-layout { gap: 42px; padding-top: 52px; }
  .hero-name { margin-bottom: 20px; font-size: 8px; }
  .hero-title { font-size: clamp(56px, 17.5vw, 82px); line-height: .79; }
  .hero-title em { margin-top: .28em; font-size: .62em; white-space: normal; line-height: .88; }
  .hero-lower { margin-top: 34px; }
  .hero-bio { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-cta { min-width: 0; width: 100%; }
  .hero-console { display: block; padding: 14px; box-shadow: 7px 7px 0 var(--acid); }
  .console-orbit { width: 150px; margin: 22px auto; }
  .orbit-core strong { font-size: 46px; }
  .console-stats { grid-template-columns: repeat(3, 1fr); }
  .console-stats > div { padding: 10px 7px; }
  .console-stats dd { font-size: 8px; }
  .console-foot { margin-top: 12px; }
  .hero-cross-a { left: 78%; top: 21%; }
  .hero-cross-b { left: -2%; bottom: 34%; }
  .hero-backdrop::before { right: -26vw; top: -10vw; }
  .work-shell { padding-block: 100px; }
  .work-heading { gap: 30px; margin-bottom: 52px; }
  .work-heading h2,
  .notes-heading h2 { font-size: clamp(58px, 20vw, 90px); }
  .page-home .project-list { display: grid; grid-template-columns: 1fr; }
  .page-home .project-item,
  .page-home .project-item:nth-child(1),
  .page-home .project-item:nth-child(6),
  .page-home .project-item:nth-child(9) { grid-column: 1; min-height: 340px; }
  .page-home .proj-title { font-size: 34px; }
  .notes-heading { align-items: start; flex-direction: column; }
  .notes-all { width: 100%; }
  .note-card { min-height: 290px; }
  .surprise-note { grid-template-columns: 1fr; }
  .surprise-note strong { font-size: 24px; }
  .footer-statement { white-space: normal; font-size: 24vw; line-height: .75; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .page-writing .writing-hero { min-height: 74svh; padding-top: 100px; }
  .page-writing .writing-title { font-size: clamp(70px, 24vw, 110px); }
  .writing-stamp { width: 100px; top: 38px; right: 18px; font-size: 14px; }
  .page-writing .writing-desc { max-width: 78%; font-size: 14px; }
  .page-writing .posts-wrap { padding-top: 70px; }
  .page-writing .post-item-inner,
  .page-writing .post-item-inner.has-cover { grid-template-columns: 1fr; }
  .page-writing .post-cover { width: 100%; }
  .page-writing .post-date-col { display: none; }
  .page-writing .post-title { font-size: 28px; }
  .page-article .article-wrap { padding: 72px 20px 90px; }
  .page-article .back-btn { margin-bottom: 48px; }
  .page-article .article-title { font-size: clamp(42px, 14vw, 66px); }
  .page-article .article-cover { width: calc(100vw - 40px); margin-left: calc(50% - 50vw + 20px); }
  .page-article .article-body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .system-tag i,
  .console-head i,
  .orbit-ring-a,
  .orbit-ring-b,
  .scroll-track i,
  .signal-ticker-track { animation: none !important; }
}
