:root {
  --hue: 200;
  --hue2: 135;
  --bg: oklch(13% 0.025 270);
  --bg-alt: oklch(17% 0.03 270);
  --card: oklch(19% 0.03 270);
  --text: oklch(96% 0.01 270);
  --text-muted: oklch(72% 0.02 270);
  --border: rgba(255, 255, 255, 0.1);
  --accent: oklch(68% 0.19 var(--hue));
  --accent2: oklch(74% 0.15 var(--hue2));
  --glow: oklch(68% 0.19 var(--hue) / 0.35);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
::selection { background: rgba(140, 120, 255, 0.35); }
button { font-family: inherit; }

/* ---------- ambient background ---------- */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.nebula-1 {
  top: -10%; left: -10%;
  width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  animation: drift1 26s ease-in-out infinite;
}
.nebula-2 {
  bottom: -15%; right: -10%;
  width: 50vw; height: 50vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, oklch(70% 0.15 var(--hue2) / 0.3), transparent 70%);
  animation: drift2 32s ease-in-out infinite;
}
@keyframes drift1 { 0%,100%{transform:translate(-5%,-5%) scale(1)} 50%{transform:translate(6%,4%) scale(1.15)} }
@keyframes drift2 { 0%,100%{transform:translate(4%,6%) scale(1.1)} 50%{transform:translate(-6%,-3%) scale(1)} }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }
@keyframes pulseRing { 0%{box-shadow:0 0 0 0 rgba(255,255,255,0.25)} 100%{box-shadow:0 0 0 14px rgba(255,255,255,0)} }
@keyframes nodeGlow { 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.35)} }
@keyframes twinkle { 0%,100%{opacity:0.25} 50%{opacity:0.8} }

/* ---------- cursor fx ---------- */
#cursor-fx {
  position: fixed;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  transition: transform .35s cubic-bezier(.2,1,.3,1), opacity .25s, width .3s, height .3s, left .15s, top .15s;
}
#cursor-fx.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#cursor-fx.labeled { width: 92px; height: 92px; }
#cursor-fx span {
  font-size: 10px; letter-spacing: .06em; text-align: center; font-weight: 600;
  color: var(--accent); text-transform: uppercase;
}
@media (hover: none) { #cursor-fx { display: none; } }

/* ---------- scroll progress ---------- */
#scroll-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 1000; transition: width .1s linear;
}

/* ---------- nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; }
.logo-mark { width: 38px; height: 37px; display: block; }
.logo-mark-base { fill: #182540; }
.logo-mark-f1 { fill: #1e2f52; }
.logo-mark-f2 { fill: #192843; }
.logo-mark-f3 { fill: #243a63; }
.logo-mark-f4 { fill: #141f38; }
.logo-mark-f5 { fill: #1b2a49; }
.logo-mark-edges line { stroke: #0a0f1c; stroke-width: 1; opacity: .6; }
.logo-mark-outline { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; transition: stroke .25s; }
.logo:hover .logo-mark-outline { stroke: var(--accent2); }
.nav-links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  letter-spacing: .01em; transition: color .25s;
}
.nav-links a.active, .nav-links a:hover { color: var(--accent); }
.nav-links a.extra { color: var(--text-muted); }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px 28px 90px; max-width: 1200px; margin: 0 auto;
}
.hero-kicker { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .16em; margin-bottom: 20px; }
.hero-title {
  font-family: var(--font-display); font-weight: 700; line-height: 1.15;
  margin: 0; max-width: 900px; padding-top: 12px;
  font-size: clamp(38px, 8vw, 70px);
}
.hero-title .word { display: inline-flex; white-space: nowrap; margin-right: .28em; }
.hero-title .letter {
  display: inline-block; transition: color .2s, transform .2s; cursor: default;
}
.hero-title .letter:hover { color: var(--accent); transform: translateY(-6px) scale(1.15); }
.hero-sub { color: var(--text-muted); font-size: 18px; line-height: 1.6; max-width: 620px; margin-top: 26px; }
.hero-cta-row { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .25s, box-shadow .25s, border-color .25s; display: inline-block;
}
.btn-primary { background: var(--accent); color: #0a0a0c; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px var(--glow); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-3px); }
.scroll-cue {
  position: absolute; bottom: 36px; left: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: bob 1.8s ease-in-out infinite;
}
.scroll-cue-line { width: 1px; height: 34px; background: linear-gradient(var(--text-muted), transparent); }

/* ---------- sections ---------- */
main { position: relative; z-index: 1; }
.section { max-width: 1200px; margin: 0 auto; padding: 120px 28px; opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,1,.3,1), transform .9s cubic-bezier(.2,1,.3,1); }
.section.revealed { opacity: 1; transform: translateY(0); }
.eyebrow { color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .18em; margin-bottom: 14px; }
.section-title {
  font-family: var(--font-display); font-weight: 600; line-height: 1.2;
  margin: 0 0 40px; max-width: 780px; font-size: clamp(28px, 4vw, 42px);
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 56px; align-items: center; }
.body-text { font-size: 17px; line-height: 1.75; margin-bottom: 18px; }
.body-text-muted { font-size: 15.5px; line-height: 1.7; color: var(--text-muted); }
.photo-col { display: flex; justify-content: center; }
.photo-frame {
  position: relative; width: 100%; max-width: 320px; aspect-ratio: 4/5; border-radius: 20px;
  overflow: hidden; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame .placeholder {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, var(--bg-alt) 0 14px, var(--card) 14px 28px);
  display: flex; align-items: center; justify-content: center;
}
.photo-frame .placeholder span {
  position: relative; font-family: monospace; font-size: 12px; color: var(--text-muted);
  background: rgba(0,0,0,0.4); padding: 6px 12px; border-radius: 6px; letter-spacing: .05em;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; margin-top: 64px; }
