/* ============================================================
   AVELINE & ROAN — Tier 3 (Signature)
   Bespoke art direction: architectural, editorial, brass-on-ink.
   Motion system lives at the bottom; every effect degrades to a
   fully readable static page with JS off or reduced-motion on.
   ============================================================ */

/* ---------- fonts (self-hosted, no external requests) ---------- */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}

/* ---------- tokens ---------- */
:root {
  --ink: #0a141f;
  --ink-soft: #13212f;
  --ink-line: rgba(255, 255, 255, 0.13);
  --bone: #f7f4ed;
  --bone-dim: #ebe5d8;
  --bone-line: #ded6c6;
  --brass: #b08d4f;          /* on dark grounds only — 5.98:1 on ink */
  --brass-deep: #7a5d25;     /* the light-ground brass — 5.59:1 on bone, 4.89:1 on dim */
  --brass-lt: #d9bf8c;
  --sea: #7ea3a8;
  --dim-d: #94a6b4;   /* muted text on dark  */
  --dim-l: #5c6a75;   /* muted text on light */

  --display: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --narrow: 860px;
  --gut: clamp(22px, 5vw, 56px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.25vw + 0.95rem, 1.0625rem);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }

/* ---------- type ---------- */
.d1, .d2, .d3, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 0.98;
  margin: 0 0 0.34em;
}
.d1, h1 { font-size: clamp(2.9rem, 7.4vw, 6.2rem); }
.d2, h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.d3, h3 { font-size: clamp(1.5rem, 2vw, 2.05rem); line-height: 1.08; }
.d1 em, .d2 em, h1 em, h2 em { font-style: italic; color: var(--brass-deep); }
.sec--ink :where(.d1,.d2,h1,h2) em, .hero :where(.d1,.d2,h1,h2) em,
.walk :where(.d1,.d2,h1,h2) em, .phead :where(.d1,.d2,h1,h2) em,
.ftr :where(.d1,.d2,h1,h2) em, .logo__txt em { font-style: italic; color: var(--brass); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass-deep); margin: 0 0 1.5em;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.35; max-width: 90px; }
.eyebrow--c { justify-content: center; }
/* brass is only legible at small sizes on the dark grounds */
.sec--ink .eyebrow, .hero .eyebrow, .walk .eyebrow, .phead .eyebrow { color: var(--brass); }
.eyebrow--c::before { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.35; max-width: 90px; }

.lede { font-size: clamp(1.125rem, 0.6vw + 1rem, 1.35rem); line-height: 1.6; color: var(--dim-l); max-width: 60ch; }
.on-dark .lede, .sec--ink .lede { color: var(--dim-d); }
.small { font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--dim-l); }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: var(--narrow); }
.sec { padding-block: clamp(80px, 11vw, 168px); position: relative; }
.sec--ink { background: var(--ink); color: var(--bone); }
.sec--ink h1, .sec--ink h2, .sec--ink h3 { color: var(--bone); }
.sec--dim { background: var(--bone-dim); }
.sec--tight { padding-block: clamp(56px, 7vw, 104px); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::before { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.35; max-width: 90px; }
.center .lede { margin-inline: auto; }

/* hairline rule that reads as a survey line */
.rule { height: 1px; background: var(--bone-line); border: 0; margin: 0; }
.sec--ink .rule { background: var(--ink-line); }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: currentColor;
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 1.15em 2em; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  cursor: pointer; position: relative; overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--brass);
  transform: scaleY(0); transform-origin: bottom; z-index: -1;
  transition: transform 0.45s var(--ease);
}
.btn > * , .btn { z-index: 0; }
.btn span { position: relative; z-index: 1; }
.btn:hover { color: var(--ink); border-color: var(--brass); }
.btn:hover::before { transform: scaleY(1); }
.btn--solid { --bg: var(--brass); --bd: var(--brass); color: var(--ink); }
.btn--solid::before { background: var(--bone); }
.btn--solid:hover { color: var(--ink); border-color: var(--bone); }
.btn__arw { transition: transform 0.4s var(--ease); position: relative; z-index: 1; }
.btn:hover .btn__arw { transform: translateX(4px); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brass); outline-offset: 3px;
}

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 90;
  padding-block: 20px; color: var(--bone);
  transition: background-color 0.45s var(--ease), padding 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.hdr__in { display: flex; align-items: center; gap: 22px; }
