/* QUARTZELLE — homepage ("Light Through Stone"). Behaviour lives in js/pages/home.js. */
.hm-frame { display: block; position: relative; overflow: hidden; background: var(--beige); }
.hm-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ── 1. hero: the films fill the first screen, the words rest on a dark teal shade along the bottom ── */
/* --hm-top: roughly how far the words reach above the bottom edge, so the shade follows them at every screen size */
.hm-hero { --hm-title: clamp(48px, min(8vw, 13vh), 132px); --hm-foot: clamp(80px, 10vh, 96px); --hm-top: calc(var(--hm-foot) + 96px + var(--hm-title)); position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); margin-top: calc(var(--header-h) * -1); height: calc(100vh - 35px); height: calc(100svh - 35px); min-height: 560px; overflow: hidden; background: var(--teal-dark); color: var(--ivory); }
.hm-hero-media { grid-area: 1 / 1; position: relative; overflow: hidden; }
.hm-reel { position: absolute; inset: 0; }
.hm-reel img, .hm-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-reel video { z-index: 1; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hm-reel video.top { z-index: 2; }
.hm-reel video.on { opacity: 1; }
.hm-hero-media::after { content: ''; position: absolute; z-index: 3; inset: 0; pointer-events: none; background: linear-gradient(0deg,
  var(--teal-dark) 0, var(--teal-dark) 6px, rgba(7, 59, 59, .985) 36px, rgba(7, 59, 59, .955) 80px, rgba(7, 59, 59, .91) calc(var(--hm-top) - 120px), rgba(7, 59, 59, .85) calc(var(--hm-top) - 24px), rgba(7, 59, 59, .76) calc(var(--hm-top) + 14px),
  rgba(7, 59, 59, .5) calc(var(--hm-top) + 70px), rgba(7, 59, 59, .2) calc(var(--hm-top) + 132px), rgba(7, 59, 59, 0) calc(var(--hm-top) + 210px)); }
.hm-hero-copy { grid-area: 1 / 1; align-self: end; position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'eyebrow eyebrow' 'title title' 'lead cta'; align-items: end; gap: clamp(10px, 1.6vh, 18px) 48px; width: 100%; max-width: var(--container); margin-inline: auto; padding: 0 var(--gutter) var(--hm-foot); pointer-events: none; }
.hm-hero-copy > * { pointer-events: auto; }
.hm-hero-copy .eyebrow { grid-area: eyebrow; justify-self: start; color: var(--ivory); transition: opacity .6s ease; }
@media (min-width: 901px) { .hm-hero.is-signed .hm-hero-copy .eyebrow { opacity: 0; } }
@media (max-width: 360px) { .hm-hero-copy .eyebrow { letter-spacing: .14em; } }
.hm-title { grid-area: title; color: var(--ivory); font-size: var(--hm-title); line-height: .94; letter-spacing: -.028em; }
.hm-title span, .hm-title em { display: inline-block; white-space: nowrap; }
.hm-title em { color: var(--gold); }
.hm-hero .lead { grid-area: lead; color: rgba(247, 244, 237, .9); max-width: 52ch; }
.hm-cta { grid-area: cta; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }

/* narrower desktops: the paragraph runs to more lines, so the words reach higher */
@media (min-width: 901px) and (max-width: 1100px) { .hm-hero { --hm-top: calc(var(--hm-foot) + 140px + var(--hm-title)); } }

/* pause button and one line per film, along the bottom edge */
.hm-reel-controls { position: absolute; z-index: 5; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; width: 100%; max-width: var(--container); padding-inline: var(--gutter); }
@media (min-width: 901px) { .hm-reel-controls { padding-left: max(var(--gutter), calc(100px - max(0px, (100vw - var(--container)) / 2))); } } /* clear of the chat button */
.hm-reel-controls[hidden] { display: none; }
.hm-reel-controls ol { display: flex; flex: 1; gap: 8px; max-width: 360px; }
.hm-reel-controls li { flex: 1; }
.hm-reel-controls button { display: grid; align-items: center; width: 100%; height: 40px; color: var(--ivory); }
.hm-reel-controls .hm-reel-toggle { place-items: center; width: 40px; margin-left: -12px; }
.hm-reel-toggle .icon { width: 18px; height: 18px; }
.hm-reel-controls li span { display: block; height: 2px; overflow: hidden; background: rgba(247, 244, 237, .34); }
.hm-reel-controls li i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hm-reel-controls li button:hover span { background: rgba(247, 244, 237, .6); }
.hm-reel-controls :focus-visible { outline-color: var(--gold); outline-offset: -2px; }

/* phones and upright tablets: films above, words below, so the pictures are not hidden behind text */
@media (max-width: 900px) {
  .hm-hero { grid-template-rows: minmax(200px, 1fr) auto; min-height: 520px; }
  .hm-hero-media::after { background: linear-gradient(0deg, var(--teal-dark) 0, rgba(7, 59, 59, 0) 22%); }
  .hm-hero-copy { grid-area: 2 / 1; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'eyebrow' 'title' 'lead' 'cta'; gap: 12px; padding: 2px var(--gutter) 28px; }
  .hm-title { font-size: clamp(46px, min(14.5vw, 9vh), 96px); line-height: .92; }
  .hm-title span, .hm-title em { display: block; }
  .hm-hero .lead { font-size: 15px; line-height: 1.55; }
  .hm-cta { gap: 14px; margin-top: 4px; justify-content: space-between; }
  .hm-cta .btn { flex: 1 1 100%; }
  .hm-cta .link-arrow { margin-left: auto; } /* the chat button sits at the lower left */
  /* over the bottom of the picture, clear of the words */
  .hm-reel-controls { bottom: 0; }
}
@media (max-height: 700px) and (max-width: 900px) { .hm-hero .lead { display: none; } .hm-hero-copy { gap: 10px; padding-bottom: 14px; } }

/* ── 2. statement: the words beside a quartz crystal that gathers and turns as you scroll (lib/crystal-stage.js) ── */
.hm-statement { position: relative; background: var(--teal-dark); color: var(--ivory); }
.hm-st-stage { display: flex; align-items: center; padding-block: clamp(80px, 10vw, 150px); overflow: hidden; }
.hm-st-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 28px; align-items: center; }
.hm-st-words { position: relative; z-index: 2; grid-column: 1 / 7; grid-row: 1; display: grid; gap: clamp(22px, 3.4vh, 36px); justify-items: start; }
.hm-statement .eyebrow { color: var(--gold); }
.hm-statement [data-statement] { font: 400 clamp(36px, min(4.4vw, 8.4vh), 74px)/1.12 var(--serif); letter-spacing: -.017em; color: var(--ivory); }
.hm-st-visual { position: relative; grid-column: 7 / -1; grid-row: 1; height: min(76vh, 700px); min-height: 420px; margin: 0; }
.hm-st-glow { position: absolute; inset: -4% -8%; background: radial-gradient(closest-side, rgba(201, 174, 112, .26), rgba(7, 91, 91, .55) 46%, rgba(7, 59, 59, 0)); pointer-events: none; }
.hm-st-visual canvas, .hm-st-still { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 901px) { .hm-st-visual canvas { left: -12%; width: 124%; } } /* room for the orbits to pass */
.hm-st-visual canvas { display: block; opacity: 0; transition: opacity 1.2s ease; }
/* flying shards, orbits and motes dissolve before they reach the edge of their frame, so no outline of it ever shows */
.hm-st-visual canvas, .hm-st-still { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 64%, transparent 99%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 64%, transparent 99%); }
.hm-statement.is-live canvas { opacity: 1; }
.hm-st-still { display: none; object-fit: contain; }
.hm-statement.is-still .hm-st-still { display: block; animation: st-float 7s ease-in-out infinite alternate; }
.hm-statement.is-still canvas { display: none; }
@keyframes st-float { from { translate: 0 8px; } to { translate: 0 -8px; } }
.hm-st-visual figcaption { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; display: flex; align-items: center; justify-content: flex-end; gap: 16px; font: 500 10.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(247, 244, 237, .74); }
.hm-st-progress { display: none; width: 110px; height: 1px; background: var(--line-light); }
.hm-st-progress i { display: block; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hm-st-pause { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line-light); border-radius: 50%; color: var(--ivory); transition: background .3s, border-color .3s; }
.hm-st-pause:hover { background: rgba(247, 244, 237, .1); border-color: var(--gold); }
.hm-st-pause .icon { width: 15px; height: 15px; }
.hm-statement.is-live .hm-st-pause { display: grid; }
.hm-statement.is-live .hm-st-progress { display: block; }
/* large enough screens: the stage holds still while the crystal gathers and the sentence lights up */
@media (min-width: 901px) and (min-height: 620px) {
  .hm-statement.is-3d { height: 230vh; }
  .hm-statement.is-3d .hm-st-stage { position: sticky; top: calc(var(--header-compact) + 1px); height: calc(100vh - var(--header-compact) - 1px); padding-block: 20px; }
  .hm-statement.is-3d .hm-st-visual { height: calc(100vh - var(--header-compact) - 41px); min-height: 0; max-height: 880px; }
}
/* short screens: smaller sentence, set higher, so the chat button never sits on the link */
@media (min-width: 901px) and (min-height: 620px) and (max-height: 760px) {
  .hm-statement.is-3d [data-statement] { font-size: clamp(34px, min(4.2vw, 6.9vh), 54px); }
  .hm-statement.is-3d .hm-st-words { margin-bottom: 64px; }
}
@media (max-width: 900px) {
  .hm-st-stage { padding-block: 56px 80px; }
  .hm-st-grid { column-gap: 0; row-gap: 20px; }
  .hm-st-visual { grid-column: 1 / -1; grid-row: 1; height: min(92vw, 460px); min-height: 0; }
  .hm-st-words { grid-column: 1 / -1; grid-row: 2; }
  .hm-st-visual figcaption { justify-content: center; }
}