.stat-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px; padding: 26px 20px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; letter-spacing: .03em; }

/* ---------- experience roadmap ---------- */
.roadmap { display: flex; flex-direction: column; margin-top: 40px; position: relative; }
.rail {
  position: absolute; left: 50%; top: 10px; bottom: 10px; width: 3px; transform: translateX(-50%);
  background: linear-gradient(var(--accent), var(--accent2), var(--border));
  box-shadow: 0 0 16px var(--glow); border-radius: 4px; z-index: 0;
}
.org-row { display: flex; position: relative; margin-bottom: 50px; min-height: 20px; }
.org-row.left { justify-content: flex-start; }
.org-row.right { justify-content: flex-end; }
.org-dot {
  position: absolute; left: 50%; top: 6px; z-index: 2; width: 20px; height: 20px; border-radius: 50%;
  transform: translate(-50%, 0); cursor: pointer; transition: transform .25s;
  background: var(--bg-alt); border: 2px solid var(--text-muted);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.org-row.current .org-dot {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--glow), 0 0 22px var(--accent);
  animation: pulseRing 1.8s ease-out infinite;
}
.org-row:hover .org-dot { transform: translate(-50%, 0) scale(1.15); }
.org-label-wrap { width: calc(50% - 130px); min-width: 160px; max-width: 280px; position: relative; z-index: 1; }
.org-row.left .org-label-wrap { text-align: right; padding-right: 0; }
.org-row.right .org-label-wrap { text-align: left; padding-left: 0; }
.org-connector { position: absolute; top: 15px; width: 130px; height: 2px; }
.org-row.left .org-connector { right: -130px; background: linear-gradient(90deg, var(--text-muted), transparent); }
.org-row.right .org-connector { left: -130px; background: linear-gradient(270deg, var(--text-muted), transparent); }
.org-row.current.left .org-connector { background: linear-gradient(90deg, var(--accent), transparent); }
.org-row.current.right .org-connector { background: linear-gradient(270deg, var(--accent), transparent); }
.org-name {
  font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: color .25s; display: inline-block;
}
.org-row.current .org-name { font-size: 23px; font-weight: 700; color: var(--accent); }
.org-row:not(.current):hover .org-name { color: var(--text); }
.org-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.org-projects-panel {
  margin-top: 14px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px; text-align: left; box-shadow: 0 14px 34px rgba(0,0,0,0.4);
  display: none;
}
.org-row:hover .org-projects-panel, .org-row:focus-within .org-projects-panel { display: block; }
.project-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.project-row:last-child { border-bottom: none; }
.project-row .p-name { font-size: 14px; font-weight: 500; }
.project-row .p-mode { font-size: 12px; color: var(--accent2); font-weight: 600; white-space: nowrap; }

@media (max-width: 720px) {
  .org-label-wrap { width: auto; max-width: none; text-align: left !important; padding-left: 36px !important; padding-right: 0 !important; }
  .org-row.left, .org-row.right { justify-content: flex-start; }
  .rail { left: 10px; transform: none; }
  .org-dot { left: 10px; }
  .org-connector { display: none; }
}

