/* ============================================================
   PSLE MADE EASY — v3
   The Student's Desk: ruled paper, sticky notes, washi tape,
   paper clips, highlighter sweeps, polaroids, cork board.
   ============================================================ */

:root {
  /* paper surfaces */
  --paper:        #FBF7EE;
  --paper-deep:   #F4ECD8;
  --paper-warm:   #FFF8E7;
  --paper-cool:   #F0EFEA;
  --white:        #FFFFFF;

  /* rules / grids */
  --rule:         #C9D8E8;
  --rule-soft:    #E2EAF0;
  --grid:         #E2DDC9;
  --dot:          #D8D2BE;

  /* ink */
  --ink:          #1F2647;
  --ink-soft:     #4A5273;
  --ink-light:    #8B91A6;
  --ink-faint:    #C8CAD6;

  /* pens & markers */
  --red-pen:      #E63946;
  --red-pen-deep: #C52535;
  --teacher-red:  #C9382E;
  --pencil:       #F4C95D;
  --pencil-deep:  #D9A934;

  /* highlighters */
  --hl-yellow:    #FFE066;
  --hl-pink:      #FFB3C6;
  --hl-mint:      #B7E4C7;
  --hl-blue:      #BBD9F2;
  --hl-peach:     #FFD4B5;
  --hl-lilac:     #D9C7F5;

  /* sticky notes */
  --note-yellow:  #FFE66D;
  --note-pink:    #FFC9D6;
  --note-mint:    #C7EBD4;
  --note-blue:    #C7DEF2;
  --note-peach:   #FFD9B8;
  --note-lilac:   #DDC7F5;

  /* cork board */
  --cork:         #C58E5E;
  --cork-deep:    #A06D40;

  /* tape */
  --tape-yellow:  rgba(255, 224, 102, 0.78);
  --tape-pink:    rgba(255, 179, 198, 0.78);
  --tape-mint:    rgba(183, 228, 199, 0.85);

  /* shadows — paper rests softly */
  --shadow-paper: 0 1px 0 rgba(31, 38, 71, 0.08), 0 6px 14px -4px rgba(31, 38, 71, 0.18);
  --shadow-note:  0 2px 0 rgba(31, 38, 71, 0.10), 0 10px 18px -8px rgba(31, 38, 71, 0.30);
  --shadow-pin:   0 8px 18px -6px rgba(31, 38, 71, 0.40);

  /* type */
  --display: "Bricolage Grotesque", "Helvetica Neue", system-ui, sans-serif;
  --body:    "Plus Jakarta Sans", system-ui, sans-serif;
  --hand:    "Kalam", "Caveat", cursive;
  --marker:  "Caveat", cursive;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;

  /* desk surface — warm paper with subtle dot grain */
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(216, 210, 190, 0.35) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(216, 210, 190, 0.25) 0, transparent 45%),
    radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ============================================================
   TYPE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.75rem, 8vw, 6rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}
h2 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.15; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem 0; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
}

.handwritten {
  font-family: var(--hand);
  font-weight: 400;
}
.marker {
  font-family: var(--marker);
  font-weight: 700;
}

/* highlighter sweep — wavy, behind text, like a real marker */
.hl-y, .hl-p, .hl-m, .hl-b, .hl-pe, .hl-l {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 0.12em;
}
.hl-y::before, .hl-p::before, .hl-m::before,
.hl-b::before, .hl-pe::before, .hl-l::before {
  content: "";
  position: absolute;
  inset: 18% -2% 4% -2%;
  z-index: -1;
  border-radius: 5px 12px 6px 14px / 12px 5px 14px 6px;
  transform: skewX(-3deg);
  filter: blur(0.4px);
  mix-blend-mode: multiply;
  opacity: 0.9;
}
.hl-y::before  { background: var(--hl-yellow); }
.hl-p::before  { background: var(--hl-pink); }
.hl-m::before  { background: var(--hl-mint); }
.hl-b::before  { background: var(--hl-blue); }
.hl-pe::before { background: var(--hl-peach); }
.hl-l::before  { background: var(--hl-lilac); }

