:root {
  --mx: 50%;
  --my: 20%;
  --content-max: 1460px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --bg: #e8e1d2;
  --bg-2: #ddd5c4;
  --surface: #f5f1e7;
  --surface-strong: #fcfaf4;
  --text: #16150f;
  --muted: #4f4c41;
  --line: #bcb29d;
  --line-strong: #857a63;
  --brand: #1f5ea8;
  --brand-strong: #174987;
  --accent: #9a5f2c;
  --shadow-md: 0 10px 24px rgba(21, 18, 12, 0.08);
  --shadow-lg: 0 24px 56px rgba(21, 18, 12, 0.14);
  --shadow-xl: 0 32px 72px rgba(21, 18, 12, 0.17);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.62;
  background:
    radial-gradient(640px 360px at var(--mx) var(--my), rgba(31, 94, 168, 0.14) 0%, transparent 72%),
    radial-gradient(1000px 420px at 10% 0%, #d5def0 0%, transparent 76%),
    radial-gradient(920px 540px at 100% 0%, #e4d9c7 0%, transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(109, 96, 73, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 96, 73, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}

.ambient-shape {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  filter: blur(56px);
}

.ambient-a {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -80px;
  background: rgba(31, 94, 168, 0.2);
}

.ambient-b {
  width: 420px;
  height: 420px;
  right: -130px;
  bottom: -150px;
  background: rgba(154, 95, 44, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(133, 122, 99, 0.58);
  background: rgba(250, 247, 240, 0.9);
  backdrop-filter: blur(10px) saturate(130%);
  box-shadow: 0 12px 24px rgba(21, 18, 12, 0.06);
}

.site-header-inner {
  width: min(var(--content-max), calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 120;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  box-shadow: 0 0 20px rgba(31, 94, 168, 0.45);
}

.brand {
  text-decoration: none;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid #0d4b44;
  background: linear-gradient(145deg, #1a4f91 0%, #143f74 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(187, 226, 219, 0.2), 0 10px 20px rgba(11, 27, 53, 0.24);
}

.site-nav {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(133, 122, 99, 0.58);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(133, 122, 99, 0.82);
  transform: translateY(-1px);
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: #233a62;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 0.24rem;
}

body.has-mobile-nav.nav-open {
  overflow: hidden;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.74rem 0.96rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-strong) 100%);
  border-color: #184983;
  box-shadow: inset 0 1px 0 rgba(180, 204, 236, 0.2), 0 8px 16px rgba(14, 31, 58, 0.22);
  transform: translateY(-1px);
}

.layout {
  width: min(var(--content-max), calc(100% - 2.5rem));
  margin: 2.1rem auto 0;
  display: grid;
  gap: clamp(1rem, 1.6vw, 1.35rem);
  flex: 1 0 auto;
  align-content: start;
  padding-bottom: 2.1rem;
}

.hero,
.panel {
  border: 1px solid rgba(133, 122, 99, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(245, 240, 228, 0.75) 100%),
    var(--surface);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.64);
  border-radius: var(--radius-lg);
}

.hero {
  padding: clamp(1.9rem, 3vw, 3.1rem);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 60%, var(--accent) 100%);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.hero-main {
  max-width: 74ch;
}

.hero-metrics {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.metric-card {
  border: 1px solid rgba(133, 122, 99, 0.58);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 243, 233, 0.9) 100%),
    var(--surface-strong);
  padding: 0.85rem 0.95rem;
  box-shadow: var(--shadow-md);
}

.metric-label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
}

.metric-value {
  margin: 0.3rem 0 0;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.panel {
  padding: clamp(1.15rem, 2.1vw, 1.85rem);
}

.philosophy-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  padding: 3.5rem;
  background: linear-gradient(135deg, var(--surface-strong) 0%, #f1efe6 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 16px 40px rgba(21, 18, 12, 0.05);
  position: relative;
  overflow: hidden;
}

.philosophy-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand) 0%, var(--accent) 100%);
}