/* ---------- skills ---------- */
.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.skill-group-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.skill-group-title { font-size: 13px; font-weight: 700; color: var(--accent2); letter-spacing: .04em; margin-bottom: 14px; }
.skill-chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.skill-chip {
  font-size: 12.5px; color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 13px; transition: background .25s, transform .25s;
}
.skill-chip:hover { background: var(--accent); color: #0a0a0c; transform: translateY(-2px); }

/* ---------- work ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; margin-top: 20px; }
.project-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  transition: transform .15s ease-out, box-shadow .3s; will-change: transform;
}
.project-card-body { padding: 22px 22px 24px; }
.project-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.project-card p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-bottom: 14px; }
.tech-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tech-pill {
  font-size: 11.5px; font-weight: 600; color: var(--accent); background: rgba(255,255,255,0.06);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px;
}
.network-tile {
  background: var(--bg-alt); border: 1px dashed var(--border); border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 180px; text-align: center; padding: 24px 20px; transition: border-color .25s, transform .25s;
}
.network-tile:hover { border-color: var(--accent); transform: translateY(-3px); }
.network-tile-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--accent); }
.network-tile-arrow { font-size: 22px; color: var(--accent); }

/* ---------- education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 20px; }
.edu-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.edu-year { font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.edu-degree { font-size: 15px; font-weight: 600; margin-bottom: 4px; line-height: 1.35; }
.edu-school { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* ---------- contact ---------- */
.contact-section { text-align: center; padding-bottom: 60px; }
.contact-title { font-family: var(--font-display); font-size: clamp(26px, 5vw, 44px); font-weight: 600; margin: 0 0 36px; }
.contact-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.contact-link { font-size: 18px; font-weight: 600; color: var(--accent); border-bottom: 1px solid transparent; transition: border-color .25s; }
.contact-link:hover { border-color: var(--accent); }
.location { font-size: 14px; color: var(--text-muted); }

.site-footer {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 56px 28px 36px;
  font-size: 12.5px; color: var(--text-muted);
}
.footer-quote {
  margin: 0 auto 44px; max-width: 620px; min-height: 4.6em; font-family: var(--font-display);
  font-size: 19px; line-height: 1.6; font-weight: 500; color: var(--text);
  font-style: italic; text-align: center;
}
.footer-quote-cursor {
  display: inline-block; width: 2px; height: 1em; margin-left: 2px;
  background: var(--accent); vertical-align: text-bottom;
  animation: quote-blink 0.9s step-end infinite;
}
.footer-quote.typing-done .footer-quote-cursor { animation: none; opacity: 0; transition: opacity .6s ease .6s; }
@keyframes quote-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.footer-quote-attr {
  margin-left: 8px; font-size: 15px; font-weight: 500; color: var(--text-muted);
  opacity: 0; transition: opacity .6s ease;
}
.footer-quote.typing-done .footer-quote-attr { opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; border-top: 1px solid var(--border);
}

/* ---------- shared secondary-page header ---------- */
.page-header {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.page-header a { font-size: 13.5px; color: var(--text-muted); font-weight: 500; }
.page-header nav { display: flex; gap: 22px; align-items: center; }
.page-intro { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; padding: 20px 28px 10px; text-align: center; }
.page-intro h1 { font-family: var(--font-display); font-size: clamp(28px, 5vw, 46px); font-weight: 600; margin: 0 0 16px; }
.page-intro p { font-size: 15.5px; color: var(--text-muted); line-height: 1.6; }

/* ---------- project network ---------- */
.graph-wrap {
  position: relative; z-index: 1; width: 100%; max-width: 1300px; height: min(78vh, 760px);
  margin: 20px auto 30px; min-height: 480px;
}
.graph-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph-wrap line { transition: stroke .2s, opacity .2s, stroke-width .2s; }
.node-dot {
  position: absolute; border-radius: 50%; cursor: pointer; transform: translate(-50%, -50%);
  transition: width .2s, height .2s, opacity .2s, box-shadow .2s;
}
.node-tooltip {
  position: absolute; z-index: 5; width: 300px; max-height: 320px; overflow-y: auto;
  transform: translate(-50%, calc(-100% - 20px));
  background: var(--bg-alt); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5); pointer-events: none;
}
.node-tooltip.below { transform: translate(-50%, 20px); }
.node-tooltip .t-org { font-size: 11px; font-weight: 700; letter-spacing: .05em; margin-bottom: 6px; text-transform: uppercase; }
.node-tooltip .t-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.node-tooltip .t-desc { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.node-tooltip .t-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.node-tooltip .t-tag {
  font-size: 10px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14); color: var(--text-muted);
}
.graph-legend { position: relative; z-index: 2; display: flex; justify-content: center; gap: 28px; padding-bottom: 50px; flex-wrap: wrap; }
.graph-legend .item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.graph-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- blog ---------- */
.blog-header-star {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px 2px rgba(255,255,255,0.9), 0 0 14px 4px rgba(255,255,255,0.4);
  cursor: pointer;
}
.admin-link { font-size: 11px; color: rgba(255,255,255,0.35); font-weight: 500; cursor: pointer; letter-spacing: .03em; }
.series-grid, .posts-grid {
  position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 0 28px 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.posts-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); padding-top: 10px; }
