:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --fg: #14120f;
  --muted: #57524a;
  --line: #e7e4de;
  --accent: #b51a2b;
  --accent-deep: #541a2e;
  --accent-soft: #ffe3d3;
  --nav-link: #3d3830;
  --radius: 14px;
  --maxw: 1360px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  position: relative;
  overflow-x: clip;
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}

/* hides the OS cursor once the wormy cursor takes over (js/script.js) */
body.cursor-worm-active, body.cursor-worm-active * {
  cursor: none !important;
}

/* solid-color block sections, full viewport width */
.contact, .dark-footer {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.dark-footer {
  background: #161e2f;
  color: rgba(247, 237, 232, 0.6);
  border-top: none;
}

.mono {
  font-family: 'Space Mono', monospace;
}

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

h3 { font-weight: 700; }

p { margin: 0; line-height: 1.6; color: var(--muted); }

a { color: inherit; text-decoration: none; }

section, header, footer { position: relative; z-index: 1; }

/* cursor spotlight */
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(500px circle at var(--x, 50%) var(--y, 20%), var(--accent-soft), transparent 70%);
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(250, 250, 248, 0.75);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 88px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-group {
  display: flex;
  gap: 40px;
}

.nav-left { margin-right: 44px; }
.nav-right { margin-left: 44px; }

.nav-group a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--nav-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-group a:hover { color: var(--fg); }

.nav-logo {
  font-family: 'Homemade Apple', cursive;
  font-size: 33px;
  color: var(--accent);
  text-decoration: none;
  line-height: 1;
}

/* on lab.html, dim the other nav links so "Lab" reads as the active page */
.lab-page .nav-group a { color: var(--muted); }
.lab-page .nav-group a.active { font-weight: 600; color: var(--fg); }
.lab-page .mobile-nav-links a { color: var(--muted); }
.lab-page .mobile-nav-links a.active { color: var(--fg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  border: 1px solid var(--fg);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* full-screen mobile nav overlay — sits behind the sticky header (lower
   z-index) so it visually slides in underneath it */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 9;
  padding: 90px 28px 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

body.menu-open { overflow: hidden; }

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.mobile-nav-links a {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 27px;
  color: var(--fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-links a:last-child { border-bottom: none; }

.mobile-nav-cta {
  align-self: flex-start;
  margin-top: 28px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 14px;
}

.mobile-nav-socials {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
}

.mobile-nav-socials a { color: var(--muted); }
.mobile-nav-socials a:hover { color: var(--fg); }

/* layout helpers */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

section h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 100px;
}

/* animated color-spill wave + node network, shared behind hero/about/projects */
.bg-canvas-wrap {
  position: relative;
}

/* full-bleed breakout: main caps at var(--maxw) and is centered, so without this
   the canvas would stop at that column and leave blank gutters on wide screens */
.bg-canvas-region {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  z-index: 0;
  /* clip, not hidden: hidden makes this a scroll container, which breaks the sticky child */
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
}

/* the canvases are only viewport-sized and ride along while the region scrolls past —
   a region-sized canvas was 5000px+ tall, over Safari's max canvas area and slow to repaint.
   lvh so mobile address-bar show/hide doesn't resize it */
.bg-canvas-view {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
}

/* traces the same node positions as .bg-network, blurred so the color
   reads as light spilling out of the nodes/edges rather than a separate layer */
.bg-wave {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: blur(20px) saturate(1.3);
}

.bg-network {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  text-align: left;
}

.hero-visual { width: 100%; }

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 22px;
}

.pill {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
}

/* extra lift so pills read as distinct elements over the busy animated
   background, instead of blending into it */
.tech-pills .pill {
  box-shadow: 0 4px 14px -6px rgba(20, 18, 15, 0.25);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  animation: scrollCueBounce 2s ease-in-out infinite;
}

.scroll-cue svg { width: 14px; height: 14px; }

@keyframes scrollCueBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

.headline {
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.05;
  text-wrap: balance;
}

.accent-word-wrap { display: inline-block; overflow: hidden; vertical-align: bottom; }

.accent-word {
  display: inline-block;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  transition: transform 0.4s cubic-bezier(.65,0,.35,1), opacity 0.4s ease;
}

.accent-word.swap {
  transform: translateY(100%);
  opacity: 0;
}

.hero-sub {
  max-width: 480px;
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--nav-link);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: flex-start;
}

/* about / experience / skills */
.about, .experience, .skills {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

/* bento grid — varied-size tiles instead of one flat box, so each
   section has real visual structure instead of a repeated template */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.bento-tile {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 45px -32px rgba(20, 18, 15, 0.25);
}

.bento-tile.span-2 { grid-column: span 2; }
.bento-tile.span-3 { grid-column: span 3; }
.bento-tile.span-4 { grid-column: span 4; }

.skills .bento-grid { grid-template-columns: repeat(6, 1fr); }

.core-stack {
  max-width: 1040px;
  margin: 0 auto;
}

.core-stack-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.core-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-core {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(84, 26, 46, 0.55);
}

.skills-divider {
  max-width: 1040px;
  margin: 28px auto 32px;
  border: none;
  border-top: 1px solid var(--line);
}

.about-lead {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg);
  max-width: 760px;
  margin: 0 0 36px;
}

.about-columns {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(250px, 2fr);
  align-items: stretch;
  gap: 32px;
  max-width: 1040px;
  margin: 0 auto;
}

.about-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--nav-link);
}

