/* Math with Eesha: shared styles */

:root {
  --bg: #F7F3EC;
  --surface: #FFFDF9;
  --surface-2: #EFE8DC;
  --text: #1D2622;
  --muted: #5C6660;
  --accent: #2E5E4E;
  --accent-dark: #234A3D;
  --accent-rgb: 46, 94, 78;
  --accent-2: #C98B2B;
  --line: #E4DCCF;
  --grid: rgba(46, 94, 78, 0.075);

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 38, 34, .05), 0 12px 32px -12px rgba(29, 38, 34, .18);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
em.serif, .serif-em { font-family: var(--font-head); font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.1rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent-2); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Graph paper (signature) ---------- */
.grid-paper {
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.pencil { color: var(--accent-2); }
.pencil path, .pencil ellipse { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.margin-note {
  font-family: var(--font-head); font-style: italic; color: #A06A16;
  font-size: 1.05rem; line-height: 1.3;
}

/* Hand-drawn underline under a word */
.scribble { position: relative; white-space: nowrap; }
.scribble svg {
  position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: .32em;
  overflow: visible; pointer-events: none;
}
.scribble svg path { stroke-dasharray: 340; stroke-dashoffset: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: 999px;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #FBF8F2; }
.btn--primary:hover { background: var(--accent-dark); color: #FBF8F2; }
.btn--ghost { border-color: rgba(29, 38, 34, .22); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--light { background: #FBF8F2; color: var(--accent-dark); }
.btn--light:hover { background: #fff; color: var(--accent-dark); }
.btn--small { min-height: 44px; padding: 0 1.1rem; font-size: .95rem; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.text-link {
  font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; border-bottom: 1.5px solid rgba(var(--accent-rgb), .3);
}
.text-link:hover { border-bottom-color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark {
  font-family: var(--font-head); font-size: 1.45rem; color: var(--text); text-decoration: none;
  letter-spacing: -0.01em; display: inline-flex; align-items: baseline; gap: .28em; min-height: 44px; align-items: center;
}
.wordmark em { font-style: italic; color: var(--accent); }
.wordmark:hover { color: var(--text); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
  position: relative;
}
.nav a:not(.btn):hover { background: rgba(var(--accent-rgb), .07); color: var(--text); }
.nav a[aria-current="page"]:not(.btn) { color: var(--accent); }
.nav a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--accent-2); border-radius: 2px;
}
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  position: relative; margin-right: -10px; border-radius: 10px;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span:first-child { top: 19px; }
.nav-toggle span:last-child { top: 27px; }
.nav-open .nav-toggle span:first-child { top: 23px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 23px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 28px; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(29, 38, 34, .25);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav a:not(.btn) { font-size: 1.15rem; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]:not(.btn)::after { left: 4px; right: auto; width: 24px; bottom: 10px; }
  .nav .btn { margin: 20px 0 0; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-inner h2 { font-size: 1.6rem; margin-bottom: .3em; }
.footer-inner h2 em { color: var(--accent); }
.footer-inner ul { list-style: none; margin: 0; padding: 0; }
.footer-inner li a { color: var(--text); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.footer-inner li a:hover { color: var(--accent); }
.footer-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .6rem; }
.footer-bottom { margin-top: 40px; color: var(--muted); font-size: .85rem; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-inner > :first-child { grid-column: 1 / -1; } }

/* ---------- Home: hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .quote { display: block; }
.hero h1 .quote + .quote { margin-top: .08em; }
.hero h1 .from { font-family: var(--font); font-size: .32em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .7em; }
.hero h1 .to { font-style: italic; color: var(--accent); }
.hero .lede { margin-bottom: 2rem; }

.notes-card {
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: 30px 30px 26px; position: relative; transform: rotate(1.2deg);
}
.notes-card::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 52px; width: 1.5px; background: rgba(201, 139, 43, .35);
}
.notes-card .nc-head { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-left: 38px; margin-bottom: 18px; }
.nc-line { display: grid; grid-template-columns: 38px 1fr; align-items: baseline; padding: 6px 0; }
.nc-line .n { font-family: var(--font-head); font-style: italic; color: var(--muted); font-size: .95rem; }
.nc-line .m { font-family: var(--font-head); font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
.nc-line .m b { font-weight: 600; color: var(--accent); }
.nc-line.struck .m { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(201, 139, 43, .8); text-decoration-thickness: 2px; }
.nc-note { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 8px 38px; }
.nc-note svg { flex: none; width: 38px; height: 30px; margin-top: -4px; }
.nc-answer { position: relative; display: inline-block; padding: 0 6px; }
.nc-answer svg { position: absolute; inset: -10px -14px; width: calc(100% + 28px); height: calc(100% + 20px); overflow: visible; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .notes-card { max-width: 480px; transform: rotate(.8deg); }
}

/* ---------- Home: who it's for ---------- */
.split { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .sticky { position: sticky; top: 112px; }
.audience { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.audience li { display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.audience .num { font-family: var(--font-head); font-style: italic; font-size: 1.6rem; color: var(--accent-2); line-height: 1.2; }
.audience h3 { margin-bottom: .3em; }
.audience p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split .sticky { position: static; } }
.audience--row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); border-top: 1.5px solid var(--text); }
.audience--row li { grid-template-columns: 1fr; border-bottom: 0; padding: 28px 0 0; }
@media (max-width: 820px) {
  .audience--row { grid-template-columns: 1fr; }
  .audience--row li { grid-template-columns: 48px 1fr; padding: 24px 0; border-bottom: 1px solid var(--line); }
}

/* Hero is now type only */
.hero-grid { grid-template-columns: 1fr; }
.hero h1 { max-width: 13em; font-size: clamp(2.5rem, 6.4vw, 5rem); }
.hero .lede { max-width: 34em; }

/* ---------- Home: lesson steps ---------- */
.lesson { border-block: 1px solid var(--line); }
.lesson-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.lesson-head h2 { margin: 0; max-width: 14em; }
.lesson-head p { margin: 0; max-width: 26em; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 28px; position: relative; box-shadow: 0 1px 2px rgba(29, 38, 34, .04);
}
.step:nth-child(even) { margin-top: 36px; }
.step-num { position: relative; width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; }
.step-num span { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--accent); }
.step-num svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.step h3 { font-size: 1.28rem; margin-bottom: .45em; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } .step:nth-child(even) { margin-top: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Photo ---------- */
.photo {
  position: relative; background: #fff; padding: 12px 12px 14px; border-radius: 6px;
  box-shadow: var(--shadow); transform: rotate(-2deg); max-width: 380px;
}
.photo img { border-radius: 3px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.photo::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px;
  transform: translateX(-50%) rotate(3deg);
  background: rgba(201, 139, 43, .28); border-left: 1px dashed rgba(201, 139, 43, .4); border-right: 1px dashed rgba(201, 139, 43, .4);
}
.photo figcaption { font-family: var(--font-head); font-style: italic; color: var(--muted); text-align: center; padding-top: 10px; font-size: 1rem; }

/* ---------- Home: intro ---------- */
.intro-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(40px, 7vw, 104px); align-items: center; }
.intro-grid .photo { justify-self: center; }
.intro-text h2 { margin-bottom: .6em; }
.intro-text p { font-size: 1.12rem; }
@media (max-width: 820px) { .intro-grid { grid-template-columns: 1fr; } .intro-grid .photo { max-width: 300px; } }

/* Credentials list (Home intro) */
.creds-label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; }
.creds { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 6px; }
.creds li { position: relative; padding-left: 20px; font-size: 1.05rem; line-height: 1.5; }
.creds li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent-2);
}

/* Experience (About) */
.exp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exp-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); }
.exp-figure {
  font-family: var(--font-head); font-size: clamp(2.8rem, 5vw, 3.6rem); line-height: 1; color: var(--accent);
  margin: 0 0 18px; padding-bottom: 14px; border-bottom: 2px solid var(--accent-2); display: inline-block;
}
.exp-figure span { font-size: .45em; font-style: italic; color: var(--muted); margin-left: .15em; }
.exp-item h3 { font-size: 1.25rem; margin-bottom: .5em; }
.exp-item p:last-child { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .exp { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #F3EEE4; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1.4fr auto; gap: 16px 56px; align-items: center; }
.cta-band h2 { color: #FBF8F2; margin-bottom: .3em; }
.cta-band h2 em { color: #F0C67A; }
.cta-band p { margin: 0; color: rgba(243, 238, 228, .82); max-width: 34em; }
.cta-band .text-link { color: #FBF8F2; border-bottom-color: rgba(251, 248, 242, .35); }
.cta-band .text-link:hover { border-bottom-color: #FBF8F2; }
.cta-band .btn-row { gap: 20px; }
@media (max-width: 820px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.page-head h1 { max-width: 15em; }
.page-head .lede { margin: 0; }

/* ---------- Tutoring: tighter section rhythm ---------- */
.page-tutoring .page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.page-tutoring .services-section { padding-bottom: clamp(32px, 4vw, 48px); }
.page-tutoring .section { padding: clamp(32px, 4vw, 48px) 0; }
.page-tutoring .pillar:last-child { padding-bottom: 0; border-bottom: 0; }

/* ---------- Tutoring: services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1.5px solid var(--text); }
.service { padding: 28px 28px 32px 0; border-right: 1px solid var(--line); }
.service + .service { padding-left: 28px; }
.service:last-child { border-right: 0; padding-right: 0; }
.service .tag { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 1rem; display: block; }
.service h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 400; margin-bottom: .45em; }
.service p { color: var(--muted); margin: 0; }
@media (max-width: 820px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Tutoring: pillars ---------- */
.pillars-head { max-width: 640px; margin-bottom: 0; }
.pillars-head h2 { margin-bottom: 0; }
.pillars-head + .pillar { border-top: 0; padding-top: 20px; }
.pillar { align-items: start; }
.pillar { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 64px); align-items: start; padding: 36px 0; border-top: 1px solid var(--line); }
.pillar h3 + p, .pillar p:last-child { margin-bottom: 0; }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar .label { font-family: var(--font-head); font-style: italic; color: var(--accent-2); font-size: 1.15rem; display: block; margin-bottom: .4rem; }
.pillar h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 400; }
.pillar p { color: var(--muted); }
.pillar:nth-child(even) .pillar-visual { order: -1; }
.pillar-visual { border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.dialogue p { margin: 0; padding: 10px 14px; border-radius: 12px; max-width: 85%; font-size: 1rem; line-height: 1.45; }
.dialogue .t { background: rgba(var(--accent-rgb), .09); color: var(--text); }
.dialogue .s { background: var(--surface-2); align-self: flex-end; }
.dialogue .who { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.why-line { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.why-line:last-child { border-bottom: 0; }
.why-line .m { font-family: var(--font-head); font-size: 1.25rem; }
.why-line .margin-note { font-size: 1rem; text-align: right; max-width: 15em; }
.why-line .m { white-space: nowrap; }
.why-line .op { font-weight: 600; color: #A06A16; }
@media (max-width: 480px) { .why-line { grid-template-columns: 1fr; gap: 0; } .why-line .margin-note { text-align: left; max-width: none; } }
@media (max-width: 820px) {
  .pillar { grid-template-columns: 1fr; }
  .pillar:nth-child(even) .pillar-visual { order: 0; }
}

/* ---------- Tutoring: formats ---------- */
.formats { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.format { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.format h3 { font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.format p { color: var(--muted); }
.format p:last-child { margin-bottom: 0; }
.screen {
  margin: 4px 0 24px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: var(--surface);
}
.screen-bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.screen-bar i { width: 8px; height: 8px; border-radius: 50%; background: #D5CCBD; }
.screen-body { padding: 18px 20px; min-height: 130px; position: relative; }
.screen-body .m { font-family: var(--font-head); font-size: 1.25rem; }
.screen-body svg { position: absolute; right: 16px; bottom: 14px; width: 120px; height: 60px; }
.format--alt { background: transparent; border-style: dashed; }
@media (max-width: 820px) { .formats { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-head { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-head .photo { justify-self: center; transform: rotate(2deg); }
.about-head h1 { max-width: none; text-wrap: wrap; font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.about-head .photo::before { transform: translateX(-50%) rotate(-4deg); }
@media (max-width: 820px) { .about-head { grid-template-columns: 1fr; } .about-head .photo { max-width: 280px; } }

.story { max-width: 680px; margin: 0 auto; }
.story-section { padding-bottom: clamp(28px, 4vw, 44px); }
.exp-section { padding-bottom: clamp(36px, 5vw, 56px); }
.story-section + .worked { padding-top: clamp(36px, 5vw, 56px); }
.story p:last-child { margin-bottom: 0; }
.story p { font-size: 1.15rem; }
.pull {
  font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; font-style: italic;
  margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--accent-2); color: var(--accent-dark);
}

.worked { border-block: 1px solid var(--line); }
.worked-intro { max-width: 680px; margin-bottom: 40px; }
.problem {
  background: var(--text); color: #F3EEE4; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin-bottom: 56px;
}
.problem .q { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: #F0C67A; font-style: italic; }
.problem p { margin: 0; font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.35; }
.problem .small { display: block; font-family: var(--font); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 238, 228, .6); margin-bottom: .6rem; }

.wsteps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.wstep { display: grid; grid-template-columns: 1fr 220px; gap: 28px; align-items: start; }
.wstep-page { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); position: relative; }
.wstep-page h3 { display: flex; align-items: center; gap: 14px; margin-bottom: .8em; }
.wstep-page h3 .step-num { width: 44px; height: 44px; margin: 0; flex: none; }
.wstep-page h3 .step-num span { font-size: 1.25rem; }
.wstep-page .say { font-family: var(--font-head); font-style: italic; font-size: 1.2rem; color: var(--accent-dark); margin-bottom: .6em; }
.wstep-page p { margin-bottom: .7em; }
.work { margin-top: 18px; display: grid; gap: 4px; }
.work .m { font-family: var(--font-head); font-size: clamp(1.15rem, 2vw, 1.35rem); }
.work .m b { font-weight: 600; color: var(--accent); }
.wstep .margin-note { padding-top: 34px; position: relative; padding-left: 40px; }
.wstep .margin-note svg { position: absolute; left: 0; top: 28px; width: 34px; height: 30px; }
@media (max-width: 820px) {
  .wstep { grid-template-columns: 1fr; gap: 6px; }
  .wstep .margin-note { padding-top: 0; order: -1; padding-left: 40px; }
  .wstep .margin-note svg { top: -4px; transform: scaleX(-1) rotate(70deg); }
}
/* Step 2: four-quarters bar */
.quarters { margin: 18px 0 20px; }
.q-bar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--text); border-radius: 8px; overflow: hidden; }
.q-part {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  font-family: var(--font-head); font-size: 1.15rem;
}
.q-part + .q-part { border-left: 1.5px dashed rgba(29, 38, 34, .35); }
.q-part.paid { background: rgba(var(--accent-rgb), .14); color: var(--accent-dark); }
.q-part.off {
  color: #A06A16;
  background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(201, 139, 43, .22) 7px 9px);
}
.q-labels { display: grid; grid-template-columns: 3fr 1fr; gap: 8px; margin-top: 8px; font-size: .92rem; line-height: 1.3; }
.q-labels span { border-top: 2px solid; padding-top: 6px; }
.q-paid { color: var(--accent-dark); border-color: var(--accent) !important; }
.q-paid b { font-weight: 600; }
.q-off { color: #A06A16; border-color: var(--accent-2) !important; }

.answer-line { margin-top: 40px; text-align: center; font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem); }
.answer-line .nc-answer { margin-left: .4em; }
.answer-line .nc-answer svg { inset: -14px -22px; width: calc(100% + 44px); height: calc(100% + 28px); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label, .legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; min-height: 48px; transition: border-color .2s ease, background-color .2s ease;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235C6660' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 500; font-size: .98rem;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.choice input:checked + span { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); color: var(--accent-dark); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.form-error { color: #A33A2A; font-size: .92rem; margin: -6px 0 14px; display: none; }
.form-error.show { display: block; }
.form-note { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.form-send-error { display: none; color: #A33A2A; font-size: .95rem; margin: -4px 0 16px; padding: 12px 14px; border-radius: 10px; background: rgba(163, 58, 42, .07); }
.form-send-error.show { display: block; }
.btn:disabled { opacity: .7; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-success { display: none; text-align: left; }
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; }
.form-success .check { width: 56px; height: 56px; margin-bottom: 16px; }
.form-success h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.contact-aside { display: grid; gap: 20px; }
.aside-block { padding: 24px 0; border-top: 1px solid var(--line); }
.aside-block:first-child { border-top: 1.5px solid var(--text); }
.aside-block h2 { font-size: 1.35rem; font-weight: 600; margin-bottom: .4em; }
.aside-block p { color: var(--muted); margin: 0; }
.aside-block ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.aside-block li { margin-bottom: .3em; }
.email-big { font-family: var(--font-head); font-size: clamp(1.2rem, 2.2vw, 1.45rem); word-break: break-all; display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .photo.reveal { transform: translateY(18px) rotate(-2deg); }
.js .photo.reveal.in { transform: rotate(-2deg); }
.js .about-head .photo.reveal { transform: translateY(18px) rotate(2deg); }
.js .about-head .photo.reveal.in { transform: rotate(2deg); }
.js .notes-card.reveal.in { transform: rotate(1.2deg); }
.js .stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > *:nth-child(2) { transition-delay: .1s; }
.js .stagger.in > *:nth-child(3) { transition-delay: .2s; }
.js .stagger.in > *:nth-child(4) { transition-delay: .3s; }
.js .stagger.done > * { transition-delay: 0s !important; }

/* Pencil strokes draw in */
.js .draw path, .js .draw ellipse { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); transition: stroke-dashoffset 1.1s cubic-bezier(.6, .1, .2, 1) .25s; }
.js .in .draw path, .js .in .draw ellipse, .js .draw.in path, .js .draw.in ellipse { stroke-dashoffset: 0; }

/* Living detail: the notes card breathes */
@keyframes float { 0%, 100% { transform: rotate(1.2deg) translateY(0); } 50% { transform: rotate(1.2deg) translateY(-6px); } }
.notes-card { animation: float 7s ease-in-out infinite; animation-delay: -2s; }
@media (max-width: 900px) { .notes-card { animation: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
  .js .draw path, .js .draw ellipse { stroke-dashoffset: 0; }
}
