/* =========================================================================
   The Premium Nexus: home.css
   The home chapters, ported 1:1 from concept G "Portoro": the hero (emblem,
   seal rings, gold dust, the light bar), About, the Houses unveiling, the
   Approach medallions, the Arcade and the Loupe on the seven-stone bench.
   Inner pages that reuse a chapter (the Arcade on /projects, the Loupe on
   /gemstones, the Houses on /businesses) load this file too.
   ========================================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; min-height: 100svh; display: grid;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto; overflow: clip; background: var(--black);
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--rv) * 100% - 22%), rgb(0 0 0 / .03) calc(var(--rv) * 100% + 1%));
  mask-image: linear-gradient(180deg, #000 calc(var(--rv) * 100% - 22%), rgb(0 0 0 / .03) calc(var(--rv) * 100% + 1%));
}
/* Brand-led hero: Portoro marble with the client's emblem set as a monument, lit by the gold light bar */
.hero__media.is-revealed { -webkit-mask-image: none; mask-image: none; }
.hero__marble {
  position: absolute; inset: -4%; will-change: transform; background: var(--marble) var(--marble-img) 58% 46% / cover no-repeat;
  transform: scale(1.06); transform-origin: 60% 45%;
}
.hero__marble::after {
  /* a pool of warm light on the stone behind the emblem */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(34% 46% at var(--ex, 71%) var(--ey, 42%), rgb(214 180 106 / .16), rgb(214 180 106 / .05) 45%, transparent 72%);
}
.hero__stage {
  --eh: min(30svh, 22vw, 310px); /* desktop monogram: half its first size (owner request) */
  position: absolute; left: var(--ex, 71%); top: 43%; width: calc(var(--eh) * 1.006); height: var(--eh);
  translate: -50% calc(-50% + var(--lift, 0px)); /* scroll parallax drives --lift, never the transform */
}
.hero__halo {
  position: absolute; inset: -22%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(241 221 166 / .2), rgb(214 180 106 / .08) 50%, rgb(214 180 106 / .02) 78%, transparent 100%);
  will-change: transform, opacity;
}
/* the emblem and its light layers; the per-frame float/tilt variables are written here (not on the
   stage) so the ~130 ring ticks never restyle on every frame */