.hdr[data-solid="true"] {
  background: rgba(247, 244, 237, 0.93);
  backdrop-filter: saturate(160%) blur(12px);
  color: var(--ink); padding-block: 12px;
  box-shadow: 0 1px 0 var(--bone-line);
}
/* pages that start on a light hero get the solid treatment immediately */
.hdr--light { color: var(--ink); }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__mark .lm-stroke { stroke: currentColor; }
.logo__mark .lm-brass { fill: var(--brass); }
.logo__txt { font-family: var(--display); font-size: 1.32rem; letter-spacing: 0.005em; line-height: 1; white-space: nowrap; }
.logo__txt em { font-style: italic; color: var(--brass); }
.logo__sub { display: block; font-family: var(--sans); font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.6; margin-top: 5px; }

.mainnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.mainnav > a, .navgroup__btn {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: inherit; background: none; border: 0;
  padding: 10px 14px; cursor: pointer; position: relative;
}
.mainnav > a::after, .navgroup__btn::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.mainnav > a:hover::after, .navgroup__btn:hover::after,
.mainnav > a[aria-current="page"]::after { transform: scaleX(1); }
.mainnav .btn { margin-left: 12px; padding: 0.95em 1.5em; font-size: 0.7rem; }

.navgroup { position: relative; }
.navgroup__btn { display: inline-flex; align-items: center; gap: 7px; }
.navgroup__btn svg { transition: transform 0.35s var(--ease); }
.navgroup[data-open="true"] .navgroup__btn svg { transform: rotate(180deg); }
.navgroup__menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
  background: var(--ink); border: 1px solid var(--ink-line); padding: 10px;
  display: grid; gap: 2px; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.navgroup[data-open="true"] .navgroup__menu { opacity: 1; visibility: visible; transform: none; }
.navgroup__menu a {
  display: block; padding: 11px 14px; text-decoration: none; color: var(--bone);
  font-size: 0.82rem; letter-spacing: 0.01em; transition: background-color 0.3s, color 0.3s;
}
.navgroup__menu a:hover { background: rgba(176, 141, 79, 0.16); color: var(--brass-lt); }

.burger { display: none; margin-left: auto; background: none; border: 1px solid currentColor; padding: 12px; cursor: pointer; color: inherit; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; }
.burger span + span { margin-top: 4px; }

@media (max-width: 1000px) {
  .burger { display: block; }
  .mainnav {
    position: fixed; inset: 0; margin: 0; z-index: 95;
    background: var(--ink); color: var(--bone);
    flex-direction: column; align-items: stretch; justify-content: center;
    gap: 0; padding: 90px var(--gut) 40px; overflow-y: auto;
    transform: translateY(-100%); transition: transform 0.6s var(--ease);
  }
  .mainnav[data-open="true"] { transform: none; }
  .mainnav > a, .navgroup__btn {
    font-family: var(--display); font-size: 1.9rem; text-transform: none;
    letter-spacing: -0.01em; padding: 14px 0; width: 100%; text-align: left;
    border-bottom: 1px solid var(--ink-line);
  }
  .mainnav > a::after, .navgroup__btn::after { display: none; }
  .navgroup__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; border: 0; padding: 6px 0 14px 16px; display: none;
  }
  .navgroup[data-open="true"] .navgroup__menu { display: grid; }
  .navgroup__btn { justify-content: space-between; }
  .mainnav .btn { margin: 26px 0 0; justify-content: center; }
  .navclose { position: absolute; top: 22px; right: var(--gut); background: none; border: 0; color: var(--bone); cursor: pointer; padding: 10px; }
}
@media (min-width: 1001px) { .navclose { display: none; } }

/* ============================================================
   SCENE 1 — THE BLUEPRINT REVEAL (hero)
   ============================================================ */
.hero { background: var(--ink); color: var(--bone); position: relative; }
.hero__scene { height: 320vh; position: relative; }
.hero__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(96px, 15vh, 168px) var(--gut) clamp(64px, 9vh, 104px);
}

/* the drawing + the photograph share one frame */
.bp {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.bp__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: var(--photo-o, 1);
  transform: scale(var(--photo-s, 1));
  will-change: opacity, transform;
}
/* dark where the type sits (top) and at the very foot, open through the
   middle so the estate drawing and the photograph both stay legible */
