/* ==========================================================================
   Portfolio v3 — Warm Paper Theme
   Brand language adapted from galpal: cream/ivory floors, Sora, charcoal ink,
   marigold as a reward accent only, pastel category washes, washi tape,
   polaroid feel, subtle paper grain.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --cream:        #F5EFE1;
  --warm:         #F9F3E5;
  --surface-mid:  #F3EDDF;
  --ivory:        #FDFBF4;
  --white:        #FFFFFF;

  /* Brand */
  --charcoal:     #1F1A1D;
  --marigold:     #F5C94C;
  --marigold-soft:#FFF0B3;

  /* Ink */
  --ink:          #1F1A1D;
  --ink-secondary:#6B6257;
  --ink-disabled: #A09687;
  --ink-inverse:  #FDFBF4;

  /* Stitch pastels (chip + soft wash) */
  --peach:  #F7D4C3;  --peach-soft:  #FDEEE8;
  --mint:   #D6E4C8;  --mint-soft:   #EEF5E6;
  --sky:    #D0DAE8;  --sky-soft:    #E8EDF5;
  --butter: #F5E4B8;  --butter-soft: #FBF4DC;
  --lilac:  #DDD1E6;  --lilac-soft:  #F0EBF5;

  /* Border */
  --border:       rgba(206, 196, 200, 0.45);
  --border-hair:  rgba(31, 26, 29, 0.06);

  /* Radii */
  --r-btn:    28px;
  --r-card:   20px;
  --r-modal:  24px;
  --r-pill:   999px;

  /* Shadows (charcoal base, never pure black) */
  --shadow-paper:       0 12px 32px rgba(31,26,29,0.06);
  --shadow-paper-hover: 0 16px 48px rgba(31,26,29,0.10);
  --shadow-float:       0 24px 64px rgba(31,26,29,0.12);
  --shadow-cta:         0 8px 20px rgba(31,26,29,0.18);

  /* Type — single Sora family per brand guide; weight + italic do hierarchy work */
  --font: 'Sora', system-ui, sans-serif;

  /* Motion */
  --ease-std:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.26, 0.64, 1);

  /* Layout */
  --max-w:      1180px;
  --max-w-content: 920px;
  --nav-h:      72px;

  /* Hairline rule (used in place of decorative marigold) */
  --rule:       rgba(31, 26, 29, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: hidden; }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------- Global paper grain (fractal noise, fixed to viewport) ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
}

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

/* Mobile tap polish: suppress iOS blue flash + kill 300ms click delay */
a, button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

::selection { background: var(--marigold-soft); color: var(--charcoal); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(245, 239, 225, 0.70);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: background 0.25s var(--ease-std), border-color 0.25s var(--ease-std), box-shadow 0.25s var(--ease-std);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(245, 239, 225, 0.92);
  border-bottom-color: var(--border-hair);
  box-shadow: 0 1px 0 rgba(31, 26, 29, 0.02);
}
.nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-logo-mark { flex-shrink: 0; }
.nav-logo-expand {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  transition:
    max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease 0.05s,
    margin-left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-logo-expand::before {
  content: "— ";
  opacity: 0.55;
  margin-right: 2px;
}
.nav-logo:hover .nav-logo-expand,
.nav-logo:focus-visible .nav-logo-expand {
  max-width: 320px;
  opacity: 1;
  margin-left: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 12px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink-secondary);
  position: relative;
  transition: color 0.2s var(--ease-std);
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a.is-active { color: var(--charcoal); }
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--marigold);
  transform: translateX(-50%);
}

.nav-notify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 10px 4px;
  margin-right: 16px;
  letter-spacing: 0.005em;
  transition: color 180ms var(--ease-std);
}
.nav-notify:hover {
  color: var(--charcoal);
}
.nav-notify-icon {
  color: var(--marigold);
  transition: transform 220ms var(--ease-spring);
}
.nav-notify:hover .nav-notify-icon {
  transform: rotate(-12deg) translateY(-1px);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ivory);
  background: var(--charcoal);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  transition: transform 0.15s var(--ease-spring), opacity 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-cta);
}
.nav-cta:hover { opacity: 0.9; }
.nav-cta:active { transform: scale(0.97); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-std), opacity 0.25s var(--ease-std);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 32px 96px;
  background: var(--cream);
  overflow: hidden;
}