/* no ruled lines between homepage sections */
.hm-hero ~ .section .section-head { border-top: 0; padding-top: 0; }
.hm-hero ~ .newsletter, .hm-hero ~ .section.beige { border-top: 0; }

/* ── 3. collections: staggered, uneven grid ── */
.hm-collections { padding-top: 0; }
.hm-coll { row-gap: clamp(48px, 7vw, 120px); align-items: start; }
.hm-coll a { display: block; }
.hm-coll .hm-frame { aspect-ratio: 5 / 4; }
.hm-coll li:nth-child(4n + 1) { grid-column: 1 / 8; }
.hm-coll li:nth-child(4n + 2) { grid-column: 9 / 13; margin-top: clamp(40px, 12vw, 200px); }
.hm-coll li:nth-child(4n + 3) { grid-column: 2 / 6; }
.hm-coll li:nth-child(4n + 4) { grid-column: 7 / 13; margin-top: clamp(40px, 8vw, 140px); }
.hm-coll li:nth-child(4n + 2) .hm-frame, .hm-coll li:nth-child(4n + 3) .hm-frame { aspect-ratio: 4 / 5; }
.hm-coll-text { display: grid; gap: 10px; justify-items: start; padding-top: 22px; }
.hm-coll-text p { font-size: 15px; max-width: 44ch; }
.hm-coll-text h2 { font-size: var(--t-h3); line-height: 1.1; } /* the Collections page uses h2 here */
.hm-coll-text .link-arrow { margin-top: 6px; }
.hm-coll a:hover .link-arrow { gap: 18px; color: var(--teal); }
@media (max-width: 760px) {
  .hm-coll { column-gap: 0; }
  .hm-coll li:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .hm-coll li:nth-child(even) { grid-column: 3 / -1; }
  .hm-coll li:nth-child(odd) { grid-column: 1 / 11; }
  .hm-coll li:nth-child(n) .hm-frame { aspect-ratio: 4 / 5; }
}