.philosophy-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--brand-strong);
  margin-top: 0;
}

.philosophy-content .lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
  margin-top: 0;
}

.fancy-quote {
  margin: 2rem 0 0 0;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.45);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--muted);
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .philosophy-section {
    grid-template-columns: 1fr;
    padding: 2.2rem;
    gap: 1.5rem;
  }
}

.quote-panel {
  --qx: 50%;
  --qy: 50%;
  position: relative;
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(900px 360px at var(--qx) var(--qy), rgba(56, 118, 198, 0.3) 0%, transparent 64%),
    linear-gradient(180deg, rgba(20, 44, 78, 0.95) 0%, rgba(14, 27, 51, 0.98) 100%);
  border-color: #2f4569;
  color: #e9eef9;
  perspective: 900px;
}

.quote-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(170, 193, 224, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 193, 224, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

.quote-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px 220px at var(--qx) var(--qy), rgba(255, 255, 255, 0.16) 0%, transparent 72%);
}

.quote-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(260px);
  gap: clamp(0.9rem, 2vw, 2rem);
  align-items: center;
  transform-style: preserve-3d;
  transition: transform 300ms ease;
  padding-inline: clamp(1.1rem, 2.7vw, 2.6rem);
}

.quote-copy {
  transform: translateZ(24px);
  max-width: min(42ch, 100%);
  padding-right: clamp(0.2rem, 0.8vw, 0.8rem);
}

.snoopy-wrap {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 240px;
  transform-style: preserve-3d;
  transition: transform 220ms ease;
}

.snoopy-wrap::before {
  content: none;
}

.snoopy-wrap::after {
  content: "";
  position: absolute;
  width: min(180px, 52%);
  height: 26px;
  bottom: 34px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  filter: blur(16px);
}

.snoopy-figure {
  width: min(220px, 62%);
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.38));
  animation: snoopyFloat 4.8s ease-in-out infinite;
  transform: translateZ(38px);
}

.snoopy-quote {
  margin: 0;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(1.9rem, 3.8vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.quote-source {
  margin: 0.7rem 0 0;
  color: #a8bddf;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

@keyframes snoopyFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1.5deg) translateZ(38px);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(1.2deg) translateZ(38px);
  }
}

.signal-band {
  border: 1px solid #2b4569;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #121d31 0%, #0f1726 100%);
  overflow: hidden;
  padding: 0.72rem 0;
  box-shadow: 0 14px 26px rgba(8, 12, 20, 0.3), inset 0 1px 0 rgba(165, 190, 228, 0.12);
}

.signal-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: track 26s linear infinite;
}

.signal-track span {
  color: #d7e5f8;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.signal-track span::before {
  content: "*";
  color: #6e95d3;
  margin-right: 0.7rem;
}

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

.panel-cinematic {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}

.big-listing {
  margin-top: 0.5rem;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 2.2rem);
  line-height: 1.2;
}

.eyebrow {
  margin: 0;
  color: var(--brand-strong);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0.3rem;
  margin-bottom: 0.52rem;
  font-family: "IBM Plex Serif", Georgia, serif;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.15rem);
}

h3 {
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
}

p {
  margin: 0.55rem 0 0;
}

ul,
ol {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
}

.panel code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92em;
  background: #eae5d8;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.26rem);
}

