/* ============================================================
   GENGIS — Scholar's Folio
   Antique xuan paper · sumi ink · mineral pigments · seal red
   Instrument Serif (display) · Instrument Sans (text)
   ============================================================ */

:root {
  --paper: #f5ecd7;
  --paper-deep: #ecdfc0;
  --paper-light: #faf3e2;
  --ink: #2f2922;
  --ink-soft: #5c5142;
  --ink-faint: #8a7c66;
  --seal: #b5402c;            /* cinnabar */
  --seal-deep: #8f3120;
  --seal-soft: rgba(181, 64, 44, 0.12);
  --rule: rgba(47, 41, 34, 0.16);
  --rule-strong: rgba(47, 41, 34, 0.32);

  /* mineral pigments — illustration only */
  --pg-blossom: #d9a89c;
  --pg-blossom-deep: #c4796c;
  --pg-ochre: #c49a52;
  --pg-pine: #5d6b50;
  --pg-azurite: #5a6f8e;
  --pg-wash: #a99c87;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', sans-serif;
  --cjk: 'Noto Serif SC', serif;

  --pad-x: clamp(22px, 6vw, 96px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* type scale — single source of truth */
  --type-display: clamp(56px, 9vw, 120px);
  --type-display-sm: clamp(40px, 5.5vw, 88px);
  --type-display-md: clamp(34px, 4vw, 56px);
  --type-title: clamp(28px, 3vw, 40px);
  --type-heading: clamp(26px, 2.4vw, 36px);
  --type-heading-sm: clamp(21px, 1.9vw, 26px);
  --type-statement: clamp(24px, 2.8vw, 42px);
  --type-statement-key: clamp(28px, 3.2vw, 48px);
  --type-statement-compact: clamp(20px, 2.1vw, 30px);
  --type-statement-compact-key: clamp(23px, 2.35vw, 34px);
  --type-lead: clamp(18px, 1.5vw, 20px);
  --type-body-lg: clamp(16px, 1.35vw, 19px);
  --type-body: 16px;
  --type-body-sm: 15px;
  --type-caption: 13px;
  --type-label: 12px;
  --type-micro: 11px;
  --type-ui: 12px;
  --type-wordmark: 27px;
  --type-wordmark-sm: 24px;
  --type-menu: clamp(40px, 9vw, 56px);
  --type-plate-glyph: 20px;
  --type-colophon: clamp(20px, 1.9vw, 27px);
  --type-footer-mail: clamp(18px, 1.4vw, 22px);

  /* vertical tempo — sections breathe at different speeds */
  --section-pad-y: clamp(100px, 15vh, 180px);
  --section-pad-y-tight: clamp(56px, 8vh, 96px);
  --section-pad-y-snug: clamp(72px, 11vh, 130px);
  --section-pad-y-wide: clamp(130px, 19vh, 230px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* the paper: plain flat sheet — colour only, no texture or aging */
.paper-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--paper);
}
/* atmospheric depth: a whisper of warmth at the centre of the sheet,
   edges settling toward the deeper cream — felt, not seen */
.paper-field::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 130% 100% at 50% 38%,
      rgba(250, 243, 226, 0.5) 0%,
      rgba(250, 243, 226, 0) 55%),
    radial-gradient(ellipse 140% 120% at 50% 50%,
      rgba(236, 223, 192, 0) 62%,
      rgba(236, 223, 192, 0.45) 100%);
}

main, .site-footer { position: relative; z-index: 2; }