/* hand-drawn underline scribble */
.scribble {
  position: relative;
  display: inline-block;
}
.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -8px;
  height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 12' preserveAspectRatio='none'><path d='M2 7 Q 30 1, 60 6 T 120 8 T 180 6 T 238 7' stroke='%23E63946' stroke-width='3' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* small label like a date stamp */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hand);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--red-pen);
  letter-spacing: 0;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2.5px;
  background: var(--red-pen);
  border-radius: 2px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
}

/* ============================================================
   PAPER SURFACES
   ============================================================ */
.paper-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-paper);
  border: 1px solid rgba(31, 38, 71, 0.10);
}

/* lined notebook paper */
.paper-lined {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      var(--rule) 31px,
      var(--rule) 32px
    );
}

/* lined paper WITH red margin line on the left */
.paper-margin {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      var(--rule) 31px,
      var(--rule) 32px
    ),
    linear-gradient(
      to right,
      transparent 0,
      transparent 56px,
      var(--red-pen) 56px,
      var(--red-pen) 57.5px,
      transparent 57.5px
    );
  padding-left: 80px;
}
@media (max-width: 600px) {
  .paper-margin { padding-left: 50px;
    background-image:
      repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 31px,
        var(--rule) 31px,
        var(--rule) 32px
      ),
      linear-gradient(
        to right,
        transparent 0,
        transparent 36px,
        var(--red-pen) 36px,
        var(--red-pen) 37.5px,
        transparent 37.5px
      );
  }
}

/* graph paper */
.paper-grid {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* dotted paper */
.paper-dot {
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}

/* ============================================================
   STICKY NOTES
   ============================================================ */
.sticky {
  position: relative;
  display: inline-block;
  background: var(--note-yellow);
  padding: 1.1rem 1.35rem;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
  box-shadow: var(--shadow-note);
  transform: rotate(-2deg);
  border-radius: 1px 1px 12px 1px;
  /* paper texture ridges */
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.30) 0%, transparent 50%);
}
.sticky.tilt-l { transform: rotate(-3deg); }
.sticky.tilt-r { transform: rotate(2.5deg); }
.sticky.straight { transform: rotate(0); }

.sticky.pink   { background: var(--note-pink); }
.sticky.mint   { background: var(--note-mint); }
.sticky.blue   { background: var(--note-blue); }
.sticky.peach  { background: var(--note-peach); }
.sticky.lilac  { background: var(--note-lilac); }

/* folded corner */
.sticky::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, transparent 50%, rgba(31, 38, 71, 0.18) 50%);
  border-radius: 0 0 12px 0;
}

.sticky.lg {
  padding: 1.5rem 1.75rem;
  font-size: 1.2rem;
}

/* ============================================================
   WASHI TAPE STRIPS
   ============================================================ */
.tape {
  position: absolute;
  width: 90px;
  height: 24px;
  background: var(--tape-yellow);
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.18) 0,
      rgba(255, 255, 255, 0.18) 4px,
      transparent 4px,
      transparent 9px
    );
  box-shadow: 0 1px 2px rgba(31, 38, 71, 0.12);
  z-index: 5;
}
.tape.pink { background-color: var(--tape-pink); }
.tape.mint { background-color: var(--tape-mint); }

.tape.tl { top: -10px; left: 12px; transform: rotate(-6deg); }
.tape.tr { top: -10px; right: 12px; transform: rotate(7deg); }
.tape.bl { bottom: -10px; left: 18px; transform: rotate(8deg); }
.tape.br { bottom: -10px; right: 18px; transform: rotate(-6deg); }
.tape.top-center { top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg); width: 110px; }

/* ============================================================
   PAPER CLIP & THUMBTACK
   ============================================================ */
.clip {
  position: absolute;
  top: -14px;
  left: 18px;
  z-index: 6;
}

