/* ============================================================
   KARIBUNI — Indigo & Thread
   A landing page built on the metaphor of warp & weft:
   knowledge infrastructure as woven structure.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Indigo — the foundational natural textile dye */
  --indigo-900: #16233f;
  --indigo-800: #1c2c4e;
  --indigo-700: #26385f;
  --indigo-600: #35497a;

  /* Ink & paper */
  --ink: #1b2436;
  --paper: #f2f0e9;
  --paper-2: #ece9df;

  /* Gold thread — used only as line, numeral, and accent */
  --thread: #b9893c;
  --thread-soft: #cba55f;

  /* Text neutrals */
  --muted: #5b6270;
  --chalk: #ece7db;
  --chalk-muted: #a7afc2;

  /* Type */
  --display: "Fraunces", Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Quote — italic display voice for pull quotes */
  --quote: italic 400 clamp(1.2rem, 0.9rem + 1.35vw, 1.85rem)/1.4 var(--display);

  /* Rhythm */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--indigo-900); color: var(--chalk);
  padding: 0.75rem 1.25rem; font: 500 0.85rem/1 var(--mono);
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

/* ---------- Shared type helpers ---------- */
.eyebrow {
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--thread);
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 1px;
  background: var(--thread);
}
.eyebrow-light { color: var(--thread-soft); }
.eyebrow-light::before { background: var(--thread-soft); }

.section-title {
  font: 400 clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem)/1.08 var(--display);
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.section-title-light { color: var(--chalk); max-width: none; }

.section-intro {
  margin-top: 1.4rem;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.075rem;
}
.section-intro-light { color: var(--chalk-muted); max-width: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 0.9rem/1 var(--body);
  letter-spacing: 0.01em;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn-primary {
  background: var(--indigo-900); color: var(--chalk);
}
.btn-primary:hover { background: var(--indigo-700); transform: translateY(-2px); }
/* Solid light button — for use on the indigo/dark fields */
.btn-light {
  background: var(--chalk); color: var(--indigo-900);
}
.btn-light:hover {
  background: #fff; transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.5);
}
.btn-ghost {
  color: var(--chalk); border-color: rgba(236, 231, 219, 0.35);
}
.btn-ghost:hover { border-color: var(--thread-soft); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2rem; font-size: 0.98rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--indigo-900) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(236, 231, 219, 0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.wordmark {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  color: var(--chalk);
}
.wordmark-name {
  font: 500 1.35rem/1 var(--display);
  letter-spacing: 0.01em;
}
.wordmark-mark {
  width: 8px; height: 8px; border: 1px solid var(--thread);
  transform: rotate(45deg);
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a {
  font: 400 0.9rem/1 var(--body);
  color: var(--chalk-muted);
  position: relative; padding: 0.4rem 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1px; background: var(--thread);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--chalk); }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-cta {
  color: var(--chalk);
  border: 1px solid rgba(236, 231, 219, 0.3);
  padding: 0.55rem 1.1rem;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { border-color: var(--thread); background: rgba(185,137,60,0.12); }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span {
  width: 26px; height: 1.5px; background: var(--chalk);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column;
  background: var(--indigo-800);
  padding: 0.5rem var(--gutter) 1.5rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  color: var(--chalk); padding: 1rem 0;
  border-bottom: 1px solid rgba(236,231,219,0.08);
  font: 400 1.05rem/1 var(--body);
}

/* ============================================================
   HERO — the woven loom
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--indigo-900);
  color: var(--chalk);
  padding-block: 8rem 5rem;
  overflow: hidden;
  isolation: isolate;
}
/* subtle warp texture behind the SVG */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 70% 0%, rgba(53,73,122,0.55), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(28,44,78,0.7), transparent 55%),
    var(--indigo-900);
}
.loom { position: absolute; inset: 0; z-index: -1; opacity: 0.9; }
.loom-svg { width: 100%; height: 100%; }
.warp line { stroke: rgba(167, 175, 194, 0.11); stroke-width: 1; }
.weft line {
  stroke: var(--thread);
  stroke-width: 1.2;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem;
  font: 500 0.74rem/1.4 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--chalk-muted);
  margin-bottom: 0;
}
/* gold weft rules that frame the three content bands, drawn on load */
.hero-rule {
  width: 100vw; margin-left: 50%;
  transform: translateX(-50%);
  height: 1px; margin-block: clamp(1.6rem, 3.4vw, 2.7rem);
  position: relative; overflow: hidden;
}
.hero-rule::before {
  content: ""; position: absolute; inset: 0;
  background: var(--thread); opacity: 0.5;
  transform: scaleX(0); transform-origin: left;
  animation: rule-draw 1.6s var(--ease) var(--rule-delay, 0.6s) forwards;
}
@keyframes rule-draw { to { transform: scaleX(1); } }
.karibuni-hello { color: var(--thread-soft); letter-spacing: 0.24em; }
.hello-gloss { color: var(--chalk); font-style: normal; }
.hello-sep { width: 1px; height: 0.9rem; background: rgba(167,175,194,0.4); margin-inline: 0.4rem; }