.bp__wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10, 20, 31, 0.88) 0%,
      rgba(10, 20, 31, 0.55) 26%,
      rgba(10, 20, 31, 0.22) 52%,
      rgba(10, 20, 31, 0.62) 88%,
      rgba(10, 20, 31, 0.86) 100%);
}
/* the SVG line drawing sits above the photo and dissolves out */
.bp__draw {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: var(--draw-o, 1);
  will-change: opacity;
}
.bp__draw svg { width: 100%; height: 100%; }
.bp__draw .ln {
  fill: none; stroke: var(--brass-lt); stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.9;
}
.bp__draw .ln--faint { stroke: var(--sea); opacity: 0.45; stroke-width: 0.8; }
.bp__draw .ln--fill { fill: rgba(126, 163, 168, 0.07); }
.bp__draw .tick { stroke: var(--brass); stroke-width: 0.8; opacity: var(--tick-o, 0); vector-effect: non-scaling-stroke; }
.bp__draw .dim { fill: var(--brass); font-family: var(--sans); font-size: 9px; letter-spacing: 0.16em; opacity: var(--tick-o, 0); text-transform: uppercase; }
.bp__grid { stroke: rgba(126, 163, 168, 0.16); stroke-width: 0.5; opacity: var(--grid-o, 1); }

/* hero copy */
.hero__copy {
  position: relative; z-index: 3; text-align: center;
  max-width: 1000px; margin-inline: auto; width: 100%;
  transform: translateY(var(--copy-y, 0));
  will-change: transform;
}
.hero__copy h1 { color: var(--bone); text-shadow: 0 2px 40px rgba(10, 20, 31, 0.5); }
.hero__addr {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--brass-lt); margin-bottom: 1.8em;
}
.hero__specs {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  margin: 0 auto; padding: 0; list-style: none; max-width: var(--wrap);
  border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line);
  background: rgba(10, 20, 31, 0.34); backdrop-filter: blur(3px);
}
.hero__specs li {
  padding: 18px clamp(16px, 3vw, 34px);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim-d);
}
.hero__specs li + li { border-left: 1px solid var(--ink-line); }
.hero__specs b { display: block; font-family: var(--display); font-size: 1.7rem; letter-spacing: 0; text-transform: none; color: var(--bone); margin-bottom: 2px; font-weight: 400; }

.scrollcue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 4; font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--dim-d); display: grid; justify-items: center; gap: 12px;
  opacity: var(--cue-o, 1);
}
.scrollcue i { display: block; width: 1px; height: 44px; background: linear-gradient(var(--brass), transparent); }

/* ============================================================
   SCENE 2 — THE WALKTHROUGH (pinned, 4 beats)
   ============================================================ */
.walk { background: var(--ink); color: var(--bone); }
.walk__scene { height: 420vh; position: relative; }
.walk__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
/* base state is VISIBLE; only the motion build hides beats so that a
   JS-less page renders the four rooms as ordinary stacked figures */
.walk__beat { position: absolute; inset: 0; }
.motion .walk__beat { opacity: 0; }
.motion .walk__beat:first-of-type { opacity: 1; }
.walk__beat img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--beat-s, 1.06)) translateY(var(--beat-y, 0));
  will-change: transform;
}
.walk__beat::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,20,31,.88) 0%, rgba(10,20,31,.5) 48%, rgba(10,20,31,.2) 100%);
}
.walk__cap {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(70px, 12vh, 130px);
  padding-inline: var(--gut);
}
.walk__capin { max-width: var(--wrap); margin: 0 auto; position: relative; }
/* captions share one baseline and cross-fade — but only once JS is driving.
   Without it they simply stack in flow beneath their photographs. */