.tack {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF6B5B 0, var(--red-pen) 60%, var(--red-pen-deep) 100%);
  box-shadow:
    inset -1px -2px 3px rgba(0, 0, 0, 0.25),
    0 4px 8px rgba(31, 38, 71, 0.35);
  z-index: 6;
}
.tack.tl { top: -10px; left: 16px; }
.tack.tr { top: -10px; right: 16px; }
.tack.tc { top: -10px; left: 50%; transform: translateX(-50%); }

/* ============================================================
   INDEX CARD with subject tab
   ============================================================ */
.index-card {
  position: relative;
  background: var(--paper);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    var(--rule-soft) 31px,
    var(--rule-soft) 32px
  );
  background-position: 0 56px;
  border-radius: var(--r-md);
  padding: 56px 1.6rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-paper);
  border: 1px solid rgba(31, 38, 71, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 280px;
}
.index-card:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: var(--shadow-note);
}

.index-card .subject-tab {
  position: absolute;
  top: 14px;
  left: 16px;
  background: var(--ink);
  color: var(--paper-warm);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
}
.index-card.eng .subject-tab  { background: var(--red-pen); }
.index-card.math .subject-tab { background: #2A6F97; }
.index-card.oral .subject-tab { background: #6B4F8F; }
.index-card.sci .subject-tab  { background: #2D6A4F; }
.index-card.com .subject-tab  { background: var(--pencil-deep); color: var(--ink); }

.index-card h3 { font-family: var(--display); margin-bottom: 0.4rem; }
.index-card p { color: var(--ink-soft); }

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1rem;
  color: var(--red-pen);
}
.card-meta .arrow {
  display: inline-flex;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-warm);
  align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.18s;
}
.index-card:hover .card-meta .arrow { transform: translateX(3px); }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  background: var(--paper-deep);
  border-radius: 7px;
  border: 1px solid rgba(31, 38, 71, 0.16);
  flex-shrink: 0;
}
.lang-switch button {
  background: transparent;
  border: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.55rem;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.15s;
  min-width: 32px;
}
.lang-switch button:hover:not(.active) {
  color: var(--ink);
  background: rgba(31, 38, 71, 0.06);
}
.lang-switch button.active {
  background: var(--ink);
  color: var(--paper-warm);
  box-shadow: 0 1px 2px rgba(31, 38, 71, 0.2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 880px) {
  .nav-right { gap: 0.4rem; }
  .lang-switch button { padding: 0.32rem 0.48rem; min-width: 28px; }
}

/* ============================================================
   WHATSAPP BUTTONS (replaces the contact form CTAs)
   ============================================================ */
.nav-cta-wa {
  background: #25D366 !important;
  border-color: #128C7E !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
}
.nav-cta-wa::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413M12.05 21.785a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884Z'/></svg>") center/contain no-repeat;
}

.btn-wa {
  background: #25D366;
  color: #fff;
  border: 2px solid #128C7E;
  box-shadow: 0 2px 0 #128C7E, 0 6px 14px -4px rgba(18, 140, 126, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-wa:hover {
  background: #128C7E;
  color: #fff;
  border-color: #075E54;
}
.btn-wa::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413M12.05 21.785a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884Z'/></svg>") center/contain no-repeat;
}

/* ============================================================
   STACKED BRAND NAME — for "English for PSLE" + "by BabyXinchao!"
   ============================================================ */
.brand-name {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 1px;
}
.brand-name-main {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: inherit;
}
.brand-name-sub {
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-pen);
  opacity: 0.85;
}
.footer-brand-line .brand-name-main { color: var(--paper-warm); }
.footer-brand-line .brand-name-sub { color: var(--hl-yellow); opacity: 0.95; }

@media (max-width: 600px) {
  .brand-name-main { font-size: 0.92rem; }
  .brand-name-sub { font-size: 0.6rem; }
}
@media (max-width: 420px) {
  .brand-name-sub { display: none; }
}

/* "free" stamp for hero / cards */
.free-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-pen);
  border: 2px solid var(--red-pen);
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
  transform: rotate(-3deg);
  background: var(--paper-warm);
}

