/* ============================================================
   HANNA PALEI — practice site
   Light/paper inversion of the H.P Studio system.
   Red (Belarusian ornament red) appears only as a whisper:
   the brand dot and hover states.
   ============================================================ */

:root {
  --paper: #FAFAF7;
  --panel: #F1F1EC;
  --ink: #111112;
  --muted: #6B6B70;
  --faint: #A0A0A5;
  --hair: rgba(17,17,18,0.10);
  --hair-strong: rgba(17,17,18,0.24);
  --red: #CE1720;
  --container: 1400px;
  --pad: clamp(1.5rem, 5vw, 2.5rem);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--red); color: #fff; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow {
  font-size: clamp(10px, 1.4vw, 12px);
  font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.42em; color: var(--muted); margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .5s ease, border-color .5s ease, backdrop-filter .5s ease;
}
.site-header.scrolled {
  background: rgba(250,250,247,0.72);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom-color: var(--hair);
}
.nav {
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); transition: transform .3s ease; }
.brand:hover { color: var(--ink); }
.brand:hover .dot { transform: scale(1.25); }
.brand .wordmark { font-size: 13px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; }

/* ---------- Primary nav (right side, hover submenus) ---------- */
.menu { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.menu-item { position: relative; }
.menu-item > a {
  display: inline-block; padding: 24px 0;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); transition: color .3s ease;
}
.menu-item > a:hover, .menu-item.active > a { color: var(--ink); }
.menu-item > a::after {
  content: ""; display: block; height: 1px; width: 100%;
  margin-top: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.menu-item > a:hover::after, .menu-item.active > a::after { transform: scaleX(1); }

.submenu {
  position: absolute; top: 100%; right: -1.25rem; min-width: 300px;
  background: var(--paper); border: 1px solid var(--hair);
  padding: 1.5rem 1.75rem 1.25rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  box-shadow: 0 18px 50px rgba(17,17,18,0.08);
}
.menu-item:hover .submenu,
.menu-item:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu .desc { font-size: 13px; line-height: 1.6; color: var(--muted); padding-bottom: 1rem; border-bottom: 1px solid var(--hair); }
.submenu ul { list-style: none; margin: 0; padding: 0.5rem 0 0; display: flex; flex-direction: column; }
.submenu li a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: 0.65rem 0; font-size: 14.5px; letter-spacing: 0.01em; color: var(--ink);
  border-bottom: 1px solid var(--hair); transition: color .25s ease;
}
.submenu li:last-child a { border-bottom: 0; }
.submenu li a .arr { font-size: 12px; color: var(--faint); opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .25s ease, color .25s ease; }
.submenu li a:hover { color: var(--red); }
.submenu li a.md-special { background: rgba(206,23,32,0.05); margin: 0 -0.75rem; padding-left: 0.75rem; padding-right: 0.75rem; justify-content: flex-start; }
.submenu li a.md-special::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); align-self: center; margin-right: 8px; flex-shrink: 0; }
.submenu li a.md-special .arr { margin-left: auto; }
.submenu li a:hover .arr { opacity: 1; transform: translateX(0); color: var(--red); }
.submenu li a .ext { font-size: 10px; letter-spacing: 0.2em; color: var(--faint); text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; flex-direction: column; justify-content: center; }
.hero .inner { position: relative; width: 100%; padding-top: 9rem; padding-bottom: 6rem; }
.hero h1 {
  max-width: 18ch; margin-top: 2.25rem;
  font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.02; letter-spacing: -0.035em;
}
.hero .sub { margin-top: 2.5rem; max-width: 52ch; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.625; color: var(--muted); }

