/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --paper: #F6F1E7;
  --paper-dim: #ECE4D4;
  --paper-line: rgba(21, 20, 27, 0.14);
  --ink: #15141B;
  --ink-soft: #201F29;
  --ink-line: rgba(246, 241, 231, 0.18);

  --coral: #FF5A36;
  --coral-dark: #E24521;
  --cobalt: #2F5DFF;
  --sunshine: #FFC93C;

  --text-on-paper: #1B1A22;
  --text-on-paper-dim: #5B5768;
  --text-on-ink: #F6F1E7;
  --text-on-ink-dim: #A9A5B4;

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: "Caveat", cursive;

  --container: 1180px;
  --section-pad: clamp(4.5rem, 9vw, 8rem);
  --edge-pad: clamp(1.25rem, 5vw, 3.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--coral); color: #fff; padding: 0.8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 2px;
}

.doodle-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* subtle paper grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   DOODLES (shared styling)
   ============================================================ */
.doodle {
  fill: none;
  color: var(--coral);
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.doodle use { fill: none; }

.sketch-draw path,
.sketch-draw use {
  transition: none;
}

.float-doodle {
  animation: doodle-float 5s ease-in-out infinite;
}
@keyframes doodle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-4deg); }
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) var(--edge-pad);
  position: relative;
}

.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--coral-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.eyebrow-light { color: var(--sunshine); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.section-title-light { color: var(--text-on-ink); }

.section-sub {
  font-size: 1.15rem;
  color: var(--text-on-paper-dim);
  max-width: 46ch;
  margin-top: 1.1rem;
}

.underline-wrap { position: relative; display: inline-block; }
.underline-wrap .doodle-underline2,
.underline-wrap .doodle-underline {
  position: absolute;
  left: 0;
  bottom: -0.14em;
  width: 100%;
  height: 0.14em;
  color: var(--coral);
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem var(--edge-pad);
  transition: background-color 0.4s var(--ease-in-out), box-shadow 0.4s var(--ease-in-out), padding 0.3s var(--ease-in-out);
}
.site-header.scrolled {
  background: rgba(21, 20, 27, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--ink-line);
  padding: 0.75rem var(--edge-pad);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-on-ink);
}
.logo-dot { color: var(--coral); }

.nav { position: relative; }
.nav ul { display: flex; gap: 2.1rem; }
.nav-link {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-on-ink-dim);
  padding: 0.4rem 0.1rem;
  transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--coral); }

.nav-indicator {
  position: absolute;
  bottom: -6px;
  height: 6px;
  width: 0;
  left: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 6'%3E%3Cpath d='M1 4 C10 1 30 1 39 4' stroke='%23FF5A36' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
  background-size: 40px 6px;
  opacity: 0;
  transition: left 0.35s var(--ease-out), width 0.35s var(--ease-out), opacity 0.3s;
}
.nav-indicator.visible { opacity: 1; }

a.header-cta {
  display: none;
  align-items: center;
  color: var(--text-on-ink);
  border-color: var(--text-on-ink-dim);
}
@media (min-width: 720px) { a.header-cta { display: inline-flex; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: 100px;
  transition: transform 0.35s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 6px 0 var(--coral-dark);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--coral-dark); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--coral-dark); }
.btn-large { font-size: 1.3rem; padding: 1.15rem 2.1rem; }
.btn-ghost {
  border: 2px solid var(--text-on-paper);
  color: var(--text-on-paper);
}
.hero .btn-ghost { border-color: var(--text-on-ink); color: var(--text-on-ink); }
.btn-ghost:hover { background: var(--text-on-ink); color: var(--ink); }
.hero .btn-ghost:hover { background: var(--text-on-ink); color: var(--ink); }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.9rem; border-radius: 100px; border: 1.5px solid; }

.doodle-cta-arrow {
  width: 34px; height: 24px;
  color: currentColor;
  stroke: currentColor;
  transform: translateY(2px);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 210;
}
.menu-toggle span {
  width: 24px; height: 2.5px;
  background: var(--text-on-ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-in-out), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (min-width: 720px) { .menu-toggle { display: none; } }
@media (max-width: 719.98px) { .nav { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-in-out);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.mobile-link {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-on-ink);
}
.mobile-menu-star { position: absolute; top: 18%; right: 12%; width: 50px; color: var(--sunshine); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text-on-ink);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem var(--edge-pad) 4rem;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
}
@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}

.hero-copy { max-width: 620px; }
@media (min-width: 900px) { .hero-copy { flex: 1 1 560px; max-width: 600px; } }

.eyebrow-hero { color: var(--sunshine); }
.doodle-inline-star { width: 26px; height: 18px; color: var(--sunshine); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 1.6rem;
}
.hero-line { display: block; }
.hero-line-1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); }
.hero-line-2 {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  color: var(--text-on-ink-dim);
}
.hero-highlight { position: relative; display: inline-block; color: var(--text-on-ink); }
.hero-highlight .doodle-underline {
  position: absolute;
  left: 0; bottom: -0.1em;
  width: 100%; height: 0.14em;
}