/* trilingual word card for vocab guide */
.vocab-card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(31, 38, 71, 0.14);
  border-radius: var(--r-md);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow-paper);
  display: grid;
  gap: 0.55rem;
}
.vocab-card .word {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}
.vocab-card .pron {
  font-family: var(--body);
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
}
.vocab-card .gloss {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-top: 1px dashed var(--ink-faint);
}
.vocab-card .gloss:first-of-type { border-top: none; padding-top: 0.5rem; border-top: 1px dashed var(--ink-faint); }
.vocab-card .gloss .lbl {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--red-pen);
}
.vocab-card .gloss .txt { color: var(--ink); }
.vocab-card .ex {
  font-family: var(--hand);
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--ink-faint);
}

/* numbered step block for guide pages */
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  align-items: start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--ink-faint);
}
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--hl-yellow);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.step h3 { margin-bottom: 0.5rem; }

/* worked-example panel — looks like an exam paper response */
.example-paper {
  background: var(--paper);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    var(--rule) 31px,
    var(--rule) 32px
  );
  border-radius: var(--r-md);
  border: 1px solid rgba(31, 38, 71, 0.14);
  padding: 2rem clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  box-shadow: var(--shadow-paper);
  font-family: var(--hand);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
}
.example-paper strong {
  font-family: var(--display);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--red-pen);
}
.example-paper .annotation {
  display: inline-block;
  font-family: var(--hand);
  font-size: 0.92rem;
  color: var(--red-pen);
  background: rgba(255, 224, 102, 0.4);
  padding: 0 0.3rem;
  border-radius: 3px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 38, 71, 0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background: var(--red-pen);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 4px rgba(31, 38, 71, 0.25);
  position: relative;
}
.brand-mark::before {
  content: "";
  position: absolute;
  top: 4px; right: 4px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: white;
  opacity: 0.55;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: background 0.18s;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); background: rgba(31, 38, 71, 0.06); }
.nav-links a.active {
  color: var(--ink);
  background: var(--hl-yellow);
}
.nav-cta {
  background: var(--ink) !important;
  color: var(--paper-warm) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 6px !important;
  margin-left: 0.4rem;
  transition: background 0.18s;
}
.nav-cta:hover { background: var(--red-pen) !important; }

.nav-toggle {
  display: none;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 6px;
  color: var(--ink);
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: var(--gutter); right: var(--gutter);
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    border: 1.5px solid var(--ink);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-note);
    margin-top: 0.5rem;
    gap: 0.1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: left; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper-warm);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink), 0 6px 14px -4px rgba(31, 38, 71, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--ink), 0 12px 22px -6px rgba(31, 38, 71, 0.5);
}
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }

.btn-red    { background: var(--red-pen); color: white; box-shadow: 0 2px 0 var(--red-pen-deep), 0 6px 14px -4px rgba(230, 57, 70, 0.45); }
.btn-red:hover { box-shadow: 0 4px 0 var(--red-pen-deep), 0 12px 22px -6px rgba(230, 57, 70, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper-warm);
  box-shadow: 0 2px 0 var(--ink);
}

.btn .arr { transition: transform 0.18s; }
.btn:hover .arr { transform: translateX(3px); }