/* ── 4. category showcase: a swipeable row, pinned and scroll-driven on large screens ── */
.hm-cats { padding-block: clamp(72px, 8vw, 120px); background: var(--teal-dark); color: var(--ivory); }
.hm-cats-stage { display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); min-width: 0; overflow: hidden; }
.hm-cats h2, .hm-cats h3 { color: var(--ivory); }
.hm-cats p { color: rgba(247, 244, 237, .76); }
.hm-cats-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.hm-cats-head > div { display: grid; gap: 12px; justify-items: start; }
.hm-cats-viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--line-gold) transparent; padding-bottom: 14px; }
.hm-cats-track { position: relative; display: flex; gap: var(--col-gap); width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.hm-cats-track li { width: min(74vw, 400px); scroll-snap-align: start; }
.hm-cats-track a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 16px; }
.hm-cats-track .hm-frame { grid-column: 1 / -1; aspect-ratio: 1; background: var(--teal); }
.hm-cats-track img { transition: transform 1.2s var(--ease); }
.hm-cats-track a:hover img { transform: scale(1.05); }
.hm-cat-no { font: 500 var(--t-label)/1 var(--sans); letter-spacing: .16em; color: var(--gold); padding-top: 9px; }
.hm-cat-text { display: grid; gap: 6px; min-width: 0; }
.hm-cat-text p { font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-cats-progress { display: none; }
.hm-cats-progress span { display: block; height: 1px; background: var(--line-light); }
.hm-cats-progress i { display: block; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
/* pinned: the section is as tall as the screen plus the row's travel (--travel, set by home.js); the stage sticks */
.hm-cats.is-pinned { height: calc(100vh - var(--header-compact) - 1px + var(--travel, 0px)); padding-block: 0; }
.hm-cats.is-pinned .hm-cats-stage { position: sticky; top: calc(var(--header-compact) + 1px); height: calc(100vh - var(--header-compact) - 1px); padding-block: 24px; gap: clamp(18px, 3vh, 40px); }
.hm-cats.is-pinned .hm-cats-viewport { overflow: hidden; scroll-snap-type: none; padding-bottom: 0; }
.hm-cats.is-pinned .hm-cats-track li { width: clamp(220px, min(30vw, 100vh - 440px), 520px); }
.hm-cats.is-pinned .hm-cats-progress { display: block; }

/* ── 5. bestsellers: quick add stays visible where there is no hover ── */
@media (hover: none) { .pgrid.hm-best .pcard-add { display: grid; opacity: 1; transform: none; pointer-events: auto; left: 8px; right: 8px; bottom: 8px; min-height: 40px; letter-spacing: .14em; } }

/* ── 6. intentions: a row of tall pictures; the chosen one opens wide and tells its story (stacked on phones) ── */
.hm-intent { --open: 5.2; --gap: 10px; background: var(--teal-dark); color: var(--ivory); overflow: hidden; }
.hm-intent h2 { color: var(--ivory); }
.hm-intent p { color: rgba(247, 244, 237, .78); }
.hm-intent .eyebrow { color: var(--gold); }
.hm-int-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px var(--col-gap); align-items: end; margin-bottom: clamp(32px, 4vw, 60px); }
.hm-int-head > div { grid-column: 1 / 7; display: grid; gap: 14px; justify-items: start; }
.hm-int-head > .hm-int-intro { grid-column: 7 / 11; max-width: 44ch; padding-bottom: .4em; }
.hm-int-head > .hm-int-count { grid-column: 11 / -1; justify-self: end; display: flex; align-items: baseline; gap: 10px; font: 400 18px/1 var(--serif); }
.hm-int-roll { display: block; height: 1em; overflow: hidden; font-size: 64px; line-height: 1; color: var(--gold); }
.hm-int-roll > span { display: block; transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.hm-int-roll i { display: block; height: 1em; font-style: normal; font-variant-numeric: tabular-nums; }

.hm-int { container-type: inline-size; display: flex; gap: var(--gap); height: clamp(520px, 74vh, 700px); }
.hm-int li { position: relative; flex: 1 1 0; min-width: 0; transition: flex-grow 1s cubic-bezier(.16, 1, .3, 1); }
.hm-int li.on { flex-grow: var(--open); }
.hm-int-panel { position: absolute; inset: 0; display: block; overflow: hidden; isolation: isolate; border-radius: 18px; background: var(--teal); color: var(--ivory); }
.hm-int-panel:focus-visible { outline: 2px solid var(--gold); outline-offset: -5px; }

/* the photograph: held close and shaded while closed; it settles back and clears as its panel opens */
.hm-int-media { position: absolute; inset: 0; z-index: -2; }
.hm-int-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.36); transition: transform 1.7s cubic-bezier(.16, 1, .3, 1); }
.hm-int-media::after { content: ''; position: absolute; inset: 0; background: rgba(7, 59, 59, .6); transition: opacity .8s ease; }
.hm-int li:not(.on) .hm-int-panel:hover .hm-int-media::after { opacity: .7; }
.hm-int li.on .hm-int-media::after { opacity: 0; }
.hm-int li.on .hm-int-media img { transform: scale(1.09) translate(calc(var(--mx, 0) * -2.6%), calc(var(--my, 0) * -2.6%)); animation: int-breathe 9s ease-in-out 1.6s infinite alternate; }
@keyframes int-breathe { to { scale: 1.07; } }
/* shade under the words */
.hm-int-panel::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 59, 59, .96) 0, rgba(7, 59, 59, .88) 170px, rgba(7, 59, 59, .74) 290px, rgba(7, 59, 59, 0) 450px); pointer-events: none; }
/* a band of light crosses the picture as it opens */
.hm-int-panel::before { content: ''; position: absolute; z-index: -1; top: -10%; bottom: -10%; left: 0; width: 45%; background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, .34) 50%, transparent 85%); transform: translateX(-200%) skewX(-12deg); pointer-events: none; }
.hm-int li.on .hm-int-panel::before { animation: int-light 1.35s cubic-bezier(.65, 0, .35, 1) .3s forwards; }
@keyframes int-light { to { transform: translateX(330%) skewX(-12deg); } }

