:root {
  --bg: #0a0e0c;
  --bg-card: #101512;
  --text: #d7f5e2;
  --text-muted: #6b8f7e;
  --accent: #39ff88;
  --accent-2: #22d3ee;
  --accent-soft: #0d2a1c;
  --border: #1e2b25;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --font-serif: "JetBrains Mono", "Fira Code", monospace;
  --font-sans: "JetBrains Mono", "Fira Code", monospace;
  --max-width: 720px;
  --page-width: 1100px;
}

[data-theme="light"] {
  --bg: #eef4f0;
  --bg-card: #ffffff;
  --text: #0a2e1c;
  --text-muted: #4a6357;
  --accent: #059669;
  --accent-2: #0891b2;
  --accent-soft: #d1fae5;
  --border: #cfe3d8;
  --shadow: 0 12px 40px rgba(10, 46, 28, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px) 0 0 / 24px 100%,
    var(--bg);
  min-height: 100vh;
  position: relative;
}

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

.cursor-glow.active {
  opacity: 1;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.container {
  width: min(var(--page-width), 100% - 2rem);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo::before {
  content: "$ ";
  color: var(--accent);
}

.logo span {
  color: var(--accent-2);
}

.logo span::after {
  content: "_";
  animation: blink 1.1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.icon-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.lang-toggle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.menu-toggle {
  display: none;
}

/* Hero */

.hero {
  padding: 4.5rem 0 3rem;
  opacity: 0;
  translate: 0 12px;
  animation: hero-in 0.7s ease forwards 0.1s;
}

@keyframes hero-in {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-label::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.hero p {
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 1.15rem;
  margin: 0;
}

/* Posts */

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.posts {
  padding-bottom: 4rem;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.post-card {
  display: block;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.6s ease, translate 0.6s ease;
  opacity: 0;
  translate: 0 16px;
  position: relative;
  padding-top: 2.1rem;
}

.post-card::before {
  content: "● ● ●";
  position: absolute;
  top: 0.7rem;
  left: 1.1rem;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--border);
}

.post-card.in-view {
  opacity: 1;
  translate: 0 0;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-tag {
  color: var(--accent-2);
  font-weight: 600;
}

.post-tag::before {
  content: "#";
  color: var(--text-muted);
  margin-right: 0.15em;
}

.post-card h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.post-card p {
  margin: 0;
  color: var(--text-muted);
}

/* Article */

.article {
  padding: 3rem 0 5rem;
  opacity: 0;
  translate: 0 12px;
  animation: hero-in 0.7s ease forwards 0.1s;
}

.article-header {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.article-body {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 1.1rem;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.article-body p,
.article-body ul {
  margin: 0 0 1.25rem;
}

.article-body code {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.article-body ul {
  padding-left: 1.25rem;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.repo-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s;
}

.repo-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.back-link:hover {
  color: var(--accent);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 5rem;
  opacity: 0;
  translate: 0 12px;
  animation: hero-in 0.7s ease forwards 0.1s;
}

.about-term {
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 40%),
    var(--bg-card);
  box-shadow: var(--shadow), inset 0 0 60px color-mix(in srgb, var(--accent) 5%, transparent);
  overflow: hidden;
}

.about-term__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, var(--bg-card));
}

.about-term__dots {
  display: flex;
  gap: 0.35rem;
}

.about-term__dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--border);
  display: block;
}

.about-term__dots i:nth-child(1) { background: #ff5f57; }
.about-term__dots i:nth-child(2) { background: #febc2e; }
.about-term__dots i:nth-child(3) { background: #28c840; }

.about-term__title {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.about-term__screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.1rem 1rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.45;
  overflow: hidden;
}

.about-term__log {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text-muted);
}

.about-term__entry {
  opacity: 0;
  animation: term-fade 0.35s ease forwards;
}

.about-term__cmd {
  color: var(--text);
}

.about-term__cmd::before {
  content: "$ ";
  color: var(--accent);
}

.about-term__out {
  color: var(--text-muted);
  white-space: pre-wrap;
  padding-left: 0.1rem;
}

.about-term__line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.2em;
}

.about-term__ps1 {
  color: var(--accent);
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 45%, transparent);
}

.about-term__typed {
  color: var(--text);
  white-space: pre;
}

.about-term__cursor {
  color: var(--accent);
  animation: term-blink 1s steps(1) infinite;
  text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 55%, transparent);
}

.about-term__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.about-term__status span:first-child {
  color: var(--accent);
}

@keyframes term-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes term-fade {
  from {
    opacity: 0;
    translate: 0 4px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.about-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.about-content p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-links a {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.2s;
}

.contact-links a::before {
  content: "> ";
  color: var(--accent);
}

.contact-links a:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Projects */

.projects-section {
  padding: 0 0 5rem;
}

.projects-section.container {
  padding-top: 0;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.project-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.project-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent-2) 30%, var(--border));
  border-radius: 0.25rem;
  padding: 0.2rem 0.5rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Mobile nav */

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 4.5rem 1rem auto;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    padding: 0.75rem 0.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-term {
    max-width: 320px;
    width: 100%;
    margin-inline: auto;
    aspect-ratio: 5 / 6;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero p {
    max-width: none;
  }

  .post-card {
    padding: 1.25rem 1.35rem;
  }

  .article,
  .about-grid {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.35rem;
  }

  .cursor-glow {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

/* ── Landing: competitor-parity interactions ── */

.landing-page {
  --ink: #0a0a0a;
  --panel: rgba(4, 3, 5, 0.8);
  --paper: #eaeaea;
  --muted: rgba(255, 255, 255, 0.55);
  --muted-2: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.1);
  --lamp: #f0a35a;
  --lamp-soft: rgba(240, 163, 90, 0.18);
  font-family: Geist, "IBM Plex Sans", "Helvetica Neue", sans-serif;
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}


.landing-page .cursor-glow {
  display: none;
}

.landing-page ::selection {
  background: color-mix(in srgb, var(--lamp) 35%, transparent);
  color: #fff;
}

.room {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #05070d;
}

.room__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
  animation: room-breathe 22s ease-in-out infinite alternate;
  filter: saturate(1.12) contrast(1.1) brightness(1.08);
}

.room__shade {
  position: absolute;
  inset: 0;
  background: transparent;
}

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* fully covers the photo until the cursor moves */
  background: rgba(4, 3, 8, 0.985);
  transition: background 0.2s ease;
}

.spotlight.is-active {
  /* soft dim reveal — city stays muted under the cursor */
  background: radial-gradient(
    circle 280px at var(--mx, -9999px) var(--my, -9999px),
    rgba(4, 3, 8, 0.55) 0%,
    rgba(4, 3, 8, 0.72) 32%,
    rgba(4, 3, 8, 0.88) 58%,
    rgba(4, 3, 8, 0.96) 78%,
    rgba(4, 3, 8, 0.985) 100%
  );
  transition: none;
}

.spotlight.is-touch {
  background: radial-gradient(
    circle 220px at 50% 40%,
    rgba(4, 3, 8, 0.62) 0%,
    rgba(4, 3, 8, 0.88) 50%,
    rgba(4, 3, 8, 0.98) 100%
  );
}

@media (hover: none), (pointer: coarse) {
  .spotlight:not(.is-active) {
    background: radial-gradient(
      circle 220px at 50% 40%,
      rgba(4, 3, 8, 0.62) 0%,
      rgba(4, 3, 8, 0.88) 50%,
      rgba(4, 3, 8, 0.98) 100%
    );
  }
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.landing-chrome {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 70;
  display: flex;
  gap: 0.35rem;
}

.landing-chrome .icon-btn {
  color: var(--muted);
  border-color: var(--line);
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  backdrop-filter: blur(8px);
}

.landing-chrome .icon-btn:hover {
  color: var(--paper);
}

.landing-shell {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.landing-panel {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 620px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  border-inline: 1px solid var(--line);
  background: rgba(4, 3, 8, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.55);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}


.landing-stage {
  width: 100%;
  opacity: 1;
  transform: none;
}

.landing-stage.is-entering {
  animation: stage-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes stage-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view[hidden] {
  display: none !important;
}

.landing-intro {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.landing-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--paper) 8%, #040305);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

@media (min-width: 640px) {
  .landing-avatar {
    width: 64px;
    height: 64px;
  }
}

.landing-avatar__glyph {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--lamp);
  letter-spacing: -0.04em;
}

.landing-greet {
  margin: 0 0 0.15rem;
  font-size: 0.9375rem;
  color: var(--muted);
  font-weight: 400;
}

.landing-name {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
  cursor: pointer;
  user-select: none;
  line-height: 1.2;
}

.name-slot {
  position: relative;
  display: inline-block;
  height: 1.4em;
  overflow: hidden;
  vertical-align: bottom;
}

.name-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.name-line {
  height: 1.4em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.name-aka {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted-2);
}

.group-name:hover .name-track,
.name-track.is-alias {
  transform: translateY(-1.4em);
}

.landing-bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.landing-bio p,
.story-body p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}


.landing-bio p:first-child {
  color: rgba(255, 255, 255, 0.75);
}


@media (min-width: 640px) {
  .landing-bio p,
  .story-body p {
    font-size: 1rem;
  }
}

.hi {
  color: var(--paper);
  font-weight: 500;
}

a.dotted,
.dotted {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s ease, color 0.3s ease;
}

a.dotted:hover,
.landing-writings:hover .dotted {
  text-decoration-color: rgba(255, 255, 255, 0.85);
  color: var(--paper);
}


.landing-foot {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .landing-foot {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.landing-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.landing-place,
.landing-writings {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  color: var(--muted);
  cursor: default;
  width: fit-content;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.landing-cta__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--lamp) 45%, transparent);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.landing-cta__link:hover {
  color: var(--lamp);
  border-color: var(--lamp);
  text-decoration: none;
}

.landing-cta__link--accent {
  color: var(--lamp);
  border-bottom-color: color-mix(in srgb, var(--lamp) 70%, transparent);
}

.landing-writings {
  cursor: pointer;
  transition: color 0.3s ease;
}

.landing-writings:hover {
  color: var(--paper);
}

.landing-time {
  color: var(--muted-2);
}

.landing-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

.writings-projects-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.writings-projects-note a {
  font-weight: 500;
}

.landing-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.landing-social a {
  color: rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  transition: color 0.3s ease;
}


.landing-social a:hover {
  color: var(--brand, var(--lamp));
  text-decoration: none;
}

.landing-social svg {
  width: 18px;
  height: 18px;
}

.story-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: color 0.3s ease;
}

.story-back:hover {
  color: var(--paper);
}

.story-back__arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.story-back:hover .story-back__arrow {
  transform: translateX(-4px);
}

.story-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.story-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Pixel wipe — 32×18 grid */
.pixel-wipe {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  display: grid;
}

.pixel-wipe__cell {
  background: #000;
}

.pixel-wipe__cell--in {
  animation: wipe-in 0.4s ease-out forwards;
}

.pixel-wipe__cell--out {
  animation: wipe-out 0.4s ease-out forwards;
}

@keyframes wipe-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wipe-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes lamp-flicker {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.03); }
  55% { opacity: 0.78; }
  70% { opacity: 0.95; }
}

@keyframes room-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

@media (max-width: 640px) {
  .landing-panel {
    padding: 5rem 1.25rem 3rem;
    border-inline: 0;
  }

  .room__window {
    width: 55vw;
    height: 36vh;
    top: 4%;
    right: -4%;
    opacity: 0.3;
  }

  .landing-foot {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-stage,
  .landing-stage.is-entering,
  .name-track,
  .room__photo,
  .pixel-wipe__cell,
  .story-back__arrow {
    animation: none !important;
    transition: none !important;
  }

  .landing-stage {
    opacity: 1;
    transform: none;
  }
}
