/* ═══════════════════════════════════════════════════════════
   Design Tokens
═══════════════════════════════════════════════════════════ */
:root {
  --ink:        #1A1A1A;
  --paper:      #F8F6F2;
  --surface:    #EFEDE7;
  --border:     #E0DAD0;
  --olive:      #556B2F;
  --olive-lt:   #6B8A3E;
  --brown:      #8B7355;
  --muted:      #9A9180;
  --warm-cream: #FFF9E6;

  --serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hand:   'Caveat', 'Comic Sans MS', cursive;

  --max-w:  1100px;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);

  --sp-1:  0.5rem;
  --sp-2:  1rem;
  --sp-3:  1.5rem;
  --sp-4:  2rem;
  --sp-6:  3rem;
  --sp-8:  4rem;
  --sp-12: 6rem;
  --sp-16: 8rem;
}

/* ═══════════════════════════════════════════════════════════
   Reset & Base
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle paper grain */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
}

a          { color: inherit; text-decoration: none; }
ul, ol     { list-style: none; }
img        { display: block; max-width: 100%; }
button     { cursor: pointer; font-family: var(--sans); }
em         { font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   Layout helpers
═══════════════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.section {
  padding: var(--sp-16) 0;
}

/* ═══════════════════════════════════════════════════════════
   Scroll Progress Bar
═══════════════════════════════════════════════════════════ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--olive);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════
   Navigation
═══════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.25rem var(--sp-4);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(248, 246, 242, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-links .nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 0.45rem 1.1rem;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.nav-links .nav-cta:hover { background: var(--olive); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.25s;
}

/* ═══════════════════════════════════════════════════════════
   Hero
═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  padding: var(--sp-8) var(--sp-4) var(--sp-6) max(var(--sp-4), calc((100vw - var(--max-w)) / 2 + var(--sp-4)));
  max-width: calc(var(--max-w) / 2 + (100vw - var(--max-w)) / 2);
  margin-left: auto;
  padding-right: var(--sp-8);
}

/* Eyebrow */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: var(--sp-6);
}

.eyebrow-rule {
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--olive);
  flex-shrink: 0;
}

/* Headline */
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6.5vw, 6.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}

.hero-title em {
  font-style: italic;
  color: var(--olive);
}

/* Subtext */
.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--brown);
  max-width: 480px;
  margin-bottom: var(--sp-6);
}

/* Handwritten note */
.handnote {
  display: inline-block;
  background: var(--warm-cream);
  border-left: 3px solid #C9A227;
  padding: 1rem 1.25rem 1.1rem;
  margin-bottom: var(--sp-8);
  transform: rotate(-0.6deg);
  box-shadow: 2px 4px 10px rgba(0,0,0,0.07), 0 0 0 1px rgba(201,162,39,0.12);
  max-width: 300px;
  position: relative;
}

.handnote::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 10px;
  background: rgba(201,162,39,0.3);
  border-radius: 2px;
}

.handnote-hook {
  display: block;
  font-family: var(--hand);
  font-size: 0.82rem;
  color: var(--brown);
  margin-bottom: 0.2rem;
}

.handnote p {
  font-family: var(--hand);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

/* CTA buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.btn-solid {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.875rem 1.875rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.25s, transform 0.2s;
}

.btn-solid:hover {
  background: var(--olive);
  transform: translateY(-1px);
}

.btn-ghost {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brown);
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--ink); }

/* Right panel — grid paper texture */
.hero-panel {
  height: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: var(--sp-8);
  padding-right: max(var(--sp-4), calc((100vw - var(--max-w)) / 2 + var(--sp-4)));
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, var(--border) 39px, var(--border) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, var(--border) 39px, var(--border) 40px);
  opacity: 0.35;
}

.scroll-hint {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 1;
}

.scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.scroll-hint-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.6); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   Section Common
═══════════════════════════════════════════════════════════ */
.section-head {
  margin-bottom: var(--sp-12);
  max-width: 560px;
}

.sec-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: var(--sp-2);
}

.sec-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.sec-sub {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--brown);
}

/* ═══════════════════════════════════════════════════════════
   Scroll-reveal animations
═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

/* ═══════════════════════════════════════════════════════════
   Journey / Timeline
═══════════════════════════════════════════════════════════ */
.journey { background: var(--surface); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-item {
  display: grid;
  grid-template-columns: 72px 28px 1fr;
  gap: 0 var(--sp-4);
  padding-bottom: var(--sp-8);
}

.tl-year-col {
  padding-top: 0.1rem;
  text-align: right;
}

.tl-year {
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--brown);
  line-height: 1;
}