.hero__mark { position: absolute; inset: 0; display: block; }
.hero__emblem {
  position: relative; display: block; width: 100%; height: 100%; object-fit: contain; will-change: transform;
}
.hero__shadow {
  /* a soft cast shadow on the stone (static; replaces costly drop-shadow filters on a moving element) */
  position: absolute; left: 6%; right: 6%; top: 12%; bottom: -4%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(0 0 0 / .55), rgb(0 0 0 / .28) 55%, transparent 100%);
}
/* the light bar passing over the metal: masked to the emblem's own alpha, screen-blended */
.hero__emblem-sheen {
  --sx: -60%;
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; will-change: transform;
  -webkit-mask: url("/assets/img/brand/tpn2-monogram-mask.3d3c1fdb88.png") center / contain no-repeat;
  mask: url("/assets/img/brand/tpn2-monogram-mask.3d3c1fdb88.png") center / contain no-repeat;
  background: linear-gradient(105deg, transparent calc(var(--sx) - 16%), rgb(255 246 222 / .08) calc(var(--sx) - 8%), rgb(255 248 230 / .75) var(--sx), rgb(255 246 222 / .08) calc(var(--sx) + 8%), transparent calc(var(--sx) + 16%));
}
/* ---- Hero ambience (subtle, paused off-screen, off for reduced motion) ---- */
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 2s var(--ease-out); }
.hero__dust.is-on { opacity: 1; }
/* the seal: two hairline gold rings turning very slowly in opposite directions */
.hero__ring { position: absolute; inset: -20%; width: 140%; height: 140%; max-width: none; overflow: visible; pointer-events: none; opacity: .6; transform-origin: 50% 50%; will-change: transform; }
.ring circle { fill: none; stroke: rgb(214 180 106 / .34); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ring line { stroke: rgb(214 180 106 / .42); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ring line.is-major { stroke: rgb(241 221 166 / .6); }
.ring polygon { fill: var(--gold); opacity: .75; }
.ring--a { animation: ring-turn 180s linear infinite; }
.ring--b { animation: ring-turn 240s linear infinite reverse; }
@keyframes ring-turn { to { transform: rotate(360deg); } }
/* the emblem floats a few pixels and leans toward the cursor; its light layers move with it */
.hero__emblem, .hero__emblem-sheen {
  transform: translate3d(0, var(--float, 0px), 0) perspective(1100px) rotateX(var(--tiltx, 0deg)) rotateY(var(--tilty, 0deg));
}
.hero__emblem-glint {
  --gx: -60%;
  background: linear-gradient(105deg, transparent calc(var(--gx) - 12%), rgb(255 248 230 / .06) calc(var(--gx) - 6%), rgb(255 248 230 / .55) var(--gx), rgb(255 248 230 / .06) calc(var(--gx) + 6%), transparent calc(var(--gx) + 12%));
}
.hero__halo { animation: halo-breathe 6.5s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes halo-breathe { from { opacity: .72; transform: scale(.95); } to { opacity: 1; transform: scale(1.05); } }
.hero__marble { animation: marble-drift 46s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes marble-drift { to { translate: -1.4% -1%; } }
.hero.is-idle .ring, .hero.is-idle .hero__halo, .hero.is-idle .hero__marble { animation-play-state: paused; }

/* reflection on the polished stone */
.hero__emblem-reflect {
  position: absolute; left: 0; top: 100%; width: 100%; height: 100%; object-fit: contain; pointer-events: none;
  /* mirrored in place below the stage (origin centre), its top edge meeting the mark's base */
  transform: scaleY(-1) translate3d(0, calc(var(--float, 0px) * -1), 0) perspective(1100px) rotateX(calc(var(--tiltx, 0deg) * -1)) rotateY(var(--tilty, 0deg));
  transform-origin: 50% 50%; opacity: .16; will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, transparent 62%, #000 100%); mask-image: linear-gradient(180deg, transparent 62%, #000 100%);
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(7 7 7 / .55) 0%, rgb(7 7 7 / 0) 18%, rgb(7 7 7 / 0) 52%, rgb(7 7 7 / .7) 78%, rgb(7 7 7 / .97) 100%),
    linear-gradient(90deg, rgb(7 7 7 / .72) 0%, rgb(7 7 7 / .2) 40%, rgb(7 7 7 / 0) 58%);
}
.hero__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; opacity: 0; pointer-events: none; transform-origin: 50% 50%; }
.hero__bar span {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgb(241 221 166 / .85) 18%, #fff7e2 50%, rgb(241 221 166 / .85) 82%, transparent 100%);
}
.hero__bar::before {
  content: ""; position: absolute; left: 0; right: 0; top: -80px; height: 162px;
  background: radial-gradient(60% 50% at 50% 50%, rgb(241 221 166 / .2), transparent 70%);
}
.hero__content {
  grid-row: 2; width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter) clamp(18px, 2.6vw, 34px); display: grid; gap: 22px; justify-items: start;
}
.hero__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.6rem, 4.9vw, 5.1rem); line-height: 1.02; letter-spacing: -0.012em;
  color: var(--white); max-width: 14ch; text-wrap: balance;
}
.hero__intro { max-width: 46ch; font-size: clamp(1.05rem, 1.25vw, 1.2rem); color: var(--text); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.band { position: relative; margin: 0; min-width: 0; max-width: 100%; overflow: clip; padding-inline: calc(var(--gutter) * .5); white-space: nowrap; text-align: center; line-height: .8; }
.band__text {
  display: inline-block; font-family: var(--font-band); font-stretch: 150%; font-weight: 820;
  font-size: 9.4vw; line-height: .86; letter-spacing: -0.012em; text-transform: uppercase; color: var(--gold);
}
.band__text .ch { will-change: transform; }
.band--hero { grid-row: 3; padding-bottom: clamp(10px, 1.4vw, 22px); padding-top: .1em; }
/* The light passing over solid gold: colour-dodge brightens the gold glyphs and leaves the black ground black. */
.band__sheen {
  position: absolute; top: 0; bottom: 0; left: 0; width: 26%; pointer-events: none; mix-blend-mode: color-dodge;
  background: linear-gradient(100deg, transparent 0%, rgb(255 246 222 / .1) 30%, rgb(255 246 222 / .85) 50%, rgb(255 246 222 / .1) 70%, transparent 100%);
  transform: translateX(-120%); opacity: 0;
}

/* Intro states (first visit of a session, home only) */
html.intro .nav, html.intro .progress, html.intro .cg { opacity: 0; }
html.intro .hero__media { --rv: 0; }
html.intro .hero__content, html.intro .band--hero .band__text { opacity: 0; }

/* ---------- About (Portoro band) ---------- */
.about { padding-block: var(--chapter); background-position: 30% 40%; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: end; }
.about__body { display: grid; gap: 1.1em; }
.about__body p { max-width: 56ch; }
.about__body p + p { color: var(--muted); }
.slit { position: relative; margin: clamp(72px, 9vw, 150px) 0; height: clamp(150px, 22vw, 330px); overflow: hidden; }
.slit img { position: absolute; left: 0; top: -22%; width: 100%; height: 144%; max-width: none; object-fit: cover; filter: saturate(.9) brightness(.9) sepia(.12); }
.slit::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--marble) 0%, rgb(13 12 11 / 0) 18%, rgb(13 12 11 / 0) 82%, var(--marble) 100%);
}
.slit__frame { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 1; pointer-events: none; border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); }
.pillar { position: relative; padding-top: 34px; }
.pillar__star { fill: var(--gold); margin-bottom: 18px; }
.pillar__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.1; color: var(--white); margin-bottom: 8px; }
.pillar p { color: var(--muted); }
.figures {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 72px);
  margin-top: clamp(64px, 8vw, 128px); padding-top: 34px; border-top: 1px solid var(--gold-line);
}
.figure { display: flex; flex-direction: column-reverse; gap: 10px; }
.figure dd {
  font-family: var(--font-band); font-stretch: 150%; font-weight: 820; font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: .86; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.figure dt { font-size: 11.5px; letter-spacing: .2em; color: var(--muted); }

/* ---------- The Houses (static base = mobile / reduced motion) ---------- */
.houses { position: relative; padding-top: var(--chapter); }
.houses__head { margin-bottom: clamp(56px, 7vw, 110px); }
.houses__stage { position: relative; background: var(--black); }
.house { position: relative; min-height: min(100svh, 1000px); container-type: inline-size; overflow: hidden; background: var(--black); }
.house__media {
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--xn) * 100% - 18%), rgb(0 0 0 / .16) calc(var(--xn) * 100% + 2%));
  mask-image: linear-gradient(90deg, #000 calc(var(--xn) * 100% - 18%), rgb(0 0 0 / .16) calc(var(--xn) * 100% + 2%));
}
.house__media picture, .house__media img { width: 100%; height: 100%; }
.house__media img { object-fit: cover; filter: saturate(.92) sepia(.08); }
.house--bright .house__media img { filter: brightness(.56) contrast(1.08) saturate(.66) sepia(.2); }
.house__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(7 7 7 / .9) 0%, rgb(7 7 7 / .6) 32%, rgb(7 7 7 / .12) 52%, rgb(7 7 7 / .5) 74%, rgb(7 7 7 / .86) 100%),
    linear-gradient(0deg, rgb(7 7 7 / .92) 0%, rgb(7 7 7 / 0) 46%),
    linear-gradient(180deg, rgb(7 7 7 / .62) 0%, rgb(7 7 7 / 0) 22%);
}
.house__inner {
  position: relative; z-index: 3; min-height: inherit; max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(28px, 4vw, 72px);
  padding: clamp(110px, 14vh, 150px) var(--gutter) clamp(40px, 7vh, 76px);
}
.house__copy { max-width: 640px; }
.house__acr {
  font-family: var(--font-band); font-stretch: 150%; font-weight: 840; font-size: clamp(3.4rem, 8.6cqw, 8.4rem);
  line-height: .8; letter-spacing: -0.02em; color: var(--gold); margin-bottom: 22px;
}
.house__name { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.9rem, 2.9vw, 3rem); line-height: 1.04; color: var(--white); }
.house__name a { text-decoration: none; }
.house__name a:hover { color: var(--gold-hi); }
.house__legal { margin-top: 8px; font-size: 14px; color: var(--muted); }
.house__scope { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 20px 0 0; padding: 0; list-style: none; }
.house__scope li { font-family: var(--font-band); font-stretch: 125%; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.house__scope li:not(:last-child)::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 12px; vertical-align: middle; background: var(--gold); transform: rotate(45deg) translateY(-1px); }
.house__summary { margin-top: 18px; max-width: 52ch; color: var(--text); line-height: 1.6; }
.house__links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.house__specs { display: grid; gap: 14px; justify-items: end; text-align: right; min-width: min(360px, 32vw); }
.house__source { font-size: 11.5px; letter-spacing: .2em; color: var(--gold); }
.house__specs dl { display: grid; gap: 18px; width: 100%; }
.spec { display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 6px; padding-top: 14px; border-top: 1px solid var(--gold-line); }
.spec__value {
  font-family: var(--font-band); font-stretch: 135%; font-weight: 720; font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: .95; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap;
}
.spec__label { font-size: 11px; letter-spacing: .16em; color: var(--muted); }