.hero-title {
  font: 300 clamp(2.75rem, 1.4rem + 6vw, 6.4rem)/0.98 var(--display);
  font-optical-sizing: auto;
  letter-spacing: -0.025em;
  color: var(--chalk);
  max-width: 26ch;
}
/* each line holds together; "Foundations of Fashion 5.0" reads as one line
   where it fits and only wraps as a last resort on very narrow screens */
.hero-title .line { display: block; text-wrap: pretty; }
.hero-title em {
  font-style: italic; font-weight: 400;
  color: #fff;
  position: relative;
}
.hero-title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em;
  height: 2px; background: var(--thread);
  transform: scaleX(var(--underline, 0)); transform-origin: left;
  transition: transform 1s var(--ease) 0.9s;
}
.hero-lede {
  margin-top: 0;
  max-width: 58ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--chalk-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: clamp(1.6rem, 3vw, 2.2rem); }

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 2rem;
  display: flex; align-items: center; gap: 0.75rem;
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--chalk-muted);
}
.scroll-line {
  width: 46px; height: 1px; background: rgba(167,175,194,0.4);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: var(--thread); animation: scroll-run 2.4s var(--ease) infinite;
}
@keyframes scroll-run { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* Hero load animation */
.hero-eyebrow, .hero-title .line, .hero-lede, .hero-actions {
  opacity: 0; transform: translateY(18px);
  animation: rise 1s var(--ease) forwards;
}
.hero-eyebrow { animation-delay: 0.15s; }
.hero-title .line:nth-child(1) { animation-delay: 0.35s; }
.hero-title .line:nth-child(2) { animation-delay: 0.47s; }
.hero-title .line:nth-child(3) { animation-delay: 0.59s; }
.hero-lede { animation-delay: 0.8s; }
.hero-actions { animation-delay: 0.95s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============================================================
   STATEMENT
   ============================================================ */
.section { padding-block: var(--section-y); position: relative; }

/* lighter bottom pad — the vm section below adds its own top space + divider */
.section-statement { padding-block: clamp(5rem, 11vw, 10rem) clamp(2.5rem, 5vw, 4rem); }
/* statement + its subordinate line sit above the image; note sits below */
.statement-stack > .statement { margin: 0; }
.statement-after {
  margin-block: clamp(0.9rem, 1.8vw, 1.4rem) clamp(2.25rem, 4vw, 3.25rem);
  /* one level down from .statement */
  font: 300 clamp(1.1rem, 0.9rem + 0.62vw, 1.45rem)/1.42 var(--display);
  font-optical-sizing: auto;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  color: var(--ink);
}
.statement-stack > .statement-sub { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }

/* contained image at natural 3:2, matching the other figures */
.statement-figure {
  position: relative; margin: 0;
  aspect-ratio: 3 / 2; overflow: hidden; isolation: isolate;
  background:
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(236,231,219,0.05) 21px 22px),
    var(--indigo-900);
}
/* thin offset gold frame — the woven signature */
.statement-figure::before {
  content: ""; position: absolute; z-index: 3;
  inset: 0.75rem; border: 1px solid var(--thread);
  opacity: 0.55; pointer-events: none;
}
.statement-figure img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
}
/* soft scrim keeps the caption legible over the crop */
.statement-figure::after {
  content: ""; position: absolute; z-index: 2; inset: auto 0 0 0;
  height: 42%; pointer-events: none;
  background: linear-gradient(transparent, rgba(22,35,63,0.72));
}
.statement-figure figcaption {
  position: absolute; z-index: 4;
  left: 1.4rem; bottom: 1.2rem;
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--chalk-muted);
}
.statement {
  font: 400 clamp(1.3rem, 1rem + 1.15vw, 1.9rem)/1.38 var(--display);
  font-optical-sizing: auto;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.thread-word {
  font-style: italic;
  background-image: linear-gradient(var(--thread), var(--thread));
  background-size: 100% 1px; background-position: 0 92%;
  background-repeat: no-repeat;
}
.statement-sub {
  color: var(--muted); font-size: 1.02rem; line-height: 1.65;
}

/* ============================================================
   VISION / MISSION
   ============================================================ */
.section-vm { border-top: 1px solid var(--paper-2); padding-block: clamp(4rem, 8vw, 7rem); }
.vm-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.vm-card { position: relative; padding-left: 1.6rem; }
.vm-card::before {
  content: ""; position: absolute; left: 0; top: 0.4rem; bottom: 0.4rem;
  width: 1px; background: linear-gradient(var(--thread), transparent);
}
.vm-head {
  font: 400 clamp(1.5rem, 1rem + 1.6vw, 2.15rem)/1.15 var(--display);
  letter-spacing: -0.015em; margin-bottom: 1.1rem;
}
.vm-body { color: var(--muted); font-size: 1.075rem; line-height: 1.65; max-width: 42ch; }

/* ============================================================
   METHOD — four strands
   ============================================================ */
.section-method {
  background: var(--paper-2);
  border-top: 1px solid #e2ded2;
}
.method-head {
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
/* handwoven loom — the warp & weft metaphor, made literal */
.method-figure {
  position: relative; margin: 0;
  aspect-ratio: 3 / 2; overflow: hidden; isolation: isolate;
  background:
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(236,231,219,0.05) 21px 22px),
    var(--indigo-900);
}
.method-figure::before {
  content: ""; position: absolute; z-index: 3;
  inset: 0.75rem; border: 1px solid var(--thread);
  opacity: 0.55; pointer-events: none;
}
.method-figure img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
}
.method-figure::after {
  content: ""; position: absolute; z-index: 2; inset: auto 0 0 0;
  height: 42%; pointer-events: none;
  background: linear-gradient(transparent, rgba(22,35,63,0.72));
}
.method-figure figcaption {
  position: absolute; z-index: 4;
  left: 1.4rem; bottom: 1.2rem;
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--chalk);
}
.strands {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.strand {
  padding: 2.2rem 1.6rem 2.2rem 0;
  border-top: 2px solid var(--ink);
  position: relative;
}
.strand + .strand { padding-left: 1.6rem; }
.strand::before {
  content: ""; position: absolute; top: -2px; left: 0;
  width: 0; height: 2px; background: var(--thread);
  transition: width 0.6s var(--ease);
}
.strand:hover::before { width: 100%; }
.strand-icon {
  display: block; width: 26px; height: 26px;
  margin-bottom: 1.1rem; color: var(--thread);
}
.strand-icon svg { display: block; width: 100%; height: 100%; }
.strand h3 {
  font: 500 1.18rem/1.2 var(--display);
  margin-bottom: 0.9rem; letter-spacing: -0.01em;
}
.strand p { color: var(--muted); font-size: 0.975rem; line-height: 1.6; }

/* ============================================================
   FIVE PLATFORMS — dark woven field
   ============================================================ */
.section-platforms {
  background: var(--indigo-900);
  color: var(--chalk);
  position: relative; overflow: hidden;
}
.section-platforms::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg, transparent 0 63px, rgba(167,175,194,0.06) 63px 64px);
  pointer-events: none;
}
.section-platforms .wrap { position: relative; }
.platforms-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.platforms { list-style: none; padding: 0; counter-reset: none; }
.platform {
  display: grid; grid-template-columns: 5.5rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-top: 1px solid rgba(167,175,194,0.16);
  transition: background 0.4s var(--ease);
}
.platform:last-child { border-bottom: 1px solid rgba(167,175,194,0.16); }
.platform-num {
  font: 400 1.4rem/1 var(--display);
  color: var(--thread-soft);
  padding-top: 0.35rem;
  transition: transform 0.4s var(--ease);
}
.platform-body h3 {
  font: 400 clamp(1.35rem, 1rem + 1.1vw, 1.9rem)/1.15 var(--display);
  letter-spacing: -0.015em; margin-bottom: 0.7rem;
}
.platform-body p {
  color: var(--chalk-muted); max-width: 60ch;
  font-size: 1.03rem; line-height: 1.6;
}
.platform:hover { background: rgba(53,73,122,0.28); }
.platform:hover .platform-num { transform: translateX(6px); color: var(--thread); }