/* paper-grain extra for hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23g2)'/%3E%3C/svg%3E");
}

/* decorative ink doodle stars */
.hero-doodle {
  position: absolute;
  font-size: 22px;
  color: var(--marigold);
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}
.hero-doodle--1 { top: 22%; left: 6%;  transform: rotate(-12deg); }
.hero-doodle--2 { top: 12%; right: 9%; transform: rotate(8deg); font-size: 16px; }
.hero-doodle--3 { bottom: 18%; left: 38%; transform: rotate(-6deg); font-size: 14px; }

.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}

.greeting {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 28px;
  padding-left: 36px;
  position: relative;
}
.greeting::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 1px;
  background: var(--rule);
  transform: translateY(-50%);
}

.name {
  font-family: var(--font);
  font-size: clamp(54px, 9vw, 104px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 0.96;
  color: var(--charcoal);
  margin-bottom: 26px;
}
.name .ink-highlight {
  display: inline-block;
  background: var(--butter-soft);
  border-radius: 4px;
  padding: 0 12px;
  transform: skewX(-4deg) rotate(-0.6deg);
}

.domain-tags {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink-secondary);
  margin-bottom: 28px;
}

.intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-secondary);
  max-width: 580px;
  margin-bottom: 18px;
}

/* Availability anchor — small status line under the intro */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink-secondary);
  margin-bottom: 32px;
  padding: 8px 14px 8px 12px;
  background: var(--ivory);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-pill);
  max-width: 100%;
  flex-wrap: wrap;
}
.availability-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5DAA6F; /* live/available green — semantic */
  box-shadow: 0 0 0 3px rgba(93, 170, 111, 0.18);
  animation: availability-pulse 2.4s var(--ease-std) infinite;
  flex-shrink: 0;
}
@keyframes availability-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(93, 170, 111, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(93, 170, 111, 0.06); }
}

/* Contact-section availability — light variant on dark bg */
.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(253, 251, 244, 0.75);
  background: rgba(253, 251, 244, 0.06);
  border: 1px solid rgba(253, 251, 244, 0.12);
  padding: 8px 14px 8px 12px;
  border-radius: var(--r-pill);
  margin-top: -32px;
  margin-bottom: 36px;
  max-width: 100%;
  flex-wrap: wrap;
}

/* Contact illustration — cream square on dark section */
.contact-illustration {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  padding: 14px 24px;
  border-radius: var(--r-btn);
  border: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring), background 0.2s var(--ease-std),
              opacity 0.2s, box-shadow 0.2s, border-color 0.2s;
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 12px 28px rgba(31,26,29,0.22); }
.btn-outline {
  background: var(--ivory);
  color: var(--charcoal);
  border: 1.5px solid rgba(31, 26, 29, 0.14);
}
.btn-outline:hover { background: var(--warm); }

.btn-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--charcoal);
  border: 1.5px solid rgba(31, 26, 29, 0.14);
  transition: transform 0.15s var(--ease-spring), background 0.2s, box-shadow 0.2s;
}
.btn-icon-circle:hover { background: var(--warm); }
.btn-icon-circle:active { transform: scale(0.95); }

/* Polaroid photo */
.photo-col { display: flex; justify-content: center; }

.polaroid {
  background: var(--ivory);
  padding: 16px 16px 48px;
  box-shadow:
    0 18px 40px rgba(31,26,29,0.12),
    0 3px 8px rgba(31,26,29,0.07);
  position: relative;
  transform: rotate(2deg);
  transition: transform 0.5s var(--ease-std), box-shadow 0.5s var(--ease-std);
  max-width: 400px;
  width: 100%;
}
.polaroid:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow:
    0 22px 48px rgba(31,26,29,0.14),
    0 4px 10px rgba(31,26,29,0.08);
}

/* Illustration variant — comic image, no polaroid frame */
.polaroid--illustration {
  transform: rotate(-2deg);
  padding: 0 0 48px;
  background: transparent;
  box-shadow: none;
}
.polaroid--illustration:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: none;
}

.polaroid-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* very subtle paper-grain inside the illustration frame */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23p)' opacity='0.04'/%3E%3C/svg%3E");
}
.polaroid-img {
  width: 100%;
  height: auto;
  display: block;
}
.polaroid-caption {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  text-align: center;
  font-family: var(--font);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-secondary);
  letter-spacing: 0.005em;
}

/* Washi tape across top of polaroid */
.washi {
  position: absolute;
  top: -10px; left: 50%;
  width: 110px; height: 24px;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--butter);
  border-radius: 1px;
  box-shadow: 0 2px 6px rgba(31,26,29,0.06);
  opacity: 0.92;
}
.washi::before, .washi::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 6px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 3px,
      rgba(255,255,255,0.5) 3px 5px
    );
}
.washi::before { left: 0; }
.washi::after  { right: 0; }