::selection { background: var(--seal); color: var(--paper-light); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

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

/* ---------- primitives ---------- */

.label {
  font-family: var(--sans);
  font-size: var(--type-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1.3;
  color: var(--ink-faint);
}
.label--seal { color: var(--seal); }

.cjk {
  font-family: var(--cjk);
  color: var(--ink-faint);
  font-weight: 400;
}

.it { font-style: italic; }

.seal-mark {
  display: block;
  width: 45px;
  height: 45px;
  flex: none;
}
.seal-mark--small { width: 30px; height: 30px; }
.seal-name {
  flex: none;
  width: 36px;
  height: 36px;
}

.text-link {
  color: var(--seal);
  border-bottom: 1px solid rgba(181, 64, 44, 0.35);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.text-link:hover { color: var(--ink); border-color: var(--ink); }

.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  font-family: var(--sans);
  font-size: var(--type-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--seal);
  transition: color 0.3s ease;
}
.arrow-link .arr { transition: transform 0.35s var(--ease); display: inline-block; }
.arrow-link:hover { color: var(--ink); }
.arrow-link:hover .arr { transform: translateX(5px); }

/* touch targets: extend hit areas to ~44px without moving a pixel */
.arrow-link,
.footer-socials a,
.nav-desktop a,
.cap-menu a,
.audio-toggle { position: relative; }
.arrow-link::before,
.footer-socials a::before,
.nav-desktop a::before,
.cap-menu a::before,
.audio-toggle::before {
  content: '';
  position: absolute;
  inset: -12px -6px;
}

/* ---------- topbar ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  pointer-events: none;
}
.topbar::before {
  content: '';
  position: absolute;
  /* extend the paper wash past the bar so passing content dissolves
     before it reaches the wordmark and nav, not underneath them */
  inset: 0 0 -48px 0;
  background: linear-gradient(180deg,
    var(--paper) 0%,
    var(--paper) 40%,
    rgba(245, 236, 215, 0.92) 64%,
    rgba(245, 236, 215, 0) 100%);
  pointer-events: none;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  pointer-events: auto;
}
.brand .wordmark {
  font-family: 'Marcellus', var(--serif);
  font-weight: 400;
  font-size: var(--type-wordmark);
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--ink);
  transition: color 0.3s ease;
}
.brand:hover .wordmark { color: var(--seal); }

.nav-desktop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 34px;
  pointer-events: auto;
}
.nav-desktop a {
  font-family: var(--sans);
  font-size: var(--type-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a.active { color: var(--seal); }
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--seal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a.active::after { transform: scaleX(1); transform-origin: left; }

.audio-toggle {
  font-family: var(--sans);
  font-size: var(--type-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 8px 14px;
  pointer-events: auto;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.audio-toggle:hover { color: var(--seal); border-color: var(--seal); }
.audio-toggle[aria-pressed="false"] { color: var(--ink-faint); opacity: 0.75; }
.audio-toggle[aria-pressed="true"] { color: var(--seal); border-color: rgba(181, 64, 44, 0.4); }

.nav-burger {
  position: relative;
  display: none;
  pointer-events: auto;
  padding: 10px;
  margin: -10px;
  color: var(--ink);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(245, 236, 215, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
}
.menu-overlay.open { visibility: visible; opacity: 1; }
.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
}
#menu-close { padding: 11px; margin: -11px; }
.menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 var(--pad-x);
}
.menu-links a {
  font-family: var(--serif);
  font-size: var(--type-menu);
  line-height: 1.3;
  color: var(--ink);
}
.menu-links a.active { color: var(--seal); font-style: italic; }
.menu-foot { padding: 0 var(--pad-x) 40px; }

/* ---------- sections ---------- */

.section {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--section-pad-y) var(--pad-x);
}
.section--hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  padding-bottom: 80px;
}
.section--tight { padding-top: var(--section-pad-y-tight); padding-bottom: var(--section-pad-y-tight); }
/* narrative inhale: tighter entry, longer exhale below */
.section--exhale { padding-top: var(--section-pad-y-snug); padding-bottom: var(--section-pad-y-wide); }
/* climax beat before the exit */
.section--wide { padding-top: var(--section-pad-y-wide); padding-bottom: var(--section-pad-y-wide); }

/* folio marginalia — section numerals in the left margin */
.folio-mark {
  position: absolute;
  left: max(6px, calc(var(--pad-x) - 38px));
  top: var(--section-pad-y);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--type-label);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.section--hero .folio-mark { top: 140px; }
.section--tight .folio-mark { top: var(--section-pad-y-tight); }
.section--exhale .folio-mark { top: var(--section-pad-y-snug); }
.section--wide .folio-mark { top: var(--section-pad-y-wide); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 42px;
}
.eyebrow .dash {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--seal);
}

