/* ============================================================
   Eleven Ten — /v9 · Editorial premium (Aman / Aesop / Kinfolk / Nowness)
   Structured, generous spacing. 1 title font (serif) + 1 body font (sans).
   3 title sizes max · 2 body sizes max. Slow, structural + highlight motion.
   Loaded after styles.css.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces.woff2") format("woff2");
  font-weight: 200 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Italic.woff2") format("woff2");
  font-weight: 200 700; font-style: italic; font-display: swap;
}

:root {
  --v9-paper: #efece4;   /* warm off-white */
  --v9-panel: #e7e2d7;
  --v9-ink:   #26221c;   /* warm near-black */
  --v9-muted: #8a8074;
  --v9-line:  rgba(38,34,28,0.14);
  --v9-accent:#9c6a4c;   /* muted terracotta, used sparingly */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Bricolage Grotesque", system-ui, sans-serif;

  /* type scale — 3 title sizes, 2 body sizes (strict) */
  --t1: clamp(46px, 8vw, 116px);
  --t2: clamp(30px, 4.4vw, 60px);
  --t3: clamp(21px, 2.1vw, 28px);
  --b1: clamp(18px, 1.7vw, 21px);
  --b2: 16px;

  --gap: clamp(96px, 13vw, 200px);   /* generous vertical rhythm */
}

/* ---- Base ---- */
.v9 { background: var(--v9-paper); color: var(--v9-ink); font-family: var(--sans); }
.v9 ::selection { background: var(--v9-ink); color: var(--v9-paper); }
.v9 .wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }

/* ---- Type primitives (only these) ---- */
.v9 .t1 { font-family: var(--serif); font-weight: 320; font-size: var(--t1); line-height: 1.0; letter-spacing: -0.02em; }
.v9 .t2 { font-family: var(--serif); font-weight: 340; font-size: var(--t2); line-height: 1.08; letter-spacing: -0.015em; }
.v9 .t3 { font-family: var(--serif); font-weight: 400; font-size: var(--t3); line-height: 1.2; letter-spacing: -0.01em; }
.v9 .it { font-style: italic; font-weight: 340; }
.v9 .b1 { font-size: var(--b1); line-height: 1.6; font-weight: 400; color: rgba(38,34,28,0.86); letter-spacing: -0.005em; }
.v9 .b2 { font-size: var(--b2); line-height: 1.72; font-weight: 400; color: rgba(38,34,28,0.72); }
.v9 .eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--v9-muted);
  display: inline-flex; align-items: center; gap: 12px;
}

/* ---- Nav (minimal, transparent -> paper on scroll) ----
   Scoped to body.v9home so the editorial nav only themes the home route;
   every other page in the main app keeps its navy nav. When loaded stand-
   alone (v9.html has no styles-main.css) the base .nav is already paper. */
body.v9home .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; box-shadow: none; color: var(--v9-ink); }
body.v9home .nav.scrolled { background: rgba(239,236,228,0.9); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); border-bottom-color: var(--v9-line); }
body.v9home .nav-logo .mark { filter: none; }
body.v9home .nav-link { color: var(--v9-ink); font-weight: 500; letter-spacing: .1em; }
body.v9home .nav-link:hover, body.v9home .nav-link[data-active="true"] { color: var(--v9-accent); }
body.v9home .nav-link[data-active="true"]::before { background: var(--v9-accent); }
body.v9home .nav-cta { background: transparent; color: var(--v9-ink); border: 1px solid var(--v9-line); font-weight: 500; }
body.v9home .nav-cta:hover { background: var(--v9-ink); color: var(--v9-paper); }
body.v9home .nav-logo .tag { color: var(--v9-muted); border-left-color: var(--v9-line); }
body.v9home .nav-burger { border-color: var(--v9-line); }
body.v9home .nav-burger span { background: var(--v9-ink); }

/* Keep the editorial paper background behind the transparent nav on home. */
body.v9home { background: var(--v9-paper); }

/* ---- Buttons / text link ---- */
.v9 .a9 {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--v9-ink); padding-bottom: 6px; border-bottom: 1px solid var(--v9-ink);
  transition: color .3s, border-color .3s, gap .3s;
}
.v9 .a9:hover { color: var(--v9-accent); border-color: var(--v9-accent); gap: 18px; }
.v9 .a9 .ar { width: 16px; height: 1px; background: currentColor; position: relative; }
.v9 .a9 .ar::after { content: ""; position: absolute; right: -1px; top: -3px; width: 6px; height: 6px; border-right: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg); }

/* ============================================================
   Motion — slow, structural + highlight
   ============================================================ */
.r9 { opacity: 0; transform: translateY(34px); transition: opacity 1.1s cubic-bezier(.19,1,.22,1), transform 1.1s cubic-bezier(.19,1,.22,1); }
.r9.in { opacity: 1; transform: none; }
.r9-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(.19,1,.22,1), transform 1s cubic-bezier(.19,1,.22,1); }
.r9-stagger.in > * { opacity: 1; transform: none; }
.r9-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.r9-stagger.in > *:nth-child(2) { transition-delay: .17s; }
.r9-stagger.in > *:nth-child(3) { transition-delay: .29s; }
.r9-stagger.in > *:nth-child(4) { transition-delay: .41s; }

/* Eyebrow labels intentionally have no leading decorative rule. */
.r9-line .eyebrow::before { content: none; }

/* image clip reveal (highlight + structural) — clip the inner layer so the
   observed wrapper keeps full area and the IntersectionObserver fires. */