/* Second washi strip — bottom-right corner */
.washi--corner {
  top: auto; left: auto;
  bottom: 32px; right: -14px;
  width: 70px; height: 18px;
  transform: rotate(28deg);
  background: var(--peach);
  opacity: 0.88;
}
/* Narrow mobile: pull the corner tape back inside the polaroid */
@media (max-width: 414px) {
  .washi--corner { right: 0; bottom: 28px; width: 58px; }
}

/* ==========================================================================
   Stats Bar (charcoal, marigold dots)
   ========================================================================== */
.stats-bar {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 44px 32px;
  position: relative;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
  padding: 4px 24px;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: rgba(253, 251, 244, 0.12);
}
.stat-value {
  font-family: var(--font);
  font-size: clamp(36px, 4.5vw, 48px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.035em;
  color: var(--ivory);
  line-height: 1;
}
.stat-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(253, 251, 244, 0.55);
}

/* ==========================================================================
   Section primitives
   ========================================================================== */
.section { padding: 112px 32px; position: relative; }
.section--cream { background: var(--cream); }
.section--ivory { background: var(--ivory); }
.section--warm  { background: var(--warm); }
.section--dark  { background: var(--charcoal); color: var(--ivory); }

.section-inner {
  max-width: var(--max-w-content);
  margin: 0 auto;
  position: relative;
}
.section-inner--centered { text-align: center; }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 18px;
  padding-left: 36px;
  position: relative;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 1px;
  background: var(--rule);
  transform: translateY(-50%);
}
.section-label--light { color: rgba(253, 251, 244, 0.7); }
.section-label--light::before { background: rgba(253, 251, 244, 0.32); }

.section-title {
  font-family: var(--font);
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--charcoal);
  margin-bottom: 64px;
  max-width: 820px;
}
.section-title--light { color: var(--ivory); }

/* Torn paper edge between sections */
.paper-edge {
  position: absolute;
  left: 0; right: 0;
  height: 28px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.paper-edge--top    { top: -1px;    transform: scaleY(-1); }
.paper-edge--bottom { bottom: -1px; }

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: '';
  position: absolute;
  top: 12px; bottom: 12px;
  left: 9px;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(31,26,29,0.18) 0 4px,
    transparent 4px 8px
  );
}

/* Marigold "fill" line that grows down the timeline as items reveal on scroll */
.timeline-progress {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 9px;
  width: 2px;
  background: var(--marigold);
  transform-origin: top center;
  transform: scaleY(var(--progress, 0));
  transition: transform 0.9s var(--ease-std);
  pointer-events: none;
  z-index: 0;
  border-radius: 2px;
}

/* Pulsing "now" halo on the current entry's marker */
.timeline-item--current .timeline-marker {
  animation: timeline-pulse 2.4s ease-in-out infinite;
}
@keyframes timeline-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px var(--cream),
      0 0 0 4px rgba(245, 158, 11, 0);
  }
  50% {
    box-shadow:
      0 0 0 4px var(--cream),
      0 0 0 10px rgba(245, 158, 11, 0.22);
  }
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -36px; top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2.5px solid var(--charcoal);
  box-shadow: 0 0 0 4px var(--cream);
  z-index: 1;
}
.timeline-marker--edu {
  background: var(--marigold);
  border-color: var(--charcoal);
}
.section--ivory .timeline-marker { box-shadow: 0 0 0 4px var(--ivory); }

.timeline-content {
  background: var(--ivory);
  border-radius: var(--r-card);
  padding: 22px 26px;
  box-shadow: var(--shadow-paper);
  transition: transform 0.3s var(--ease-std), box-shadow 0.3s var(--ease-std);
}
.timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-paper-hover);
}

/* Highlight the AI/PM chapter (Rethink + Gal Pal) — visually groups
   the last two entries as the current career chapter. Marigold left
   accent matches the progress line and pulse, signalling "this is now". */