/* The next house: an empty gold arch on Portoro */
.house--next { min-height: min(92svh, 920px); background: var(--marble) var(--marble-img) 70% 30% / cover no-repeat; }
.next__art { position: relative; z-index: 3; display: flex; justify-content: center; padding: clamp(120px, 15vh, 160px) var(--gutter) 0; }
.next__figure { display: grid; justify-items: center; gap: 22px; }
.arch--next { height: min(52svh, 520px); aspect-ratio: 5 / 7; }
.arch--next .arch__lines path { stroke: var(--gold); }
.arch--next .arch__lines path + path { stroke: var(--gold-deep); }
.arch__img--empty { background: radial-gradient(70% 60% at 50% 70%, #17140f, #0b0a08 70%); }
.arch__img--empty .jali--head { opacity: .35; }
.next__glow {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 72%, rgb(241 221 166 / .5), rgb(214 180 106 / .16) 45%, transparent 75%);
}
.next__caption { font-size: 11.5px; letter-spacing: .22em; color: var(--gold); text-align: center; max-width: 28ch; line-height: 1.6; }
.house__inner--next { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-top: 28px; align-items: start; }
.house__inner--next .house__copy { display: grid; justify-items: center; gap: 18px; }
.house__inner--next .house__summary { margin-top: 0; }
.house__inner--next .btn { margin-top: 6px; }

.ladder { display: none; }

/* Desktop pinned stage (class added by JS only when the choreography runs) */
.houses.is-pinned .houses__stage { height: 100svh; overflow: clip; }
.houses.is-pinned .house { position: absolute; inset: 0; min-height: 0; }
.houses.is-pinned .house__inner { height: 100%; }
.houses.is-pinned .house__specs { margin-bottom: clamp(96px, 14vh, 130px); }
.houses.is-pinned .house--next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.houses.is-pinned .next__art { padding: 0 0 0 var(--gutter); align-items: center; }
.houses.is-pinned .arch--next { height: min(64svh, 600px); }
.houses.is-pinned .house__inner--next { height: 100%; justify-items: start; text-align: left; align-content: center; padding: 0 var(--gutter); max-width: 620px; margin: 0; }
.houses.is-pinned .house__inner--next .house__copy { justify-items: start; }
.houses.is-pinned .house__inner--next .house__name { font-size: clamp(2.6rem, 4.4vw, 4.6rem); }
.houses.is-pinned .ladder {
  display: flex; position: absolute; z-index: 6; right: var(--gutter); top: clamp(100px, 13vh, 130px); gap: 6px;
}
.ladder a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 11.5px; letter-spacing: .18em; color: var(--muted); text-decoration: none;
  transition: color .4s var(--ease-out);
}
.ladder a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-spring);
}
.ladder a:hover, .ladder a.is-active { color: var(--gold-hi); }
.ladder a.is-active::after { transform: scaleX(1); }