.tl-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--olive);
  border: 2.5px solid var(--surface);
  box-shadow: 0 0 0 2px var(--olive);
  flex-shrink: 0;
  margin-top: 0.12rem;
  transition: transform 0.25s;
}

.tl-dot--now {
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}

.tl-line {
  flex: 1;
  width: 1px;
  background: var(--border);
  margin-top: 6px;
}

.tl-body {
  padding-bottom: 0;
}

.tl-body h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.tl-body p {
  font-size: 0.97rem;
  color: var(--brown);
  line-height: 1.8;
  margin-bottom: var(--sp-2);
}

.tl-body p em {
  font-style: italic;
  color: var(--ink);
}

.tl-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  border: 1px solid var(--olive);
  padding: 0.2rem 0.65rem;
}

/* ═══════════════════════════════════════════════════════════
   Projects
═══════════════════════════════════════════════════════════ */
.proj-list {
  display: flex;
  flex-direction: column;
}

.proj-card {
  border-top: 1px solid var(--border);
}

.proj-card:last-child { border-bottom: 1px solid var(--border); }

.proj-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
  align-items: start;
}

.proj-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.2rem;
}

.proj-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  transition: color 0.25s;
}

.proj-card:hover .proj-num { color: var(--olive); }

.proj-yr {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}

.proj-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.25;
  transition: color 0.2s;
}

.proj-card:hover .proj-title { color: var(--olive); }

.proj-teaser {
  font-size: 0.94rem;
  color: var(--brown);
  line-height: 1.75;
  margin-bottom: var(--sp-2);
}

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

.proj-tags span {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--surface);
  padding: 0.2rem 0.6rem;
}

/* Toggle button */
.proj-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--brown);
  padding: 0.6rem 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  align-self: flex-start;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.proj-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.proj-toggle[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.toggle-icon {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.proj-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(45deg);
}

/* Case study expand */
.proj-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.35s var(--ease);
}

.proj-detail.is-open {
  max-height: 900px;
  opacity: 1;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  background: var(--surface);
  padding: var(--sp-6);
  margin-bottom: var(--sp-4);
  border-left: 3px solid var(--olive);
}

.case-block h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.6rem;
}

.case-block p {
  font-size: 0.93rem;
  color: var(--brown);
  line-height: 1.8;
}