/* Hero: practices column, right-aligned */
.hero-solo { display: flex; justify-content: flex-end; }
.hero-solo .hero-practices { width: min(460px, 100%); }
.hero-ink { position: absolute; left: var(--pad); bottom: 16%; width: clamp(280px, 38vw, 560px); height: auto; color: var(--ink); opacity: 0.85; pointer-events: none; }
@media (max-width: 899px) { .hero-ink { display: none; } }
.hero-practices { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.hp-item { display: flex; flex-direction: column; padding: 1.6rem 0; border-bottom: 1px solid var(--hair); }
.hp-item .word {
  display: inline-flex; align-items: baseline; gap: 0.75rem;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1; font-weight: 600; letter-spacing: -0.025em;
  color: var(--ink); transition: color .3s ease;
}
.hp-item .word .go { font-size: 1rem; color: var(--faint); opacity: 0; transform: translateX(-8px); transition: opacity .3s ease, transform .3s ease, color .3s ease; }
.hp-item .blurb { margin-top: 0.65rem; max-width: 36ch; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.hp-item:hover { color: var(--ink); }
.hp-item:hover .word .go { opacity: 1; transform: translateX(0); color: var(--red); }

/* Statement (handwritten) */
.statement .script {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--ink);
  max-width: 16ch;
}
.statement .u { position: relative; white-space: nowrap; }
.statement .u .stroke { position: absolute; left: -1%; right: -1%; bottom: -0.08em; width: 102%; height: 0.18em; color: var(--red); }
.statement .desc { margin-top: 2.5rem; max-width: 56ch; font-size: clamp(0.95rem, 1.5vw, 1.05rem); line-height: 1.75; color: var(--muted); }
.statement .desc a { color: var(--ink); border-bottom: 1px solid var(--red); padding-bottom: 1px; transition: color .3s ease; }
.statement .desc a:hover { color: var(--red); }
.statement .roles { margin-top: 1.75rem; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3em; color: var(--faint); }
.statement .crumb { display: inline-flex; }

/* Thinking About card */
.think-card {
  margin-top: 2.5rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  max-width: 560px; color: var(--ink);
}
.think-card .tc-photo { display: block; overflow: hidden; }
.think-card .tc-photo img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(135% 135% at 50% 50%, #000 70%, transparent 99%);
  mask-image: radial-gradient(135% 135% at 50% 50%, #000 70%, transparent 99%);
  transition: transform .8s cubic-bezier(0.16,1,0.3,1);
}
.think-card:hover { color: var(--ink); }
.think-card:hover .tc-photo img { transform: scale(1.03); }
.think-card .tc-body { display: flex; flex-direction: column; align-items: flex-start; }
.think-card .tc-title { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.think-card .tc-line { margin-top: 0.75rem; font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 40ch; }
.think-card .tc-meta { margin-top: 0.85rem; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3em; color: var(--faint); }
.think-card .tc-read { margin-top: auto; padding-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.6rem; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); transition: color .3s ease; }
.think-card:hover .tc-read { color: var(--red); }
@media (min-width: 700px) {
  .think-card { grid-template-columns: 200px 1fr; }
}

/* Notebook (Share) */
.nb-grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.nb-grid .figure img {
  max-width: 520px;
  -webkit-mask-image: radial-gradient(140% 140% at 50% 50%, #000 68%, transparent 99%);
  mask-image: radial-gradient(140% 140% at 50% 50%, #000 68%, transparent 99%);
}
@media (min-width: 900px) { .nb-grid { grid-template-columns: minmax(0,1fr) minmax(300px, 460px); } }
.subscribe { margin-top: 2.75rem; max-width: 400px; }
.subscribe .label { display: block; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.34em; color: var(--muted); }
.subscribe .row { margin-top: 0.85rem; display: flex; gap: 0.75rem; align-items: stretch; }
.subscribe input {
  flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--hair-strong); background: transparent;
  padding: 0.5rem 0 0.65rem; font-size: 15px; color: var(--ink); font-family: var(--font); outline: none;
  transition: border-color .3s ease;
}
.subscribe input::placeholder { color: var(--faint); }
.subscribe input:focus { border-bottom-color: var(--ink); }
.subscribe button {
  flex-shrink: 0; border: 1px solid var(--hair-strong); border-radius: 999px; background: transparent;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--ink); cursor: pointer; font-family: var(--font);
  transition: border-color .3s ease, background .3s ease, color .3s ease;
}
.subscribe button:hover { border-color: var(--red); color: var(--red); }
.subscribe .fine { margin-top: 0.85rem; font-size: 12px; line-height: 1.55; color: var(--faint); }
.subscribe .thanks { display: none; margin-top: 1rem; font-size: 14px; color: var(--ink); }
.subscribe.sent .row, .subscribe.sent .fine { display: none; }
.subscribe.sent .thanks { display: block; }

/* Contact portrait */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: end; }
.contact-grid .portrait { margin: 0; max-width: 280px; justify-self: start; }
.contact-grid .portrait img { display: block; width: 100%; height: auto; border-radius: 50%; filter: grayscale(1); }
.portrait-stroke { position: relative; display: inline-block; }
.portrait-stroke::after {
  content: ""; position: absolute; left: -14%; right: -10%; bottom: -8%; height: 24%;
  background: url("assets/ink-band.png") center / 100% 100% no-repeat;
  opacity: 0.9; pointer-events: none;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(280px, 360px); }
  .contact-grid .portrait { justify-self: end; }
}