/* ---------- Approach (gold medallions on Portoro) ---------- */
.approach { padding-block: var(--chapter); background-position: 60% 70%; }
.steps-wrap { position: relative; }
.steps__channel {
  position: absolute; left: 0; right: 0; top: 84px; height: 5px; margin-top: -2.5px;
  border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line);
  transform-origin: left center;
}
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--gutter); }
.step { display: grid; gap: 12px; align-content: start; }
.medallion { width: 168px; height: 168px; overflow: visible; margin-bottom: 14px; }
.m-line { fill: var(--marble); stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.m-fill { fill: url(#g-gold); stroke: rgb(0 0 0 / .35); stroke-width: .8; }
.m-core { fill: var(--black); stroke: var(--gold); stroke-width: .9; }
.m-num { font-family: var(--font-serif); font-size: 19px; fill: var(--gold); }
.step__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.05; color: var(--white); }
.step__text { color: var(--text); }
.step__detail { color: var(--muted); font-size: .96rem; line-height: 1.6; max-width: 34ch; }

/* ---------- The Arcade (static base = mobile swipe row) ---------- */
.arcade { position: relative; padding-block: var(--chapter); overflow: hidden; background: var(--black); }
.arcade__pin { position: relative; }
.arcade__lattice {
  position: absolute; top: 0; bottom: 0; left: 0; width: 300%;
  background: url("/assets/img/lattice.2385d9d5e9.svg") 0 0 / 120px 120px repeat;
  opacity: .16; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.arcade__track { position: relative; }
.arcade__intro {
  display: grid; gap: 20px; align-content: center;
  max-width: var(--maxw); margin: 0 auto clamp(36px, 5vw, 56px); padding-inline: var(--gutter);
}
.arcade__title { max-width: 12ch; }
.arcade__hint { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.arcade__hint i { font-size: 1.4rem; color: var(--gold); }
.arcade__row {
  display: flex; align-items: flex-start; gap: clamp(18px, 3vw, 40px);
  padding-inline: var(--gutter); padding-bottom: 24px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent;
}
.arcade__row::after { content: ""; flex: 0 0 1px; }
.abay { flex: 0 0 min(82vw, 380px); display: grid; gap: 24px; align-content: start; scroll-snap-align: start; }
.arch--bay { width: 100%; aspect-ratio: 4 / 5; }
.arch--bay .arch__img img { position: absolute; top: 0; left: -8%; width: 116%; height: 100%; max-width: none; object-fit: cover; object-position: var(--op, 50% 50%); filter: saturate(.92) sepia(.08); }
.abay--clinical .arch__img img { filter: brightness(.66) contrast(1.06) saturate(.66) sepia(.22); }
.light--arch {
  z-index: 2; width: 78cqw; top: -10%; bottom: -10%;
  background: linear-gradient(90deg, transparent 0%, rgb(214 180 106 / .05) 22%, rgb(241 221 166 / .16) 40%, rgb(255 246 222 / .42) 50%, rgb(241 221 166 / .16) 60%, rgb(214 180 106 / .05) 78%, transparent 100%);
  transform: translate3d(calc(var(--xn) * 100cqw - 50%), 0, 0) skewX(-12deg);
}
.abay__text { display: grid; gap: 8px; align-content: start; }
.abay__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 11.5px; letter-spacing: .16em; color: var(--muted); }
.abay__co { color: var(--gold); font-weight: 700; }
.abay__status { color: var(--gold-hi); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.abay__status--soon { color: var(--muted); border-bottom-style: dashed; border-bottom-color: var(--gold-deep); }
.abay__name { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.6rem, 1.25rem + .8vw, 2.05rem); line-height: 1.08; color: var(--white); }
.abay__name a { text-decoration: none; }
.abay__name a:hover { color: var(--gold-hi); text-decoration: underline; text-decoration-color: var(--gold-line); }
.abay__sub { color: var(--muted); font-size: .94rem; }
.abay__desc { color: var(--text); font-size: .96rem; line-height: 1.6; max-width: 42ch; }
.abay__specs { display: grid; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--gold-line); }
.abay__specs dt { font-family: var(--font-band); font-stretch: 125%; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.abay__specs dd { font-size: .95rem; color: var(--white); font-variant-numeric: tabular-nums lining-nums; }
.abay--cta { flex-basis: min(82vw, 400px); align-self: stretch; }
.abay__cta-inner {
  position: relative; height: 100%; min-height: 420px; display: grid; gap: 20px; align-content: center; justify-items: start;
  padding: clamp(32px, 3vw, 48px); background-position: 20% 60%;
}
.abay__cta-inner::before {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 6px transparent, inset 0 0 0 7px var(--gold-deep);
}
.abay__cta-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.7rem, 2.2vw, 2.3rem); line-height: 1.08; color: var(--white); }
.abay__cta-inner p { color: var(--text); }
.arcade__meter { display: none; }

/* Panning state (desktop, added by home.js) */
.arcade.is-panning { padding: 0; }
.arcade.is-panning .arcade__pin { height: 100svh; overflow: hidden; padding-top: 70px; }
.arcade.is-panning .arcade__track {
  display: flex; align-items: center; gap: clamp(40px, 5vw, 88px);
  height: 100%; width: max-content;
  padding-left: var(--gutter); padding-right: max(var(--gutter), 8vw);
}
.arcade.is-panning .arcade__intro { flex: 0 0 min(440px, 32vw); max-width: none; margin: 0; padding: 0; }
.arcade.is-panning .arcade__row { align-items: center; gap: clamp(40px, 5vw, 88px); padding: 0; overflow: visible; scroll-snap-type: none; }
.arcade.is-panning .arcade__row::after { display: none; }
.arcade.is-panning .abay { flex: 0 0 auto; grid-template-columns: auto minmax(270px, 310px); align-items: end; gap: clamp(24px, 2.6vw, 40px); }
.arcade.is-panning .arch--bay { width: auto; height: min(calc(100svh - 190px), 640px); aspect-ratio: 5 / 7; }
.arcade.is-panning .abay--cta { flex: 0 0 min(420px, 32vw); align-self: center; height: min(calc(100svh - 190px), 640px); }
.arcade.is-panning .arcade__meter {
  display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; height: 5px;
  border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line);
}
.arcade__meter-fill { position: absolute; inset: 1px 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold) 80%, var(--gold-hi)); transform-origin: 0 50%; transform: scaleX(var(--p)); }

