/* Heirloom Vine Institute
   Seven Sherwin Williams references, all in play. Heirloom Vine Backbone is
   used for the words HEIRLOOM VINE only. Display: Bricolage Grotesque
   (variable width and weight, so type can respond to scroll and pointer).
   Accent: Instrument Serif italic. Reading: Atkinson Hyperlegible Next.
   Motion is driven by one scroll variable per scene (--p, 0 to 1) and is
   removed entirely when the visitor asks for reduced motion. */

@font-face {
  font-family: "Heirloom Vine Backbone";
  src: url("../fonts/HeirloomVineBackbone.woff2") format("woff2");
  font-display: swap;
}

:root {
  --caviar: #302E2F;
  --garden: #4F563C;
  --gate: #5E5C4B;
  --khaki: #BAAE96;
  --ground: #E3DACC;
  --sommelier: #664747;
  --brown: #946C46;
  --white: #FFFFFF;

  --display: "Bricolage Grotesque", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, monospace;
  --backbone: "Heirloom Vine Backbone", Georgia, serif;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--caviar); color: var(--ground);
  font-family: var(--sans); font-size: clamp(17px, .5vw + 14px, 19px); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
::selection { background: var(--brown); color: var(--white); }
:focus-visible { outline: 3px solid var(--khaki); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--sommelier); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ground); color: var(--caviar); padding: 12px 18px; border-radius: 4px; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Type ──────────────────────────────────────────────────────────── */
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; display: inline-flex; gap: 12px; align-items: center; opacity: .86; }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.mega { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 11vw, 196px); line-height: .86; letter-spacing: -.045em; }
.big { font-family: var(--display); font-weight: 650; font-size: clamp(40px, 6.4vw, 112px); line-height: .92; letter-spacing: -.04em; }
.mid { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 54px); line-height: 1; letter-spacing: -.03em; }
.ital { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.lead { font-size: clamp(19px, 1.3vw + 8px, 25px); line-height: 1.42; max-width: 34ch; }
.hv-name { font-family: var(--backbone); font-weight: 400; letter-spacing: .02em; line-height: 1; }
.num { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; }

/* Interactive letters: split by script, weight and width follow the pointer */
.interactive .ch { display: inline-block; font-variation-settings: "wdth" var(--w, 100), "wght" var(--g, 700); transition: font-variation-settings .35s var(--ease); }
.interactive .sp { display: inline-block; width: .26em; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  font: 600 16px/1 var(--sans); padding: 18px 26px; border-radius: 999px;
  background: var(--ground); color: var(--caviar); border: 1px solid var(--ground);
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); background: var(--white); }
.btn svg { width: 20px; height: 12px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn.ghost:hover { background: var(--ground); color: var(--caviar); border-color: var(--ground); }
.btn.dark { background: var(--caviar); color: var(--ground); border-color: var(--caviar); }
.btn.dark:hover { background: var(--garden); border-color: var(--garden); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ── Floating bar and the Index (experimental navigation) ─────────── */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); pointer-events: none; }
.bar > * { pointer-events: auto; }
.logo-chip { display: block; background: var(--ground); border-radius: 999px; padding: 8px 18px 8px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.logo-chip img { height: 38px; width: auto; }
.bar-right { display: flex; gap: 10px; align-items: center; }
.bar .btn { padding: 14px 20px; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.index-toggle {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  font: 600 15px/1 var(--sans); padding: 14px 20px; border-radius: 999px;
  background: var(--caviar); color: var(--ground); border: 1px solid rgba(227,218,204,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.index-toggle .dots { display: grid; grid-template-columns: repeat(2, 6px); gap: 3px; }
.index-toggle .dots i { width: 6px; height: 6px; border-radius: 50%; }
.index-toggle .dots i:nth-child(1) { background: var(--khaki); }
.index-toggle .dots i:nth-child(2) { background: var(--brown); }
.index-toggle .dots i:nth-child(3) { background: var(--garden); }
.index-toggle .dots i:nth-child(4) { background: var(--sommelier); }
@media (max-width: 640px) { .bar .btn.cta { display: none; } .logo-chip img { height: 32px; } }

.index {
  position: fixed; inset: 0; z-index: 120; background: var(--caviar); color: var(--ground);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); overflow: auto;
  clip-path: circle(0% at calc(100% - 90px) 44px); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.index.open { clip-path: circle(150% at calc(100% - 90px) 44px); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.index nav { padding: 120px var(--gutter) 48px; }
.index ol { list-style: none; margin: 0; padding: 0; }
.index li { border-top: 1px solid rgba(227,218,204,.16); }
.index li:last-child { border-bottom: 1px solid rgba(227,218,204,.16); }
.index nav a {
  display: flex; align-items: baseline; gap: 20px; text-decoration: none; padding: 12px 0;
  font-family: var(--display); font-weight: 650; font-size: clamp(38px, 6.2vw, 96px); line-height: 1; letter-spacing: -.04em;
  font-variation-settings: "wdth" 78; transition: font-variation-settings .5s var(--ease), color .3s, padding .5s var(--ease);
}
.index nav a .num { font-size: 13px; color: var(--khaki); min-width: 34px; }
.index nav a:hover, .index nav a:focus-visible { font-variation-settings: "wdth" 100; color: var(--c, var(--khaki)); padding-left: 18px; }
.index nav a[aria-current="page"] { color: var(--khaki); }
.index aside { background: var(--panel, var(--garden)); padding: 120px var(--gutter) 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; transition: background .5s var(--ease); }
.index aside p { font-size: clamp(26px, 2.4vw, 38px); font-family: var(--serif); font-style: italic; line-height: 1.15; max-width: 16ch; }
.index aside address { font-style: normal; font-size: 16px; line-height: 1.9; }
.index aside a { text-decoration: none; }
.index aside a:hover { text-decoration: underline; }
.index-close { position: absolute; top: 18px; right: var(--gutter); z-index: 2; }
@media (max-width: 860px) { .index { grid-template-columns: 1fr; } .index aside { padding-top: 40px; } }

/* Chapter rail: where you are in the story */
.rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 60; display: flex; flex-direction: column; gap: 14px; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; color: #fff; mix-blend-mode: difference; }
.rail a span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: .3s var(--ease); }
.rail a i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; transition: .3s var(--ease); }
.rail a:hover span, .rail a:focus-visible span, .rail a.on span { opacity: 1; transform: none; }
.rail a.on i { background: currentColor; transform: scale(1.3); }
@media (max-width: 860px) { .rail { display: none; } }

/* ── Scenes: sticky stages driven by --p ─────────────────────────── */
.scene { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* Hero: depth zoom into the image, headline lifts away, a second line arrives */
.hero { height: 220vh; background: var(--caviar); }
.hero .media { position: absolute; inset: -4%; transform: scale(calc(1.02 + var(--p, 0) * .4)) translateY(calc(var(--p, 0) * -5%)); transform-origin: 72% 50%; }
.hero .media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(48,46,47,.94) 0%, rgba(48,46,47,.7) 40%, rgba(48,46,47,.08) 78%), linear-gradient(0deg, rgba(48,46,47,.95), rgba(48,46,47,0) 42%); }
.hero .copy { position: absolute; left: 0; right: 0; bottom: 11vh; transform: translateY(calc(var(--p, 0) * -24vh)); opacity: calc(1 - var(--p, 0) * 1.7); }
.hero h1 { margin: 22px 0 26px; }
.hero h1 .line { display: block; }
.hero h1 .l2 { color: var(--khaki); }
.hero h1 .l3 { color: var(--brown); }
.hero .after { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 var(--gutter); opacity: calc((var(--p, 0) - .55) * 3); }
.hero .after p { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 5vw, 84px); line-height: 1.04; max-width: 16ch; margin: 0 auto; }
.scroll-cue { position: absolute; bottom: 28px; right: var(--gutter); font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; display: flex; gap: 12px; align-items: center; opacity: calc(1 - var(--p, 0) * 4); }
.scroll-cue i { width: 1px; height: 40px; background: currentColor; transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Story: seven frames, seven brand colors, one pinned stage */
.story { height: 760vh; }
.story .stage { background: var(--bg, var(--caviar)); color: var(--fg, var(--ground)); transition: background .7s var(--ease), color .7s var(--ease); }
.story .frame { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 var(--gutter); opacity: 0; transform: translateY(46px) scale(.97); transition: opacity .6s var(--ease), transform .9s var(--ease); pointer-events: none; }
.story .frame.on { opacity: 1; transform: none; }
.story .frame h2 { max-width: 12ch; margin: 0 auto; }
.story .frame p { margin: 26px auto 0; max-width: 28ch; font-size: clamp(19px, 1.4vw + 8px, 26px); }
.story .count { position: absolute; left: var(--gutter); bottom: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.story .progress { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--p, 0) * 100%); background: currentColor; opacity: .55; }
.shards { position: absolute; inset: 0; pointer-events: none; }
.shards span {
  position: absolute; left: var(--x); top: var(--y); font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 16px; border: 1px solid currentColor; border-radius: 999px; opacity: 0; transform: rotate(var(--r));
  transition: left 1.2s var(--ease), top 1.2s var(--ease), transform 1.2s var(--ease), opacity .6s;
}
@media (max-width: 760px) { .shards { display: none; } }

/* Offerings index: hover or tap a line, the panel speaks */
.offer { background: var(--ground); color: var(--caviar); padding: clamp(96px, 12vw, 180px) 0; position: relative; }
.offer-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.offer-head p { margin: 0; }
.offer-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.offer-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--caviar); }
.offer-list li { border-bottom: 1px solid rgba(48,46,47,.22); }
.offer-list button {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: baseline;
  padding: 18px 0; font-family: var(--display); font-weight: 650; font-size: clamp(26px, 3.1vw, 50px); line-height: 1.02; letter-spacing: -.03em;
  font-variation-settings: "wdth" 82; transition: font-variation-settings .5s var(--ease), color .3s, padding .5s var(--ease);
}
.offer-list button:focus-visible { outline: 3px solid var(--sommelier); outline-offset: 2px; }
.offer-list button .num { color: rgba(48,46,47,.62); }
.offer-list button .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; opacity: .75; }
.offer-list button:hover, .offer-list button[aria-expanded="true"] { font-variation-settings: "wdth" 100; color: var(--c); padding-left: 10px; }
.offer-list .detail { display: none; padding: 0 0 22px 66px; font-size: 17px; max-width: 52ch; }
.offer-list button[aria-expanded="true"] + .detail { display: block; }
.offer-panel { position: sticky; top: 110px; border-radius: 24px; overflow: hidden; background: var(--c, var(--garden)); color: var(--ground); min-height: 540px; display: flex; flex-direction: column; justify-content: flex-end; transition: background .6s var(--ease); }
.offer-panel .art { position: absolute; inset: 0; }
.offer-panel .art img { width: 100%; height: 100%; object-fit: cover; opacity: .5; mix-blend-mode: luminosity; transform: scale(1.06); transition: transform 1.4s var(--ease), opacity .5s; }
.offer-panel:hover .art img { transform: scale(1.14); }
.offer-panel .txt { position: relative; padding: 32px; background: linear-gradient(0deg, var(--c, var(--garden)) 45%, transparent); }
.offer-panel h3 { font-family: var(--display); font-size: clamp(30px, 2.8vw, 46px); line-height: 1; letter-spacing: -.03em; margin-bottom: 14px; }
.offer-panel p { margin: 0; font-size: 18px; max-width: 32ch; }
.offer-panel .cat { position: absolute; top: 26px; left: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.fine { margin-top: 40px; font-size: 14.5px; opacity: .78; max-width: 74ch; }
@media (max-width: 960px) { .offer-head, .offer-grid { grid-template-columns: 1fr; } .offer-panel { display: none; } }

/* How it works: a horizontal track pinned to vertical scroll */
.track-scene { height: 360vh; background: var(--garden); }
.track-scene .stage { display: flex; flex-direction: column; justify-content: center; }
.track-scene .head { padding: 0 var(--gutter); margin-bottom: 40px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.track { display: flex; gap: clamp(18px, 2.6vw, 40px); padding: 0 var(--gutter); transform: translateX(calc(var(--p, 0) * var(--shift, -60%))); will-change: transform; }
.step { flex: none; width: min(80vw, 500px); min-height: 400px; border-radius: 24px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ground); }
.step:nth-child(1) { background: var(--caviar); }
.step:nth-child(2) { background: var(--sommelier); }
.step:nth-child(3) { background: var(--gate); }
.step:nth-child(4) { background: var(--ground); color: var(--caviar); }
.step .n { font-family: var(--display); font-weight: 700; font-size: clamp(90px, 11vw, 168px); line-height: .8; letter-spacing: -.05em; }
.step:nth-child(1) .n { color: var(--khaki); }
.step:nth-child(2) .n { color: var(--ground); }
.step:nth-child(3) .n { color: var(--khaki); }
.step:nth-child(4) .n { color: var(--brown); }
.step h3 { font-family: var(--display); font-size: clamp(30px, 2.8vw, 46px); letter-spacing: -.03em; line-height: 1; margin-bottom: 12px; }
.step p { margin: 0; font-size: 18px; max-width: 28ch; }

/* HEIRLOOM OS: panes in space that align as you scroll */
.os { height: 280vh; background: var(--caviar); }
.os .stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 40px; padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; }
.os-mark { display: inline-flex; flex-direction: column; gap: 8px; }
.os-mark .os-word { font-family: var(--display); font-weight: 750; font-size: clamp(34px, 4vw, 64px); letter-spacing: .08em; line-height: 1; }
.os-mark .by { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--khaki); }
.space { position: relative; height: min(72vh, 660px); perspective: 1200px; }
.pane3d {
  position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 3 / 4; margin: -27% 0 0 -20%;
  border: 1px solid rgba(227,218,204,.42); border-radius: 12px;
  background: linear-gradient(160deg, rgba(227,218,204,.16), rgba(227,218,204,.03));
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; padding: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ground);
  transform: translate3d(calc(var(--x) * (1 - var(--p, 0))), calc(var(--y) * (1 - var(--p, 0))), calc(var(--z) * (1 - var(--p, 0)))) rotateY(calc(var(--r) * (1 - var(--p, 0)))) rotateX(calc(var(--rx, 0deg) * (1 - var(--p, 0))));
}
.pane3d:nth-child(2n) { border-color: var(--khaki); }
.pane3d:nth-child(3n) { background: linear-gradient(160deg, rgba(102,71,71,.4), rgba(102,71,71,.08)); }
.pane3d:nth-child(4n) { background: linear-gradient(160deg, rgba(79,86,60,.5), rgba(79,86,60,.1)); }
.pane3d.core { background: linear-gradient(160deg, rgba(186,174,150,.55), rgba(148,108,70,.4)); border-color: var(--khaki); }
.status-pill { display: inline-flex; gap: 10px; align-items: center; margin-top: 26px; padding: 10px 16px; border: 1px solid var(--khaki); border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--khaki); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
@media (max-width: 860px) { .os { height: auto; } .os .stage { position: relative; height: auto; grid-template-columns: 1fr; padding-top: 110px; padding-bottom: 80px; } .space { height: 58vh; } .pane3d { transform: none; } }