.v9-img { position: relative; overflow: hidden; }
.v9-img .im {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.12); clip-path: inset(0 0 100% 0);
  transition: transform 1.6s cubic-bezier(.19,1,.22,1), clip-path 1.3s cubic-bezier(.19,1,.22,1);
}
.v9-img.in .im { transform: scale(1); clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .r9, .r9-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .v9-img { clip-path: none !important; }
  .v9-img .im { transform: none !important; }
}

/* ============================================================
   Sections
   ============================================================ */
/* Hero */
.v9-hero { padding: calc(var(--nav-h) + clamp(80px,14vh,180px)) 0 clamp(60px,9vw,120px); }
.v9-hero .wrap { display: grid; grid-template-columns: 1fr; gap: 40px; }
.v9-hero .eyebrow { margin-bottom: 40px; }
.v9-hero .t1 { max-width: 14ch; }
.v9-hero .lead { max-width: 560px; margin-top: 34px; }
/* dateline strip: CTA left, provenance right, tied to the text column */
.v9-hero .hero-actions { margin-top: 52px; max-width: 560px; padding-top: 24px; border-top: 1px solid var(--v9-line); display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.v9-hero .hero-meta { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--v9-muted); white-space: nowrap; }
@media (max-width: 620px) {
  .v9-hero .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Full-bleed editorial image + caption */
.v9-figure { padding: 0 0 var(--gap); }
.v9-figure .v9-img { height: clamp(360px, 70vh, 760px); border-radius: 2px; }

/* Full-bleed banner (home): edge-to-edge, no side padding or radius */
.v9-figure--bleed { padding-left: 0; padding-right: 0; }
.v9-figure--bleed .hero-slides { border-radius: 0; height: clamp(420px, 80vh, 880px); }

/* Video banner (/v1b) — same height as the full-bleed slideshow */
.hero-video-banner { position: relative; width: 100%; height: clamp(420px, 80vh, 880px); overflow: hidden; background: var(--v9-panel); }
.hero-video-banner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- Hero slideshow ---- */
.hero-slides {
  position: relative; height: clamp(360px, 70vh, 760px); overflow: hidden;
  border-radius: 2px; background: var(--v9-panel);
}
/* clip-reveal lives on an inner stage so the observed .hero-slides keeps
   full area (a clipped observed element never triggers its own observer). */
.hs-stage { position: absolute; inset: 0; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(.19,1,.22,1); }
.hero-slides.in .hs-stage { clip-path: inset(0 0 0 0); }
.hslide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.0); will-change: opacity, transform;
  transition: opacity 1.3s ease, transform 6.5s ease;
}
.hslide.on { opacity: 1; transform: scale(1.06); }   /* crossfade + slow Ken-Burns */

.hs-dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 9px; z-index: 3; }
.hs-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(239,236,228,0.55); box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: width .45s cubic-bezier(.19,1,.22,1), background .3s;
}
.hs-dot:hover { background: rgba(239,236,228,0.9); }
.hs-dot.on { width: 30px; background: var(--v9-paper); }

@media (prefers-reduced-motion: reduce) {
  .hslide { transition: opacity .2s; transform: none !important; }
  .hs-stage { clip-path: none !important; }
}
.v9-figure .cap { display: flex; justify-content: space-between; margin-top: 18px; }
.v9-figure .cap span { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--v9-muted); }

/* Manifesto — statement + aside */
.v9-manifesto { padding: 0 0 var(--gap); }
.v9-manifesto .grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.v9-manifesto .t2 { max-width: 16ch; }
.v9-manifesto .aside { padding-top: 12px; }
.v9-manifesto .aside .b2 { margin-bottom: 20px; }

/* Practice list */
.v9-practice { padding: 0 0 var(--gap); }
.v9-practice .head { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; margin-bottom: 56px; }
.v9-row { display: grid; grid-template-columns: 80px 1.1fr 1.5fr; gap: 32px; align-items: start; padding: 40px 0; border-top: 1px solid var(--v9-line); }
.v9-row:last-child { border-bottom: 1px solid var(--v9-line); }
.v9-row .n { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; color: var(--v9-muted); padding-top: 8px; }
.v9-row .rt { font-family: var(--serif); font-weight: 380; font-size: var(--t3); letter-spacing: -0.01em; }

/* Quote band */
.v9-quote { background: var(--v9-panel); padding: var(--gap) 0; text-align: center; }
.v9-quote .t2 { max-width: 18ch; margin: 0 auto; }
.v9-quote .a9 { margin-top: 44px; }

/* Signals — large editorial cards */
.v9-signals { padding: var(--gap) 0; }
.v9-signals .head { margin-bottom: 56px; }
.v9-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 48px; }
.v9-card { display: block; }
.v9-card .v9-img { height: clamp(280px, 34vw, 460px); margin-bottom: 24px; border-radius: 2px; }
.v9-card .cmeta { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--v9-muted); margin-bottom: 14px; }
.v9-card .t3 { transition: color .3s; }
.v9-card:hover .t3 { color: var(--v9-accent); }
.v9-card:hover .v9-img .im { transform: scale(1.05); }

/* CTA */
.v9-cta { padding: var(--gap) 0 calc(var(--gap) + 20px); text-align: center; }
.v9-cta .eyebrow { margin-bottom: 30px; }
.v9-cta .t1 { max-width: 16ch; margin: 0 auto 44px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  :root { --gap: clamp(72px, 16vw, 120px); }
  .v9-manifesto .grid { grid-template-columns: 1fr; gap: 36px; }
  .v9-practice .head { flex-direction: column; gap: 10px; align-items: flex-start; }
  .v9-row { grid-template-columns: 44px 1fr; gap: 8px 18px; }
  .v9-row .rd { grid-column: 1 / -1; }
  .v9-cards { grid-template-columns: 1fr; gap: 44px; }
  .v9-figure .v9-img { height: 56vh; }
}