/* ---------- The Loupe (gemstones) ---------- */
.loupe { position: relative; padding-block: var(--chapter) clamp(48px, 7vh, 96px); background: radial-gradient(60% 50% at 30% 50%, rgb(214 180 106 / .05), transparent 70%), var(--black); }
.loupe__head { margin-bottom: clamp(40px, 5vw, 72px); }
.loupe__body {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-areas: "stage spec" "stage foot" "tray tray";
  grid-template-rows: 1fr auto auto;
}
.loupe__panel { display: contents; }
.loupe__stage {
  grid-area: stage; position: relative; overflow: hidden; height: clamp(540px, 76vh, 820px); background: #050505;
  --rx: 50%; --ry: 50%; --rr: 150px;
}
.loupe__camera { position: absolute; inset: 0; }
.loupe__camera picture { display: contents; }
.loupe__camera img {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  transform-origin: 0 0; filter: blur(var(--blur)) saturate(1.04) contrast(1.05); will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 95%, transparent 100%), linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 95%, transparent 100%), linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-composite: intersect;
}
.loupe__stage.is-camera .loupe__camera img { object-fit: fill; }
.loupe__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at var(--rx) var(--ry), transparent calc(var(--rr) - 1px), rgb(7 7 7 / .58) calc(var(--rr) + 40px)),
    linear-gradient(90deg, rgb(7 7 7 / 0) 72%, rgb(7 7 7 / .9) 100%),
    linear-gradient(0deg, rgb(7 7 7 / .55) 0%, rgb(7 7 7 / 0) 24%);
}
.loupe__reticle {
  position: absolute; left: var(--rx); top: var(--ry); width: calc(var(--rr) * 2.2); aspect-ratio: 1; transform: translate(-50%, -50%);
  pointer-events: none;
}
.reticle { width: 100%; height: 100%; overflow: visible; }
.reticle__ring { fill: none; stroke: var(--gold); stroke-width: 1.1; }
.reticle__ring--inner { stroke: var(--gold-deep); stroke-width: .7; }
.reticle__ticks line { stroke: var(--gold); stroke-width: .7; }
.reticle__ticks line.is-major { stroke-width: 1.1; }
.reticle__notch { stroke: var(--gold-hi); stroke-width: 1.4; fill: none; }
.reticle__cross { stroke: rgb(241 221 166 / .7); stroke-width: .8; fill: none; }
.reticle__sweep {
  position: absolute; inset: 5%; border-radius: 50%; overflow: hidden; pointer-events: none;
}
.reticle__sweep::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%;
  background: linear-gradient(90deg, transparent, rgb(255 246 222 / .5) 50%, transparent);
  mix-blend-mode: screen; transform: translateX(-130%) skewX(-14deg);
}
.loupe__stage.is-sweeping .reticle__sweep::before { animation: reticle-pass 1.1s var(--ease-in-out) both; }
@keyframes reticle-pass { to { transform: translateX(330%) skewX(-14deg); } }
.loupe__tag {
  position: absolute; left: var(--gutter); bottom: 26px; display: flex; gap: 16px; align-items: baseline;
  font-size: 11.5px; letter-spacing: .24em; color: var(--gold-hi);
}
.loupe__mag { color: var(--muted); letter-spacing: .18em; font-variant-numeric: tabular-nums; }