/* ---------- Ink-wash artwork ---------- */
.ink { position: absolute; pointer-events: none; user-select: none; z-index: 0; }
.hero .container, .section .container { position: relative; z-index: 1; }
.ink.hero-moon { left: clamp(1rem, 8vw, 10rem); top: 12%; width: clamp(260px, 34vw, 480px); height: auto; opacity: 0.9; }
.hero-note {
  position: absolute; left: clamp(2rem, 12vw, 14rem); bottom: 8%;
  font-family: "Caveat", cursive; font-weight: 500;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.35; color: var(--muted);
  max-width: 30ch; transform: rotate(-3.5deg); z-index: 1;
}
@media (max-width: 899px) { .hero-note { position: static; margin-top: 2.5rem; transform: rotate(-2deg); } }
@media (max-width: 899px) { .ink.hero-moon { opacity: 0.35; left: -10%; } }
.ink.corner-wash { right: -8%; top: -12%; width: clamp(320px, 42vw, 620px); height: auto; opacity: 1.0; filter: contrast(1.15) brightness(0.96); }
.ink.statement-blot { right: clamp(2rem, 10vw, 12rem); top: 50%; transform: translateY(-58%); width: clamp(140px, 16vw, 240px); opacity: 0.8; }
@media (max-width: 699px) { .ink.statement-blot { display: none; } }
.hero, .section { position: relative; overflow: hidden; }
.hero.short { overflow: visible; }
.hero.short .ink { z-index: -1; }

/* Contact portrait inside hand-drawn ink ring */
.portrait-ring { position: relative; display: inline-block; }
.portrait-ring::after {
  content: ""; position: absolute; inset: -9%;
  background: url("assets/ink-ring.png") center / contain no-repeat;
  pointer-events: none;
}

/* Interior page hero (shorter) */
.hero.short { min-height: 0; }
.hero.short.compact .inner { padding-top: clamp(7.5rem, 12vw, 9.5rem); padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.hero.short .inner { padding-top: clamp(10rem, 16vw, 13rem); padding-bottom: clamp(4rem, 7vw, 6rem); }

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--hair); }
.section.panel { background: var(--panel); }
.section-pad { padding-top: clamp(6rem, 10vw, 9rem); padding-bottom: clamp(6rem, 10vw, 9rem); }

/* ---------- Practice index rows (home) ---------- */
.practice-list { display: flex; flex-direction: column; margin-top: 3.5rem; }
.practice-row {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline;
  column-gap: clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--hair); padding: clamp(2rem, 4vw, 3rem) 0;
}
.practice-row:last-child { border-bottom: 0; }
.practice-row .num { font-size: clamp(.875rem, 1.4vw, 1rem); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--faint); transition: color .3s ease; }
.practice-row .word {
  display: inline-flex; align-items: baseline; gap: clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(3rem, 8vw, 7.5rem); line-height: 1; font-weight: 600; letter-spacing: -0.03em;
  color: rgba(17,17,18,0.45); transition: color .5s ease;
}
.practice-row .word .go { font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--faint); opacity: 0; transform: translateX(-10px); transition: opacity .4s ease, transform .4s ease, color .4s ease; }
.practice-row .blurb { grid-column: 2; margin-top: 1.25rem; max-width: 44ch; font-size: 15px; line-height: 1.625; color: var(--muted); }
.practice-row:hover { color: inherit; }
.practice-row:hover .num { color: var(--muted); }
.practice-row:hover .word { color: var(--ink); }
.practice-row:hover .word .go { opacity: 1; transform: translateX(0); color: var(--red); }