.timeline-item--current-chapter .timeline-content {
  border-left: 3px solid var(--marigold);
  padding-left: 23px;
}
.timeline-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-right: 10px;
}
.timeline-badge--work { background: var(--mint-soft); color: #1a5e38; }
.timeline-badge--edu  { background: var(--lilac-soft); color: #5b3a85; }

.timeline-date {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-disabled);
}

.timeline-role {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  margin-top: 14px;
  margin-bottom: 4px;
  line-height: 1.25;
}
.timeline-org {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}
.timeline-accolade {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1.5px solid var(--marigold);
  padding-bottom: 1px;
  margin: -4px 0 12px;
  transition: opacity 0.2s var(--ease-std);
}
.timeline-accolade:hover { opacity: 0.7; }

/* Collapsible "Key outcomes" on work entries — uses native <details>. */
.timeline-details {
  margin-top: 8px;
  margin-bottom: 4px;
}
.timeline-details > summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  user-select: none;
  list-style: none;
  padding: 4px 0;
}
.timeline-details > summary::-webkit-details-marker { display: none; }
.timeline-details > summary::before {
  content: "+";
  display: inline-block;
  width: 14px;
  height: 14px;
  line-height: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--marigold);
  border: 1.5px solid var(--marigold);
  border-radius: 50%;
}
.timeline-details[open] > summary::before { content: "\2212"; }
.timeline-details > summary:hover { opacity: 0.75; }
.timeline-details-list {
  list-style: none;
  margin: 8px 0 2px;
  padding: 0;
}
.timeline-details-list li {
  position: relative;
  padding: 3px 0 3px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.timeline-details-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 2px;
  background: var(--marigold);
  border-radius: 1px;
}
.timeline-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Cards (case studies, projects)
   ========================================================================== */
.card {
  background: var(--ivory);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-paper);
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s var(--ease-std), box-shadow 0.3s var(--ease-std);
}
.card:last-child { margin-bottom: 0; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-paper-hover);
}

/* Pastel left rail rotates per card position */
.card::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 5px;
}
.card:nth-child(5n+1)::before { background: var(--peach); }
.card:nth-child(5n+2)::before { background: var(--mint); }
.card:nth-child(5n+3)::before { background: var(--sky); }
.card:nth-child(5n+4)::before { background: var(--butter); }
.card:nth-child(5n+5)::before { background: var(--lilac); }

.card-header {
  padding: 36px 38px;
  cursor: pointer;
  outline: none;
}
.card-header:focus-visible {
  outline: 2px solid var(--marigold);
  outline-offset: -4px;
  border-radius: var(--r-card);
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.card-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-mid);
  color: var(--ink-secondary);
}
.card-badge--live {
  background: var(--mint-soft);
  color: #1a5e38;
}
.card-badge--founder {
  background: var(--marigold-soft);
  color: var(--charcoal);
}
.card-year {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-disabled);
  letter-spacing: 0.02em;
}
.card-name {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.card-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.card-tagline {
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin: 6px 0 14px;
  max-width: 640px;
}

.card-summary {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: 18px;
}

/* Metrics chips */
.card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.card-metric {
  display: inline-flex;
  flex-direction: column;
  background: var(--warm);
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 120px;
}
.card-metric-value {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.025em;
  color: var(--charcoal);
  line-height: 1;
}
.card-metric-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-top: 6px;
}

/* Tags row */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.card-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--ivory);
  border: 1px solid rgba(31, 26, 29, 0.10);
  color: var(--ink-secondary);
}

/* Card link row — holds live + PRD links side by side */
.card-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.card-link-row .card-link { margin-bottom: 0; }

/* Live link */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  margin-bottom: 20px;
  transition: border-color 0.25s var(--ease-std), gap 0.25s var(--ease-std);
}
.card-link:hover { border-bottom-color: var(--charcoal); gap: 10px; }

/* Toggle text */
.card-toggle-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.2s var(--ease-std);
}
.card-toggle-text::after {
  content: '+';
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--ivory);
  text-align: center;
  line-height: 17px;
  transition: transform 0.4s var(--ease-std), background 0.2s;
}
.card-header[aria-expanded="true"] .card-toggle-text::after {
  content: '−';
  transform: rotate(180deg);
  background: var(--marigold);
  color: var(--charcoal);
}
.card-header:hover .card-toggle-text { color: var(--charcoal); }

/* Expandable body */
.card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-body-inner {
  padding: 0 34px 34px;
  border-top: 1px dashed rgba(31, 26, 29, 0.12);
}
.card-section {
  margin-bottom: 26px;
}
.card-section:last-child { margin-bottom: 0; }
.card-section h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-top: 26px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  display: inline-block;
  padding-right: 24px;
}
.card-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin-bottom: 12px;
}
.card-section p:last-child { margin-bottom: 0; }

/* Bulleted list inside a card section — marigold dot bullets, mirrors
   the body-paragraph type scale so list items read alongside the prose. */
.card-list {
  list-style: none;
  margin: 4px 0 12px;
  padding: 0;
}
.card-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary);
}
.card-list li:last-child { margin-bottom: 0; }
.card-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--marigold);
}
.card-list li strong { color: var(--ink); }