/* Yours: ownership chips */
.yours { background: var(--khaki); color: var(--caviar); padding: clamp(96px, 12vw, 180px) 0; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.chips span { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 38px); letter-spacing: -.02em; padding: 14px 26px; border-radius: 999px; background: var(--caviar); color: var(--ground); transition: transform .5s var(--ease), background .3s; }
.chips span:nth-child(3n+2) { background: var(--sommelier); }
.chips span:nth-child(3n) { background: var(--garden); }
.chips span:hover { transform: translateY(-6px) rotate(-1.5deg); background: var(--gate); }

/* The Name */
.name { background: var(--sommelier); color: var(--ground); padding: clamp(110px, 14vw, 200px) 0; text-align: center; overflow: hidden; }
.name .hv-name { font-size: clamp(54px, 12vw, 210px); transform: translateX(calc((var(--p, .5) - .5) * -14%)); white-space: nowrap; }
.defs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; text-align: left; border-top: 1px solid rgba(227,218,204,.3); }
.defs div { padding: 26px 24px 0 0; }
.defs div + div { padding-left: 24px; border-left: 1px solid rgba(227,218,204,.3); }
.defs dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--khaki); margin-bottom: 8px; }
.defs dd { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 32px); line-height: 1.2; }
@media (max-width: 760px) { .defs { grid-template-columns: 1fr; } .defs div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(227,218,204,.3); margin-top: 22px; } }