/* ---------- Item grid (projects / advise / share) ---------- */
.head-split { display: flex; flex-direction: column; gap: 1.5rem; }
.head-split h2 { max-width: 20ch; font-size: clamp(2rem, 4.5vw, 3.25rem); }
.head-split .intro { max-width: 38ch; font-size: 15px; line-height: 1.625; color: var(--muted); }

.cells { margin-top: 4.5rem; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.cell {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(2rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair);
  transition: background .5s ease; color: var(--ink);
}
a.cell:hover { background: rgba(17,17,18,0.025); color: var(--ink); }
.cell .top { display: flex; align-items: center; justify-content: space-between; }
.cell .idx { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.2em; color: var(--faint); transition: color .3s ease; }
.cell:hover .idx { color: var(--muted); }
.cell .arr { color: var(--muted); opacity: 0; transform: translateX(-8px); transition: opacity .3s ease, transform .3s ease, color .3s ease; }
.cell:hover .arr { opacity: 1; transform: translateX(0); color: var(--red); }
.cell .tag { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3em; color: var(--faint); margin-top: clamp(3rem, 6vw, 4rem); }
.cell h3 { margin-top: 0.85rem; font-size: clamp(1.4rem, 2.8vw, 1.75rem); letter-spacing: -0.02em; }
.cell p { margin-top: 1.1rem; font-size: 15px; line-height: 1.625; color: var(--muted); }
.cell .rule { margin-top: 2rem; display: block; height: 1px; width: 100%; background: var(--hair); overflow: hidden; }
.cell .rule i { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.cell:hover .rule i { transform: scaleX(1); }

/* ---------- Prose (practice / project pages) ---------- */
.prose { max-width: 640px; }
.prose p { font-size: clamp(1.02rem, 1.6vw, 1.125rem); line-height: 1.75; color: var(--ink); }
.prose p + p { margin-top: 1.5rem; }
.prose p.quiet { color: var(--muted); }
.prose .lede { font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.55; letter-spacing: -0.01em; }

/* Definition rows */
.def-list { border-top: 1px solid var(--hair); margin-top: 3rem; }
.def-row {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem;
  border-bottom: 1px solid var(--hair); padding: clamp(1.5rem, 3vw, 2rem) 0;
}
.def-row .k { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3em; color: var(--faint); }
.def-row .v { font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.6; max-width: 56ch; }
.def-row .v.big { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.02em; line-height: 1.35; }
.def-row .note { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 52ch; }

/* ---------- Figure ---------- */
.figure { margin: 0; }
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption { margin-top: 0.85rem; font-size: 12px; letter-spacing: 0.06em; color: var(--faint); }

/* ---------- Back link / breadcrumb ---------- */
.crumb { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); transition: color .3s ease; }
.crumb:hover { color: var(--red); }
.crumb .arr { font-size: 13px; }

/* ---------- CTA (outline pill) ---------- */
.cta {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--hair-strong); border-radius: 999px;
  padding: 12px 24px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink); cursor: pointer;
  background: transparent; overflow: hidden; transition: border-color .3s ease, color .3s ease;
  font-family: var(--font);
}
.cta .fill { position: absolute; inset: 0; background: var(--ink); border-radius: 999px; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.cta .txt, .cta .arr { position: relative; z-index: 1; transition: transform .3s ease, color .3s ease; }
.cta:hover { border-color: var(--ink); color: var(--ink); }
.cta:hover .fill { transform: scaleX(1); }
.cta:hover .txt, .cta:hover .arr { color: var(--paper); }
.cta:hover .arr { transform: translateX(2px); }

/* ---------- Project pages: logo, IG feed ---------- */
.proj-logo { display: block; width: clamp(72px, 9vw, 104px); height: auto; margin-bottom: 2rem; }
.ig-block { margin-top: 3.5rem; }
.ig-grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; max-width: 720px; }
.ig-grid.c4 { grid-template-columns: repeat(4, 1fr); max-width: 880px; }
.ig-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.ig-link { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.25rem; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); transition: color .3s ease; }
.ig-link:hover { color: var(--red); }