.micro {
  font-size: 0.9rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

a {
  color: var(--brand-strong);
}

blockquote {
  margin: 1rem 0 0;
  border-left: 4px solid var(--accent);
  padding-left: 0.9rem;
  color: #2a261d;
}

.cta-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0.66rem 1.08rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn-primary {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  border-color: #184983;
  box-shadow: inset 0 1px 0 rgba(180, 204, 236, 0.2), 0 10px 20px rgba(11, 27, 53, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(160deg, #2a6dc0 0%, #1d569f 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(205, 221, 245, 0.24), 0 14px 24px rgba(11, 27, 53, 0.28);
}

.btn-ghost {
  border-color: rgba(133, 122, 99, 0.64);
  color: var(--text);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(21, 18, 12, 0.14);
}

.text-link {
  font-weight: 700;
}

.text-link-clean {
  text-decoration: none;
  color: inherit;
}

.link-card {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  cursor: pointer;
}

.link-card h3 {
  padding-right: 2rem;
}

.link-card::after,
.cinematic-link-card::after {
  content: "->";
  position: absolute;
  top: 0.82rem;
  right: 0.82rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid rgba(39, 96, 171, 0.38);
  background: rgba(255, 255, 255, 0.58);
  color: var(--brand-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  pointer-events: none;
}

.link-card:hover::after,
.link-card:focus-visible::after,
.cinematic-link-card:hover::after,
.cinematic-link-card:focus-visible::after {
  transform: translate(1px, -1px);
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-strong) 100%);
  border-color: #184983;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(180, 204, 236, 0.26), 0 8px 16px rgba(11, 27, 53, 0.24);
}

.link-card:hover h3,
.link-card:focus-visible h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.link-emphasis {
  color: var(--brand-strong);
  font-weight: 700;
}

.meta-offset {
  margin-top: 1.5rem;
}

.social-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
}

.social-label {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-weight: 600;
}

.social-icon {
  width: 0.98rem;
  height: 0.98rem;
  color: var(--brand-strong);
  flex: 0 0 auto;
}

.btn-offset {
  margin-top: 1rem;
}

.cinematic-link-card {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  cursor: pointer;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(247, 242, 232, 0.92) 100%),
    var(--surface-strong);
  border: 1px solid rgba(133, 122, 99, 0.56);
  border-radius: var(--radius-md);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  box-shadow: var(--shadow-md);
}

.cinematic-link-card .text-link {
  font-size: 0.9rem;
  margin-top: 1rem;
  display: inline-block;
}

.cinematic-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(133, 122, 99, 0.84);
  box-shadow: 0 14px 30px rgba(21, 18, 12, 0.16);
}