.series-card, .post-card {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px;
  cursor: pointer; transition: transform .2s, border-color .2s; position: relative;
}
.card-delete {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,0.45); border: 1px solid var(--border); color: var(--text-muted);
  font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s; z-index: 2;
}
.card-delete:hover { background: oklch(65% 0.2 25); color: #fff; border-color: oklch(65% 0.2 25); }
.series-card { padding: 22px; }
.series-card:hover, .post-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.series-count { font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 8px; letter-spacing: .03em; }
.series-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.35; margin: 0; }
.post-card { overflow: hidden; }
.post-media { width: 100%; height: 0; overflow: hidden; transition: height .2s; background-size: cover; background-position: center; }
.post-media.has-img { height: 150px; }
.post-body { padding: 16px 18px; }
.post-body h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.post-body p { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); margin: 0; }
.empty-state { grid-column: 1/-1; color: var(--text-muted); font-size: 14px; padding: 30px 0; }
.add-series-btn, .add-post-btn {
  background: transparent; border: 1.5px dashed var(--border); border-radius: 16px; padding: 22px;
  color: var(--text-muted); font-weight: 600; font-size: 14px; cursor: pointer;
}
.add-post-btn {
  display: block; margin: 0 auto 60px; background: var(--accent); color: #0a0a0c; border: none;
  padding: 13px 28px; border-radius: 999px; font-size: 14.5px; border-radius: 999px;
}
.form-card {
  position: relative; z-index: 1; max-width: 560px; margin: 0 auto 20px; padding: 0 28px;
}
.form-card.series-form { grid-column: 1/-1; max-width: 420px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin: 0; }
.form-card input, .form-card textarea, .modal input {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border); font-size: 14.5px;
  background: var(--bg-alt); color: var(--text); margin-bottom: 10px;
}
.form-card textarea { min-height: 140px; resize: vertical; }
.form-card input[type=file] { color: var(--text-muted); font-size: 13px; background: none; border: none; padding: 0; }
.form-actions { display: flex; gap: 10px; }
.btn-solid { background: var(--accent); color: #0a0a0c; border: none; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.btn-outline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.form-preview { width: 100%; height: 0; border-radius: 10px; margin-bottom: 0; overflow: hidden; background-size: cover; background-position: center; transition: height .2s; }
.form-preview.has-img { height: 200px; margin-bottom: 10px; }

.detail-header { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 20px 28px 6px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.detail-header h1 { font-family: var(--font-display); font-size: clamp(24px, 4vw, 36px); font-weight: 600; margin: 0; }

.post-view-wrap { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 20px 28px 80px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.post-view-wrap h1 { font-family: var(--font-display); font-size: clamp(26px, 4.5vw, 40px); font-weight: 600; margin: 0; }
.post-view-image { width: 100%; height: 0; border-radius: 14px; overflow: hidden; transition: height .2s; background-size: cover; background-position: center; }
.post-view-image.has-img { height: 340px; }
.post-view-content { font-size: 16px; line-height: 1.75; color: var(--text-muted); white-space: pre-wrap; }

.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; z-index: 50;
}
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px; padding: 26px 28px; width: 300px; }
.modal h2 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 0 0 14px; }
.modal .error { color: oklch(65% 0.2 25); font-size: 12.5px; margin-bottom: 8px; }

@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(34px, 12vw, 54px); }
}