/* Subtle "why" note attached to a card item — italic, smaller, softer color.
   Reusable inside list items or paragraphs to add the PM rationale behind a
   decision without competing visually with the main body text. */
.card-note {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-disabled);
}

/* ==========================================================================
   "More builds" expandable section in Projects
   ========================================================================== */
/* Default `<div>` block display handles the visible state; the native
   `hidden` HTML attribute handles the collapsed state via UA stylesheet
   (display: none). No custom rule needed — custom CSS was masking the
   `hidden` behavior on some browsers. */

.more-builds-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1.5px solid rgba(31, 26, 29, 0.14);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.2s var(--ease-std), border-color 0.2s var(--ease-std), transform 0.15s var(--ease-spring);
}
.more-builds-toggle:hover {
  background: var(--warm);
  border-color: rgba(31, 26, 29, 0.24);
}
.more-builds-toggle:active { transform: scale(0.98); }
.more-builds-toggle:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; }
.more-builds-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.4s var(--ease-std), background 0.2s;
}
.more-builds-toggle[aria-expanded="true"] .more-builds-toggle-icon {
  transform: rotate(45deg);
  background: var(--marigold);
  color: var(--charcoal);
}

/* ==========================================================================
   Comic Story — collapsible 9-page origin comic reader
   ========================================================================== */
.origin-pullout {
  margin: 8px auto 14px;
  max-width: 660px;
  font-size: clamp(17px, 2vw, 21px);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.005em;
  position: relative;
  padding-top: 22px;
}
.origin-pullout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 2px;
  background: var(--marigold);
  border-radius: 2px;
}

.comic-subtitle {
  margin: -8px auto 28px;
  max-width: 560px;
  font-size: 16px;
  font-style: italic;
  color: var(--ink-secondary);
}

.comic-reader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  width: 100%;
}
.comic-reader[hidden] { display: none; }

.comic-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.comic-dot {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(31, 26, 29, 0.18);
  background: var(--ivory);
  color: var(--ink-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s var(--ease-spring), background 0.2s, color 0.2s, border-color 0.2s;
  font-variant-numeric: tabular-nums;
  padding: 0;
  line-height: 1;
}
.comic-dot:hover {
  background: var(--warm);
  border-color: rgba(31, 26, 29, 0.30);
  transform: translateY(-1px);
}
.comic-dot:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; }
.comic-dot.is-active {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}

/* Comic stage — clean ivory card. The page-turn track inside is the
   visual anchor; we keep the surround quiet so the comic content reads. */
.comic-stage {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--ivory);
  border-radius: var(--r-card);
  padding: 16px;
  box-shadow:
    0 18px 40px rgba(31,26,29,0.10),
    0 3px 8px rgba(31,26,29,0.06);
  overflow: hidden;
}

/* The page-turn track — single image with opacity-fade swap. Aspect ratio
   is locked via padding-bottom (80% = 4:5, matching the native comic page
   dimensions 1402×1122) — this works on every mobile browser without
   relying on CSS aspect-ratio. */
.comic-pages-track {
  position: relative;
  width: 100%;
  padding-bottom: 80%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ivory);
}

.comic-page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 280ms var(--ease-std);
}
.comic-page.is-loading { opacity: 0.3; }

.comic-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.comic-nav {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1.5px solid rgba(31, 26, 29, 0.18);
  padding: 11px 22px;
  border-radius: var(--r-pill);
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s var(--ease-spring);
}
.comic-nav:hover:not(:disabled) {
  background: var(--warm);
  border-color: rgba(31, 26, 29, 0.30);
  transform: translateY(-1px);
}
.comic-nav:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; }
.comic-nav:disabled { opacity: 0.38; cursor: not-allowed; }

.comic-counter {
  font-size: 13px;
  font-style: italic;
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  text-transform: lowercase;
  min-width: 96px;
  text-align: center;
}

/* Subtle "skip the story" exit affordance, always available once the reader
   is open. Hides on page 9 so it doesn't compete with the closing CTA. */
.comic-skip {
  display: inline-block;
  margin-top: -8px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-disabled);
  text-decoration: underline;
  text-decoration-color: rgba(31, 26, 29, 0.18);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease-std), text-decoration-color 0.2s var(--ease-std);
}
.comic-skip:hover {
  color: var(--ink-secondary);
  text-decoration-color: var(--marigold);
}
.comic-skip:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; }
.comic-skip[hidden] { display: none; }