.motion .walk__capin > .walk__capitem { position: absolute; inset: auto 0 0; opacity: 0; }
.motion .walk__capin > .walk__capitem:first-child { opacity: 1; }
.walk__capitem + .walk__capitem { margin-top: 44px; }
.motion .walk__capitem + .walk__capitem { margin-top: 0; }
.walk__num {
  font-family: var(--display); font-size: clamp(3.4rem, 9vw, 7rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--brass); margin-bottom: 0.1em;
}
.walk__title { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.02; margin: 0 0 0.5em; max-width: 16ch; }
.walk__body { color: var(--dim-d); max-width: 48ch; }
.walk__prog {
  position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%);
  z-index: 4; display: grid; gap: 16px; list-style: none; margin: 0; padding: 0;
}
.walk__prog li { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.walk__prog span {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dim-d); opacity: 0; transform: translateX(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.walk__prog i { display: block; width: 26px; height: 1px; background: var(--ink-line); transition: background-color 0.4s, width 0.4s var(--ease); }
.walk__prog li[data-on="true"] span { opacity: 1; transform: none; }
.walk__prog li[data-on="true"] i { background: var(--brass); width: 42px; }
@media (max-width: 760px) { .walk__prog { display: none; } }

/* ============================================================
   SCENE 3 — PORTFOLIO CASCADE
   ============================================================ */
.casc__scene { position: relative; }
.casc__grid {
  display: grid; gap: clamp(18px, 2.4vw, 30px);
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.card-listing {
  position: relative; text-decoration: none; color: inherit; display: block;
  background: var(--bone); overflow: hidden;
  transform: translateY(var(--c-y, 0)) rotate(var(--c-r, 0deg)) scale(var(--c-s, 1));
  will-change: transform;
}
.sec--ink .card-listing { background: var(--ink-soft); }
.card-listing__img { position: relative; aspect-ratio: 4 / 3.1; overflow: hidden; }
.card-listing__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card-listing:hover .card-listing__img img { transform: scale(1.05); }
.card-listing__body { padding: 24px 26px 30px; }
.card-listing__price { font-family: var(--display); font-size: 1.75rem; line-height: 1; margin-bottom: 8px; }
.card-listing__addr { font-size: 0.95rem; margin-bottom: 14px; }
.card-listing__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim-l); }
.sec--ink .card-listing__meta { color: var(--dim-d); }
.ribbon {
  position: absolute; top: 20px; left: -46px; z-index: 2;
  background: var(--brass); color: var(--ink);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 7px 54px; transform: rotate(-38deg);
}
.ribbon--sold { background: var(--ink); color: var(--brass-lt); }

/* ============================================================
   SCENE 4 — MARKET NUMERALS ON SURVEY LINES
   ============================================================ */
.stats { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.stat { padding: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px); position: relative; }
.stat + .stat { border-left: 1px solid var(--ink-line); }
@media (max-width: 700px) {
  .stat + .stat { border-left: 0; border-top: 1px solid var(--ink-line); }
}
.stat__n {
  font-family: var(--display); font-size: clamp(3rem, 6.5vw, 5.2rem);
  line-height: 0.9; color: var(--brass); letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 2px;
}
.stat__lab { margin-top: 16px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim-d); }
.stat__sub { margin-top: 8px; font-size: 0.85rem; color: var(--dim-d); opacity: 0.75; }

/* ============================================================
   duotone → colour portraits / neighbourhood tiles
   ============================================================ */
.duo { position: relative; overflow: hidden; }
.duo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.06) brightness(0.92) sepia(0.28) hue-rotate(160deg);
  transition: filter 1.1s var(--ease), transform 1.1s var(--ease);
}
.duo.is-in img, .duo:hover img { filter: none; }
.duo:hover img { transform: scale(1.03); }

.hood { position: relative; display: block; text-decoration: none; color: var(--bone); overflow: hidden; }
.hood__img { aspect-ratio: 3 / 4; }
.hood__cap { position: absolute; inset: auto 0 0; padding: 28px; background: linear-gradient(to top, rgba(10,20,31,.9), transparent); }
.hood__cap h3 { margin-bottom: 4px; }
.hood__cap p { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-lt); margin: 0; }

/* ---------- editorial split ---------- */
.split { display: grid; gap: clamp(34px, 6vw, 84px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-l { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-r { grid-template-columns: 0.85fr 1.15fr; }
}
.split__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* framed image with a brass offset rule — the architectural motif */
.framed { position: relative; }
.framed::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 1px solid var(--brass); opacity: 0.55; pointer-events: none; z-index: -1;
}

/* ---------- quotes ---------- */
.quotes { display: grid; gap: clamp(26px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { border-top: 1px solid var(--bone-line); padding-top: 26px; }
.sec--ink .quote { border-color: var(--ink-line); }
.quote p { font-family: var(--display); font-size: clamp(1.25rem, 1.6vw, 1.6rem); line-height: 1.32; margin-bottom: 20px; }
.quote cite { font-style: normal; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim-l); }
.sec--ink .quote cite { color: var(--dim-d); }

/* ---------- form ---------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim-l); }
.sec--ink .field label { color: var(--dim-d); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.98rem; color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid var(--bone-line);
  padding: 12px 2px; width: 100%; border-radius: 0;
  transition: border-color 0.4s var(--ease);
}
.sec--ink .field input, .sec--ink .field select, .sec--ink .field textarea { border-color: var(--ink-line); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23b08d4f' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 26px; }
.sec--ink .field select option { background: var(--ink); color: var(--bone); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formmsg { display: none; padding: 16px 20px; border: 1px solid; font-size: 0.9rem; }
.formmsg[data-state="ok"] { display: block; border-color: var(--brass); color: var(--brass-lt); background: rgba(176,141,79,.1); }
.formmsg[data-state="err"] { display: block; border-color: #b4553f; color: #e2937f; background: rgba(180,85,63,.1); }
.formnote { font-size: 0.72rem; color: var(--dim-l); }
.sec--ink .formnote { color: var(--dim-d); }

/* ---------- page head (interior pages) ---------- */
.phead { background: var(--ink); color: var(--bone); padding-block: clamp(150px, 20vh, 230px) clamp(60px, 8vw, 110px); position: relative; overflow: hidden; }
.phead__bg { position: absolute; inset: 0; opacity: 0.34; }
.phead__bg img { width: 100%; height: 100%; object-fit: cover; }
.phead__in { position: relative; z-index: 2; }
.phead h1 { color: var(--bone); }

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 28px; padding: 0; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-d); }
.crumbs a { color: var(--brass-lt); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.4; }