.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: word-in 0.9s var(--ease-out) forwards;
}

@keyframes word-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-on-ink-dim);
  max-width: 52ch;
  margin-bottom: 2.4rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---- hero photo frame ---- */
.hero-photo {
  position: relative;
  width: clamp(200px, 52vw, 300px);
  flex-shrink: 0;
  align-self: center;
}
@media (min-width: 900px) {
  .hero-photo { width: clamp(230px, 22vw, 320px); align-self: auto; }
}

.hero-photo-frame {
  position: relative;
  border-radius: 26px;
  border: 3px solid var(--paper);
  background: linear-gradient(155deg, var(--coral) 0%, var(--cobalt) 100%);
  overflow: hidden;
  transform: rotate(-3deg);
  box-shadow: 0 26px 50px -14px rgba(0, 0, 0, 0.6), 0 10px 22px -10px rgba(0, 0, 0, 0.45);
  padding: 14px 14px 0;
}
.hero-photo-img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-photo-tape {
  position: absolute;
  top: -15px;
  left: 50%;
  width: 72px;
  height: 28px;
  background: rgba(255, 201, 60, 0.55);
  border: 1px solid rgba(255, 201, 60, 0.85);
  transform: translateX(-50%) rotate(-5deg);
  z-index: 4;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.hero-photo-star {
  position: absolute;
  top: -14px;
  left: -20px;
  width: 32px;
  color: var(--coral);
  z-index: 3;
  animation-delay: -1.6s;
}

.hero-photo-caption {
  margin: 1.2rem 0 0;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-on-ink-dim);
  transform: rotate(-1.5deg);
}

.doodle-hero-scribble {
  position: absolute;
  bottom: 22%;
  left: 4%;
  width: 90px;
  color: var(--cobalt);
  opacity: 0.7;
  z-index: 1;
  display: none;
}
@media (min-width: 700px) and (max-width: 899.98px) {
  .doodle-hero-scribble { display: block; }
}

.scroll-cue {
  position: absolute;
  left: var(--edge-pad);
  bottom: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-on-ink-dim);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  z-index: 2;
}
.scroll-cue .doodle { width: 16px; color: var(--sunshine); animation: scroll-bob 1.8s ease-in-out infinite; }
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (max-width: 600px) { .scroll-cue { display: none; } }
@media (max-width: 480px) { .eyebrow-hero { font-size: 1rem; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2.8rem;
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; gap: 4.5rem; }
}
.about-bio {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.6;
  color: var(--text-on-paper);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.stat-card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  box-shadow: 5px 5px 0 var(--ink);
}
.stat-card-corner-star {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  color: var(--coral);
}
.stat-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.stat-card-accent { background: var(--coral); border-color: var(--coral-dark); box-shadow: 5px 5px 0 var(--ink); color: #fff; }
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}
.stat-number-small { font-size: 1.4rem; }
.stat-suffix { font-size: 1rem; font-weight: 600; margin-left: 0.2rem; }
.doodle-stat-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  max-width: none;
  transform: translate(-50%, -50%) rotate(-4deg);
  color: rgba(255, 255, 255, 0.7);
  z-index: -1;
}
.stat-label { font-size: 0.95rem; color: var(--text-on-paper-dim); font-weight: 500; }
.stat-card-accent .stat-label { color: rgba(255,255,255,0.85); }

.stat-card-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-on-paper-dim);
  transition: color 0.25s var(--ease-out);
}
.stat-card-hint:hover { color: var(--coral-dark); }
.stat-card-hint-scribble {
  width: 30px;
  color: currentColor;
  opacity: 0.75;
}

/* ============================================================
   WORK
   ============================================================ */
.work { background: var(--paper-dim); }
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 3rem;
}
@media (min-width: 700px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
}
.work-card {
  text-align: left;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  box-shadow: 6px 6px 0 var(--ink);
}
.work-card:hover, .work-card:focus-visible, .work-card:focus-within {
  transform: rotate(var(--tilt)) translateY(-4px);
  box-shadow: 10px 10px 0 var(--ink);
}
.work-card-visual {
  height: 0;
  padding-top: 65.5%; /* 131 / 200 — locks the box to the same ratio on every card, in every browser */
  display: block;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}