.cta-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   HERO — open notebook on the desk
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-title {
  font-size: clamp(2.6rem, 7.8vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 1.25rem 0 1.5rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 40ch;
  line-height: 1.55;
  font-weight: 500;
}

.hero-trust {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-family: var(--hand);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.hero-trust .dot {
  width: 5px; height: 5px;
  background: var(--ink-light);
  border-radius: 50%;
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1 / 1.05;
}

/* hero-floating sticky in upper area */
.hero .hero-pin {
  position: absolute;
  top: 0;
  left: -10px;
  z-index: 4;
}
@media (max-width: 880px) {
  .hero .hero-pin {
    position: static;
    margin-bottom: 1rem;
  }
}

/* ============================================================
   STATS — written on graph paper
   ============================================================ */
.stat-page {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-paper);
  border: 1px solid rgba(31, 38, 71, 0.10);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  align-items: end;
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.stat-num.acc-red { color: var(--red-pen); }
.stat-num.acc-blue { color: #2A6F97; }
.stat-num.acc-purple { color: #6B4F8F; }
.stat-num::after {
  /* hand-drawn underline */
  content: "";
  position: absolute;
  left: -4%; right: -4%; bottom: -8px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'><path d='M2 5 Q 30 1, 60 4 T 118 5' stroke='%231F2647' stroke-width='2.2' fill='none' stroke-linecap='round'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.55;
}
.stat-label {
  font-family: var(--hand);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1rem;
  color: var(--ink-soft);
}

/* ============================================================
   POLAROID
   ============================================================ */
.polaroid {
  position: relative;
  background: var(--white);
  padding: 14px 14px 50px 14px;
  box-shadow:
    0 2px 0 rgba(31, 38, 71, 0.06),
    0 14px 30px -8px rgba(31, 38, 71, 0.32);
  transform: rotate(-2deg);
  display: inline-block;
  max-width: 100%;
}
.polaroid.tilt-r { transform: rotate(2deg); }
.polaroid .photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--paper-deep);
  display: grid;
  place-items: center;
}
.polaroid .caption {
  position: absolute;
  bottom: 14px;
  left: 14px; right: 14px;
  text-align: center;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ============================================================
   QUOTE CARD — on lined paper
   ============================================================ */
.quote-paper {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--r-md);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 4vw, 2.75rem) clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-paper);
  border: 1px solid rgba(31, 38, 71, 0.10);
}
.quote-paper.paper-margin { padding-left: 90px; }
@media (max-width: 600px) {
  .quote-paper.paper-margin { padding-left: 60px; }
}

.quote-text {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.quote-text::before {
  content: "“";
  font-family: var(--display);
  font-size: 4rem;
  line-height: 0.5;
  margin-right: 0.05em;
  color: var(--red-pen);
  font-weight: 800;
  vertical-align: -0.4em;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--hand);
  font-size: 1.05rem;
}
.quote-author .name { font-weight: 700; color: var(--ink); }
.quote-author .role { color: var(--ink-soft); }
.quote-author .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--note-mint);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  border: 2px solid var(--ink);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 { margin: 0.75rem 0 1rem; }
.section-head .lede { margin: 0 auto; }

/* ============================================================
   GRIDS
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ============================================================
   FRAMEWORK FLASHCARD (approach.html)
   ============================================================ */
.flashcard {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(31, 38, 71, 0.12);
  border-radius: var(--r-md);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-paper);
  margin-bottom: 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.flashcard.tilt-l { transform: rotate(-0.6deg); }
.flashcard.tilt-r { transform: rotate(0.6deg); }
@media (max-width: 720px) { .flashcard { grid-template-columns: 1fr; } }