.comic-end {
  margin-top: 8px;
  padding: 28px 28px 24px;
  background: var(--marigold-soft);
  border-radius: var(--r-card);
  max-width: 640px;
  text-align: center;
  animation: comic-end-in 360ms var(--ease-std) both;
}
.comic-end[hidden] { display: none; }
.comic-end-text {
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: var(--charcoal);
  margin: 0 0 18px;
  line-height: 1.55;
}
@keyframes comic-end-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  /* Bump dots and nav buttons to 40px+ tap targets (44px is the iOS/Material
     accessibility minimum). 9 × 40 = ~360px → wraps to 2 rows on 320–360px
     viewports, which is fine. */
  .comic-dot { width: 40px; height: 40px; font-size: 13px; gap: 6px; }
  .comic-dots { gap: 8px; }
  .comic-controls { gap: 12px; }
  .comic-nav { padding: 12px 18px; font-size: 13px; min-height: 44px; }
  .comic-counter { font-size: 12px; min-width: 80px; }
  .comic-stage { padding: 10px; }
  .comic-end { padding: 22px 20px 20px; }
}

/* ==========================================================================
   Philosophy — principle cards (washi-tape detailing)
   ========================================================================== */
.philosophy-lead {
  font-family: var(--font);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--charcoal);
  max-width: 760px;
  margin-bottom: 40px;
  letter-spacing: -0.015em;
}

.philosophy-illustration {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  margin: 0 auto 64px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.principle {
  background: var(--ivory);
  border-radius: var(--r-card);
  padding: 36px 28px 28px;
  box-shadow: var(--shadow-paper);
  position: relative;
  transition: transform 0.3s var(--ease-std), box-shadow 0.3s var(--ease-std);
}
.principle:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-paper-hover);
}

/* Washi tape detail — colored per principle */
.principle::before {
  content: '';
  position: absolute;
  top: -8px; left: 24px;
  width: 64px; height: 18px;
  transform: rotate(-4deg);
  border-radius: 1px;
  box-shadow: 0 2px 4px rgba(31,26,29,0.05);
  opacity: 0.92;
}
.principle:nth-child(5n+1)::before { background: var(--peach); }
.principle:nth-child(5n+2)::before { background: var(--mint); }
.principle:nth-child(5n+3)::before { background: var(--sky); }
.principle:nth-child(5n+4)::before { background: var(--butter); }
.principle:nth-child(5n+5)::before { background: var(--lilac); }

.principle h3 {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  margin-bottom: 14px;
  margin-top: 10px;
  line-height: 1.25;
}
.principle p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Testimonials — postcard style
   ========================================================================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.testimonial {
  background: var(--ivory);
  border-radius: var(--r-card);
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-paper);
  position: relative;
  transition: transform 0.3s var(--ease-std), box-shadow 0.3s var(--ease-std);
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-paper-hover);
}
/* Decorative ink quote mark */
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 8px; left: 22px;
  font-size: 100px;
  font-weight: 700;
  font-style: italic;
  color: var(--charcoal);
  opacity: 0.10;
  line-height: 1;
  font-family: var(--font);
}
.testimonial p {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-style: italic;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.005em;
}
.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px dashed rgba(31, 26, 29, 0.14);
}
.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  color: var(--charcoal);
  letter-spacing: -0.005em;
}
.testimonial-role {
  font-size: 12.5px;
  color: var(--ink-secondary);
  letter-spacing: 0.005em;
}

/* Project-context eyebrow above each testimonial quote — names what the
   praise is actually about, so the abstract language inside the quote
   becomes concrete. */
.testimonial-context {
  display: inline-block;
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: 0.005em;
  line-height: 1.45;
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 2px solid var(--marigold);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Story & Looking-for — long-form content
   ========================================================================== */
.story-content,
.looking-for-content {
  max-width: 720px;
}
.story-content p,
.looking-for-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}
.story-content p:first-of-type {
  font-size: 19px;
  font-weight: 500;
  color: var(--charcoal);
}
.story-content p:last-child,
.looking-for-content p:last-child { margin-bottom: 0; }

.looking-for-cta {
  font-family: var(--font);
  font-size: 26px !important;
  font-weight: 700 !important;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--charcoal) !important;
  margin-top: 32px !important;
}

/* ==========================================================================
   Contact (charcoal section)
   ========================================================================== */