.hm-int-no { position: absolute; top: 24px; left: 50%; display: flex; align-items: center; gap: 14px; transform: translateX(-50%); font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--gold); transition: left .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); }
.hm-int-no::after { content: ''; width: 0; height: 1px; margin-left: -14px; background: var(--gold); transition: width .5s ease, margin .5s ease; }
.hm-int li.on .hm-int-no { left: clamp(22px, 2.6vw, 40px); transform: translateX(0); }
.hm-int li.on .hm-int-no::after { width: 56px; margin-left: 0; transition: width 1s cubic-bezier(.16, 1, .3, 1) .45s, margin 0s .45s; }

/* the name read upwards while closed */
.hm-int-spine { position: absolute; bottom: 28px; left: 50%; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font: 400 clamp(22px, 2vw, 31px)/1 var(--serif); white-space: nowrap; transition: opacity .5s ease .35s, translate .9s cubic-bezier(.16, 1, .3, 1) .3s; }
.hm-int li:not(.on) .hm-int-panel:hover .hm-int-spine { translate: 0 -10px; transition-delay: 0s; }
.hm-int li.on .hm-int-spine { opacity: 0; translate: 0 40px; transition: opacity .2s ease, translate .4s ease; }

/* the story: laid out at the open width from the start, so no line re-wraps while the panel grows */
.hm-int-body { position: absolute; left: 0; bottom: 0; width: calc((100cqw - (var(--n) - 1) * var(--gap)) * var(--open) / (var(--n) - 1 + var(--open))); display: grid; gap: 16px; justify-items: start; padding: 0 clamp(22px, 2.6vw, 40px) clamp(24px, 2.8vw, 40px); pointer-events: none; }
.hm-int-chakra, .hm-int-text, .hm-int-go { opacity: 0; transform: translateY(26px); transition: opacity .2s ease, transform .3s ease; }
.hm-int-chakra { display: flex; align-items: center; gap: 12px; font: 500 11px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ivory); }
.hm-int-chakra::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.hm-int-title { display: flex; flex-wrap: wrap; column-gap: .22em; font: 400 clamp(38px, 4.5vw, 70px)/1 var(--serif); letter-spacing: -.018em; }
.hm-int-title > span { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hm-int-title > span > span { display: block; transform: translateY(125%); transition: transform .35s ease; }
.hm-int-text { max-width: 46ch; font-size: 15.5px; line-height: 1.65; color: rgba(247, 244, 237, .9); }
.hm-int-go { display: inline-flex; align-items: center; gap: 16px; margin-top: 4px; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.hm-int-go i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--teal-dark); transition: transform .6s cubic-bezier(.16, 1, .3, 1), background .3s; }
.hm-int-panel:hover .hm-int-go i { transform: rotate(-45deg) scale(1.08); background: var(--ivory); }
.hm-int li.on :is(.hm-int-chakra, .hm-int-text, .hm-int-go) { opacity: 1; transform: none; transition: opacity .7s ease var(--d), transform 1s cubic-bezier(.16, 1, .3, 1) var(--d); }
.hm-int li.on .hm-int-chakra { --d: .28s; }
.hm-int li.on .hm-int-text { --d: .52s; }
.hm-int li.on .hm-int-go { --d: .62s; }
.hm-int li.on .hm-int-title > span > span { transform: none; transition: transform 1s cubic-bezier(.16, 1, .3, 1) calc(.32s + var(--w) * 70ms); }