/* ---------- Waitlist / forms ---------- */
.waitlist { max-width: 480px; margin-top: 3rem; display: flex; flex-direction: column; gap: 1.75rem; }
.waitlist .field { display: flex; flex-direction: column; gap: 0.5rem; }
.waitlist label { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3em; color: var(--muted); }
.waitlist input, .waitlist textarea {
  border: 0; border-bottom: 1px solid var(--hair-strong); background: transparent;
  padding: 0.5rem 0 0.65rem; font-size: 15px; color: var(--ink); font-family: var(--font);
  outline: none; resize: vertical; transition: border-color .3s ease;
}
.waitlist input::placeholder, .waitlist textarea::placeholder { color: var(--faint); }
.waitlist input:focus, .waitlist textarea:focus { border-bottom-color: var(--ink); }
.waitlist .thanks { display: none; font-size: 14px; color: var(--ink); }
.waitlist.sent .field, .waitlist.sent .cta { display: none; }
.waitlist.sent .thanks { display: block; }

/* ---------- Notebook subscribe band (full-bleed) ---------- */
.sub-band {
  position: relative; border-top: 1px solid var(--hair); overflow: hidden;
  background: var(--paper) url("assets/ink-band-wide.png") right center / cover no-repeat;
}
.sub-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250,250,247,0.6) 0%, rgba(250,250,247,0.15) 60%, rgba(250,250,247,0) 100%); }
.sub-band .container { position: relative; }
.sub-inner { padding: clamp(3rem, 6vw, 4.5rem) 0; max-width: 560px; }
.sub-inner .desc { font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.6; letter-spacing: -0.01em; color: var(--ink); max-width: 44ch; }
.sub-inner .row { margin-top: 1.75rem; display: flex; gap: 1.25rem; align-items: baseline; max-width: 400px; }
.sub-inner input {
  flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--hair-strong); background: transparent;
  padding: 0.45rem 0 0.6rem; font-size: 15px; color: var(--ink); font-family: var(--font); outline: none;
  transition: border-color .3s ease;
}
.sub-inner input::placeholder { color: var(--muted); }
.sub-inner input:focus { border-bottom-color: var(--ink); }
.sub-inner button {
  border: 0; background: transparent; padding: 0.45rem 0; cursor: pointer; font-family: var(--font);
  font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink);
  border-bottom: 1px solid var(--red); transition: color .3s ease;
}
.sub-inner button:hover { color: var(--red); }
.sub-inner .thanks { display: none; margin-top: 1.25rem; font-size: 14px; color: var(--ink); }
.sub-band .sent .row { display: none; }
.sub-band .sent .thanks { display: block; }

/* ---------- Notebook subscribe strip ---------- */
.sub-strip {
  position: relative; margin-top: 3.5rem; max-width: 680px;
  border: 1px solid var(--hair); padding: 1.75rem 2rem; overflow: hidden;
}
.sub-strip::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/notebook-visual.png") right center / cover no-repeat;
  opacity: 0.14; pointer-events: none;
}
.sub-strip > * { position: relative; }
.sub-strip .label { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.34em; color: var(--muted); margin: 0; }
.sub-strip .desc { margin-top: 0.75rem; max-width: 46ch; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.sub-strip .row { margin-top: 1.25rem; display: flex; gap: 1rem; align-items: baseline; max-width: 380px; }
.sub-strip input {
  flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--hair-strong); background: transparent;
  padding: 0.35rem 0 0.5rem; font-size: 14px; color: var(--ink); font-family: var(--font); outline: none;
  transition: border-color .3s ease;
}
.sub-strip input::placeholder { color: var(--faint); }
.sub-strip input:focus { border-bottom-color: var(--ink); }
.sub-strip button {
  border: 0; background: transparent; padding: 0.35rem 0; cursor: pointer; font-family: var(--font);
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink);
  border-bottom: 1px solid var(--red); transition: color .3s ease;
}
.sub-strip button:hover { color: var(--red); }
.sub-strip .fine { margin-top: 1rem; font-size: 11.5px; color: var(--faint); }
.sub-strip .thanks { display: none; margin-top: 1rem; font-size: 13.5px; color: var(--ink); }
.sub-strip.sent .row, .sub-strip.sent .fine { display: none; }
.sub-strip.sent .thanks { display: block; }

