/* ============================================================
   Kazimi · 边界之外
   Static personal site · glassmorphism · Internal / Infernal
   ============================================================ */

:root {
  --bg: #f8f5f0;
  --bg-2: #efeae1;
  --ink: #2b4248;
  --ink-soft: #567075;
  --ink-faint: #78898c;
  --line: #ddd6c9;
  --glass: #ffffff;
  --glass-strong: #ffffff;
  --glass-border: #e4ddd0;
  --glass-shadow: 0 12px 34px rgba(43, 66, 72, 0.07);
  --accent: #2b4248;
  --accent-2: #a7bfbf;
  --accent-3: #5e8a74;
  --on-accent: #f8f5f0;
  --aur-1: transparent;
  --aur-2: transparent;
  --aur-3: transparent;
  --grain-opacity: 0;
  --nav-bg: #f8f5f0;

  --radius: 22px;
  --radius-lg: 30px;
  --maxw: 1120px;
  --sans: "Inter", "SF Pro Text", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="infernal"] {
  --bg: #34362b;
  --bg-2: #3c3e31;
  --ink: #f3efe3;
  --ink-soft: #c6c1aa;
  --ink-faint: #9a9880;
  --line: #545645;
  --glass: #43453a;
  --glass-strong: #4b4d40;
  --glass-border: #575947;
  --glass-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  --accent: #f0c487;
  --accent-2: #a3b494;
  --accent-3: #a3b494;
  --on-accent: #2b2c22;
  --aur-1: transparent;
  --aur-2: transparent;
  --aur-3: transparent;
  --grain-opacity: 0;
  --nav-bg: #34362b;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease), color 0.5s var(--ease);
}

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

::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ---------- ambient background ---------- */
.aurora {
  display: none;
  position: fixed;
  inset: -20vh -10vw;
  z-index: -2;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.95;
}

.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.blob-a {
  width: 46vw; height: 46vw;
  left: -8vw; top: 2vh;
  background: var(--aur-1);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.blob-b {
  width: 40vw; height: 40vw;
  right: -6vw; top: 18vh;
  background: var(--aur-2);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.blob-c {
  width: 38vw; height: 38vw;
  left: 28vw; bottom: -14vh;
  background: var(--aur-3);
  animation: drift-c 38s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 6vh, 0) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-7vw, 8vh, 0) scale(0.95); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-5vw, -7vh, 0) scale(1.2); }
}

.grain {
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%);
  transition: opacity 0.4s ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-glow { opacity: 0.9; }
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: none;
}

/* ---------- glass primitives ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
}

/* ---------- nav ---------- */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px clamp(16px, 4vw, 40px);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  background: var(--nav-bg);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s ease;
}

.nav.scrolled {
  box-shadow: 0 10px 26px rgba(43, 66, 72, 0.12);
  transform: translateY(-1px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 16px;
  box-shadow: none;
}

.brand-text { font-size: 15px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }

.nav-links a.active {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.theme-toggle:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.toggle-track {
  position: relative;
  display: block;
  width: 46px; height: 26px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass-strong);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.45s var(--ease), background 0.4s ease;
}

html[data-theme="infernal"] .toggle-thumb { transform: translateX(20px); }

.ico { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sun { display: block; color: var(--accent); }
.ico-moon { display: none; color: var(--accent-2); }
html[data-theme="infernal"] .ico-sun { display: none; }
html[data-theme="infernal"] .ico-moon { display: block; }

.theme-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-family: var(--mono);
  min-width: 52px;
  text-align: left;
}

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn.open span:first-child { top: 19px; transform: rotate(45deg); }
.menu-btn.open span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px clamp(20px, 5vw, 56px) 90px;
  max-width: calc(var(--maxw) + 80px);
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-3) 70%, transparent);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-3) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  margin: 0;
  font-size: clamp(3.8rem, 11.5vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: 0.015em;
  font-weight: 800;
  color: var(--ink);
}

.hero-role {
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.hero-role .sep { margin: 0 12px; color: var(--ink-faint); }

.hero-desc {
  margin: 16px 0 0;
  max-width: 30em;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  color: var(--ink-soft);
  line-height: 1.9;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: none;
}
.btn-primary:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--bg-2);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 46px);
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.hero-meta li { display: flex; flex-direction: column; gap: 2px; }
.hero-meta span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-faint); text-transform: uppercase; }
.hero-meta b { font-size: 14px; font-weight: 600; color: var(--ink); }
.hero-meta b.ok { color: var(--accent-3); }

/* hero card */
.hero-card {
  position: relative;
  padding: 34px 30px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  transform: none;
  transition: transform 0.6s var(--ease), box-shadow 0.6s ease;
}
.hero-card:hover { transform: translateY(-4px); }

.card-sheen {
  display: none;
  position: absolute;
  inset: -60% -20% auto;
  height: 130%;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.32) 48%, transparent 62%);
  transform: translateX(-40%);
  pointer-events: none;
  animation: sheen 7s var(--ease) infinite;
  opacity: 0.6;
}
@keyframes sheen {
  0%, 55% { transform: translateX(-45%); }
  85%, 100% { transform: translateX(45%); }
}

.avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 4px auto 16px;
}

.avatar {
  position: relative;
  z-index: 2;
  width: 96px; height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  color: var(--on-accent);
  letter-spacing: 0.02em;
  background: var(--accent);
  box-shadow: none;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-dot {
  position: absolute;
  z-index: 3;
  right: 4px; bottom: 8px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent-3);
  border: 2.5px solid var(--bg);
  box-shadow: none;
}

.hero-card h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.hero-card-role {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.hero-motto {
  margin: 18px 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; gap: 1px; }
.hero-stats b { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.01em; }
.hero-stats span { font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.06em; }

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-socials a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: transform 0.3s var(--ease), color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.hero-socials a:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.hero-socials svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-socials svg.solid { fill: currentColor; stroke: none; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-transform: uppercase;
  opacity: 0.8;
}
.mouse {
  width: 20px; height: 32px;
  border: 1.5px solid var(--ink-faint);
  border-radius: 12px;
  position: relative;
}
.mouse span {
  position: absolute;
  left: 50%; top: 6px;
  width: 3px; height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--ink-faint);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(9px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 130px) clamp(20px, 5vw, 40px) 0;
  scroll-margin-top: 90px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 38px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-head .idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.section-head .section-en {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
}
.about-text { padding: clamp(26px, 4vw, 40px); }
.about-text p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.95; text-wrap: pretty; }
.about-text p:last-child { margin-bottom: 0; }
.about-text b { color: var(--ink); font-weight: 600; }
.about-text code {
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 2px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

.about-side { display: grid; gap: 22px; }
.skills { padding: 26px 26px 28px; }
.skills h3, .now h3 {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.chips span:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-2px); }

.now { padding: 22px 26px; position: relative; overflow: hidden; }
.now::after {
  display: none;
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-3) 30%, transparent), transparent 70%);
}
.now-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent-3);
  margin-bottom: 8px;
}
.now p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.project {
  position: relative;
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s ease, border-color 0.4s ease;
}
.project::before {
  display: none;
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.project:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 30%, var(--glass-border)); }
.project:hover::before { opacity: 1; }

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.project-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.project-tags span {
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-faint);
  background: color-mix(in srgb, var(--ink) 2%, transparent);
}
.project h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.project p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.8;
  flex: 1;
}
.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}
.project-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.project-link:hover svg { transform: translate(3px, -3px); }

/* writing */
.posts { overflow: hidden; }
.post {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, padding-left 0.4s var(--ease);
}
.post:last-child { border-bottom: 0; }
.post:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); padding-left: calc(clamp(20px, 3vw, 34px) + 6px); }
.post time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.post h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 550;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post .post-arrow {
  color: var(--ink-faint);
  font-size: 15px;
  transition: color 0.25s ease, transform 0.3s var(--ease);
}
.post:hover .post-arrow { color: var(--accent); transform: translate(3px, -3px); }

/* contact */
.contact-card {
  position: relative;
  padding: clamp(34px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
}
.contact-card::after {
  display: none;
  content: "";
  position: absolute;
  left: 50%; bottom: -160px;
  width: 460px; height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.contact-lead { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.98rem; }
.contact-mail {
  display: inline-block;
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  padding-bottom: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: border-color 0.3s ease;
  word-break: break-all;
}
.contact-mail:hover { border-color: var(--accent); }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-2);
  transition: transform 0.3s var(--ease), color 0.25s ease, border-color 0.25s ease;
}
.contact-links a:hover { transform: translateY(-2px); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.contact-links svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-links svg.solid { fill: currentColor; stroke: none; }

/* footer */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 70px clamp(20px, 5vw, 40px) 46px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-faint);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.footer a { color: var(--ink-soft); border-bottom: 1px solid var(--line); transition: color 0.25s ease, border-color 0.25s ease; }
.footer a:hover { color: var(--accent); border-color: var(--accent); }
.dot-sep { opacity: 0.5; }

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* click ripple */
.ripple {
  position: fixed;
  z-index: 55;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 65%, transparent);
  pointer-events: none;
  animation: ripple 0.7s var(--ease) forwards;
}
@keyframes ripple {
  to { transform: scale(9); opacity: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-card { max-width: 380px; width: 100%; justify-self: center; margin-top: 8px; }
  .about-grid { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}

@media (max-width: 760px) {
  .nav { padding: 9px 10px 9px 14px; gap: 10px; }
  .brand-text { display: none; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 20px;
    background: var(--nav-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s var(--ease);
    margin-left: 0;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 15px; }
  .menu-btn { display: block; }
  .theme-label { display: none; }
  .theme-toggle { padding: 5px; }
  .post { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; }
  .post h3 { font-size: 0.92rem; }
  .hero-meta { gap: 22px; }
  .footer { font-size: 11.5px; }
}

@media (max-width: 420px) {
  .hero-title { letter-spacing: -0.01em; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