/* Founder line over the rising horizon */
.founder { position: relative; overflow: hidden; background: var(--caviar); padding: clamp(140px, 18vw, 260px) 0; }
.founder > img { position: absolute; left: 0; top: 0; width: 100%; height: 125%; object-fit: cover; transform: translateY(calc(var(--p, 0) * -16%)); opacity: .8; }
.founder::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(48,46,47,.92), rgba(48,46,47,.3)); }
.founder .wrap { position: relative; z-index: 1; }
.founder blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(38px, 5.2vw, 88px); line-height: 1.02; max-width: 16ch; }
.founder figcaption { margin-top: 28px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--khaki); }

/* Final call */
.final { background: var(--brown); color: var(--white); padding: clamp(110px, 14vw, 200px) 0; position: relative; overflow: hidden; }
.final .contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; border-top: 1px solid rgba(255,255,255,.45); padding-top: 26px; }
.final .contacts span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.final .contacts a { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2vw, 32px); letter-spacing: -.02em; text-decoration: none; }
.final .contacts a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.final .btn { background: var(--white); border-color: var(--white); }
.final .btn.ghost { background: transparent; color: var(--white); border-color: var(--white); }
.final .btn.ghost:hover { background: var(--white); color: var(--caviar); }
@media (max-width: 760px) { .final .contacts { grid-template-columns: 1fr; } }

/* ── Inner pages ──────────────────────────────────────────────────── */
.page-hero { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; padding: 140px 0 72px; background: var(--caviar); }
.page-hero > img { position: absolute; left: 0; top: 0; width: 100%; height: 118%; object-fit: cover; transform: translateY(calc(var(--p, 0) * -12%)) scale(1.03); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(48,46,47,.96) 0%, rgba(48,46,47,.55) 55%, rgba(48,46,47,.18) 100%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin: 22px 0 22px; max-width: 14ch; }
.page-hero.solid { min-height: 72vh; background: var(--bgc, var(--garden)); }
.page-hero.solid::after { display: none; }

.band { padding: clamp(88px, 11vw, 168px) 0; }
.band.ground { background: var(--ground); color: var(--caviar); }
.band.white { background: var(--white); color: var(--caviar); }
.band.garden { background: var(--garden); }
.band.gate { background: var(--gate); }
.band.sommelier { background: var(--sommelier); }
.band.brown { background: var(--brown); color: var(--white); }
.band.khaki { background: var(--khaki); color: var(--caviar); }
.band.caviar { background: var(--caviar); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.cat-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.cat-head p { max-width: 36ch; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; perspective: 1000px; }
.card {
  border-radius: 22px; padding: 30px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(227,218,204,.1); border: 1px solid rgba(227,218,204,.3);
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .3s var(--ease), background .3s;
}
.light .card { background: var(--white); border-color: rgba(48,46,47,.14); }
.card h3 { font-family: var(--display); font-size: clamp(26px, 2.2vw, 36px); line-height: 1; letter-spacing: -.03em; margin: 20px 0 14px; }
.card p { margin: 0; font-size: 17px; }
.card .meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }

.suites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 56px; perspective: 1000px; }
.suite { border-radius: 18px; padding: 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; background: var(--sc, var(--gate)); color: var(--ground); transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .3s var(--ease); }
.suite b { font-family: var(--display); font-weight: 650; font-size: clamp(20px, 1.6vw, 26px); letter-spacing: -.02em; line-height: 1.05; }
.suite span { font-size: 15px; opacity: .92; }
.suite.k { color: var(--caviar); }
@media (max-width: 960px) { .suites { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .suites { grid-template-columns: 1fr; } }

/* Plate and material studies */
.plate { position: relative; border-radius: 22px; padding: 22px; background: var(--ground); color: var(--caviar); }
.plate-head, .plate-foot { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.plate-head { padding-bottom: 12px; border-bottom: 1px solid rgba(48,46,47,.2); }
.plate-foot { padding-top: 12px; border-top: 1px solid rgba(48,46,47,.2); }
.plate-figure { position: relative; aspect-ratio: 1400 / 620; overflow: hidden; }
.plate-figure img { position: absolute; left: 0; width: 100%; top: -29.03%; }
.plate-figure svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.callouts line { stroke: var(--caviar); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.callouts circle.dot { fill: var(--ground); stroke: var(--caviar); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.callouts circle.num { fill: var(--sommelier); }
.callouts text { font-family: var(--mono); font-size: 22px; letter-spacing: .08em; fill: var(--caviar); }
.callouts text.n { fill: var(--ground); font-size: 20px; text-anchor: middle; dominant-baseline: central; }
.js .plate [data-step] { opacity: 0; transition: opacity .7s var(--ease); }
.js .plate.on [data-step] { opacity: 1; }
.js .plate.on [data-step="2"] { transition-delay: .5s; }
.js .plate.on [data-step="3"] { transition-delay: 1s; }
.js .plate.on [data-step="4"] { transition-delay: 1.5s; }
.materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; perspective: 1000px; }
.material { margin: 0; }
.material .field { border-radius: 18px; overflow: hidden; aspect-ratio: 1.4; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .3s var(--ease); }
.material .field img { width: 100%; height: 100%; object-fit: cover; }
.material figcaption { padding-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 760px) { .materials { grid-template-columns: 1fr 1fr; } }

/* Contact form: opaque and high contrast */
.form-panel { background: var(--white); color: var(--caviar); border-radius: 24px; padding: clamp(24px, 3.4vw, 48px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.field .req { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .72; margin-left: 8px; font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; font: 400 17px/1.4 var(--sans); color: var(--caviar); background: var(--white); border: 1.5px solid rgba(48,46,47,.5); border-radius: 12px; padding: 14px; min-height: 52px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--garden); outline-offset: 1px; }
.consent { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding: 20px; border-radius: 14px; background: var(--ground); font-size: 15px; line-height: 1.55; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--garden); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.banner { border: 2px solid var(--sommelier); background: #F4ECEC; color: var(--caviar); border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; }
.banner[hidden] { display: none; }
.btn.submit { background: var(--caviar); color: var(--ground); border-color: var(--caviar); cursor: pointer; }
.btn.submit:hover { background: var(--garden); border-color: var(--garden); }
.contact-lines { display: grid; gap: 28px; }
.contact-lines span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--khaki); margin-bottom: 6px; }
.contact-lines a, .contact-lines address { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.02em; text-decoration: none; font-style: normal; line-height: 1.15; }
.contact-lines a:hover { text-decoration: underline; }

/* Long reading: stable opaque field */
.doc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.doc nav { position: sticky; top: 110px; align-self: start; font-size: 15px; }
.doc nav ol { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid rgba(48,46,47,.3); }
.doc nav li { border-bottom: 1px solid rgba(48,46,47,.14); }
.doc nav a { display: block; padding: 10px 0; text-decoration: none; }
.doc nav a:hover { color: var(--sommelier); }
.doc article { max-width: 70ch; }
.doc article h2 { font-family: var(--display); font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -.02em; margin: 56px 0 16px; padding-top: 22px; border-top: 1px solid rgba(48,46,47,.3); scroll-margin-top: 110px; }
.doc article h2:first-child { margin-top: 0; }
.doc article ul { padding-left: 1.2em; }
.doc .callout { background: var(--white); border-radius: 14px; padding: 20px 24px; margin: 20px 0; }
.doc address { font-style: normal; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .doc nav { position: static; } }

/* Footer */
.foot { background: var(--caviar); color: var(--ground); padding: 96px 0 36px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(227,218,204,.16); }
.foot-top img { width: min(360px, 100%); height: auto; margin-bottom: 22px; }
.foot-top p { opacity: .82; max-width: 34ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; font-size: 15.5px; }
.foot-cols h2 { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--khaki); margin-bottom: 14px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: 9px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.foot-cols address { font-style: normal; line-height: 1.75; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 24px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.palette { display: flex; height: 10px; margin-top: 40px; border-radius: 5px; overflow: hidden; }
.palette i { flex: 1; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: 1fr 1fr; } }

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ── Reduced motion: every scene settled and complete ─────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero, .story, .track-scene, .os { height: auto; }
  .stage { position: relative; height: auto; }
  .hero .stage { min-height: 100svh; }
  .hero .media, .hero .copy, .founder > img, .page-hero > img, .name .hv-name { transform: none !important; opacity: 1 !important; }
  .hero .after, .shards, .story .progress, .scroll-cue { display: none; }
  .story .frame { position: relative; opacity: 1; transform: none; padding: 72px var(--gutter); }
  .track { transform: none !important; flex-wrap: wrap; }
  .track-scene .stage { padding: 96px 0; }
  .pane3d { transform: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .plate [data-step] { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) { .pane3d { -webkit-backdrop-filter: none; backdrop-filter: none; background: #3A3839; } }
@media print { .bar, .rail, .index, .foot { display: none; } body { background: #fff; color: #000; } }
@media (max-width: 640px) { .story .frame h2 { font-size: 54px; } .hero .copy { bottom: 6vh; } }
.index nav a:hover, .index nav a:focus-visible { color: var(--c); }

/* Overlays never intercept clicks */
.hero .after, .hero .shade, .hero .media, .scroll-cue, .shards { pointer-events: none; }
/* Aligned row: positions are measured in script so pills sit edge to edge, never overlapping */
/* Plate: the patinated relief on its own Secret Garden field */
.plate-figure { background: var(--garden); border-radius: 14px; }
.plate .callouts line { stroke: var(--ground); }
.plate .callouts circle.dot { fill: var(--garden); stroke: var(--ground); }
.plate .callouts circle.num { fill: var(--ground); }
.plate .callouts text { fill: var(--ground); }
.plate .callouts text.n { fill: var(--garden); }
.nb { white-space: nowrap; }
.plate-figure img { height: auto; }

/* ── Story words v2: positions driven entirely by script ───────────── */
.shards span {
  left: 0 !important; top: 0 !important; opacity: 0;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) rotate(var(--tr, 0deg)) scale(var(--ts, 1));
  transition: transform .55s var(--ease), opacity .45s var(--ease);
  white-space: nowrap; will-change: transform, opacity;
}
.story .stage:hover .shards span { transition: transform .35s var(--ease), opacity .45s var(--ease); }
.brain { position: absolute; left: 0; right: 0; top: 0; height: 64%; display: grid; place-items: center; opacity: 0; transition: opacity .7s var(--ease); pointer-events: none; }
.brain img { width: min(66vw, 860px); height: auto; mix-blend-mode: screen; }
.story[data-step="2"] .brain { opacity: 1; }
.story .frame.low { align-items: end; padding-bottom: 9vh; }
.story .frame.high { align-items: start; padding-top: 17vh; }
@media (max-width: 760px) { .shards { display: block; } .shards span { font-size: 10px; padding: 7px 10px; letter-spacing: .08em; } .story .frame.high { padding-top: 14vh; } }
@media (prefers-reduced-motion: reduce) { .brain { position: relative; opacity: 1; height: auto; } }
.foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; }

/* ── v3: icon chip, transparent brain, the table on frame 04 ───────── */
.logo-chip { background: var(--chip-bg, var(--ground)); color: var(--chip-fg, var(--caviar)); padding: 10px 18px; transition: background .5s var(--ease), color .5s var(--ease); }
.logo-chip .logo-icon { display: block; width: 92px; height: auto; aspect-ratio: 730 / 300; }
@media (max-width: 640px) { .logo-chip .logo-icon { width: 76px; } }
.brain img { mix-blend-mode: normal; }
.story-table {
  position: absolute; left: 50%; bottom: 5vh; width: min(56vw, 700px); color: var(--ground);
  transform: translate(-50%, 60px); opacity: 0; transition: transform .9s var(--ease), opacity .6s var(--ease); pointer-events: none;
}
.story-table svg { display: block; width: 100%; height: auto; }
.story[data-step="3"] .story-table { transform: translate(-50%, 0); opacity: .95; }
.story .frame.high { padding-top: 15vh; }
.story .frame.high h2 { max-width: none; }
.shards span { transform-origin: 0 0; }
@media (max-width: 760px) { .story-table { width: 86vw; } }
@media (prefers-reduced-motion: reduce) { .story-table { display: none; } }

/* Hero copy always clears the header, at any window height */
.hero .stage { display: flex; flex-direction: column; justify-content: flex-end; padding: 150px 0 9vh; }
.hero .copy { position: relative; left: auto; right: auto; bottom: auto; }
.hero h1.mega { font-size: clamp(48px, min(11vw, 15.5vh), 196px); }
@media (max-height: 760px) { .hero .lead { font-size: 18px; } .hero .actions { margin-top: 24px; } .hero h1 { margin: 16px 0 18px; } }
.hero .stage { justify-content: safe flex-end; }
@media (max-height: 700px) { .hero h1.mega { font-size: clamp(44px, min(11vw, 12.5vh), 196px); } .hero .stage { padding-top: 130px; padding-bottom: 6vh; } .hero .lead { max-width: 52ch; } }
/* Hero copy anchored a steady distance under the header */
.hero .stage { justify-content: safe center; padding: 118px 0 6vh; }
@media (max-height: 700px) { .hero .stage { padding-top: 112px; } }
.hero .stage { justify-content: flex-start; padding-top: 122px; }
@media (max-height: 700px) { .hero .stage { padding-top: 116px; } }
.hero .stage { padding-top: 98px; }
@media (max-height: 700px) { .hero .stage { padding-top: 96px; } }
@media (max-width: 640px) { .hero .stage { padding-top: 92px; } }

/* ── Phones and tablets ─────────────────────────────────────────────── */
html, body { overflow-x: clip; }
.doc > *, .split > *, .offer-grid > *, .page-hero .wrap > * { min-width: 0; }
.doc article, .contact-lines, .final .contacts, .foot-cols, .index aside { overflow-wrap: anywhere; }
.name .hv-name { font-size: clamp(38px, 10vw, 200px); transform: translateX(calc((var(--p, .5) - .5) * -8%)); }
@media (max-width: 1100px) {
  .final .contacts { grid-template-columns: 1fr 1fr; }
  .final .contacts > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .final .contacts { grid-template-columns: 1fr; } }
/* Comfortable touch targets for every phone number and email */
.final .contacts a, .contact-lines a, .index aside a, .foot-cols a { display: inline-block; padding: 9px 0; min-height: 44px; line-height: 1.3; }
.foot-cols li { margin-bottom: 0; }
.foot-cols address { line-height: 1.3; }
@media (max-width: 860px) {
  .offer-list .detail { padding-left: 0; }
  .track-scene { height: auto; }
  .track-scene .stage { position: relative; height: auto; padding: 96px 0; }
  .track { transform: none !important; flex-direction: column; }
  .step { width: auto; min-height: 260px; }
}
@media (hover: none) { .card, .suite, .material .field { transform: none !important; } }
@media (max-width: 360px) { .nb { white-space: normal; } }
@media (max-width: 860px) {
  .space { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; height: auto; perspective: none; }
  .pane3d { position: relative; left: auto; top: auto; margin: 0; width: auto; aspect-ratio: 3 / 4; font-size: 10px; letter-spacing: .08em; padding: 10px; transform: none !important; }
  .pane3d.core { grid-column: 2; grid-row: 2; }
}

/* ── Phone tightening ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .hero h1.mega { font-size: clamp(56px, 17vw, 84px); line-height: .9; }
  .hero h1 { margin: 14px 0 18px; }
  .hero .lead { font-size: 17.5px; line-height: 1.45; }
  .hero .actions { margin-top: 22px; gap: 10px; }
  .actions { margin-top: 26px; }
  .btn { padding: 15px 22px; font-size: 15.5px; }
  .big { font-size: clamp(36px, 10.5vw, 52px); line-height: .95; }
  .mid { font-size: clamp(26px, 7.5vw, 34px); }
  .lead { font-size: 17.5px; }
  .band, .offer, .yours, .final { padding: 64px 0; }
  .name { padding: 72px 0; }
  .founder { padding: 96px 0; }
  .founder blockquote { font-size: clamp(30px, 9vw, 40px); }
  .offer-head { margin-bottom: 28px; gap: 14px; }
  .offer-list button { padding: 14px 0; font-size: clamp(22px, 6.6vw, 30px); grid-template-columns: 38px minmax(0, 1fr); }
  .offer-list button .tag { display: none; }
  .fine { margin-top: 26px; }
  .track-scene .stage { padding: 64px 0; }
  .track-scene .head { margin-bottom: 24px; }
  .track { gap: 12px; }
  .step { min-height: 0; padding: 24px; gap: 18px; }
  .step .n { font-size: 64px; }
  .step h3 { font-size: 26px; }
  .os .stage { padding-top: 88px; padding-bottom: 56px; gap: 28px; }
  .chips { margin-top: 28px; gap: 8px; }
  .chips span { font-size: 18px; padding: 10px 16px; }
  .defs { margin-top: 36px; }
  .defs dd { font-size: 21px; }
  .final .contacts { margin-top: 36px; gap: 8px; }
  .page-hero { min-height: 78svh; padding: 110px 0 44px; }
  .page-hero.solid { min-height: 52svh; }
  .page-hero h1 { margin: 14px 0 14px; }
  .cards { gap: 12px; }
  .card { min-height: 0; padding: 22px; gap: 16px; }
  .suites { margin-top: 32px; gap: 8px; }
  .suite { min-height: 0; padding: 18px; gap: 10px; }
  .materials { margin-top: 28px; gap: 10px; }
  .form-panel { padding: 20px; }
  .form-grid { gap: 16px; }
  .contact-lines { gap: 14px; margin-top: 8px; }
  .foot { padding: 64px 0 28px; }
  .foot-top { gap: 28px; padding-bottom: 32px; }
  .foot-cols { gap: 22px; }
  .palette { margin-top: 24px; }
  .story .frame p { font-size: 17.5px; margin-top: 18px; }
}
@media (max-width: 640px) { .card h3 { margin: 10px 0 10px; } .card { justify-content: flex-start; } }

/* ── Icons on the HEIRLOOM OS panes and suites ─────────────────────── */
.pane3d { flex-direction: column; align-items: flex-start; justify-content: space-between; }
.pane-ico { width: 38%; max-width: 44px; height: auto; color: var(--khaki); }
.pane3d.core .pane-ico { color: var(--ground); }
.table-ico { width: 64%; max-width: 92px; aspect-ratio: 730 / 300; }
.suite { gap: 14px; }
.suite-ico { width: 30px; height: 30px; color: currentColor; opacity: .92; }
.suite.k .suite-ico { color: var(--caviar); }
@media (max-width: 860px) { .pane-ico { width: 30%; max-width: 30px; } .table-ico { width: 70%; max-width: 64px; } }
/* Phones: less thumb travel through the pinned scenes */
@media (max-width: 640px) {
  .hero { height: 150vh; }
  .story { height: 540vh; }
}
@media (max-width: 640px) {
  .card .meta { display: none; }
  .card h3 { margin-top: 0; }
  .field textarea { min-height: 92px; }
  .suites { grid-template-columns: 1fr 1fr; gap: 8px; }
  .suite { padding: 14px; gap: 8px; border-radius: 14px; }
  .suite-ico { width: 24px; height: 24px; }
  .suite b { font-size: 17px; }
  .suite span { font-size: 13px; line-height: 1.35; }
}
@media (max-width: 640px) { .suite { justify-content: flex-start; } }

/* ── Phone pass 3: hero fills the screen, footer tightened ─────────── */
@media (max-width: 640px) {
  .hero .stage { justify-content: flex-start; padding-top: 92px; padding-bottom: 28px; }
  .hero h1.mega { font-size: clamp(60px, 19.5vw, 92px); line-height: .88; }
  .hero h1 { margin: 16px 0 20px; }
  .hero .lead { font-size: 18.5px; line-height: 1.5; }
  .hero .actions { flex-direction: column; align-items: stretch; margin-top: 26px; }
  .hero .actions .btn { justify-content: center; padding: 18px 22px; font-size: 16.5px; }
  .scroll-cue { display: none; }

  .foot { padding: 48px 0 24px; }
  .foot-top { gap: 22px; padding-bottom: 26px; }
  .foot-top img { width: 220px; margin-bottom: 14px; }
  .foot-top p { font-size: 15.5px; margin: 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 20px 16px; overflow-wrap: normal; }
  .foot-cols > div:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .foot-cols h2 { margin-bottom: 6px; }
  .foot-cols a { padding: 7px 0; min-height: 40px; }
  .foot-cols address a { overflow-wrap: anywhere; }
  .palette { margin-top: 18px; height: 8px; }
  .foot-base { padding-top: 16px; gap: 6px; flex-direction: column; }
}

/* ── Contact information is always bold ────────────────────────────── */
a[href^="tel:"], a[href^="mailto:"], .foot-cols address, .contact-lines address, .index aside address, .doc address { font-weight: 700; }
.final .contacts a, .contact-lines a { font-weight: 700; }

/* ── Footer headings stand out ─────────────────────────────────────── */
.foot-cols h2 { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: .14em; color: var(--khaki); margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.foot-cols h2::after { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--brown); }

/* ── Phone footer: Explore and Governance side by side, Reach Us centered at the bottom */
@media (max-width: 640px) {
  .foot-top { text-align: left; }
  .foot-top img { width: 200px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .foot-cols > div:nth-child(1) { grid-column: 1; grid-row: 1; }
  .foot-cols > div:nth-child(3) { grid-column: 2; grid-row: 1; }
  .foot-cols > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; text-align: center; padding: 22px 16px 6px; border-top: 1px solid rgba(227,218,204,.16); }
  .foot-cols > div:nth-child(2) h2 { align-items: center; }
  .foot-cols > div:nth-child(2) address { line-height: 1.25; font-size: 16.5px; }
  .foot-cols > div:nth-child(2) address a { padding: 6px 0; min-height: 36px; }
  .foot-cols ul li a { padding: 6px 0; min-height: 36px; }
  .foot-base { align-items: center; text-align: center; }
}

/* ── Tablets: tighter, fuller ───────────────────────────────────────── */
@media (min-width: 641px) and (max-width: 1100px) {
  .band, .offer, .yours, .final { padding: 84px 0; }
  .name { padding: 96px 0; }
  .founder { padding: 130px 0; }
  .lead { max-width: 44ch; }
  .page-hero { min-height: 66vh; padding: 120px 0 56px; }
  .page-hero.solid { min-height: 48vh; }
  .card .meta { display: none; }
  .card { min-height: 0; justify-content: flex-start; padding: 26px; }
  .card h3 { margin: 0 0 12px; }
  .suite { min-height: 0; justify-content: flex-start; gap: 10px; }
  .offer-head { margin-bottom: 40px; }
  .chips { margin-top: 32px; }
  .defs { margin-top: 44px; }
  .final .contacts { margin-top: 44px; }
  .foot { padding: 72px 0 30px; }
  .foot-top { gap: 32px; padding-bottom: 40px; }
}
@media (min-width: 641px) and (max-width: 1100px) and (orientation: portrait) {
  .hero .stage { justify-content: center; padding-top: 110px; padding-bottom: 60px; }
  .hero h1.mega { font-size: clamp(90px, 15.5vw, 170px); }
  .hero .lead { font-size: 23px; max-width: 30ch; }
  .hero .actions .btn { padding: 20px 30px; font-size: 17px; }
  .scroll-cue { display: none; }
  .story { height: 620vh; }
}
@media (min-width: 641px) and (max-width: 860px) {
  .track { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .step { min-height: 0; padding: 28px; gap: 22px; }
  .step .n { font-size: 72px; }
  .step h3 { font-size: 28px; }
  .pane3d { aspect-ratio: 4 / 3; }
  .space { gap: 12px; }
  .os .stage { padding-top: 96px; padding-bottom: 64px; }
}

/* ── Phone footer v3: one centered axis, equal columns, even rhythm ── */
@media (max-width: 640px) {
  .foot { padding: 44px 0 26px; text-align: center; }
  .foot-top { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-bottom: 0; border-bottom: 0; }
  .foot-top > div:first-child { display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .foot-top img { width: 240px; margin: 0; }
  .foot-top p { max-width: 30ch; margin: 0 auto; font-size: 15.5px; line-height: 1.5; }
  .foot-cols { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-top: 28px; border-top: 1px solid rgba(227,218,204,.16); }
  .foot-cols > div { text-align: center; padding: 0 8px 28px; }
  .foot-cols > div:nth-child(1) { grid-column: 1; grid-row: 1; border-right: 1px solid rgba(227,218,204,.16); }
  .foot-cols > div:nth-child(3) { grid-column: 2; grid-row: 1; }
  .foot-cols > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; padding: 28px 8px 30px; border-top: 1px solid rgba(227,218,204,.16); border-bottom: 1px solid rgba(227,218,204,.16); }
  .foot-cols h2 { align-items: center; margin-bottom: 12px; }
  .foot-cols ul { display: flex; flex-direction: column; align-items: center; }
  .foot-cols ul li a, .foot-cols address a { padding: 7px 0; min-height: 38px; }
  .foot-cols address { font-size: 16.5px; line-height: 1.3; display: flex; flex-direction: column; align-items: center; }
  .palette { margin: 26px 0 0; }
  .foot-base { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 18px; }
}
.foot-cols address.reach { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.foot-cols address.reach a { display: block; padding: 6px 0; min-height: 0; }
.foot-cols address.reach span { display: block; padding-top: 6px; line-height: 1.4; }
@media (max-width: 640px) {
  .foot-cols address.reach { align-items: center; gap: 4px; }
  .foot-cols address.reach a { padding: 8px 0; }
  .foot-cols address.reach span { padding-top: 8px; }
}

/* ── Tablet footer: same centered axis as phones ───────────────────── */
@media (min-width: 641px) and (max-width: 1279px) {
  .foot { padding: 64px 0 30px; text-align: center; }
  .foot-top { display: flex; flex-direction: column; align-items: center; gap: 32px; padding-bottom: 0; border-bottom: 0; }
  .foot-top > div:first-child { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .foot-top img { width: 300px; margin: 0; }
  .foot-top p { max-width: 40ch; margin: 0 auto; font-size: 17px; line-height: 1.5; }
  .foot-cols { width: 100%; max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-top: 32px; border-top: 1px solid rgba(227,218,204,.16); }
  .foot-cols > div { text-align: center; padding: 0 12px 32px; }
  .foot-cols > div:nth-child(1) { grid-column: 1; grid-row: 1; border-right: 1px solid rgba(227,218,204,.16); }
  .foot-cols > div:nth-child(3) { grid-column: 2; grid-row: 1; }
  .foot-cols > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; padding: 32px 12px 34px; border-top: 1px solid rgba(227,218,204,.16); border-bottom: 1px solid rgba(227,218,204,.16); }
  .foot-cols h2 { align-items: center; margin-bottom: 14px; }
  .foot-cols ul { display: flex; flex-direction: column; align-items: center; }
  .foot-cols ul li a { padding: 8px 0; min-height: 40px; }
  .foot-cols address.reach { align-items: center; gap: 4px; font-size: 18px; }
  .foot-cols address.reach a { padding: 8px 0; }
  .foot-cols address.reach span { padding-top: 8px; }
  .palette { margin: 30px 0 0; }
  .foot-base { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 20px; }
}

@media (min-width: 1280px) {
  .foot-top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .foot-cols address.reach a { white-space: nowrap; overflow-wrap: normal; }
}

/* ── Who we serve, what we transfer, pillars ───────────────────────── */
.serve { background: var(--ground); color: var(--caviar); padding: clamp(96px, 12vw, 170px) 0; }
.serve-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; perspective: 1000px; }
.serve-card { border-radius: 22px; padding: 28px; background: var(--white); border: 1px solid rgba(48,46,47,.1); transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .3s var(--ease); }
.serve-card:nth-child(6n+1) .serve-ico { color: var(--sommelier); }
.serve-card:nth-child(6n+2) .serve-ico { color: var(--garden); }
.serve-card:nth-child(6n+3) .serve-ico { color: var(--brown); }
.serve-card:nth-child(6n+4) .serve-ico { color: var(--gate); }
.serve-card:nth-child(6n+5) .serve-ico { color: var(--caviar); }
.serve-card:nth-child(6n+6) .serve-ico { color: var(--sommelier); }
.serve-ico { width: 36px; height: 36px; }
.serve-card h3 { font-family: var(--display); font-size: clamp(24px, 2vw, 32px); letter-spacing: -.025em; margin: 18px 0 10px; }
.serve-card p { margin: 0; font-size: 17px; }
.transfer { background: var(--caviar); color: var(--ground); padding: clamp(96px, 12vw, 170px) 0; }
.transfer-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.transfer-list li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(227,218,204,.22); font-family: var(--display); font-weight: 650; font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -.02em; }
.transfer-list li:nth-child(1) { background: var(--sommelier); } .transfer-list li:nth-child(2) { background: var(--garden); }
.transfer-list li:nth-child(3) { background: var(--gate); } .transfer-list li:nth-child(4) { background: var(--brown); color: var(--white); }
.transfer-list li:nth-child(5) { background: var(--khaki); color: var(--caviar); } .transfer-list li:nth-child(6) { background: var(--ground); color: var(--caviar); }
.tr-ico { width: 28px; height: 28px; flex: none; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.pillars.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillar { border-top: 2px solid rgba(227,218,204,.5); padding-top: 20px; }
.pillar h3 { font-family: var(--display); font-size: clamp(22px, 1.9vw, 30px); letter-spacing: -.02em; margin: 10px 0 10px; }
.pillar p { margin: 0; font-size: 16.5px; opacity: .92; }
.band.gate .chips span:nth-child(3n+1) { background: var(--caviar); }
@media (max-width: 1100px) { .serve-grid { grid-template-columns: 1fr 1fr; } .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .serve, .transfer { padding: 64px 0; }
  .serve-grid { grid-template-columns: 1fr; gap: 10px; }
  .serve-card { padding: 20px; display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; align-items: start; }
  .serve-card .serve-ico { grid-row: 1 / span 2; width: 30px; height: 30px; margin-top: 2px; }
  .serve-card h3 { margin: 0; font-size: 22px; }
  .serve-card p { font-size: 15.5px; }
  .transfer-list { gap: 8px; }
  .transfer-list li { padding: 14px; font-size: 18px; gap: 10px; border-radius: 14px; }
  .tr-ico { width: 22px; height: 22px; }
  .pillars, .pillars.three { grid-template-columns: 1fr; gap: 6px; margin-top: 28px; }
  .pillar { padding: 16px 0 10px; }
  .pillar h3 { font-size: 22px; }
}

/* ── Desktop: contacts never break, sections tighter ───────────────── */
@media (min-width: 1101px) {
  .final .contacts { grid-template-columns: repeat(3, max-content); justify-content: space-between; column-gap: 40px; overflow-wrap: normal; }
  .final .contacts a { white-space: nowrap; font-size: clamp(22px, 1.8vw, 30px); }
  .contact-lines a { white-space: nowrap; }
  .band, .offer, .yours, .final, .serve, .transfer { padding: clamp(80px, 8vw, 128px) 0; }
  .name { padding: clamp(90px, 9vw, 140px) 0; }
  .founder { padding: clamp(120px, 12vw, 190px) 0; }
  .offer-head, .section-head { margin-bottom: clamp(40px, 4vw, 64px); }
  .final .contacts { margin-top: 48px; }
  .page-hero { min-height: 80vh; }
  .page-hero.solid { min-height: 58vh; }
}

/* SCROLL cue: present on every screen size */
@media (max-width: 1100px) {
  .scroll-cue { display: flex !important; }
}
@media (max-width: 640px) {
  .hero .stage { padding-bottom: 76px; }
  .scroll-cue { left: 50%; right: auto; bottom: 18px; transform: translateX(-50%); flex-direction: column; gap: 6px; font-size: 11px; }
  .scroll-cue i { height: 26px; }
}
@media (min-width: 641px) and (max-width: 1100px) and (orientation: portrait) {
  .hero .stage { padding-bottom: 96px; }
  .scroll-cue { left: 50%; right: auto; bottom: 26px; transform: translateX(-50%); flex-direction: column; gap: 8px; }
}
@media (max-width: 640px) {
  .hero .stage { padding-bottom: 24px; }
  .scroll-cue { position: relative; left: auto; right: auto; bottom: auto; transform: none; align-self: center; margin-top: 26px; }
}
@media (max-width: 640px) {
  .hero .stage { padding-top: 84px; padding-bottom: 14px; }
  .hero h1.mega { font-size: clamp(54px, 16.5vw, 84px); }
  .hero h1 { margin: 12px 0 14px; }
  .hero .lead { font-size: 16.5px; line-height: 1.45; }
  .hero .actions { margin-top: 18px; gap: 8px; }
  .hero .actions .btn { padding: 14px 20px; font-size: 15.5px; }
  .scroll-cue { margin-top: 16px; }
}
@media (max-width: 640px) and (max-height: 600px) {
  .hero h1.mega { font-size: clamp(46px, 14vw, 70px); }
  .hero .lead { font-size: 15.5px; }
}

/* ── Phone hero v4: fills any screen height; actions and SCROLL anchored low ── */
@media (max-width: 640px) {
  .hero .stage { display: flex; flex-direction: column; justify-content: flex-start; padding: 84px 0 calc(14px + env(safe-area-inset-bottom)); }
  .hero .copy { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .hero .copy .wrap { flex: 1 1 auto; display: flex; flex-direction: column; }
  .hero h1.mega { font-size: clamp(52px, min(18vw, 10.5svh), 96px); line-height: .9; }
  .hero h1 { margin: 2.2svh 0 2.4svh; }
  .hero .lead { font-size: clamp(16px, 2.45svh, 20px); line-height: 1.48; }
  .hero .actions { margin-top: auto; padding-top: 18px; gap: 10px; }
  .hero .actions .btn { padding: clamp(14px, 2.1svh, 19px) 22px; font-size: 16px; }
  .scroll-cue { position: relative; left: auto; right: auto; bottom: auto; transform: none; align-self: center; margin-top: 18px; flex-direction: row; gap: 10px; }
  .scroll-cue i { width: 26px; height: 1px; transform-origin: left; animation: cueh 2.2s var(--ease) infinite; }
}
@keyframes cueh { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@media (max-width: 640px) {
  .hero .copy .wrap > h1 { margin-top: auto; }
  .hero h1.mega { font-size: clamp(52px, min(19vw, 10.5svh), 96px); }
  .hero .lead { font-size: clamp(16px, 2.6svh, 21px); }
  .hero .actions { padding-top: 22px; }
}
@media (max-width: 640px) and (min-height: 700px) {
  .hero .copy .wrap > h1 { margin-bottom: 3svh; }
  .hero .actions { gap: 12px; }
}