.flashcard-letter {
  width: 110px; height: 110px;
  background: var(--ink);
  color: var(--hl-yellow);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  position: relative;
  box-shadow: 4px 4px 0 var(--red-pen);
}
.flashcard-letter.red { background: var(--red-pen); color: white; box-shadow: 4px 4px 0 var(--ink); }
.flashcard-letter.blue { background: #2A6F97; color: white; box-shadow: 4px 4px 0 var(--ink); }
.flashcard-letter.purple { background: #6B4F8F; color: white; box-shadow: 4px 4px 0 var(--ink); }

.letter-strip {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}
.letter-tile {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.6rem 0.8rem 0.5rem;
  text-align: center;
  min-width: 64px;
  box-shadow: 2px 2px 0 var(--ink);
}
.letter-tile .ch {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--red-pen);
  line-height: 1;
}
.letter-tile .word {
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.3rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ============================================================
   PRINCIPLE TILE — sticky note number
   ============================================================ */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}
@media (max-width: 880px) { .principle-grid { grid-template-columns: 1fr; } }

.principle-tile {
  position: relative;
  background: var(--note-yellow);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1px 1px 14px 1px;
  box-shadow: var(--shadow-note);
}
.principle-tile.pink   { background: var(--note-pink); transform: rotate(-1deg); }
.principle-tile.mint   { background: var(--note-mint); transform: rotate(1deg); }
.principle-tile.blue   { background: var(--note-blue); transform: rotate(-0.5deg); }
.principle-tile::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, transparent 50%, rgba(31, 38, 71, 0.18) 50%);
  border-radius: 0 0 14px 0;
}
.principle-tile h3 {
  font-family: var(--display);
  margin-bottom: 0.6rem;
}
.principle-tile p { margin: 0; color: var(--ink); opacity: 0.85; }
.num-stamp {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: var(--paper-warm);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

/* ============================================================
   CHECKLIST / PROMISE LIST — on lined paper
   ============================================================ */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--ink-faint);
}
.checklist li:last-child { border-bottom: none; }
.checklist .check {
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  background: var(--paper);
  position: relative;
}
.checklist .check::after {
  content: "";
  width: 16px; height: 9px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9' fill='none'><path d='M2 5 L 6 8 L 14 1' stroke='%23E63946' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  margin-top: -2px;
  margin-left: 1px;
}
.checklist strong {
  font-family: var(--display);
  font-weight: 700;
  display: block;
  margin-bottom: 0.15rem;
}
.checklist .note {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ============================================================
   POSTER / CTA — pinned to a wall
   ============================================================ */
.poster {
  position: relative;
  background: var(--note-yellow);
  border-radius: 4px;
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  box-shadow:
    0 4px 0 rgba(31, 38, 71, 0.12),
    0 22px 40px -10px rgba(31, 38, 71, 0.4);
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      rgba(31, 38, 71, 0.08) 31px,
      rgba(31, 38, 71, 0.08) 32px
    );
  transform: rotate(-0.5deg);
  overflow: hidden;
}
.poster::before {
  /* corner doodle */
  content: "★";
  position: absolute;
  top: 18px; right: 22px;
  font-size: 1.8rem;
  color: var(--red-pen);
  transform: rotate(15deg);
}
.poster h2 { color: var(--ink); margin-bottom: 1rem; }
.poster p { color: var(--ink); opacity: 0.85; max-width: 50ch; margin: 0 auto 2rem; }

/* ============================================================
   FORM (contact) — worksheet style
   ============================================================ */
.form-paper {
  position: relative;
  background: var(--paper);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 47px,
    var(--rule) 47px,
    var(--rule) 48px
  );
  border-radius: var(--r-md);
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.75rem, 4vw, 2.5rem) clamp(1.75rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-paper);
  border: 1px solid rgba(31, 38, 71, 0.12);
  display: grid;
  gap: 1.5rem;
}
.form-paper::before {
  /* red margin */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: clamp(1rem, 2vw, 1.7rem);
  width: 2px;
  background: var(--red-pen);
  opacity: 0.85;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--red-pen);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--ink);
  padding: 0.4rem 0.2rem;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color 0.18s, background 0.18s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red-pen);
  background: rgba(255, 224, 102, 0.18);
}
.field textarea { min-height: 110px; resize: vertical; border: 2px solid var(--ink); border-radius: 6px; padding: 0.7rem 0.85rem; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M2 2 L 6 6 L 10 2' stroke='%231F2647' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 14px;
  padding-right: 24px;
}

.checkbox-group {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.25rem;
}
.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--paper-warm);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  transition: background 0.15s;
}
.checkbox-group label:hover { background: var(--hl-yellow); }
.checkbox-group input { accent-color: var(--red-pen); }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--ink-light);
}
.form-actions .note {
  font-family: var(--hand);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ============================================================
   CONTACT TILES — pinned cards
   ============================================================ */
.contact-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.contact-tile {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(31, 38, 71, 0.12);
  border-radius: var(--r-md);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-paper);
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-note);
}
.contact-tile .tile-label {
  font-family: var(--hand);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red-pen);
  margin-bottom: 0.4rem;
}
.contact-tile .tile-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}