.section-intro {
  font-family: var(--serif);
  font-size: var(--type-title);
  line-height: 1.12;
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* ---------- hero ---------- */

.hero-grid {
  position: relative;
}
.hero-art {
  position: absolute;
  top: clamp(-130px, -10vw, -60px);
  right: clamp(-60px, -3vw, 0px);
  width: clamp(320px, 46vw, 700px);
  pointer-events: none;
}
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art--portrait {
  width: clamp(250px, 31vw, 470px);
  top: clamp(-60px, -4vw, -20px);
  right: clamp(0px, 4vw, 80px);
}

.hero-title {
  position: relative;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--type-display);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 12ch;
}
.hero-title .line { display: block; }

.hero-sub {
  margin-top: 44px;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--type-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44ch;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 9vh, 110px);
}
.hero-plate-caption { max-width: 380px; }

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scroll-cue .stem {
  width: 1px;
  height: 52px;
  background: var(--rule-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue .stem::after {
  content: '';
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--seal);
  animation: stemDrop 2.6s var(--ease) infinite;
}
@keyframes stemDrop {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- plates (the folio illustration frames) ---------- */

/* painted artwork: multiply soaks the scan into the paper */
.art-img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

/* living plates: on hover/tap the painting stirs — video crossfades over the still */
[data-live] { pointer-events: auto; cursor: default; z-index: 3; }
@media (hover: none) {
  [data-live].live-hint::after {
    content: '';
    position: absolute;
    inset: 6%;
    border: 1px solid rgba(181, 64, 44, 0.38);
    outline: 1px solid rgba(181, 64, 44, 0.14);
    outline-offset: 4px;
    pointer-events: none;
    animation: livePulse 2.8s ease-in-out infinite;
  }
}
@keyframes livePulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.85; }
}
.art-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
}

.plate {
  position: relative;
}
.plate-art {
  position: relative;
  border: 1px solid var(--rule);
  outline: 1px solid var(--rule);
  outline-offset: 5px;
  overflow: hidden;
  background: none; /* the page paper IS the plate's paper */
}
.plate-art svg { width: 100%; height: auto; display: block; }
.plate-art .art-img { height: 100%; object-fit: cover; }
.plate-orn {
  position: absolute;
  bottom: 14px;
  left: 16px;
  width: 40px;
  height: 16px;
  opacity: 0.55;
}
.plate-glyph {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--cjk);
  font-size: var(--type-plate-glyph);
  color: var(--ink-faint);
  opacity: 0.75;
}
.plate-caption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 18px;
}
.plate-caption .num {
  font-family: var(--sans);
  font-size: var(--type-micro);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--seal);
  text-transform: uppercase;
  white-space: nowrap;
}
.plate-caption .name {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--type-body);
  color: var(--ink-soft);
}

/* ---------- statement sequences ---------- */

.statements {
  max-width: 1020px;
}
.statements .statement {
  font-family: var(--serif);
  font-size: var(--type-statement);
  line-height: 1.22;
  color: var(--ink-soft);
  max-width: 24ch;
}
.statements .statement + .statement { margin-top: 26px; }
.statements .statement strong { font-weight: 400; color: var(--ink); }
.statements .statement.is-seal { color: var(--seal); }
.statements .statement.is-key {
  font-size: var(--type-statement-key);
  line-height: 1.08;
  color: var(--ink);
  max-width: 19ch;
}
.thesis-yam a {
  color: var(--seal);
  font-style: italic;
  border-bottom: 1px solid rgba(181, 64, 44, 0.35);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.thesis-yam a:hover { color: var(--ink); border-color: var(--ink); }

/* side study floating next to statements */
.side-study {
  position: absolute;
  pointer-events: none;
}
.side-study svg { width: 100%; height: auto; }
.page-art { position: absolute; }
.page-art--wide { width: clamp(260px, 30vw, 460px) !important; }
.side-study .study-glyph,
.page-art .study-glyph {
  position: absolute;
  top: 6%;
  right: 4%;
  font-size: var(--type-plate-glyph);
  opacity: 0.8;
}
.side-study .study-caption,
.page-art .study-caption,
.hero-backdrop .study-caption {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--type-caption);
  color: var(--ink-faint);
}

