/* ===========================================
   Portfolio Painting — global stylesheet
   Visual contract: docs/superpowers/specs/2026-05-12-portfolio-painting-redesign-mockup.html
   =========================================== */

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Design tokens (oil pastel palette) --- */
:root {
  --paper: #f5ebd5;
  --paper-warm: #fbf6ee;
  --ink: #2d2418;
  --ink-soft: #3a2e1e;
  --ink-muted: #6b4f2a;
  --accent: #c4502a;        /* red-orange crayon */
  --hl-yellow: rgba(255,210,130,.7);
  --hl-pink: rgba(255,179,157,.7);
  --hl-lav: rgba(201,179,255,.7);
  --sky-top: #aee0ff;
  --sky-mid: #c8ecff;
  --sky-bottom: #e7f5cf;
  --grass: #b0d77a;
  --grass-deep: #9bce5e;
  --grass-shadow: #3a5520;
  --path: #c19a4f;
  --path-deep: #a8784c;
  --sunset-top: #6ab0c4;
  --sunset-mid: #f5b88a;
  --sunset-bottom: #d96552;
}

/* --- Skip link --- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 8px 16px;
  font-family: 'Patrick Hand', cursive; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Body base --- */
body {
  font-family: 'Caveat', 'Patrick Hand', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

/* --- Paper grain (two layered noise textures applied page-wide) --- */
main {
  position: relative;
  background: var(--paper);
  background-image:
    radial-gradient(ellipse 100% 80% at 20% 10%, rgba(255,240,200,.5), transparent 60%),
    radial-gradient(ellipse 100% 80% at 90% 50%, rgba(250,230,200,.4), transparent 60%);
}
main::before, main::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 30;
  mix-blend-mode: multiply;
}
main::before {
  opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='4' seed='7'/><feColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.24 0 0 0 0 0.16 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p)'/></svg>");
}
main::after {
  opacity: .25;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='2.1' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23f)' opacity='.4'/></svg>");
}

/* --- Reveal animation base --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s, transform .9s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* --- Highlight sweeps inside bio text --- */
.hl  { background: linear-gradient(180deg, transparent 55%, var(--hl-yellow) 55%); padding: 0 4px; }
.hl-pink { background: linear-gradient(180deg, transparent 55%, var(--hl-pink) 55%); padding: 0 4px; }
.hl-lav  { background: linear-gradient(180deg, transparent 55%, var(--hl-lav) 55%); padding: 0 4px; }