@media (max-width: 960px) {
  .hm-int-head > div, .hm-int-head > .hm-int-intro { grid-column: 1 / -1; }
  .hm-int-head > .hm-int-count { display: none; }
  .hm-int-head { column-gap: 0; }
}
@media (max-width: 760px) {
  .hm-int { flex-direction: column; gap: 8px; height: auto; }
  .hm-int li { flex: none; height: 78px; transition: height .8s cubic-bezier(.16, 1, .3, 1); }
  .hm-int li.on { height: 470px; }
  .hm-int-panel { border-radius: 16px; }
  .hm-int-no { top: 33px; left: 20px; transform: none; transition: top .8s cubic-bezier(.16, 1, .3, 1); }
  .hm-int li.on .hm-int-no { top: 22px; left: 20px; transform: none; }
  .hm-int-spine { top: 50%; bottom: auto; left: 56px; writing-mode: horizontal-tb; transform: translateY(-50%); font-size: clamp(22px, 6.6vw, 30px); }
  .hm-int li:not(.on) .hm-int-panel:hover .hm-int-spine { translate: none; }
  .hm-int li.on .hm-int-spine { translate: 0 20px; }
  .hm-int-body { width: 100%; gap: 12px; padding: 0 20px 22px; }
  .hm-int-title { font-size: clamp(36px, 11vw, 56px); }
  .hm-int-text { font-size: 14.5px; }
}