#contact .section-title {
  /* Tightened size for the dark contact band — same Sora italic, just a hair smaller */
  font-size: clamp(34px, 4.6vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ivory);
}
/* Centered sections: actually center the title block, not just its inline text */
.section-inner--centered .section-label,
.section-inner--centered .section-title {
  margin-left: auto;
  margin-right: auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 960px;
  margin: 24px auto 0;
  text-align: left;
}
.contact-grid-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.contact-grid .contact-availability { margin-top: 0; margin-bottom: 0; }
.contact-grid .contact-links { margin-top: 0; }
.contact-grid .contact-item { min-width: 0; width: 100%; }

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(253, 251, 244, 0.08);
  border: 1px solid rgba(253, 251, 244, 0.10);
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--ivory);
  transition: background 0.2s var(--ease-std), border-color 0.2s var(--ease-std), transform 0.15s var(--ease-spring);
  justify-content: center;
}
.contact-item .contact-text { text-align: left; }
.contact-item:hover {
  background: rgba(253, 251, 244, 0.14);
  border-color: rgba(253, 251, 244, 0.20);
}
.contact-item:active { transform: scale(0.98); }
.contact-item--static { cursor: default; }
.contact-item--static:hover { background: rgba(253, 251, 244, 0.08); border-color: rgba(253, 251, 244, 0.10); transform: none; }

/* Primary contact CTA — calendar booking, visually dominant */
.contact-item--primary {
  background: var(--ivory);
  color: var(--charcoal);
  border-color: var(--ivory);
  font-weight: 600;
  box-shadow: var(--shadow-cta);
}
.contact-item--primary:hover {
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-1px);
}
.contact-item--primary .contact-icon {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--ivory);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(253, 251, 244, 0.10);
  border: 1px solid rgba(253, 251, 244, 0.18);
  color: var(--ivory);
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  font-style: italic;
}
.contact-icon svg {
  width: 15px; height: 15px;
  stroke-width: 1.75;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--cream);
  padding: 64px 32px 48px;
  position: relative;
  text-align: center;
}
.footer-inner {
  max-width: var(--max-w-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.footer-quote {
  font-family: var(--font);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  max-width: 640px;
  line-height: 1.35;
}
.footer-quote .ink-highlight {
  display: inline-block;
  background: var(--butter-soft);
  border-radius: 4px;
  padding: 0 6px;
  transform: skewX(-4deg) rotate(-0.6deg);
}
.footer-links {
  display: flex;
  gap: 14px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--charcoal);
  border: 1.5px solid rgba(31, 26, 29, 0.10);
  transition: transform 0.15s var(--ease-spring), background 0.2s, box-shadow 0.2s;
}
.footer-link:hover { background: var(--warm); }
.footer-link:active { transform: scale(0.95); }
.footer-credit {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-disabled);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal,
.reveal-left,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.7s var(--ease-std), transform 0.7s var(--ease-std);
  will-change: opacity, transform;
}
.reveal       { transform: translateY(16px); }
.reveal-left  { transform: translateX(-12px); }
.reveal-scale { transform: scale(0.96); }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.14s; }
.stagger-3 { transition-delay: 0.22s; }
.stagger-4 { transition-delay: 0.30s; }
.stagger-5 { transition-delay: 0.38s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: left;
  }
  /* Center the polaroid when the hero stacks vertically — left-align looked
     orphaned on its own row. */
  .photo-col { justify-content: center; }
  .polaroid { max-width: 320px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; row-gap: 32px; }
  /* Once stats wrap to 2 rows, the separator on the leftmost cell of row 2
     becomes an orphan bar — hide it. */
  .stat:nth-child(3)::before { display: none; }
  .testimonials, .principles { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-inner { padding: 0 20px; gap: 12px; }
  /* On mobile the nav collapses to a hamburger — keep the logo simple.
     Belt-and-suspenders: explicitly clear the ::before content too, since
     iOS Safari has been known to leak pseudo-elements of display:none
     parents through backdrop-filter surfaces. */
  .nav-logo-expand { display: none !important; }
  .nav-logo-expand::before { content: none !important; }
  /* Slightly more opaque nav background on mobile so any thin lines or
     decorative marks behind don't bleed through the blurred backdrop. */
  .nav { background: rgba(245, 239, 225, 0.92); }
  .nav--scrolled { background: rgba(245, 239, 225, 0.97); }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-hair);
    transform: translateY(-110%);
    transition: transform 0.3s var(--ease-std);
    margin: 0;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a {
    font-size: 18px;
    font-weight: 600;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px dashed var(--border-hair);
  }
  .nav-links a.is-active::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-notify { display: none; }

  .hero { padding: calc(var(--nav-h) + 48px) 20px 64px; }
  .name { font-size: clamp(40px, 13vw, 64px); }
  .intro { font-size: 16px; }
  .availability { font-size: 12px; padding: 7px 12px 7px 10px; }
  /* LinkedIn icon-button is redundant with contact + footer; hide on mobile */
  .btn-icon-circle--hero { display: none; }
  .contact-availability { font-size: 12px; }

  .polaroid--illustration { max-width: 300px; }

  .stats-bar { padding: 28px 20px; }
  .stats-inner { gap: 20px; row-gap: 28px; }
  .stat-value { font-size: 26px; }

  .section { padding: 64px 20px; }
  .section-title { font-size: clamp(28px, 7vw, 40px); margin-bottom: 36px; }

  .timeline { padding-left: 28px; }
  .timeline-marker { left: -28px; width: 16px; height: 16px; }
  .timeline-content { padding: 18px 20px; }
  .timeline-item--current-chapter .timeline-content { padding-left: 17px; }
  .timeline-role { font-size: 17px; }

  .card-header { padding: 24px 22px; }
  .card-body-inner { padding: 0 22px 26px; }
  .card-name { font-size: 19px; }

  .principle { padding: 32px 22px 24px; }
  .testimonial { padding: 32px 24px 24px; }

  .contact-item { min-width: 0; width: 100%; max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid .contact-item { max-width: 360px; margin: 0 auto; }

  .footer { padding: 48px 20px 36px; }
}