/* field-guide annotation overlay */
.anno {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
}
.anno .anno-line {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--ink-faint);
  transform: rotate(var(--rot, 0deg));
  transform-origin: right center;
  position: relative;
}
.anno .anno-line::before {
  content: '';
  position: absolute;
  left: -2px; top: -2px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.anno .anno-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--type-body-sm);
  color: var(--ink-soft);
  white-space: nowrap;
}
.anno-hero { top: 17%; left: 46%; }
.study-pine {
  top: 4%;
  right: var(--pad-x);
  width: clamp(220px, 26vw, 400px);
  opacity: 0.95;
}
.study-chrys {
  top: 10%;
  right: calc(var(--pad-x) + 1vw);
  width: clamp(180px, 20vw, 310px);
}

/* ---------- values ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(36px, 4vw, 56px) clamp(40px, 5vw, 72px);
  max-width: 880px;
}
.value {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: start;
}
.value-moth { padding-top: 6px; }
.value-moth img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  transform-origin: 50% 50%;
}
.value:hover .value-moth img {
  animation: flutter 0.5s ease-in-out infinite;
}
@keyframes flutter {
  0%, 100% { transform: scaleX(1) rotate(0deg); }
  50% { transform: scaleX(0.7) rotate(-4deg) translateY(-3px); }
}
.value h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--type-heading);
  color: var(--ink);
}
.value p {
  margin-top: 14px;
  font-size: var(--type-body);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 44ch;
}

/* ---------- waitlist form ---------- */

.waitlist-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--type-display-md);
  line-height: 1.05;
  margin: 18px 0 14px;
}
.waitlist-head p {
  font-size: var(--type-body-lg);
  color: var(--ink-soft);
  max-width: 50ch;
}
.waitlist-form {
  margin-top: clamp(32px, 4vw, 48px);
  max-width: 520px;
  display: grid;
  gap: 28px;
}
.waitlist-form .field label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: var(--type-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
}
.waitlist-form .field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 10px 2px;
  font-family: var(--sans);
  font-size: var(--type-body);
  color: var(--ink);
  transition: border-color 0.3s ease;
}
.waitlist-form .field input:focus {
  outline: none;
  border-bottom-color: var(--seal);
}
.waitlist-form .field input::placeholder { color: var(--ink-faint); opacity: 0.8; }
.btn-submit {
  justify-self: start;
  background: var(--seal);
  color: var(--paper-light);
  border-radius: 999px;
  padding: 15px 32px;
  font-family: var(--sans);
  font-size: var(--type-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: background 0.3s ease;
}
.btn-submit:hover { background: var(--seal-deep); }
.btn-submit:disabled { opacity: 0.6; cursor: default; }
.form-note {
  font-size: var(--type-body-sm);
  color: var(--ink-faint);
}
.form-error {
  display: none;
  font-size: var(--type-body-sm);
  color: var(--seal);
}
.form-success {
  display: none;
  font-family: var(--serif);
  font-size: var(--type-lead);
  color: var(--ink);
  line-height: 1.5;
}
.waitlist-form.sent .field,
.waitlist-form.sent .btn-submit,
.waitlist-form.sent .form-note,
.waitlist-form.sent .form-error { display: none; }
.waitlist-form.sent .form-success { display: block; }

/* ---------- founders with portraits ---------- */

.afounder {
  display: grid;
  grid-template-columns: clamp(150px, 18vw, 230px) 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
  max-width: 1020px;
}
.afounder + .afounder { margin-top: clamp(56px, 8vh, 88px); }
.afounder-portrait img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

/* compact statements — sit beside a larger side study */
.statements--compact .statement {
  font-size: var(--type-statement-compact);
  max-width: 21ch;
}
.statements--compact .statement.is-key {
  font-size: var(--type-statement-compact-key);
  line-height: 1.12;
  max-width: 19ch;
  color: var(--ink);
}
.statements--compact .statement.thesis-yam { font-size: var(--type-statement-compact); }

/* about hero backdrop: art behind the headline */
.hero-backdrop {
  position: absolute;
  top: clamp(420px, 52vh, 660px);
  left: var(--pad-x);
  right: var(--pad-x);
  pointer-events: none;
  z-index: 0;
  text-align: right;
  /* feather the side edges so the ink wash dissolves into the paper
     instead of ending in the crop's hard vertical border */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 97%, transparent 100%);
}
.hero-backdrop img { width: 100%; opacity: 0.35; }
.hero-backdrop.is-lit img { opacity: 0.52; }
.hero-backdrop .study-caption { padding-right: 4px; }
@media (max-width: 760px) {
  .hero-backdrop .study-caption { display: none; }
}
.page-head .eyebrow,
.page-head .page-title,
.page-head .page-lede { position: relative; z-index: 1; }