/* ============================================================
   FOUNDER
   ============================================================ */
.section-founder { border-top: 1px solid var(--paper-2); }
.founder-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
/* left container: quote on top, attribution row beneath */
.founder-body { max-width: 46ch; }
.founder-quote p {
  font: var(--quote);
  font-optical-sizing: auto;
  letter-spacing: -0.01em; text-wrap: pretty;
}
.founder-attrib {
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
  display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.4rem);
}
.founder-mark {
  flex: none;
  width: clamp(64px, 8vw, 84px); aspect-ratio: 1;
  display: grid; place-items: center;
  border: 1px solid var(--thread);
  color: var(--indigo-900);
  font: 400 clamp(1.3rem, 2vw, 1.7rem)/1 var(--display);
  letter-spacing: 0.05em;
  position: relative;
}
.founder-mark::before {
  content: ""; position: absolute; background: var(--thread);
  inset: 6px auto 6px 6px; width: 1px; opacity: 0.4;
}
.founder-meta { display: flex; flex-direction: column; gap: 0.4rem; }
.founder-name { font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em; }
.founder-role {
  font: 400 0.85rem/1.5 var(--mono);
  color: var(--muted);
}

/* the conference portrait, contained like the other figures */
.founder-figure {
  position: relative; margin: 0;
  aspect-ratio: 3 / 2; overflow: hidden; isolation: isolate;
  background:
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(236,231,219,0.05) 21px 22px),
    var(--indigo-900);
}
.founder-figure::before {
  content: ""; position: absolute; z-index: 3;
  inset: 0.75rem; border: 1px solid var(--thread);
  opacity: 0.55; pointer-events: none;
}
.founder-figure img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
}
.founder-figure::after {
  content: ""; position: absolute; z-index: 2; inset: auto 0 0 0;
  height: 42%; pointer-events: none;
  background: linear-gradient(transparent, rgba(22,35,63,0.72));
}
.founder-figure figcaption {
  position: absolute; z-index: 4;
  left: 1.4rem; bottom: 1.2rem;
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--chalk);
}