.about-text + .about-text { margin-top: 14px; }

.fact-card {
  display: flex;
  flex-direction: column;
}

.fact-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(20, 18, 15, 0.08);
}

.fact-row:first-child { padding-top: 0; }
.fact-row:last-child { padding-bottom: 0; border-bottom: none; }

.fact-label {
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.fact-card .fact-value {
  margin: 6px 0 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
}

.timeline-date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* vertical timeline — Experience section */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-marker-outline {
  background: var(--bg);
  border: 2px solid var(--muted);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.timeline-type {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.timeline-card-edu { padding: 18px; }

.timeline-card-edu h3.timeline-edu-heading {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 6px;
}

.timeline-card-edu p { font-size: 14px; font-weight: 500; color: var(--muted); }

.bento-tile h3 {
  font-size: 18px;
  margin: 8px 0 10px;
}

.timeline-context {
  margin: -4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
}

.timeline-list li { padding-left: 18px; position: relative; }
.timeline-list li::before { content: '–'; position: absolute; left: 0; color: var(--accent); }
.timeline-list strong { color: var(--fg); font-weight: 700; }

/* stat callouts — pulls key numbers out of the prose as visual anchors
   instead of leaving them buried in sentences */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 28px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.bento-tile h3.skills-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.skills-group-title::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* skills tiles: solid colors from the same palette as the project bento,
   instead of frosted white that washed out over the animated background */
.skills .bento-tile {
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 20px 40px -28px rgba(20, 18, 15, 0.55);
}
.skill-navy   { background: #161e2f; }
.skill-red    { background: #b51a2b; }
.skill-blue   { background: #3a63c9; }
.skill-purple { background: #6d3bc0; }

.skills .bento-tile h3.skills-group-title { color: rgba(255, 255, 255, 0.8); }
.skills .skills-group-title::before { background: #ffa586; }
.skills .bento-tile .pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* projects — colored bento tiles; the key numbers do the job screenshots would */
.projects {
  padding: 60px 0;
}

.skills { padding-bottom: 90px; } /* last section before contact */

.bento-projects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, auto);
  gap: 16px;
  margin-top: 48px;
}

.bento-project {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-radius: 18px;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-project:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(20, 18, 15, 0.5);
}

.bp-featured { grid-column: span 2; grid-row: span 2; background: #161e2f; }
.bp-lantern  { grid-column: span 2; background: #b51a2b; }
.bp-sonic    { background: #3a63c9; }
.bp-stat     { background: #ffa586; color: #541a2e; justify-content: flex-end; }
.bp-settlement { grid-column: span 4; background: #123a32; }
.bp-settlement .bp-tag,
.bp-settlement .bp-metric-num,
.bp-settlement .bp-story dt,
.bp-settlement .bp-link { color: #8fe0bf; }

/* wide card: the number on the left, the story beside it */
.bp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 18px 40px; align-items: start; }

.bp-tag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.bp-featured .bp-tag { color: #ffa586; }

.bp-metric { display: flex; flex-direction: column; gap: 8px; }
.bp-metric-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: #ffa586;
}
.bp-metric-label { max-width: 320px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.7); }

.bp-body { display: flex; flex-direction: column; gap: 8px; }
.bp-body h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.bp-featured .bp-body h3 { font-size: 26px; }
.bp-body p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }
.bp-body .bp-tech {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

/* Problem → Built → Result: label in a narrow left column, text beside it */
.bp-story { display: grid; gap: 8px; margin: 6px 0 2px; }
.bp-story > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.bp-story dt {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffa586;
}
.bp-story dd { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }

.bp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  transition: gap 0.2s ease;
}
.bp-link::after { content: '→'; }
.bp-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.bp-link:hover { gap: 10px; }
.bp-featured .bp-link { color: #ffa586; }

.bp-stat-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
}
.bp-stat-label { margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.4; }

@media (max-width: 860px) {
  .bento-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .bp-featured, .bp-lantern, .bp-settlement { grid-column: span 2; grid-row: auto; }
  .bp-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .bento-projects { grid-template-columns: minmax(0, 1fr); }
  .bp-featured, .bp-lantern, .bp-settlement { grid-column: auto; }
  .bento-project { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .bento-project { transition: none; }
}

/* contact */
.contact {
  overflow: hidden;
  padding: 100px 0 120px;
  text-align: center;
  background: #242f49;
}

.contact .section-inner {
  position: relative;
  z-index: 1;
}

/* soft color glow behind the content — mostly off-canvas so only the
   blurred edge bleeds in */
.contact-blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.contact-blob-purple {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -100px;
  background: #8b4fe1;
  opacity: 0.28;
  filter: blur(80px);
}

.contact-blob-red {
  width: 460px;
  height: 460px;
  right: -130px;
  top: 60px;
  background: #b51a2b;
  opacity: 0.22;
  filter: blur(85px);
}

.contact-blob-peach {
  width: 420px;
  height: 420px;
  left: 340px;
  bottom: -160px;
  background: #ffa586;
  opacity: 0.16;
  filter: blur(85px);
}

/* static decoration (network dots + hand-drawn doodles) laid out in a
   centered column so the doodles flank the headline at any viewport width */
.contact-deco {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(1100px, 100%);
  transform: translateX(-50%);
  pointer-events: none;
}

.contact-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.contact-doodle { position: absolute; }
.contact-doodle-arrow { left: 60px; top: 170px; opacity: 0.65; }
.contact-doodle-sparkle { right: 70px; top: 150px; opacity: 0.55; }
.contact-doodle-arrow-2 { left: 110px; top: 430px; opacity: 0.5; }

.contact-doodle-label {
  position: absolute;
  left: 66px;
  top: 268px;
  font-family: 'Homemade Apple', cursive;
  font-size: 17px;
  color: rgba(247, 237, 232, 0.55);
  transform: rotate(-4deg);
}

.contact-note {
  display: inline-block;
  margin: 0 0 10px;
  font-family: 'Homemade Apple', cursive;
  font-size: 22px;
  line-height: 1.2;
  color: #ffa586;
  transform: rotate(-3deg);
}

.contact .eyebrow {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(247, 237, 232, 0.55);
}

.contact-headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  color: #f7ede8;
  margin-bottom: 16px;
}

.contact-accent {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 68px;
  line-height: 1;
  color: #ffa586;
}

.contact-sub {
  font-size: 15px;
  color: rgba(247, 237, 232, 0.75);
  max-width: 420px;
  margin: 0 auto;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-btn-primary {
  background: #f7ede8;
  color: #242f49;
  border: 1px solid #f7ede8;
}
.contact-btn-primary:hover { background: #fff; border-color: #fff; }

.contact-btn-ghost {
  background: transparent;
  color: #f7ede8;
  border: 1px solid rgba(247, 237, 232, 0.5);
}
.contact-btn-ghost:hover { background: rgba(247, 237, 232, 0.15); color: #f7ede8; }

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.contact-socials a {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(247, 237, 232, 0.08);
  border: 1px solid rgba(247, 237, 232, 0.15);
  color: rgba(247, 237, 232, 0.85);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.contact-socials a:hover {
  background: rgba(247, 237, 232, 0.15);
  color: #f7ede8;
  border-color: rgba(247, 237, 232, 0.3);
}

.contact-footnote {
  margin-top: 26px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(247, 237, 232, 0.35);
}

/* footer */
.site-footer {
  text-align: center;
  padding: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted);
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* responsive */
@media (max-width: 860px) {
  .bento-grid, .skills .bento-grid { grid-template-columns: 1fr; }
  .bento-tile.span-2, .bento-tile.span-3, .bento-tile.span-4 { grid-column: span 1; }
  .about-columns { grid-template-columns: 1fr; }
  .nav-inner { height: auto; padding: 16px 20px; justify-content: space-between; }
  .nav-group { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .tech-pills, .hero-actions { justify-content: center; }
  .contact-headline { font-size: 32px; }
  .contact-accent { font-size: 54px; }
  .contact-actions { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .contact-doodle, .contact-doodle-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .accent-word { transition: none; }
  .scroll-cue { animation: none; }
  .stars-a, .stars-b { animation: none; opacity: 0.75; }
  * { scroll-behavior: auto !important; }
  .mobile-nav { transition: none; }
}