/* ---------- Essay ---------- */
.essay { max-width: 680px; }
.essay .tag-row { display: flex; align-items: baseline; gap: 1.5rem; }
.essay .tag { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3em; color: var(--red); }
.essay .meta { font-size: 12px; letter-spacing: 0.06em; color: var(--faint); }
.essay .hero-img { margin: 1.75rem 0 0; }
.essay .hero-img img {
  display: block; width: 100%; max-width: 560px; height: auto;
  -webkit-mask-image: radial-gradient(140% 140% at 50% 50%, #000 68%, transparent 99%);
  mask-image: radial-gradient(140% 140% at 50% 50%, #000 68%, transparent 99%);
}
.essay h3 { margin-top: 2rem; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.3; letter-spacing: -0.01em; text-transform: uppercase; }
.essay .body { margin-top: 1.5rem; }
.essay .body p { font-size: 15.5px; line-height: 1.75; color: var(--ink); }
.essay .body p + p { margin-top: 1.25rem; }
.essay .formula {
  margin-top: 1.75rem; padding-left: 1.25rem; border-left: 2px solid var(--red);
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.65; text-transform: uppercase;
}
.essay .foot { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1.5rem; }
.essay .foot .note { font-size: 13px; color: var(--muted); font-style: italic; }
.essay .continue { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2.5rem; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); transition: color .3s ease; }
.essay .continue:hover { color: var(--red); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hair); background: var(--paper); }
.footer .inner { padding-top: 4rem; padding-bottom: 4rem; }
.footer .row1 { display: flex; flex-direction: column; gap: 3rem; }
.footer .blurb { margin-top: 1.25rem; max-width: 36ch; font-size: 14px; line-height: 1.625; color: var(--muted); }
.footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 2rem; }
.footer nav a { font-size: 13px; letter-spacing: 0.02em; color: var(--muted); transition: color .3s ease; }
.footer nav a:hover { color: var(--red); }
.footer .row2 { margin-top: 4rem; display: flex; flex-direction: column; gap: 1.5rem; border-top: 1px solid var(--hair); padding-top: 2rem; }
.footer .copy { font-size: 12px; letter-spacing: 0.02em; color: var(--faint); }
.footer .domain { font-size: 12px; text-transform: uppercase; letter-spacing: 0.32em; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .cells.c3 { grid-template-columns: repeat(3, 1fr); }
  .cells.c2 { grid-template-columns: repeat(2, 1fr); }
  .def-row { grid-template-columns: 220px 1fr; gap: 2rem; }
}
@media (min-width: 640px) {
  .head-split { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .footer .row1 { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .footer .row2 { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 820px) {
  .menu { gap: 1.1rem; }
  .menu-item > a { font-size: 11px; letter-spacing: 0.14em; }
  .submenu { right: 0; min-width: 260px; }
  .menu-item.hide-sm { display: none; }
}
@media (max-width: 640px) {
  .nav { height: auto; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding-top: 0.9rem; padding-bottom: 0.2rem; }
  .menu { width: 100%; gap: 1.4rem; }
  .menu-item > a { padding: 8px 0 12px; }
  .submenu { display: none; }
  .hero .inner { padding-top: 7.5rem; }
  .hero.short .inner { padding-top: clamp(8rem, 22vw, 10rem); }
  .ink.corner-wash { right: -20vw; width: 60vw; }
}

/* ---------- Progressive-enhancement reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1.1s cubic-bezier(0.16,1,0.3,1), transform 1.1s cubic-bezier(0.16,1,0.3,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.reveal-done [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