/* --- Focus rings --- */
:focus-visible { outline: 2px dashed var(--accent); outline-offset: 4px; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
  /* === SKY SCENE (hero) === */
  .scene-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    /* crayon sky */
    background:
      linear-gradient(180deg, #aee0ff 0%, #c8ecff 60%, #e7f5cf 85%, #c8e09a 100%);
  }
  /* crayon strokes on sky (diagonal hatch) */
  .scene-hero::before {
    content:""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background-image:
      repeating-linear-gradient(75deg, transparent 0 6px, rgba(120,180,220,.12) 6px 7px),
      repeating-linear-gradient(105deg, transparent 0 8px, rgba(140,200,230,.1) 8px 9px);
    mix-blend-mode: multiply;
  }
  .scene-hero::after {
    content:""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23c)' opacity='.3'/></svg>");
    mix-blend-mode: multiply; opacity: .4;
  }

  /* Sun */
  .sun {
    position: absolute; top: 80px; right: 18%; width: 140px; height: 140px;
    z-index: 3;
    will-change: transform;
  }
  .sun-circle {
    position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle, #fff8d6 0%, #ffe98a 60%, #ffd24d 100%);
    box-shadow: 0 0 60px rgba(255,220,120,.6);
    /* crayon edge wobble */
  }
  /* Sun rays */
  .sun-rays {
    position: absolute; inset: -40px;
    background: conic-gradient(from 0deg, transparent 0deg 8deg, rgba(255,200,90,.25) 8deg 16deg, transparent 16deg 22deg, rgba(255,200,90,.25) 22deg 30deg, transparent 30deg 38deg, rgba(255,200,90,.2) 38deg 46deg, transparent 46deg);
    border-radius: 50%;
    filter: blur(2px);
    animation: spin 80s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Clouds */
  .cloud {
    position: absolute; pointer-events: none; z-index: 3;
    will-change: transform;
  }
  .cloud svg { width: 100%; height: 100%; display: block; }
  .cloud-1 { top: 130px; left: 8%; width: 200px; height: 80px; animation: drift 40s linear infinite; }
  .cloud-2 { top: 60px; left: 40%; width: 160px; height: 60px; animation: drift 55s linear infinite reverse; }
  .cloud-3 { top: 220px; left: 65%; width: 180px; height: 70px; animation: drift 50s linear infinite; }
  @keyframes drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(40px); }
  }

  /* Birds */
  .birds {
    position: absolute; top: 200px; right: 30%; width: 140px; height: 50px; z-index: 4;
    animation: drift 30s linear infinite;
  }

  /* Hand-drawn title banner across the sky */
  .title-banner {
    position: absolute; top: 36%; left: 0; right: 0; text-align: center; z-index: 6;
    transform: translateY(-50%);
  }
  .title-banner .greet {
    font-family: 'Caveat', 'Patrick Hand', cursive; font-size: 28px;
    color: #6b4f2a; margin-bottom: 10px; transform: rotate(-2deg); display: inline-block;
  }
  .title-banner h1 {
    font-family: 'Caveat', 'Patrick Hand', cursive;
    font-size: 96px; font-weight: 700; line-height: .9;
    color: #2d2418;
    text-shadow:
      1px 1px 0 rgba(255,255,255,.4),
      3px 3px 0 rgba(196,80,42,.15);
    letter-spacing: -2px;
  }
  .title-banner h1 .pop {
    color: #c4502a;
    display: inline-block;
    position: relative;
  }
  .title-banner h1 .pop::after {
    content:""; position: absolute; left: -2%; right: -2%; bottom: 8%; height: 20px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M 4 10 Q 30 4 60 11 T 120 9 T 196 12' fill='none' stroke='%23ffb347' stroke-width='8' stroke-linecap='round' opacity='.7'/></svg>") center/100% 100% no-repeat;
    z-index: -1;
  }
  .title-banner .sub {
    font-family: 'Caveat', cursive; font-size: 30px; color: #4a3a26;
    margin-top: 20px; transform: rotate(1deg); display: inline-block;
  }

  /* Mountains (mid) */
  .mountains {
    position: absolute; bottom: 25%; left: 0; right: 0; height: 200px; z-index: 4;
  }
  .mountains svg { width: 100%; height: 100%; display: block; }

  /* Ground / hills foreground */
  .ground {
    position: absolute; bottom: 0; left: 0; right: 0; height: 35%; z-index: 5;
    background:
      linear-gradient(180deg, #b8d96a 0%, #9fc54e 30%, #d4b76c 60%, #c19a4f 100%);
  }
  .ground::before {
    content:""; position: absolute; inset: 0;
    background-image:
      repeating-linear-gradient(85deg, transparent 0 4px, rgba(90,120,40,.15) 4px 5px),
      repeating-linear-gradient(95deg, transparent 0 5px, rgba(60,90,30,.1) 5px 6px);
    mix-blend-mode: multiply;
  }
  /* grass tufts */
  .grass {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 6;
    height: 100px;
  }

  /* Trees foreground */
  .tree {
    position: absolute; bottom: 18%; z-index: 7;
    will-change: transform;
  }
  .tree svg { width: 100%; height: 100%; display: block; }
  .tree-left { left: 5%; width: 200px; height: 320px; }
  .tree-right { right: 8%; width: 240px; height: 360px; bottom: 12%; }

  /* House (small, in the distance) */
  .house {
    position: absolute; bottom: 32%; left: 45%; width: 120px; height: 110px; z-index: 6;
  }

  /* Winding path */
  .path-decoration {
    position: absolute; bottom: 0; left: 0; right: 0; height: 50%; z-index: 6; pointer-events: none;
  }

  /* Scroll hint */
  .scroll-hint {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    font-family: 'Caveat', cursive; font-size: 26px; color: #5a4530; z-index: 10;
    text-align: center;
  }
  .scroll-hint .arrow-down {
    display: block; margin: 8px auto 0; width: 30px; height: 40px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'><path d='M 15 4 Q 13 20 14 32 M 6 24 L 15 34 L 24 24' fill='none' stroke='%235a4530' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
    animation: bob 2s ease-in-out infinite;
  }
  @keyframes bob { 50% { transform: translateY(8px); } }

  /* Doodle arrow next to title */
  .doodle-note {
    position: absolute; top: 28%; left: 8%; z-index: 8;
    font-family: 'Caveat', cursive; font-size: 28px; color: #c4502a;
    transform: rotate(-8deg); max-width: 160px;
    line-height: 1.1;
  }
  .doodle-note-arrow {
    position: absolute; top: 100%; left: 60%; display: block;
    width: 100px; height: 80px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 80'><path d='M 8 8 Q 30 30 60 38 Q 75 42 88 36 L 84 28 M 88 36 L 80 44' fill='none' stroke='%23c4502a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  }


  /* === BIO / HOUSE SECTION === */
  .scene-bio {
    position: relative; padding: 120px 60px;
    background:
      linear-gradient(180deg, #c8e09a 0%, #b0d77a 50%, #a3cf6c 100%);
  }
  .scene-bio::before {
    content:""; position: absolute; inset: 0; pointer-events: none;
    background-image:
      repeating-linear-gradient(85deg, transparent 0 4px, rgba(60,90,30,.1) 4px 5px),
      repeating-linear-gradient(95deg, transparent 0 5px, rgba(80,110,40,.08) 5px 6px);
    mix-blend-mode: multiply;
  }
  .bio-content {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center;
    position: relative; z-index: 2;
  }
  .bio-house {
    width: 100%; max-width: 420px;
    aspect-ratio: 1.1/1;
    position: relative;
    perspective: 800px;
  }
  .bio-house svg { overflow: visible; }
  .bio-door {
    transform-box: fill-box;
    transform-origin: left center;
    transform: rotateY(0deg);
    transition: transform .15s linear;
    will-change: transform;
  }
  .bio-smoke .smoke {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    opacity: 0;
    animation: smoke-rise 4s ease-in infinite;
  }
  .bio-smoke .smoke-2 { animation-delay: 2s; }
  @keyframes smoke-rise {
    0%   { transform: translateY(8px) scale(.85); opacity: 0; }
    20%  { opacity: .7; }
    100% { transform: translateY(-40px) scale(1.15); opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .bio-smoke .smoke { animation: none; opacity: .7; }
  }
  .bio-text .label {
    font-family: 'Caveat', cursive; font-size: 32px; color: #c4502a;
    transform: rotate(-2deg); display: inline-block; margin-bottom: 12px;
  }
  .bio-text h2 {
    font-family: 'Caveat', cursive; font-size: 64px; line-height: .95;
    color: #2d2418; font-weight: 700; margin-bottom: 24px;
  }
  .bio-text h2 .it { color: #c4502a; }
  .bio-text p {
    font-family: 'Patrick Hand', 'Caveat', cursive; font-size: 22px; line-height: 1.55;
    color: #3a2e1e;
  }
  .bio-text p .hl {
    background: linear-gradient(180deg, transparent 55%, rgba(255,210,130,.7) 55%);
    padding: 0 4px;
  }
  .bio-text p .hl-pink { background: linear-gradient(180deg, transparent 55%, rgba(255,179,157,.7) 55%); }
  .bio-text p .hl-lav { background: linear-gradient(180deg, transparent 55%, rgba(201,179,255,.7) 55%); }

  /* === PATH SECTION (career) === */
  .scene-path {
    position: relative; padding: 100px 0;
    background:
      linear-gradient(180deg, #a3cf6c 0%, #b8d96a 40%, #d4b76c 70%, #c19a4f 100%);
    overflow: hidden;
  }
  .scene-path::before {
    content:""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(90deg, transparent 0 4px, rgba(80,110,40,.1) 4px 5px);
    mix-blend-mode: multiply;
  }
  .path-head {
    text-align: center; max-width: 800px; margin: 0 auto 60px; position: relative; z-index: 2;
  }
  .path-head .label { font-family: 'Caveat', cursive; font-size: 32px; color: #c4502a; transform: rotate(-2deg); display: inline-block; margin-bottom: 8px; }
  .path-head h2 { font-family: 'Caveat', cursive; font-size: 64px; line-height: .95; color: #2d2418; font-weight: 700; }
  .path-head h2 .it { color: #c4502a; }

  .career-path {
    position: relative; max-width: 1080px; margin: 0 auto; padding: 60px 60px 120px;
    z-index: 2;
  }
  /* SVG path background */
  .career-path .svg-path {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
  }
  .walker-overlay {
    position: fixed; top: 0; left: 0; width: 88px; height: 120px;
    pointer-events: none; z-index: 60;
    opacity: 0; transition: opacity .35s;
    transform: translate3d(-9999px, -9999px, 0);
    will-change: transform;
  }
  .walker-overlay.show { opacity: 1; }
  .walker-overlay .arm-l, .walker-overlay .leg-r { animation: walker-swing-a .5s ease-in-out infinite; transform-box: fill-box; transform-origin: top center; }
  .walker-overlay .arm-r, .walker-overlay .leg-l { animation: walker-swing-b .5s ease-in-out infinite; transform-box: fill-box; transform-origin: top center; }
  @keyframes walker-swing-a {
    0%, 100% { transform: rotate(-18deg); }
    50%      { transform: rotate(18deg); }
  }
  @keyframes walker-swing-b {
    0%, 100% { transform: rotate(18deg); }
    50%      { transform: rotate(-18deg); }
  }
  @media (prefers-reduced-motion: reduce) {
    .walker-overlay .arm, .walker-overlay .leg { animation: none; }
  }
  @media (max-width: 767px) {
    .walker-overlay { display: none; }
  }
  .milestone {
    position: relative; display: grid; grid-template-columns: 1fr 100px 1fr; gap: 40px; align-items: center;
    margin-bottom: 80px; z-index: 2;
  }
  .milestone.flip .ms-marker { order: 2; }
  .milestone.flip .ms-card { order: 1; text-align: right; }
  .milestone.flip .empty { order: 3; }
  .milestone:not(.flip) .ms-card { order: 3; text-align: left; }
  .milestone:not(.flip) .empty { order: 1; }
  .milestone:not(.flip) .ms-marker { order: 2; }
  .empty {}
  .ms-marker {
    position: relative; width: 100px; height: 100px;
    display: flex; align-items: center; justify-content: center;
    justify-self: center;
  }
  .ms-marker svg { width: 100%; height: 100%; }
  .ms-card {
    position: relative; padding: 22px 26px;
    background: rgba(255,251,238,.85);
    backdrop-filter: blur(4px);
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
    cursor: pointer;
  }
  .ms-card::before {
    content:""; position: absolute; inset: -2px; pointer-events: none;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='none'><path d='M 10 14 Q 6 6 18 5 L 100 8 Q 250 4 380 7 L 392 14 Q 396 80 392 170 L 388 192 Q 280 196 130 192 L 12 193 Q 4 188 8 178 L 9 100 Q 4 40 11 22 Z' fill='none' stroke='%235a3a20' stroke-width='2' stroke-linejoin='round' opacity='.55'/></svg>") center/100% 100% no-repeat;
  }
  .ms-card:hover { transform: translateY(-4px) rotate(-.5deg); }
  .ms-time {
    font-family: 'Caveat', cursive; font-size: 24px; color: #c4502a;
    transform: rotate(-2deg); display: inline-block; margin-bottom: 4px;
  }
  .ms-title { font-family: 'Caveat', cursive; font-size: 28px; font-weight: 700; color: #2d2418; line-height: 1; margin-bottom: 4px; }
  .ms-co { font-family: 'Patrick Hand', cursive; font-size: 18px; color: #6b4f2a; margin-bottom: 8px; }
  .ms-desc { font-family: 'Patrick Hand', cursive; font-size: 17px; color: #3a2e1e; line-height: 1.5; }

  /* === GARDEN (projects) === */
  .scene-garden {
    position: relative; padding: 120px 60px;
    background:
      linear-gradient(180deg, #c19a4f 0%, #a3cf6c 30%, #b8d96a 100%);
  }
  .scene-garden::before {
    content:""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(85deg, transparent 0 4px, rgba(70,100,30,.1) 4px 5px);
    mix-blend-mode: multiply;
  }
  .garden-head {
    text-align: center; max-width: 800px; margin: 0 auto 80px; position: relative; z-index: 2;
  }
  .garden-head .label { font-family: 'Caveat', cursive; font-size: 32px; color: #c4502a; transform: rotate(2deg); display: inline-block; margin-bottom: 8px; }
  .garden-head h2 { font-family: 'Caveat', cursive; font-size: 64px; line-height: .95; color: #2d2418; font-weight: 700; }
  .garden-head h2 .it { color: #c4502a; }

  .garden-grid {
    max-width: 1180px; margin: 0 auto; position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 40px;
  }
  .plant-card {
    text-decoration: none; color: inherit; display: block;
    position: relative; padding: 24px 22px 26px;
    text-align: center;
    cursor: pointer;
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
  }
  .plant-card:nth-child(odd) { transform: rotate(-1deg); }
  .plant-card:nth-child(even) { transform: rotate(1deg); }
  .plant-card:hover { transform: rotate(0) translateY(-8px) scale(1.02); }
  .plant-card .plant {
    width: 120px; height: 130px; margin: 0 auto 16px;
  }
  .plant-card .plant svg { width: 100%; height: 100%; display: block; }
  .plant-card .sign {
    position: relative; padding: 14px 18px;
    background: rgba(255,250,235,.92);
  }
  .plant-card .sign::before {
    content:""; position: absolute; inset: -2px; pointer-events: none;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 160' preserveAspectRatio='none'><path d='M 10 12 Q 6 6 16 5 L 100 8 Q 200 4 290 7 L 295 16 Q 297 80 293 150 L 288 156 Q 200 158 100 156 L 12 157 Q 6 152 8 142 L 9 70 Q 4 30 11 18 Z' fill='none' stroke='%235a3a20' stroke-width='2' stroke-linejoin='round' opacity='.6'/></svg>") center/100% 100% no-repeat;
  }
  .plant-card .yr {
    font-family: 'Caveat', cursive; font-size: 22px; color: #c4502a;
    transform: rotate(-2deg); display: inline-block; margin-bottom: 2px;
  }
  .plant-card h3 {
    font-family: 'Caveat', cursive; font-size: 28px; font-weight: 700;
    color: #2d2418; line-height: 1; margin-bottom: 8px;
  }
  .plant-card p {
    font-family: 'Patrick Hand', cursive; font-size: 15px; line-height: 1.45;
    color: #3a2e1e; margin-bottom: 8px;
  }
  .plant-card .tags { font-family: 'Patrick Hand', cursive; font-size: 13px; color: #6b4f2a; }

  /* === LAKE / PUBLICATIONS === */
  .scene-lake {
    position: relative; padding: 100px 60px;
    background:
      linear-gradient(180deg, #b8d96a 0%, #8fc6c9 40%, #6ab0c4 100%);
  }
  .scene-lake::before {
    content:""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(0deg, transparent 0 5px, rgba(80,140,160,.15) 5px 6px);
    mix-blend-mode: multiply;
  }
  .lake-content { max-width: 1080px; margin: 0 auto; position: relative; z-index: 2; }
  .lake-head { text-align: center; margin-bottom: 60px; }
  .lake-head .label { font-family: 'Caveat', cursive; font-size: 32px; color: #c4502a; transform: rotate(-2deg); display: inline-block; margin-bottom: 8px; }
  .lake-head h2 { font-family: 'Caveat', cursive; font-size: 64px; line-height: .95; color: #2d2418; font-weight: 700; }
  .lake-head h2 .it { color: #c4502a; }
  .pub-row { display: flex; flex-direction: column; gap: 22px; }
  .pub {
    display: block; color: inherit; text-decoration: none;
    position: relative; padding: 24px 28px;
    background: rgba(255,251,238,.92);
    cursor: pointer; transition: transform .35s;
  }
  .pub::before {
    content:""; position: absolute; inset: -2px; pointer-events: none;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'><path d='M 10 12 Q 6 6 16 5 L 100 8 Q 300 4 500 7 L 590 6 Q 596 14 593 22 L 593 80 Q 596 110 590 114 L 400 116 Q 200 118 90 114 L 12 115 Q 4 110 8 102 L 8 60 Q 4 26 11 16 Z' fill='none' stroke='%235a3a20' stroke-width='1.8' stroke-linejoin='round' opacity='.5'/></svg>") center/100% 100% no-repeat;
  }
  .pub:hover { transform: translateX(8px) rotate(-.4deg); }
  .pub h3 { font-family: 'Caveat', cursive; font-size: 26px; color: #2d2418; margin-bottom: 6px; }
  .pub .venue { font-family: 'Patrick Hand', cursive; font-size: 17px; color: #c4502a; margin-bottom: 4px; }
  .pub .authors { font-family: 'Patrick Hand', cursive; font-size: 15px; color: #6b4f2a; }
  /* === SUNSET FOOTER === */
  .scene-sunset {
    position: relative; padding: 140px 60px 80px;
    background:
      linear-gradient(180deg, #6ab0c4 0%, #f5b88a 40%, #f59575 70%, #d96552 100%);
    text-align: center;
    overflow: hidden;
  }
  .scene-sunset::before {
    content:""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(75deg, transparent 0 5px, rgba(180,80,40,.12) 5px 6px);
    mix-blend-mode: multiply;
  }
  .sunset-sun {
    position: absolute; left: 50%; top: 50px; transform: translateX(-50%);
    width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, #fff5c8 0%, #ffd58a 60%, #ff9e5a 100%);
    box-shadow: 0 0 80px rgba(255,180,90,.6);
    z-index: 1;
  }
  .scene-sunset .content { position: relative; z-index: 2; }
  .scene-sunset h2 {
    font-family: 'Caveat', cursive; font-size: 96px; color: #2d2418;
    margin-bottom: 24px; line-height: 1;
  }
  .scene-sunset .signoff {
    font-family: 'Caveat', cursive; font-size: 40px; color: #c4502a;
    transform: rotate(-2deg); display: inline-block; margin-bottom: 32px;
  }
  .scene-sunset .links {
    display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 24px;
  }
  .scene-sunset .links a {
    font-family: 'Caveat', cursive; font-size: 28px; color: #2d2418;
    text-decoration: none; cursor: pointer; padding: 6px 14px; position: relative;
    transition: transform .3s;
  }
  .scene-sunset .links a::after {
    content:""; position: absolute; left: 0; right: 0; bottom: -2px; height: 6px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'><path d='M 2 4 Q 25 1 50 4 T 98 3' fill='none' stroke='%23c4502a' stroke-width='2' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
  }
  .scene-sunset .links a:hover { transform: translateY(-3px) rotate(-3deg); }
  .scene-sunset .name {
    font-family: 'Patrick Hand', cursive; font-size: 17px; color: #2d2418;
    opacity: .7; margin-top: 40px;
  }


/* ========================================
   Responsive — three breakpoints
   ======================================== */

/* --- 768–1023px — compressed painting --- */
@media (max-width: 1023px) {
  /* Hero */
  .tree-right { display: none; }
  .tree-left { width: 160px; height: 240px; left: 2%; }
  .doodle-note, .doodle-note-arrow { display: none; }
  .title-banner h1 { font-size: 64px; }
  .house { width: 90px; height: 80px; bottom: 36%; left: 50%; transform: translateX(-50%); }

  /* Bio */
  .bio-content { grid-template-columns: 1fr; gap: 40px; }
  .bio-house { max-width: 320px; margin: 0 auto; }
  .bio-text h2 { font-size: 48px; text-align: center; }
  .bio-text .label { display: block; text-align: center; }

  /* Vitae */
  .career-path { padding: 40px 24px 80px; }
  .milestone { grid-template-columns: 1fr 80px 1fr; gap: 16px; margin-bottom: 48px; }
  .ms-marker { width: 80px; height: 80px; }
  .ms-title { font-size: 22px; }

  /* Garden */
  .garden-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* --- <768px — portrait painting --- */
@media (max-width: 767px) {
  /* Reset spiral notebook holes if present */
  .spiral { display: none; }

  /* Hero: collapse to portrait scene */
  .scene-hero { min-height: 90vh; }
  .sun { width: 90px; height: 90px; top: 56px; right: 8%; }
  .cloud-1 { width: 130px; height: 50px; top: 90px; left: 4%; }
  .cloud-2, .cloud-3 { display: none; }
  .birds { width: 90px; top: 140px; right: 25%; }
  .tree-left { width: 110px; height: 170px; left: -2%; bottom: 14%; }
  .house { width: 70px; height: 64px; bottom: 32%; }
  .title-banner { top: 38%; }
  .title-banner .greet { font-size: 20px; }
  .title-banner h1 { font-size: 42px; letter-spacing: -1px; }
  .title-banner .sub { font-size: 22px; }
  .scroll-hint { font-size: 20px; bottom: 16px; }

  /* Bio */
  .scene-bio { padding: 80px 24px; }
  .bio-text h2 { font-size: 40px; }
  .bio-text p { font-size: 19px; }

  /* Vitae — path becomes vertical, milestones single column, icon left */
  .scene-path { padding: 60px 0; }
  .svg-path { display: none; }
  .path-head h2 { font-size: 44px; }
  .career-path { padding: 20px 20px 60px; }
  .milestone, .milestone.flip {
    grid-template-columns: 64px 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }
  .milestone .empty { display: none; }
  .milestone .ms-marker { order: 1 !important; width: 64px; height: 64px; }
  .milestone .ms-card { order: 2 !important; text-align: left !important; padding: 16px 18px; }
  .ms-title { font-size: 20px; }
  .ms-time { font-size: 20px; }
  .ms-desc { font-size: 15px; }

  /* Garden — single column */
  .scene-garden { padding: 80px 24px; }
  .garden-head h2 { font-size: 44px; }
  .garden-grid { grid-template-columns: 1fr; gap: 28px; }
  .plant-card { transform: none !important; }

  /* Lake */
  .scene-lake { padding: 80px 24px; }
  .lake-head h2 { font-size: 44px; }
  .pub { padding: 18px 20px; }

  /* Sunset */
  .scene-sunset { padding: 100px 24px 60px; }
  .scene-sunset h2 { font-size: 64px; }
  .scene-sunset .signoff { font-size: 28px; }
  .scene-sunset .links { gap: 14px; }
  .scene-sunset .links a { font-size: 22px; }
}

/* Disable hover lifts on touch devices */
@media (hover: none) {
  .plant-card:hover, .ms-card:hover, .pub:hover { transform: none !important; }
}