/* ---------- two doors ---------- */

.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 110px);
}
.door .plate { width: 100%; }
.door .plate-art {
  aspect-ratio: 3 / 3.5;
  width: 100%;
  max-width: none;
}
.door .plate-art .art-img { object-fit: contain; padding: 5%; }
.door .plate-art .art-video { object-fit: contain; padding: 5%; box-sizing: border-box; }
.plate-art--cover .art-img,
.plate-art--cover .art-video { object-fit: cover !important; padding: 0 !important; }
.door .plate-caption { max-width: none; width: 100%; }
.door-body { margin-top: 30px; }
.door-body h3 {
  font-family: var(--serif);
  font-size: var(--type-heading);
  line-height: 1.12;
  margin: 14px 0 16px;
}
.door-body p {
  font-size: var(--type-body);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 44ch;
}
.door-body .arrow-link { margin-top: 26px; }

/* ---------- colophon strip (signal bar) ---------- */

.colophon {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 52px 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  display: grid;
  gap: 22px;
  justify-items: center;
}
.colophon .members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-family: var(--serif);
  font-size: var(--type-colophon);
  letter-spacing: 0.045em;
  color: var(--ink);
}
/* imprint variant: no rules, the type alone carries the weight */
.colophon--flush {
  border-top: none;
  border-bottom: none;
  padding-top: 0;
  padding-bottom: 0;
  gap: 26px;
}
.colophon .members .dot { color: var(--ink-faint); }
.felt-band {
  width: min(280px, 70%);
  height: 18px;
  color: var(--ink-faint);
  opacity: 0.65;
}

/* ---------- founders ---------- */

.founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 5vw, 72px);
}
.founder .sprig {
  height: 110px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 22px;
}
.founder .sprig svg { height: 100%; width: auto; }
.founder .sprig .art-img { height: 100%; width: auto; }
.founder h3 {
  font-family: var(--serif);
  font-size: var(--type-heading);
  line-height: 1.12;
}
.founder .role { margin-top: 10px; }
.founder .bio {
  margin-top: 18px;
  font-size: var(--type-body);
  color: var(--ink-soft);
  line-height: 1.68;
}
.founder .bio .hl { color: var(--ink); font-weight: 500; }
.founder .arrow-link { margin-top: 20px; }

/* ---------- footer ---------- */