.cinematic-link-card:hover .text-link,
.cinematic-link-card:focus-visible .text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.sitemap-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.project-back-link {
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-project {
  color: #fff;
  border: none;
}

.hero-project h1 {
  color: #fff;
}

.hero-project .eyebrow {
  color: var(--hero-eyebrow);
}

.hero-project .lede {
  color: var(--hero-lede);
}

.hero-project-solara {
  --hero-eyebrow: #a8bddf;
  --hero-lede: #d7e5f8;
  background: linear-gradient(145deg, #1a4f91 0%, #143f74 100%);
  box-shadow: 0 30px 60px rgba(20, 61, 118, 0.3);
}

.hero-project-deep-refine {
  --hero-eyebrow: var(--line);
  --hero-lede: #bbb;
  background: linear-gradient(145deg, #1f1d18 0%, #111 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero-project-luna {
  --hero-eyebrow: #6983b6;
  --hero-lede: #9cb1d9;
  background: linear-gradient(145deg, #182848 0%, #0d162a 100%);
  box-shadow: 0 30px 60px rgba(24, 40, 72, 0.3);
}

.section-head {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.notes-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.note-card {
  border: 1px solid #1d3558;
  border-radius: var(--radius-md);
  padding: 1rem;
  background:
    radial-gradient(560px 240px at 110% -18%, rgba(165, 196, 236, 0.08) 0%, transparent 72%),
    linear-gradient(165deg, #0d1f3a 0%, #071125 100%);
  color: #e8eefb;
  transition: transform 220ms ease, box-shadow 220ms ease;
  transform: translate3d(0, 0, 0);
  box-shadow: 0 15px 30px rgba(3, 8, 18, 0.48), inset 0 1px 0 rgba(182, 201, 232, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.note-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(176, 198, 234, 0.36) 0%, rgba(176, 198, 234, 0.12) 62%, transparent 100%);
  pointer-events: none;
}

.note-card:hover {
  transform: translateY(-3px);
  border-color: #2e4f80;
  box-shadow: 0 20px 36px rgba(3, 8, 18, 0.56), inset 0 1px 0 rgba(182, 201, 232, 0.12);
}

.note-card h3 {
  margin-top: 0.2rem;
}

.note-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(156, 181, 220, 0.2);
}

.note-card-link {
  color: #d8e6ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.42rem;
  border: 1px solid rgba(191, 210, 242, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(224, 235, 255, 0.08);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.note-card-link:hover {
  color: #f4f8ff;
  text-decoration: none;
  border-color: rgba(210, 226, 251, 0.52);
  background: rgba(224, 235, 255, 0.16);
}

.note-card-link:focus-visible {
  outline: 2px solid rgba(198, 218, 249, 0.56);
  outline-offset: 2px;
}

.note-card-body {
  margin-top: 0;
  font-size: 1.05rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.note-card .note-date {
  color: #9ab0d5;
}

.note-card .note-body {
  margin-top: 0;
}

.note-card .note-body p:first-child {
  margin-top: 0;
}

.note-card .note-body :is(h1, h2, h3, strong) {
  color: #f5fffc;
}

.note-card .note-body a {
  color: #dee8ff;
  text-decoration-color: rgba(222, 232, 250, 0.72);
}

.note-card .note-body code {
  background: rgba(205, 226, 220, 0.12);
  color: #effaf7;
}

.note-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 2rem;
}

.timeline-item {
  border-left: 3px solid var(--brand);
  padding: 0.25rem 0 0.35rem 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 0.75rem;
  width: 15px;
  height: 15px;
  border: 3px solid var(--surface);
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 94, 168, 0.2);
}

.timeline-item > header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.1rem;
}

.timeline-item > header p {
  color: var(--brand-strong);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  margin: 0;
}

.timeline-item ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0 0;
  display: grid;
  gap: 0.7rem;
}

.timeline-item li {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(247, 242, 232, 0.9) 100%);
  border: 1px solid rgba(133, 122, 99, 0.54);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  max-width: 85ch;
  line-height: 1.7;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-md);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.timeline-item li:hover {
  transform: translateX(3px);
  border-color: rgba(133, 122, 99, 0.82);
  box-shadow: 0 14px 28px rgba(21, 18, 12, 0.16);
}

.card-grid {
  margin-top: 0.85rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card {
  border: 1px solid rgba(133, 122, 99, 0.58);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(247, 242, 232, 0.92) 100%),
    var(--surface-strong);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  transform: translate3d(0, 0, 0);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  font-size: 1.25rem;
}

.info-card.link-card:hover,
.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(133, 122, 99, 0.85);
  box-shadow: 0 16px 32px rgba(21, 18, 12, 0.18);
}

.chip {
  display: inline-block;
  width: fit-content;
  align-self: flex-start;
  font-size: 0.76rem;
  margin: 0;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(133, 122, 99, 0.6);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pill-grid {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.pill-grid span {
  border: 1px solid rgba(133, 122, 99, 0.58);
  padding: 0.42rem 0.62rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(247, 242, 232, 0.9) 100%);
  font-weight: 600;
}

.education-card {
  border: 1px solid rgba(133, 122, 99, 0.58);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(247, 242, 232, 0.9) 100%);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

#notes-index {
  display: grid;
  gap: 0.95rem;
  margin-top: 0.75rem;
}

.notes-group {
  border: 1px solid rgba(133, 122, 99, 0.58);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(247, 242, 232, 0.88) 100%);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.notes-list {
  display: grid;
  gap: 0.8rem;
}

.note-back-link {
  justify-self: start;
}

body[data-page="notes"] #notes-index {
  margin-top: 1.1rem;
  gap: 1.2rem;
}

body[data-page="notes"] .notes-group {
  padding: 1.2rem 1.15rem 1.1rem;
}

body[data-page="notes"] .notes-group h3 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(133, 122, 99, 0.35);
}