.work-visual-1 { background: repeating-linear-gradient(135deg, var(--coral), var(--coral) 22px, var(--coral-dark) 22px, var(--coral-dark) 24px); }
.work-visual-2 { background: linear-gradient(160deg, var(--cobalt) 0%, #1739c9 100%); overflow: hidden; }
.work-card-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.work-card-visual-img-top { object-position: top center; }
.work-visual-3 { background: linear-gradient(160deg, var(--sunshine) 0%, #f2a300 100%); }
.work-visual-4 { background: linear-gradient(160deg, #17151f 0%, var(--ink) 100%); }
.work-card-visual .doodle { color: rgba(255,255,255,0.9); width: 70px; }
.work-visual-3 .doodle { color: rgba(21,20,27,0.75); }

.work-visual-video { background: var(--ink); }
.work-card-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.work-visual-video.is-ready .work-card-video-el { opacity: 1; }
.work-visual-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 20, 27, 0.05) 0%, rgba(21, 20, 27, 0.3) 100%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.work-visual-video.is-playing::after { opacity: 0; }

.work-card-play {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 20, 27, 0.5);
  border: none;
  backdrop-filter: blur(2px);
  z-index: 2;
  transition: transform 0.35s var(--ease-out), background-color 0.3s var(--ease-out),
    opacity 0.3s ease;
}
.work-card-play:hover {
  transform: scale(1.1) rotate(-4deg);
  background: rgba(255, 90, 54, 0.6);
}
.work-card-play-icon { width: 18px; height: 18px; fill: #fff; margin-left: 2px; position: relative; z-index: 1; }
.work-visual-video.is-playing .work-card-play {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.work-card-body { display: block; width: 100%; text-align: left; padding: 1.5rem 1.6rem 1.8rem; }
.work-card-tag {
  display: block;
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--coral-dark);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.work-card-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.work-card-desc { display: block; color: var(--text-on-paper-dim); font-size: 0.98rem; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills { background: var(--ink); color: var(--text-on-ink); }
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.6rem;
  margin-top: 3rem;
}
@media (min-width: 700px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2.5rem; }
}
.skills-group-title {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sunshine);
  margin-bottom: 1rem;
}
.chip-list { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  border: 2px solid var(--text-on-ink-dim);
  border-radius: 12px;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.3s, transform 0.3s, color 0.3s;
}
.chip:nth-child(3n+1) { transform: rotate(-1.2deg); }
.chip:nth-child(3n+2) { transform: rotate(1deg); }
.chip:nth-child(3n) { transform: rotate(-0.6deg); }
.chip:hover { border-color: var(--coral); color: var(--coral); transform: scale(1.05) rotate(0deg); }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial { background: var(--paper); }
.testimonial-inner { text-align: center; max-width: 760px; }
.testimonial .eyebrow { justify-content: center; }
.doodle-quote { width: 52px; margin: 0.5rem auto 1.5rem; color: var(--cobalt); }
.testimonial-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  line-height: 1.35;
  color: var(--text-on-paper);
}
.testimonial-quote em { color: var(--coral-dark); font-style: normal; }
.testimonial-attribution {
  margin-top: 1.6rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.attribution-role { font-weight: 500; color: var(--text-on-paper-dim); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink); color: var(--text-on-ink); position: relative; overflow: hidden; }
.contact-inner { text-align: center; max-width: 760px; }
.contact .eyebrow { justify-content: center; }
.contact-title { margin: 0 auto; }
.contact-sub {
  font-size: 1.15rem;
  color: var(--text-on-ink-dim);
  max-width: 50ch;
  margin: 1.4rem auto 2.4rem;
}
.contact .btn-primary { justify-content: center; }
.contact-note {
  margin-top: 1.6rem;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--sunshine);
}
.contact-star {
  position: absolute;
  top: 12%;
  left: 8%;
  width: 40px;
  color: var(--coral);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--text-on-ink-dim); border-top: 1px solid var(--ink-line); }
.footer-inner {
  padding: 2.4rem var(--edge-pad);
  display: flex;
  flex-direction: column-reverse;
  gap: 1.2rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 700px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-copy { font-size: 0.9rem; }
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--text-on-ink);
  transition: color 0.3s;
}
.back-to-top:hover { color: var(--coral); }
.doodle-back-to-top { width: 12px; color: var(--coral); transform: rotate(180deg); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 20, 27, 0.72);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease-in-out);
}
.modal-backdrop.open { opacity: 1; }
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.6rem 2.4rem;
  position: relative;
  box-shadow: 10px 10px 0 var(--ink);
  transform: scale(0.94) translateY(12px);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.modal-backdrop.open .modal { transform: scale(1) translateY(0); opacity: 1; }
.modal-close {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.25s, transform 0.25s;
}
.modal-close svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 2; }
.modal-close:hover { background: var(--coral); transform: rotate(90deg); }
.modal-close:hover svg { stroke: #fff; }
.modal-tag { font-family: var(--font-hand); font-size: 1.2rem; color: var(--coral-dark); font-weight: 600; margin-bottom: 0.3rem; }
.modal-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.modal-desc { color: var(--text-on-paper); font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.6rem; }
.modal-meta { display: flex; gap: 2rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.modal-meta-label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-on-paper-dim); font-weight: 700; margin-bottom: 0.3rem; }
.modal-meta-value { font-weight: 600; }
.modal-learned {
  background: var(--paper-dim);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  border-left: 4px solid var(--coral);
}
.modal-learned p { margin-top: 0.4rem; color: var(--text-on-paper); line-height: 1.55; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
    scroll-behavior: auto !important;
  }
  .float-doodle { animation: none; }
  [data-reveal] { transform: none; }
}