.gems { grid-area: spec; align-self: center; padding: clamp(36px, 4vw, 64px) var(--gutter) 0 clamp(32px, 4vw, 72px); max-width: 640px; }
.gem:focus { outline: none; }
.gem:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; }
.gem__name { font-family: var(--font-serif); font-weight: 400; font-size: clamp(3.4rem, 6vw, 6.2rem); line-height: .95; color: var(--gold); letter-spacing: -0.01em; }
.gem__colour { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 1.12rem; color: var(--white); }
.gem__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--s); box-shadow: 0 0 0 3px rgb(7 7 7), 0 0 0 4px var(--gold-line); }
.gem__dot--bi { background: linear-gradient(135deg, var(--s) 50%, var(--s2) 50%); }
.mohs { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--gold-line); }
.mohs__label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.mohs__label span:first-child { font-size: 10.5px; letter-spacing: .18em; color: var(--muted); }
.mohs__val { color: var(--white); font-variant-numeric: tabular-nums; }
.mohs__rule {
  position: relative; height: 40px; margin-top: 14px;
  background:
    linear-gradient(90deg, rgb(214 180 106 / .55), rgb(214 180 106 / .55)) 0 12px / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgb(214 180 106 / .7) 0 1px, transparent 1px calc(100% / 9)) 0 6px / calc(100% + 1px) 7px no-repeat;
}
.mohs__mark {
  position: absolute; top: 9px; height: 7px; left: calc((var(--lo) - 1) / 9 * 100%);
  width: calc((var(--hi) - var(--lo)) / 9 * 100%); background: var(--gold-hi); box-shadow: 0 0 14px rgb(214 180 106 / .5);
}
.mohs__mark { border-radius: 2px; }
.mohs__mark::before {
  content: ""; position: absolute; top: -3px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px;
  background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--black), 0 0 12px rgb(214 180 106 / .5);
}
.mohs__scale { position: absolute; left: 0; right: 0; top: 22px; margin: 0; padding: 0; list-style: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mohs__scale li { position: absolute; transform: translateX(-50%); }
.mohs__scale li:nth-child(1) { left: 0%; } .mohs__scale li:nth-child(2) { left: 11.111%; } .mohs__scale li:nth-child(3) { left: 22.222%; }
.mohs__scale li:nth-child(4) { left: 33.333%; } .mohs__scale li:nth-child(5) { left: 44.444%; } .mohs__scale li:nth-child(6) { left: 55.556%; }
.mohs__scale li:nth-child(7) { left: 66.667%; } .mohs__scale li:nth-child(8) { left: 77.778%; } .mohs__scale li:nth-child(9) { left: 88.889%; }
.mohs__scale li:nth-child(10) { left: 100%; }
.gem__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--gold-line); }
.gem__specs div { display: grid; gap: 6px; align-content: start; }
.gem__specs dt { font-size: 10.5px; letter-spacing: .18em; color: var(--muted); }
.gem__specs dd { color: var(--white); line-height: 1.45; }
.formula { font-size: 1.12rem; font-variant-numeric: lining-nums; letter-spacing: .01em; }
.gem__desc { margin-top: 20px; color: var(--text); max-width: 50ch; }
.gem .gem__name--long { font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1; }
.gem .gem__name--xlong { font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.04; max-width: 20ch; text-wrap: balance; }
.dep__where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 16px; font-size: 1.08rem; color: var(--white); }
.dep__where i { color: var(--gold); font-size: 1.15em; }
.dep__cat {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px;
  font: 600 10px/1 var(--font-band); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-line); background: rgb(214 180 106 / .06);
}
.dep__reserve { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--gold-line); }
.dep__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.dep__head span { font: 600 10.5px/1.4 var(--font-band); font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dep__head .dep__unit { color: var(--gold-hi); }
.dep__figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px clamp(16px, 2vw, 28px); margin: 12px 0 0; }
.dep__figs div { display: flex; flex-direction: column-reverse; gap: 6px; min-width: 0; }
.dep__figs dt { font: 600 10px/1.3 var(--font-band); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dep__figs dd { margin: 0; font-family: var(--font-band); font-stretch: 135%; font-weight: 720; font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: .95; letter-spacing: -0.02em; color: var(--gold); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dep__fig--total dd { color: var(--gold-hi); }
.gem__specs dd.dep__value { font-variant-numeric: tabular-nums; color: var(--gold-hi); font-weight: 600; }
.dep .gem__specs { margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 124px), 1fr)); }
.dep .gem__specs div { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.dep__all { margin-top: 14px; }
.loupe__foot { grid-area: foot; padding: 18px var(--gutter) 0 clamp(32px, 4vw, 72px); align-self: start; }
.loupe__note { font-size: 14px; color: var(--muted); max-width: 50ch; }

/* The jeweller's tray: a cabochon per specimen in gold bezels, in one scrolling row with a
   step button at each end (the buttons choose the previous or next specimen) */
.tray {
  grid-area: tray; position: relative; min-width: 0; margin: clamp(30px, 4vw, 52px) 0 0;
  --bezel: 66px; --tray-pt: 26px; --tray-px: max(var(--gutter), 52px);
}
.tray::before {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 5px;
  border-top: 1px solid var(--gold-line); border-bottom: 1px solid rgb(214 180 106 / .14);
}
.cabs {
  position: relative; display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: clamp(10px, 1.4vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity;
  padding: var(--tray-pt) var(--tray-px) 10px; scroll-padding-inline: var(--tray-px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 10px, #000 var(--tray-px), #000 calc(100% - var(--tray-px)), transparent calc(100% - 10px));
  mask-image: linear-gradient(90deg, transparent 0, transparent 10px, #000 var(--tray-px), #000 calc(100% - var(--tray-px)), transparent calc(100% - 10px));
}
.cabs::-webkit-scrollbar { display: none; }
.tray__nav {
  position: absolute; z-index: 2; top: calc(var(--tray-pt) + 6px + var(--bezel) / 2); width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--gold); font-size: 1.05rem; background: rgb(7 7 7 / .86); box-shadow: inset 0 0 0 1px var(--gold-line);
  transition: color .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .35s var(--ease-out);
}
.tray__nav:hover { color: var(--black); background: var(--gold); box-shadow: inset 0 1px 0 rgb(255 246 222 / .55); }
.tray__nav--prev { left: max(4px, calc(var(--gutter) - 40px)); }
.tray__nav--next { right: max(4px, calc(var(--gutter) - 40px)); }
.cab {
  flex: none; min-width: 76px; max-width: 108px; scroll-snap-align: center;
  display: grid; justify-items: center; align-content: start; gap: 12px; padding: 6px 2px; border: 0; background: none;
  color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.cab:focus-visible { outline: none; }
.cab:focus-visible .cab__bezel { outline: 2px solid var(--gold-hi); outline-offset: 6px; }
.cab__bezel {
  position: relative; width: var(--bezel); height: var(--bezel); border-radius: 50%; padding: 5px; background: var(--metal);
  box-shadow: 0 14px 30px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 246 222 / .7), inset 0 -1px 0 rgb(80 60 26 / .7);
  transition: transform .6s var(--ease-spring), box-shadow .5s var(--ease-out);
}
.cab__bezel img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .5); }
.cab__bezel::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 26%, rgb(255 255 255 / .5), rgb(255 255 255 / 0) 34%), radial-gradient(circle at 50% 120%, rgb(0 0 0 / .45), transparent 60%);
}
.cab__bezel--drawn::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--s), color-mix(in srgb, var(--s) 45%, #000) 100%);
}
.cab__name { font-size: 10px; line-height: 1.3; letter-spacing: .12em; text-align: center; text-wrap: balance; transition: color .4s var(--ease-out); }
.cab:hover .cab__bezel { transform: translateY(-3px); }
.cab:hover .cab__name { color: var(--white); }
.cab[aria-selected="true"] .cab__bezel { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 0 4px var(--black), 0 0 0 5px var(--gold), 0 18px 40px rgb(214 180 106 / .18), inset 0 1px 0 rgb(255 246 222 / .7); }
.cab[aria-selected="true"] .cab__name { color: var(--gold); }