/* Narrow mobile — tighten stat labels so they stop stacking to 3 lines */
@media (max-width: 480px) {
  .stat-label { font-size: 10px; letter-spacing: 0.14em; }
}

/* ==========================================================================
   Toast — shown on mailto clicks (copies email, confirms copy)
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(31,26,29,0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease-std), transform 260ms var(--ease-std);
  max-width: calc(100vw - 32px);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-icon {
  display: inline-flex;
  color: var(--marigold);
  flex-shrink: 0;
}
.toast-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 480px) {
  .toast { font-size: 13px; padding: 11px 16px; bottom: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-scale { opacity: 1; transform: none; }
  .timeline-progress { transform: scaleY(1); transition: none; }
  .timeline-item--current .timeline-marker { animation: none; }
}

/* ==========================================================================
   Notify Me — optional email signup section (#notify, between #story and #contact)
   Reuses the Supabase 'subscribers' table the old gate wrote to. Never blocks
   the page; failures are logged to the console for the owner's debugging.
   ========================================================================== */

.notify-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.notify-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 16px 0 28px;
  max-width: 480px;
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
}
.notify-form[hidden],
.notify-already[hidden] { display: none; }

.notify-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.notify-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-btn);
  padding: 14px 18px;
  outline: none;
  transition: border-color 160ms var(--ease-std), box-shadow 160ms var(--ease-std);
  -webkit-appearance: none;
  appearance: none;
}
.notify-input::placeholder { color: var(--ink-disabled); }
.notify-input:focus {
  border-color: var(--charcoal);
  box-shadow: 0 0 0 4px rgba(31,26,29,0.06);
}
.notify-input.is-error {
  border-color: #C1554B;
  box-shadow: 0 0 0 4px rgba(193,85,75,0.10);
}

.notify-btn {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--ivory);
  background: var(--charcoal);
  border: none;
  border-radius: var(--r-btn);
  padding: 14px 24px;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: transform 180ms var(--ease-spring), box-shadow 180ms var(--ease-std), background 180ms var(--ease-std);
  min-height: 48px;
  white-space: nowrap;
}
.notify-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31,26,29,0.22);
}
.notify-btn:active:not(:disabled) { transform: translateY(0); }
.notify-btn:disabled { opacity: 0.78; cursor: wait; }

.notify-error {
  min-height: 20px;
  font-size: 13px;
  color: #C1554B;
  text-align: left;
  padding: 0 4px;
  margin-top: -2px;
}
.notify-error[hidden] { display: none; }

.notify-typo-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--marigold);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  cursor: pointer;
}
.notify-typo-link:hover { text-decoration-color: var(--charcoal); }

.notify-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-disabled);
  letter-spacing: 0.02em;
}

.notify-success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border: 1.5px solid var(--marigold-soft);
  border-radius: var(--r-modal);
  max-width: 480px;
  animation: notify-success-in 380ms var(--ease-std) both;
}
.notify-success.is-visible { display: flex; }

.notify-success-check {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--marigold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
}

.notify-success-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 2px 0 4px;
}
.notify-success-sub {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.notify-already {
  max-width: 480px;
  padding: 16px 20px;
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-modal);
}
.notify-already-text {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin: 0;
}

.notify-polaroid {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes notify-success-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile — stack vertically, polaroid above form */
@media (max-width: 720px) {
  .notify-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .notify-col-art { order: -1; }
  .notify-polaroid { max-width: 240px; }
  .notify-input-row { flex-direction: column; }
  .notify-btn { width: 100%; }
}