/* ── 7. provenance ── */
.hm-story .grid-12 { align-items: center; row-gap: 40px; }
.hm-story-media { grid-column: 1 / 7; aspect-ratio: 4 / 5; }
.hm-story-copy { grid-column: 8 / 13; display: grid; gap: 28px; justify-items: start; }
.hm-story-copy h2 em { display: block; color: var(--gold-deep); }
.hm-assure { display: grid; gap: 14px; }
.hm-assure li { display: flex; gap: 14px; align-items: center; font-size: 15px; color: var(--ink-soft); }
.hm-assure .icon { width: 20px; height: 20px; flex: none; stroke-width: 1.1; }
@media (max-width: 900px) { .hm-story .grid-12 { column-gap: 0; } .hm-story-media, .hm-story-copy { grid-column: 1 / -1; } }

/* the 3D constellation beside the intention heading (below it on smaller screens) */
.hm-int-3d { display: none; }
.hm-int-3d.has-3d { position: relative; display: block; grid-column: 8 / 12; grid-row: 1 / 3; height: 330px; margin: -86px 0 -44px; }
.hm-int-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 68%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 68%, transparent 100%); }
.hm-int-3d.is-live canvas { opacity: 1; }
@media (min-width: 961px) {
  .hm-int-head:has(.has-3d) > div:first-child { grid-column: 1 / 8; grid-row: 1; }
  .hm-int-head:has(.has-3d) > .hm-int-intro { grid-column: 1 / 6; grid-row: 2; }
  .hm-int-head:has(.has-3d) > .hm-int-count { grid-column: 12 / -1; grid-row: 2; }
}
/* the head wraps the picture, so the ruled grid keeps the heading and its note together */
@media (max-width: 960px) { .hm-int-3d.has-3d { grid-column: 1 / -1; grid-row: auto; margin: 0; height: 260px; } }
@media (max-width: 600px) { .hm-int-3d.has-3d { height: 220px; } }

/* phones draw each part of the page only as it comes near, so the first screen is ready sooner */
@media (max-width: 900px) { .hm-hero ~ .section, .hm-hero ~ section { content-visibility: auto; contain-intrinsic-size: auto 760px; } }