/* ============================================================
   EXPLORE
   ============================================================ */
.section-explore { background: var(--paper-2); border-top: 1px solid #e2ded2; }
.section-explore .eyebrow { margin-bottom: 2.5rem; }
.explore-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: #ddd8ca;
  border: 1px solid #ddd8ca;
}
.explore-card {
  background: var(--paper);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  display: flex; flex-direction: column;
  min-height: 15rem;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.explore-index {
  font: 500 0.75rem/1 var(--mono); color: var(--thread);
  letter-spacing: 0.15em; margin-bottom: 1.6rem;
}
.explore-card h3 {
  font: 400 clamp(1.35rem, 1rem + 1vw, 1.85rem)/1.1 var(--display);
  letter-spacing: -0.015em; margin-bottom: 0.8rem;
}
.explore-card p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.explore-go {
  margin-top: auto; padding-top: 1.6rem;
  font: 500 0.85rem/1 var(--body); letter-spacing: 0.02em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.explore-go span { transition: transform 0.35s var(--ease); }
.explore-card:hover { background: #fff; transform: translateY(-3px); }
.explore-card:hover .explore-go span { transform: translateX(5px); color: var(--thread); }

/* ============================================================
   CLOSING MOTIF
   ============================================================ */
.section-motif {
  background: var(--indigo-900); color: var(--chalk);
  padding-block: clamp(5rem, 11vw, 10rem);
}
.section-motif .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(2.5rem, 6vw, 6rem);
  row-gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.motif {
  grid-column: 1; grid-row: 1; align-self: start;
  display: flex; flex-direction: column;
  gap: clamp(1.5rem, 3.2vw, 2.7rem);
}
.motif-figure { grid-column: 2; grid-row: 1; }
.motif-cta { grid-column: 1 / -1; grid-row: 2; }

.motif-figure {
  position: relative; margin: 0;
  aspect-ratio: 3 / 2; overflow: hidden; isolation: isolate;
  background:
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(236,231,219,0.05) 21px 22px),
    var(--indigo-800);
}
.motif-figure::before {
  content: ""; position: absolute; z-index: 2;
  inset: 0.75rem; border: 1px solid var(--thread);
  opacity: 0.55; pointer-events: none;
}
.motif-figure img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
}
.motif-figure figcaption {
  position: absolute; z-index: 3; left: 1.3rem; bottom: 1.1rem;
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--chalk);
}
.motif { max-width: 46ch; }
/* the four dimensions, left-aligned behind a single gold warp thread */
.motif-lines {
  position: relative;
  padding-left: clamp(1.5rem, 2.6vw, 2.25rem);
  display: flex; flex-direction: column;
  gap: clamp(1.4rem, 3vw, 2.5rem);
}
.motif-lines::before {
  content: ""; position: absolute; left: 0; top: 0.3em; bottom: 0.3em;
  width: 1.5px;
  background: linear-gradient(var(--thread), rgba(185,137,60,0.18));
}
.motif-line {
  font: 300 clamp(1.2rem, 0.95rem + 1.05vw, 1.7rem)/1.3 var(--display);
  letter-spacing: -0.01em;
  color: var(--chalk-muted);
  text-wrap: balance;
}
.motif-line span { color: var(--chalk); font-style: italic; font-weight: 400; }
.motif-together {
  padding-left: clamp(1.5rem, 2.6vw, 2.25rem);
  font: 500 0.8rem/1.6 var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--thread-soft); max-width: 50ch;
}
/* full-width call-to-action band beneath the dimensions and the image */
.motif-cta {
  margin-top: clamp(1.5rem, 3vw, 3rem);
  padding-top: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid rgba(185,137,60,0.3);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  column-gap: clamp(2.5rem, 6vw, 6rem);
  row-gap: clamp(1.75rem, 3.5vw, 2.5rem);
  align-items: start;
}
.motif-cta .eyebrow { margin-bottom: 1rem; }
.motif-cta-title {
  font: 400 clamp(1.55rem, 1.1rem + 1.5vw, 2.2rem)/1.1 var(--display);
  letter-spacing: -0.015em; color: var(--chalk);
  max-width: 18ch;
}
.motif-cta-body { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
.motif-note {
  color: var(--chalk-muted); font-size: 1rem; line-height: 1.65;
}
.motif-cta-btn { gap: 0.55rem; }
.motif-cta-btn span { transition: transform 0.35s var(--ease); }
.motif-cta-btn:hover span { transform: translateX(4px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--indigo-800);
  color: var(--chalk-muted);
  border-top: 1px solid rgba(185,137,60,0.25);
  padding-block: clamp(3rem, 6vw, 5rem) 2.5rem;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; align-items: start;
}
.footer-word {
  font: 500 1.6rem/1 var(--display); color: var(--chalk);
}
.footer-tag { margin-top: 0.8rem; font-size: 0.95rem; }
.footer-legal {
  grid-column: 1 / -1; margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(167,175,194,0.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  font: 400 0.78rem/1.5 var(--mono); letter-spacing: 0.03em;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .vm-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  /* stack the method head; loom image drops below the intro */
  .method-head { grid-template-columns: 1fr; gap: clamp(1.75rem, 5vw, 2.5rem); }
  /* stack the founder note; portrait drops below the quote */
  .founder-grid { grid-template-columns: 1fr; gap: clamp(2rem, 6vw, 3rem); }
  .founder-body { max-width: none; }
  .strands { grid-template-columns: 1fr 1fr; }
  .strand, .strand + .strand { padding-inline: 0 1.2rem; }
  .section-motif .wrap { grid-template-columns: 1fr; grid-template-rows: none; align-items: start; }
  .motif, .motif-figure, .motif-cta { grid-column: 1; grid-row: auto; align-self: start; }
  .motif-figure { order: 3; }
  .motif-cta { order: 4; grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  /* mobile: taller crop reads better on a narrow column */
  .statement-figure { aspect-ratio: 4 / 3; }
  .strands { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr; }
  .platform { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .founder-grid { grid-template-columns: 1fr; text-align: left; }
  .hero { padding-block: 7rem 4rem; }
  .footer-legal { flex-direction: column; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-eyebrow, .hero-title .line, .hero-lede, .hero-actions { opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title em::after { transform: scaleX(1); }
  .hero-rule::before { transform: scaleX(1); }
}