/* ============================================================
   FILTER FOLDER TABS
   ============================================================ */
.filters {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-left: 8px;
  align-items: flex-end;
}
.chip {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 1.05rem 0.7rem;
  border: 1px solid rgba(31, 38, 71, 0.18);
  border-bottom: none;
  background: var(--paper-deep);
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  margin-right: -1px;
  transition: all 0.15s;
  position: relative;
}
.chip:hover {
  background: var(--paper-warm);
  color: var(--ink);
}
.chip.active {
  background: var(--paper);
  color: var(--ink);
  z-index: 2;
  border-color: rgba(31, 38, 71, 0.3);
  font-weight: 800;
}
.chip.active::before {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--paper);
}

/* tab dock = thin paper sheet effect */
.materials-dock {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(31, 38, 71, 0.18);
  border-radius: 0 8px 8px 8px;
  padding: clamp(1.5rem, 3vw, 2rem);
  margin-top: -1px;
  box-shadow: var(--shadow-paper);
}

/* ============================================================
   CORK BOARD SECTION
   ============================================================ */
.bg-cork {
  background-color: var(--cork);
  background-image:
    /* cork texture */
    radial-gradient(circle at 15% 20%, rgba(255, 240, 200, 0.18) 0, transparent 8px),
    radial-gradient(circle at 75% 60%, rgba(80, 40, 10, 0.14) 0, transparent 6px),
    radial-gradient(circle at 40% 80%, rgba(80, 40, 10, 0.12) 0, transparent 7px),
    radial-gradient(circle at 90% 25%, rgba(80, 40, 10, 0.16) 0, transparent 9px),
    radial-gradient(circle at 25% 60%, rgba(255, 240, 200, 0.14) 0, transparent 6px),
    radial-gradient(circle at 60% 30%, rgba(80, 40, 10, 0.10) 0, transparent 8px);
  background-size: 240px 240px, 200px 200px, 180px 180px, 220px 220px, 160px 160px, 200px 200px;
  color: var(--paper-warm);
  border-top: 8px solid #6E4A28;
  border-bottom: 8px solid #6E4A28;
  box-shadow:
    inset 0 4px 12px rgba(0, 0, 0, 0.18),
    inset 0 -4px 12px rgba(0, 0, 0, 0.18);
}
.bg-cork .eyebrow { color: var(--hl-yellow); }
.bg-cork h2 { color: var(--paper-warm); }
.bg-cork .lede { color: rgba(251, 247, 238, 0.85); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper-warm);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
  position: relative;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer h4 {
  color: var(--hl-yellow);
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 0.55rem; }
.footer a {
  color: var(--paper-warm);
  text-decoration: none;
  opacity: 0.85;
  font-size: 0.95rem;
  transition: opacity 0.18s, color 0.18s;
}
.footer a:hover { opacity: 1; color: var(--hl-yellow); }
.footer-brand-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.footer-brand-line .brand-mark { background: var(--hl-yellow); color: var(--ink); }
.footer-brand-line .brand-mark::before { background: var(--ink); }
.footer-brand-line .brand-name {
  font-size: 1.4rem;
  color: var(--paper-warm);
}
.footer-tag {
  max-width: 38ch;
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.55;
}
.footer-bottom {
  border-top: 1px solid rgba(251, 247, 238, 0.18);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
}
.page-header h1 { margin: 1rem 0 1.25rem; }
.page-header .lede { max-width: 56ch; }

/* ============================================================
   FADE INTRO
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.18s; }
.delay-3 { animation-delay: 0.32s; }
.delay-4 { animation-delay: 0.46s; }

/* gentle float on decorative items */
.float-bob {
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-8px) rotate(calc(var(--rot, 0deg) + 3deg)); }
}

/* ============================================================
   SPLIT
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ============================================================
   UTIL
   ============================================================ */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