/* ---------- detail lists / specs ---------- */
.speclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.speclist li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--bone-line); font-size: 0.92rem; }
.sec--ink .speclist li { border-color: var(--ink-line); }
.speclist dt, .speclist b { font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; font-size: 0.7rem; color: var(--dim-l); }
.sec--ink .speclist b { color: var(--dim-d); }

.arrowlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.arrowlist li { position: relative; padding-left: 30px; }
.arrowlist li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 16px; height: 1px; background: var(--brass); }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--dim-d); padding-block: clamp(64px, 8vw, 110px) 40px; font-size: 0.88rem; }
.ftr a { color: var(--dim-d); text-decoration: none; transition: color 0.3s; }
.ftr a:hover { color: var(--brass-lt); }
.ftr__grid { display: grid; gap: 44px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ftr__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .ftr__brand { grid-column: span 2; } }
.ftr h4 { font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin: 0 0 20px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ftr__bot { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 0.72rem; letter-spacing: 0.06em; }

/* ============================================================
   MOTION SYSTEM
   Base state = fully visible. `html.motion` (set by JS) opts in
   to the hidden start states, so with JS off nothing is hidden.
   ============================================================ */
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(var(--rv-y, 26px)) scale(var(--rv-s, 1));
  transition:
    opacity 0.62s var(--ease) var(--rv-d, 0ms),
    transform 0.62s var(--ease) var(--rv-d, 0ms),
    filter 1s var(--ease) var(--rv-d, 0ms);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal="mask"] { --rv-y: 0px; clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease) var(--rv-d, 0ms), opacity 0.6s var(--ease) var(--rv-d, 0ms); }
.motion [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
.motion [data-reveal="scale"] { --rv-y: 0px; --rv-s: 1.06; }
.motion [data-reveal="line"] { transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) var(--rv-d, 0ms); opacity: 1; }
.motion [data-reveal="line"].is-in { transform: scaleX(1); }

/* headline word-by-word rise (JS splits into .w > i) */
.motion .split-w .w { display: inline-block; overflow: hidden; vertical-align: top; }
.motion .split-w .w > i {
  display: inline-block; font-style: inherit;
  transform: translateY(105%); transition: transform 0.78s var(--ease) var(--w-d, 0ms);
}
.motion .split-w.is-in .w > i { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .motion [data-reveal],
  .motion [data-reveal].is-in,
  .motion .split-w .w > i {
    opacity: 1 !important; transform: none !important;
    clip-path: none !important; transition: none !important;
  }
  .hero__scene, .walk__scene { height: auto !important; }
  .hero__sticky, .walk__sticky { position: static !important; height: auto !important; }
  .bp__draw { display: none; }
  .walk__beat { position: static !important; opacity: 1 !important; }
  .walk__beat img { position: static !important; transform: none !important; aspect-ratio: 16/9; }
  .duo img { filter: none !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* No-JS: the pinned scenes collapse into ordinary stacked sections */
.no-js .hero__scene, .no-js .walk__scene { height: auto; }
.no-js .hero__sticky, .no-js .walk__sticky { position: static; height: auto; padding-block: 120px; }
.no-js .bp__draw { display: none; }
.no-js .walk__beat { position: static; opacity: 1; }
.no-js .walk__beat img { position: static; aspect-ratio: 16 / 9; transform: none; }
.no-js .walk__cap { position: static; padding-block: 34px; }