body[data-page="notes"] .notes-list {
  gap: 1rem;
}

body[data-page="notes"] .note-card {
  padding: 1.05rem;
  gap: 0.6rem;
}

body[data-page="notes"] .note-card-head {
  padding-bottom: 0.55rem;
}

body[data-page="notes"] .note-card-body {
  line-height: 1.62;
}

.note-detail {
  display: grid;
  gap: 0.9rem;
}

.note-detail > h1 {
  margin: 0;
}

.note-detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.note-body {
  margin-top: 0;
}

.note-detail .note-body {
  margin-top: 0;
}

.note-body-single {
  font-size: 1.15rem;
  line-height: 1.7;
}

.note-body code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.93em;
  background: #ece7da;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.note-body pre {
  overflow: auto;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f2ede0;
}

.site-footer {
  width: 100%;
  margin: 0;
  margin-top: auto;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--brand-strong);
  background:
    radial-gradient(640px 220px at 50% 0%, rgba(57, 93, 152, 0.2) 0%, transparent 74%),
    linear-gradient(180deg, #0f1412 0%, #0b0f0e 100%);
  color: #a5b0ad;
  font-size: 0.88rem;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 50%, transparent 100%);
}

.tech-stats {
  width: min(var(--content-max), calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}

.stat-item {
  border: 1px solid rgba(166, 188, 224, 0.2);
  background: linear-gradient(180deg, rgba(168, 188, 224, 0.07) 0%, rgba(255, 255, 255, 0.015) 100%);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  min-height: 66px;
}

.stat-item.is-wide {
  grid-column: span 2;
}

.stat-key {
  display: block;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.66rem;
  font-weight: 700;
  color: #7b8684;
}

.stat-value {
  display: block;
  margin: 0.24rem 0 0;
  color: #e4ecea;
  font-size: 0.85rem;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.stat-value.is-mono {
  font-family: "Consolas", "Courier New", monospace;
}

.footer-meta {
  width: min(var(--content-max), calc(100% - 2.5rem));
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c7674;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(31, 94, 168, 0.6);
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .panel-cinematic {
    grid-template-columns: 1fr;
  }

  .quote-stage {
    grid-template-columns: 1fr;
    text-align: center;
    padding-inline: clamp(0.7rem, 2vw, 1.2rem);
  }

  .quote-copy {
    max-width: 100%;
    padding-right: 0;
  }

  .snoopy-wrap {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .has-mobile-nav .site-header {
    backdrop-filter: none;
  }

  .site-header-inner {
    width: calc(100% - 1.25rem);
    min-height: 68px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.5rem 0;
  }

  .brand {
    align-self: auto;
    width: 46px;
    height: 46px;
  }

  .site-nav {
    justify-content: flex-end;
    gap: 0;
  }

  .site-nav a {
    border: 1px solid rgba(143, 132, 110, 0.36);
    padding: 0.62rem 0.84rem;
    min-height: 2.45rem;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
  }

  .has-mobile-nav .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    position: relative;
    z-index: 145;
  }

  .has-mobile-nav .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100vh;
    z-index: 130;
    padding: calc(5.2rem + env(safe-area-inset-top, 0px)) 1.2rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.14rem;
    background: rgba(8, 12, 20, 0.72);
    backdrop-filter: blur(14px) saturate(122%);
    -webkit-backdrop-filter: blur(14px) saturate(122%);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 220ms ease, visibility 0ms linear 220ms;
  }

  .has-mobile-nav.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0ms;
  }

  .has-mobile-nav .site-nav a {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(197, 213, 239, 0.3);
    border-radius: 0;
    padding: 0.92rem 0.15rem 0.9rem;
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(1.2rem, 6.2vw, 1.55rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    min-height: 3.1rem;
    line-height: 1.2;
    background: transparent;
    color: #e8eefc;
    box-shadow: none;
    justify-content: flex-start;
  }

  .has-mobile-nav .site-nav a:hover,
  .has-mobile-nav .site-nav a.is-active {
    color: #ffffff;
    background: transparent;
    border-bottom-color: rgba(223, 235, 255, 0.6);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
    transform: none;
  }

  .has-mobile-nav.nav-open .nav-toggle {
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-strong) 100%);
    border-color: #184983;
    box-shadow: inset 0 1px 0 rgba(180, 204, 236, 0.24), 0 12px 22px rgba(11, 27, 53, 0.25);
  }

  .has-mobile-nav.nav-open .nav-toggle-bar {
    background: #ffffff;
  }

  .has-mobile-nav.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .has-mobile-nav.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .has-mobile-nav.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .layout {
    width: calc(100% - 1.6rem);
    margin-top: 1.3rem;
    gap: 0.9rem;
    padding-bottom: 1.3rem;
  }

  .hero {
    padding: 1.15rem;
  }

  .panel {
    padding: 1rem;
  }

  .tech-stats {
    width: calc(100% - 1.6rem);
    grid-template-columns: 1fr;
  }

  .footer-meta {
    width: calc(100% - 1.6rem);
  }

  .stat-item.is-wide {
    grid-column: span 1;
  }

  h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.25rem, 5.2vw, 1.8rem);
  }

  .lede {
    font-size: 1rem;
  }

  .card-grid,
  .notes-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .link-card::after,
  .cinematic-link-card::after {
    top: 0.7rem;
    right: 0.7rem;
    width: 1.42rem;
    height: 1.42rem;
    font-size: 0.78rem;
  }

  .link-card h3 {
    padding-right: 1.7rem;
  }

  .note-card {
    padding: 0.9rem;
  }

  .note-card-body {
    font-size: 1rem;
    line-height: 1.55;
  }

  body[data-page="notes"] #notes-index {
    margin-top: 0.9rem;
    gap: 0.95rem;
  }

  body[data-page="notes"] .notes-group {
    padding: 0.95rem 0.9rem 0.88rem;
  }

  body[data-page="notes"] .notes-group h3 {
    margin-bottom: 0.66rem;
    padding-bottom: 0.4rem;
  }

  body[data-page="notes"] .notes-list {
    gap: 0.74rem;
  }

  body[data-page="notes"] .note-card {
    padding: 0.9rem;
    gap: 0.5rem;
  }

  .timeline-item {
    padding-left: 1.2rem;
  }

  .timeline-item li {
    padding: 0.8rem 0.95rem;
  }

  .philosophy-section {
    padding: 1.55rem;
    gap: 1rem;
  }

  .site-footer {
    padding: 2.4rem 0 1.5rem;
  }

  .snoopy-wrap {
    min-height: 190px;
  }

  .snoopy-figure {
    width: min(180px, 58%);
    max-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

a,
button,
.btn {
  cursor: pointer;
}

.magnetic-wrap {
  display: inline-block;
  padding: 10px;
  margin: -10px;
}

.magnetic {
  display: inline-block;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

/* View Transitions API Support */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 400ms cubic-bezier(0.4, 0, 0.2, 1) both fade-out,
             400ms cubic-bezier(0.4, 0, 0.2, 1) both slide-out-up;
}

::view-transition-new(root) {
  animation: 400ms cubic-bezier(0.4, 0, 0.2, 1) both fade-in,
             400ms cubic-bezier(0.4, 0, 0.2, 1) both slide-in-up;
}

@keyframes fade-out {
  to { opacity: 0; }
}
@keyframes fade-in {
  from { opacity: 0; }
}
@keyframes slide-out-up {
  to { transform: translateY(-20px); }
}
@keyframes slide-in-up {
  from { transform: translateY(20px); }
}