.site-footer {
  padding: clamp(80px, 12vh, 140px) var(--pad-x) 64px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.footer-orn {
  display: block;
  width: 46px;
  height: 22px;
  margin: 0 auto 14px;
  color: var(--ink-faint);
  opacity: 0.8;
}
.footer-rule {
  width: 34px;
  height: 1px;
  background: var(--seal);
  margin: 0 auto 40px;
}
.footer-mail {
  font-family: var(--serif);
  font-size: var(--type-footer-mail);
  line-height: 1.05;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}
.footer-mail:hover { color: var(--seal); }
.footer-hire { margin-top: 34px; }
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 44px;
}
.footer-socials a {
  font-family: var(--sans);
  font-size: var(--type-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  transition: color 0.3s ease;
}
.footer-socials a:hover { color: var(--seal); }
.footer-copy {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ---------- inner pages ---------- */

.page-head {
  min-height: auto;
  padding-top: clamp(170px, 26vh, 280px);
}
.page-title {
  font-family: var(--serif);
  font-size: var(--type-display-sm);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.page-title .dim { color: var(--ink-soft); }
.page-lede {
  margin-top: 40px;
  font-size: var(--type-body-lg);
  color: var(--ink-soft);
  line-height: 1.72;
  max-width: 60ch;
}
.page-lede p + p { margin-top: 20px; }
.page-lede .hl { color: var(--ink); font-weight: 500; }
.page-lede--callout {
  margin-top: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--type-lead);
  line-height: 1.5;
  max-width: 60ch;
  color: var(--ink-soft);
}
.page-lede--callout .text-link { font-style: normal; }
.page-art {
  position: absolute;
  top: clamp(60px, 12vh, 130px);
  right: var(--pad-x);
  width: clamp(180px, 22vw, 340px);
  pointer-events: none;
}
.page-art svg { width: 100%; height: auto; }

/* about bios */
.bio-block { max-width: 880px; }
.bio-block + .bio-block { margin-top: 80px; }
.bio-block h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: var(--type-heading);
  line-height: 1.12;
}
.bio-block .role { margin-top: 10px; }
.bio-block .bio {
  margin-top: 22px;
  font-size: var(--type-body);
  color: var(--ink-soft);
  line-height: 1.75;
}
.bio-block .bio .hl { color: var(--ink); font-weight: 500; }
.bio-block .bio em { font-style: italic; }
.bio-block .arrow-link { margin-top: 22px; }

/* ---------- YAM page ---------- */

.provenance {
  font-family: var(--serif);
  font-size: var(--type-title);
  line-height: 1.3;
  color: var(--ink-soft);
  max-width: 26ch;
}
.provenance .hl { color: var(--ink); }

.cap-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  border-top: 1px solid var(--rule);
  padding-top: 36px;
}
.cap-menu a {
  font-family: var(--sans);
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}
.cap-menu a .num { color: var(--seal); margin-right: 9px; }
.cap-menu a:hover { color: var(--seal); }

.capability {
  scroll-margin-top: 130px;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: clamp(56px, 8vh, 88px);
}
.capability--flip .cap-text { order: 2; }
.capability h2 {
  font-family: var(--serif);
  font-size: var(--type-title);
  line-height: 1.08;
  margin: 22px 0 18px;
  max-width: 16ch;
}
.capability .body {
  font-size: var(--type-body);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 44ch;
}

/* folio placeholder plate for UI frames */
.frame-plate {
  position: relative;
  border: 1px solid var(--rule);
  outline: 1px solid var(--rule);
  outline-offset: 5px;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: none;
}
.frame-plate .corner {
  position: absolute;
  font-family: var(--sans);
  font-size: var(--type-micro);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.frame-plate .tl { top: 14px; left: 16px; }
.frame-plate .br { bottom: 14px; right: 16px; }
.frame-plate .center {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--type-lead);
  color: var(--ink-soft);
  text-align: center;
  padding: 0 18px;
}
.frame-plate .study {
  position: absolute;
  bottom: 10px;
  left: 16px;
  width: 64px;
  opacity: 0.8;
}

.qualities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 48px;
}
.quality h4 {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--type-heading-sm);
  font-weight: 400;
  color: var(--ink);
}
.quality .body {
  margin-top: 14px;
  font-size: var(--type-body);
  color: var(--ink-soft);
  line-height: 1.68;
}