.case-block p em {
  font-style: italic;
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   Learning Notes
═══════════════════════════════════════════════════════════ */
.learning { background: var(--surface); }

.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.note {
  padding: 1.4rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: default;
}

.note:hover {
  transform: translateY(-5px) rotate(0deg) !important;
  box-shadow: 4px 10px 24px rgba(0,0,0,0.09);
  z-index: 1;
  position: relative;
}

/* Slightly different tints & rotations per note variant */
.note-a { background: #FFF9E6; transform: rotate(-1.1deg); }
.note-b { background: #EFF4E6; transform: rotate(0.9deg); }
.note-c { background: #F5F0E8; transform: rotate(-0.5deg); }
.note-d { background: #EEE9E2; transform: rotate(1.3deg); }

.note-sym {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--olive);
  opacity: 0.7;
}

.note h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.note p {
  font-size: 0.82rem;
  color: var(--brown);
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.note-status {
  font-family: var(--hand);
  font-size: 0.88rem;
  color: var(--olive);
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   Beyond Code
═══════════════════════════════════════════════════════════ */
.beyond-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
}

.beyond-card {
  border-top: 3px solid var(--olive);
  padding-top: var(--sp-4);
}

.beyond-cat {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.75rem;
}

.beyond-card h3 {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
  line-height: 1.15;
}

.beyond-role {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--olive);
  margin-bottom: var(--sp-3);
  display: block;
}

.beyond-desc {
  font-size: 0.95rem;
  color: var(--brown);
  line-height: 1.82;
  margin-bottom: var(--sp-4);
}

.beyond-takeaways h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.beyond-takeaways ul { display: flex; flex-direction: column; gap: 0.45rem; }

.beyond-takeaways li {
  font-size: 0.9rem;
  color: var(--brown);
  line-height: 1.7;
  padding-left: 1.1rem;
  position: relative;
}

.beyond-takeaways li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--olive);
  font-size: 0.75rem;
  top: 0.2rem;
}

/* ═══════════════════════════════════════════════════════════
   Tech Stack — Workshop Shelf
═══════════════════════════════════════════════════════════ */
.tech { background: var(--surface); }

.shelf {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.shelf-row {
  display: flex;
  gap: var(--sp-8);
  padding-bottom: var(--sp-4);
  border-bottom: 4px solid var(--brown);
  position: relative;
  align-items: flex-end;
}

/* shelf shadow illusion */
.shelf-row::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 4px;
  right: 0;
  height: 4px;
  background: rgba(0,0,0,0.06);
  filter: blur(3px);
}

.shelf-cat { flex: 1; }

.shelf-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.9rem;
}

.shelf-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.shelf-chip {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 0.38rem 0.8rem;
  font-size: 0.82rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.shelf-chip:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   Thoughts
═══════════════════════════════════════════════════════════ */
.thoughts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.thought-card {
  border: 1px solid var(--border);
  padding: var(--sp-4);
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.thought-card:hover {
  border-color: var(--olive);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.thought-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.thought-card:hover::before { transform: scaleX(1); }

.thought-type {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.75rem;
}

.thought-card h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.thought-card p {
  font-size: 0.88rem;
  color: var(--brown);
  line-height: 1.75;
  margin-bottom: var(--sp-3);
}

.thought-state {
  font-family: var(--hand);
  font-size: 0.88rem;
  color: var(--muted);
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   Contact
═══════════════════════════════════════════════════════════ */
.contact {
  background: var(--ink);
  color: var(--paper);
}

.contact .sec-label { color: var(--olive-lt); }

.contact-wrap { max-width: 640px; }

.contact-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
  margin-top: var(--sp-2);
}

.contact-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(248, 246, 242, 0.65);
  margin-bottom: var(--sp-8);
}

.contact-links {
  display: flex;
  flex-direction: column;
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding: 1.2rem 0;
  border-top: 1px solid rgba(248, 246, 242, 0.1);
  transition: opacity 0.2s;
}

.contact-row:last-child { border-bottom: 1px solid rgba(248, 246, 242, 0.1); }

.contact-row:hover { opacity: 0.65; }

.contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-lt);
  min-width: 80px;
  flex-shrink: 0;
}

.contact-value {
  font-size: 1rem;
  font-weight: 300;
  color: var(--paper);
}

/* ═══════════════════════════════════════════════════════════
   Footer
═══════════════════════════════════════════════════════════ */
.site-footer {
  background: #141414;
  padding: 1.5rem var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(248, 246, 242, 0.3);
}

.back-top {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(248, 246, 242, 0.35);
  transition: color 0.2s;
}

.back-top:hover { color: var(--olive-lt); }

/* ═══════════════════════════════════════════════════════════
   Mobile Navigation (open state)
═══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--sp-6);
    z-index: 150;
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    font-size: 1.25rem;
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
  }

  .nav-links .nav-cta {
    background: var(--ink);
    color: var(--paper);
    padding: 0.75rem 2rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .nav-toggle { display: flex; z-index: 300; position: relative; }

  .nav-toggle.is-active span:first-child { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.is-active span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ═══════════════════════════════════════════════════════════
   Responsive — Tablet
═══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .section { padding: var(--sp-12) 0; }

  /* Hero stacks */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 6rem;
  }

  .hero-content {
    padding: var(--sp-8) var(--sp-4) var(--sp-4);
    max-width: 100%;
    margin-left: 0;
    padding-right: var(--sp-4);
  }

  .hero-panel { display: none; }

  .notes-grid { grid-template-columns: repeat(2, 1fr); }

  .beyond-grid { grid-template-columns: 1fr; gap: var(--sp-8); }

  .thoughts-grid { grid-template-columns: 1fr; }

  .proj-row {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  .proj-meta { flex-direction: row; align-items: baseline; gap: var(--sp-2); }
  .proj-num  { font-size: 1.4rem; }
  .proj-toggle { width: 100%; justify-content: center; }

  .case-grid { grid-template-columns: 1fr; }

  .shelf-row { flex-wrap: wrap; gap: var(--sp-4); }
}

/* ═══════════════════════════════════════════════════════════
   Responsive — Mobile
═══════════════════════════════════════════════════════════ */
@media (max-width: 540px) {
  .eyebrow { font-size: 0.62rem; letter-spacing: 0.08em; }
  .hero-title { font-size: 2.8rem; }

  .notes-grid { grid-template-columns: 1fr 1fr; }

  .tl-item {
    grid-template-columns: 56px 20px 1fr;
    gap: 0 var(--sp-2);
  }

  .tl-year { font-size: 1.1rem; }

  .beyond-card h3 { font-size: 1.6rem; }

  .contact-value { font-size: 0.88rem; word-break: break-all; }

  .footer-inner { flex-direction: column; gap: var(--sp-2); text-align: center; }
}

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