/* The deposits in one line under the home Loupe */
.loupe__summary {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px clamp(28px, 4vw, 72px);
  margin-top: clamp(28px, 4vw, 56px); padding-top: clamp(22px, 2.6vw, 34px);
}
.loupe__summary::before {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 5px;
  border-top: 1px solid var(--gold-line); border-bottom: 1px solid rgb(214 180 106 / .14);
}
.lsum__total { display: grid; gap: 6px; margin: 0; }
.lsum__label, .lsum__approx { font: 600 10.5px/1.4 var(--font-band); font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lsum__fig small { font-size: .5em; font-weight: 600; letter-spacing: .04em; color: var(--gold-hi); }
.lsum__fig { font-family: var(--font-band); font-stretch: 135%; font-weight: 720; font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; color: var(--gold); font-variant-numeric: tabular-nums; }
.lsum__text { margin: 0; max-width: 62ch; color: var(--text); }
.loupe__summary .tlink { margin-top: 0; white-space: nowrap; }

/* ---------- One-screen chapters (desktop) ----------
   Approach and the Loupe are composed to fit a single viewport at any desktop height
   (sized by vh as well as vw), so the whole composition is in frame on short laptop screens. */
@media (min-width: 900px) {
  /* Approach: heading, medallions and steps in one frame; pinned while the medallions inlay */
  .approach {
    --med: clamp(84px, 15vh, 168px);
    min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
    padding-block: clamp(92px, 12.5vh, 136px) clamp(36px, 6.5vh, 84px);
  }
  .approach .chapter-head { margin-bottom: clamp(22px, 5vh, 72px); gap: clamp(8px, 1.7vh, 22px); }
  .approach .display { font-size: clamp(2.1rem, min(4.6vw, 7.4vh), 4.9rem); }
  .approach .lead { font-size: clamp(.98rem, min(1.35vw, 2.3vh), 1.28rem); }
  .approach .medallion { width: var(--med); height: var(--med); margin-bottom: clamp(2px, 1.3vh, 14px); }
  .approach .steps__channel { top: calc(var(--med) / 2); }
  .approach .step { gap: clamp(5px, 1.1vh, 12px); }
  .approach .step__title { font-size: clamp(1.4rem, min(2.4vw, 4.1vh), 2.3rem); }
  .approach .step__text { font-size: clamp(.92rem, min(1.2vw, 2.1vh), 1.0625rem); line-height: 1.5; }
  .approach .step__detail { font-size: clamp(.82rem, min(1vw, 1.85vh), .96rem); line-height: 1.55; }

  /* The Loupe: stage on the left at full height with the cabochon tray set into its foot;
     heading, stone name and spec sheet stacked in the right column */
  .loupe { padding-block: 0; }
  .loupe__body {
    min-height: max(600px, min(100svh, 1100px));
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    /* content-sized rows stretched to fill: rows can never overlap, the stage still spans the full height */
    grid-template-rows: auto auto auto; align-content: stretch;
    grid-template-areas: "stage head" "stage spec" "stage foot";
  }
  .loupe__head {
    grid-area: head; margin: 0; max-width: 640px;
    padding: clamp(92px, 12.5vh, 136px) var(--gutter) 0 clamp(28px, 3.4vw, 64px);
    gap: clamp(8px, 1.4vh, 16px);
  }
  .loupe__head .display { font-size: clamp(1.8rem, min(3vw, 5.2vh), 3.2rem); max-width: 15ch; }
  .loupe__head .lead { font-size: clamp(.9rem, min(1.05vw, 1.85vh), 1.06rem); line-height: 1.55; }
  .loupe__stage {
    grid-area: stage; height: 100%;
    --safe-top: clamp(76px, 10vh, 96px);
    --safe-bottom: clamp(122px, 17.5vh, 162px);
  }
  .loupe__tag { top: clamp(92px, 12.5vh, 124px); bottom: auto; }
  .gems { align-self: center; padding: clamp(18px, 3.4vh, 40px) var(--gutter) 0 clamp(28px, 3.4vw, 64px); }
  .gem__name { font-size: clamp(2.6rem, min(5.2vw, 9vh), 6.2rem); }
  .gem .gem__name--long { font-size: clamp(2.1rem, min(3.6vw, 6.4vh), 4rem); }
  .gem .gem__name--xlong { font-size: clamp(1.6rem, min(2.4vw, 4.4vh), 2.7rem); }
  .dep__where { margin-top: clamp(6px, 1.3vh, 16px); font-size: clamp(.96rem, 2vh, 1.08rem); }
  .dep__reserve { margin-top: clamp(12px, 2.4vh, 26px); padding-top: clamp(8px, 1.5vh, 14px); }
  .dep__figs { margin-top: clamp(6px, 1.3vh, 12px); }
  .dep__figs dd { font-size: clamp(1.5rem, min(2.4vw, 4.6vh), 2.6rem); }
  .gem__colour { margin-top: clamp(6px, 1.3vh, 18px); font-size: clamp(.96rem, 2vh, 1.12rem); }
  .mohs { margin-top: clamp(12px, 2.5vh, 30px); padding-top: clamp(8px, 1.5vh, 16px); }
  .mohs__rule { margin-top: clamp(6px, 1.3vh, 14px); }
  .gem__specs { margin-top: clamp(10px, 1.9vh, 22px); padding-top: clamp(8px, 1.5vh, 18px); gap: clamp(8px, 1.5vh, 18px) 28px; }
  .formula { font-size: clamp(1rem, 2vh, 1.12rem); }
  .gem__desc { margin-top: clamp(8px, 1.7vh, 20px); font-size: clamp(.9rem, 1.9vh, 1.0625rem); line-height: 1.55; }
  .loupe__foot {
    align-self: end; display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap;
    padding: clamp(10px, 1.8vh, 18px) var(--gutter) clamp(22px, 4.6vh, 52px) clamp(28px, 3.4vw, 64px);
  }
  .loupe__foot .tlink { order: -1; }
  .loupe__note { font-size: 12.5px; line-height: 1.5; max-width: 34ch; margin: 0; }

  /* The jeweller's tray, set into the foot of the stage */
  .tray {
    grid-area: stage; align-self: end; z-index: 3; margin: 0;
    --bezel: clamp(50px, 7.2vh, 70px); --tray-pt: clamp(16px, 2.4vh, 22px);
    background: linear-gradient(0deg, rgb(5 5 5 / .94) 0%, rgb(5 5 5 / .78) 58%, rgb(5 5 5 / 0) 100%);
  }
  .tray::before { top: clamp(4px, 1vh, 8px); }
  .cabs { justify-content: safe center; gap: clamp(6px, .9vw, 18px); padding-bottom: clamp(12px, 2.2vh, 22px); }
  .cab { min-width: 72px; max-width: 100px; gap: clamp(6px, 1.1vh, 12px); }
  .cab__bezel { padding: 4px; }
  .cab__bezel::after, .cab__bezel--drawn::before { inset: 4px; }
  .cab__name { font-size: 9.5px; }
}

/* Short desktop screens (laptops at 125% scaling, 720-820px tall): tighten so each chapter stays one frame */
@media (min-width: 900px) and (max-height: 820px) {
  .loupe__head { padding-top: clamp(80px, 11.4vh, 92px); gap: 8px; }
  .loupe__head .display { font-size: clamp(1.65rem, min(2.6vw, 4.3vh), 2.5rem); }
  .loupe__head .lead { font-size: .86rem; line-height: 1.45; }
  .gems { padding-top: clamp(12px, 2vh, 18px); }
  .gem__name { font-size: clamp(2.3rem, min(4.4vw, 7.2vh), 4.2rem); }
  .gem__colour { margin-top: 6px; }
  .mohs { margin-top: clamp(10px, 1.7vh, 14px); padding-top: 8px; }
  .mohs__rule { height: 32px; margin-top: 6px; }
  .mohs__scale { top: 18px; }
  .gem__specs { margin-top: 10px; padding-top: 8px; gap: 8px 24px; }
  .gem__desc { margin-top: 8px; font-size: .88rem; line-height: 1.48; }
  .dep__reserve { margin-top: 10px; padding-top: 8px; }
  .dep .gem__specs { margin-top: 10px; }
  .dep__all { margin-top: 4px; }
  .dep__where { margin-top: 4px; }
  .gem .gem__name--long { font-size: clamp(2rem, min(3.4vw, 5.8vh), 3.4rem); }
  .loupe__foot { padding-top: 8px; padding-bottom: clamp(16px, 3vh, 24px); }
  .approach .step__detail { line-height: 1.5; }
}

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .hero__content { gap: 16px; }
  /* phones and tablets: the monogram gets its own band under the nav (smaller, centred) and the copy
     always starts below it and its rings, so the two never overlap whatever the screen height */
  .hero { --eh-m: min(27svh, 50vw, 300px); --hero-top: 92px; grid-template-rows: minmax(calc(var(--hero-top) + var(--eh-m) * 1.24), 1fr) auto auto; }
  .hero__media { --ex: 50%; --ey: calc(var(--hero-top) + var(--eh-m) / 2); }
  .hero__stage { --eh: var(--eh-m); top: calc(var(--hero-top) + var(--eh) / 2); }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .figures { gap: 14px; }
  .figure dd { font-size: clamp(2.6rem, 13vw, 4rem); }
  .figure dt { font-size: 12px; letter-spacing: .12em; }
  .house { min-height: 100svh; }
  .house__inner { grid-template-columns: minmax(0, 1fr); align-items: end; padding-top: 120px; }
  .house__specs { justify-items: start; text-align: left; min-width: 0; }
  .house__specs dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
  .spec { align-items: flex-start; }
  .spec__value { font-size: clamp(1.6rem, 7.6vw, 2.4rem); white-space: normal; }
  .house__acr { font-size: clamp(3rem, 17vw, 5rem); margin-bottom: 14px; }
  /* phones: the copy covers most of the photo, so the shade stays deep behind all of it */
  .house__shade { background: linear-gradient(0deg, rgb(7 7 7 / .96) 0%, rgb(7 7 7 / .84) 48%, rgb(7 7 7 / .66) 72%, rgb(7 7 7 / .72) 100%); }
  .house__legal { color: var(--text); text-shadow: 0 1px 10px rgb(0 0 0 / .6); }
  .house--next { min-height: 0; padding-bottom: 72px; }
  .arch--next { height: min(56svh, 440px); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .steps__channel { display: none; }
  .medallion { width: 120px; height: 120px; }
  .loupe__body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "tray" "spec" "foot"; grid-template-rows: auto; }
  .loupe__head { grid-area: head; margin-bottom: clamp(28px, 6vw, 44px); }
  .loupe__stage { height: auto; aspect-ratio: 1 / 1; max-height: 74svh; }
  .loupe__vignette { background: radial-gradient(circle at var(--rx) var(--ry), transparent calc(var(--rr) - 1px), rgb(7 7 7 / .58) calc(var(--rr) + 30px)), linear-gradient(0deg, rgb(7 7 7 / .55) 0%, rgb(7 7 7 / 0) 24%); }
  .tray { margin-top: 0; }
  .gems { padding: 26px var(--gutter) 0; max-width: none; }
  .loupe__foot { padding: 18px var(--gutter) 0; }
  .loupe__tag { bottom: 16px; }
  .loupe__summary { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 14px; }
}
@media (max-width: 560px) {
  .hero__ctas .btn { padding-left: 20px; }
  .gem__specs { grid-template-columns: minmax(0, 1fr); }
  .house__specs dl { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__marble { transform: none; }
  .band__sheen, .reticle__sweep, .hero__emblem-sheen, .hero__dust { display: none; }
}

/* ---------- Phones: readable micro-labels (the wide band face at 10px was too small) ---------- */
@media (max-width: 899px) {
  .spec__label, .abay__specs dt, .mohs__label span:first-child, .gem__specs dt, .dep__cat, .dep__head span,
  .dep__figs dt, .lsum__label, .lsum__approx { font-size: 12px; letter-spacing: .13em; }
  .cab__name { font-size: 11px; letter-spacing: .08em; }
}
/* figures as ledger rows: the number on the left, its label beside it (three columns cannot hold
   "OPPORTUNITIES" at a readable size) */
@media (max-width: 560px) {
  .figures { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .figure { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .figure dd { flex: none; min-width: 1.15ch; font-size: clamp(2.4rem, 12vw, 3rem); }
  .figure dt { font-size: 12.5px; letter-spacing: .14em; line-height: 1.45; }
}