.cta-grand {
  font-family: var(--serif);
  font-size: var(--type-display-sm);
  line-height: 1.0;
  letter-spacing: -0.01em;
  max-width: 13ch;
}
.cta-grand .it { color: var(--seal); }

/* ---------- jobs ---------- */

.role-card {
  border-top: 1px solid var(--rule);
  padding-top: 46px;
  max-width: 980px;
}
.role-card + .role-card { margin-top: 64px; }
.role-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.role-head h3 {
  font-family: var(--serif);
  font-size: var(--type-heading);
  line-height: 1.12;
  transition: color 0.3s ease;
}
.role-toggle { width: 100%; text-align: left; display: block; }
.role-toggle:hover h3 { color: var(--seal); }
.role-blurb {
  font-size: var(--type-body);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 66ch;
}
.role-toggle .arrow-link { margin-top: 24px; }
.role-toggle .arr.open { transform: rotate(90deg); }

.role-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.role-panel.open { grid-template-rows: 1fr; }
.role-panel > div { overflow: hidden; }
.role-panel .inner {
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  padding-top: 40px;
}
.detail-block { margin-bottom: 44px; }
.detail-block .label { margin-bottom: 18px; display: block; }
.detail-block p {
  font-size: var(--type-body);
  color: var(--ink-soft);
  line-height: 1.72;
  max-width: 66ch;
}
.bullets { display: grid; gap: 12px; max-width: 66ch; }
.bullets li {
  position: relative;
  padding-left: 24px;
  font-size: var(--type-body-sm);
  color: var(--ink-soft);
  line-height: 1.65;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--seal);
  opacity: 0.7;
}
.role-card > .arrow-link { margin-top: 30px; }

/* ---------- responsive ---------- */

/* from ~1460px up the section layout is frozen (max-width 1280 centered),
   and the hero sub-line's tail runs under the falcon's branch pigment —
   let the plate drift into the free right margin instead */
@media (min-width: 1460px) {
  .hero-art--portrait { right: -90px; }
}

@media (max-width: 980px) {
  .founders { grid-template-columns: 1fr; gap: 56px; }
  .qualities { grid-template-columns: repeat(2, 1fr); }
  .capability { grid-template-columns: 1fr; }
  .capability--flip .cap-text { order: 0; }
  .study-pine, .study-chrys { opacity: 0.45; }
  .page-art { opacity: 0.5; }
}

@media (max-width: 760px) {
  .nav-desktop { display: none; }
  .nav-burger { display: block; }
  .brand .wordmark { font-size: var(--type-wordmark-sm); }
  .seal-mark { width: 34px; height: 34px; }
  .doors { grid-template-columns: 1fr; gap: 64px; }
  .values-grid { grid-template-columns: 1fr; max-width: 480px; }
  .hero-art {
    position: relative;
    top: auto; right: auto;
    width: min(92vw, 460px);
    margin: 0 auto 2px;
    opacity: 0.96;
  }
  .section--hero { padding-top: 92px; justify-content: flex-start; }
  .hero-foot { margin-top: 56px; }
  .scroll-cue { display: none; }
  .study-pine, .study-chrys { display: none; }
  .page-art { display: none; }
  .folio-mark { display: none; }
}

@media (max-width: 560px) {
  .qualities { grid-template-columns: 1fr; }
  .colophon .members { flex-direction: column; gap: 8px; }
  .colophon .members .dot { display: none; }
  .afounder { grid-template-columns: 1fr; gap: 24px; }
  .afounder-portrait { max-width: 200px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-live].live-hint::after { display: none; }
}

/* living plates: ensure hover/tap reaches studies & plates everywhere */
.hero-art[data-live],
.side-study[data-live],
.page-art[data-live],
.plate-art[data-live] {
  pointer-events: auto;
  z-index: 3;
}
@media (hover: none) {
  .hero-art[data-live],
  .side-study[data-live],
  .page-art[data-live],
  .plate-art[data-live] {
    cursor: pointer;
  }
}
.art-caption { margin-top: 14px; }
