/* ==========================================================================
   Vena — marble house
   Tokens, themes, layout and components. Motion lives in js/main.js.
   ========================================================================== */

:root {
  --ink: #0C0D0C;
  --paper: #EDEFEC;
  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, 'Times New Roman', serif;
  --gutter: clamp(20px, 4.2vw, 60px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 113px;
}

/* Themes: every section can set its own palette and children follow. */
.t-light { --bg: #EDEFEC; --fg: #0C0D0C; --mute: #565A57; --line: rgba(12, 13, 12, .18); --panel: #E1E4E0; --deep: #D5D9D4; --btn-bg: #0C0D0C; --btn-fg: #EDEFEC; }
.t-dark  { --bg: #0C0D0C; --fg: #EDEFEC; --mute: #A0A5A1; --line: rgba(237, 239, 236, .2); --panel: #161816; --deep: #161816; --btn-bg: #EDEFEC; --btn-fg: #0C0D0C; }
.t-verde { --bg: #0D1F17; --fg: #EDEFEC; --mute: #A3B0A9; --line: rgba(237, 239, 236, .2); --panel: #0A1811; --deep: #0A1811; --btn-bg: #EDEFEC; --btn-fg: #0C0D0C; }
.t-light, .t-dark, .t-verde { background: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: var(--fg); color: var(--bg); }

/* ---------- Layout ---------- */
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 136px); }
.bt { border-top: 1px solid var(--line); }
.panel { background: var(--panel); }
.stack-xs { display: flex; flex-direction: column; gap: 6px; }
.stack-s { display: flex; flex-direction: column; gap: 14px; }
.stack-m { display: flex; flex-direction: column; gap: 24px; }
.stack-l { display: flex; flex-direction: column; gap: 28px; }
.stack-xl { display: flex; flex-direction: column; gap: clamp(36px, 4.4vw, 64px); }
.nowrap { white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow { font-size: 11px; font-stretch: 118%; font-weight: 550; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; }
.mute { color: var(--mute); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.03em; }
.lede { max-width: 27em; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.45; text-wrap: pretty; }
.body { max-width: 31em; font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.small { font-size: 15px; line-height: 1.45; }
.mega { font-size: clamp(64px, 12.8vw, 184px); font-weight: 300; letter-spacing: -.05em; line-height: .84; }
.mega--contact { font-size: clamp(56px, 9.2vw, 132px); line-height: .86; }
.h1 { font-size: clamp(42px, 6.6vw, 96px); font-weight: 300; letter-spacing: -.045em; line-height: .94; }
.h2 { font-size: clamp(32px, 3.9vw, 56px); font-weight: 300; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
.h2 .serif, .h2-sm .serif, .h2-lg .serif { letter-spacing: -.02em; }
.h2-sm { font-size: clamp(27px, 3.1vw, 45px); font-weight: 300; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.h2-lg { font-size: clamp(36px, 4.6vw, 66px); font-weight: 300; letter-spacing: -.04em; line-height: .98; }
.h3 { font-size: 25px; font-weight: 400; letter-spacing: -.025em; line-height: 1.1; }
.h3-lg { font-size: clamp(30px, 3vw, 44px); font-weight: 300; letter-spacing: -.035em; line-height: 1.02; }
.h4 { font-size: 21px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.display { font-size: clamp(60px, 7.4vw, 108px); line-height: .88; }

/* SplitText masks */
.split-mask { overflow: hidden; display: inline-block; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line-mask { overflow: hidden; display: block; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .serif { padding-right: .06em; }

/* Text roll on hover */
.roll { display: inline-grid; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll > span { grid-area: 1 / 1; transition: transform .55s var(--ease); }
.roll > span:last-child { transform: translateY(105%); }
a:hover .roll > span:first-child, button:hover .roll > span:first-child { transform: translateY(-105%); }
a:hover .roll > span:last-child, button:hover .roll > span:last-child { transform: translateY(0); }

/* ---------- Loader / curtain ---------- */
.curtain { display: none; }
.js .curtain { display: grid; position: fixed; inset: 0; z-index: 300; place-items: center; background: var(--ink); color: var(--paper); animation: curtain-failsafe .6s 5s forwards; }
.js .curtain.is-managed { animation: none; }
@keyframes curtain-failsafe { to { opacity: 0; visibility: hidden; } }
.curtain__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.curtain__mark { display: flex; overflow: hidden; font-size: clamp(56px, 11vw, 150px); font-stretch: 125%; font-weight: 700; letter-spacing: .02em; line-height: .9; }
.curtain__mark span { display: inline-block; background: url(../assets/img/calacatta-oro.jpg) 50% 44% / cover; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.curtain__bar { width: min(220px, 50vw); height: 1px; background: rgba(237, 239, 236, .2); overflow: hidden; }
.curtain__bar i { display: block; height: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; }

/* ---------- Cursor & progress ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 250; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: #fff; mix-blend-mode: difference; pointer-events: none; display: none; place-items: center; border-radius: 1px; }
.has-cursor .cursor { display: grid; }
.cursor__label { color: #000; font-size: 10.5px; font-stretch: 118%; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: 0; white-space: nowrap; }
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 260; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: #fff; mix-blend-mode: difference; transform: scaleX(0); transform-origin: left; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); color: var(--fg); transition: transform .6s var(--ease), background-color .4s; will-change: transform; }
.site-header[data-tone="paper"] { color: var(--paper); }
.site-header.is-hidden { transform: translateY(calc(-100% - 2px)); }
.site-header.is-scrolled .ticker { height: 0; }
.ticker { height: 34px; overflow: hidden; background: var(--ink); color: var(--paper); transition: height .5s var(--ease); }
.ticker__track { display: flex; width: max-content; height: 100%; align-items: center; }
.ticker__row { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 10.5px; font-stretch: 118%; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.ticker__row i { width: 4px; height: 4px; background: currentColor; flex: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 32px; padding-block: 18px; }
.nav__brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.nav__brand img { width: 28px; height: 28px; transition: transform 1s var(--ease); }
.nav__brand:hover img { transform: rotate(180deg); }
.nav__brand span { font-size: 19px; font-stretch: 125%; font-weight: 700; letter-spacing: .14em; line-height: 1; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 36px; font-size: 12.5px; font-stretch: 114%; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.nav__link { position: relative; display: flex; align-items: center; min-height: 44px; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 680px) { .nav__links { order: 3; flex-basis: 100%; gap: 0 28px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 16px; height: 48px; padding: 0 8px 0 20px; border: 0; border-radius: 2px; cursor: pointer; font-size: 11.5px; font-stretch: 118%; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; will-change: transform; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn__thumb { position: relative; display: block; width: 32px; height: 32px; overflow: hidden; flex: none; border-radius: 1px; }
.btn__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 58%; transition: transform .9s var(--ease); }
.btn__thumb svg { position: absolute; inset: 0; margin: auto; transition: transform .55s var(--ease); }
.btn--ink .btn__thumb svg { color: var(--ink); }
.btn--paper .btn__thumb svg { color: var(--paper); }
.btn:hover .btn__thumb img { transform: scale(1.6) rotate(12deg); }
.btn:hover .btn__thumb svg { transform: translate(2px, -2px) rotate(45deg); }
.nav__cta { height: 44px; padding: 0 6px 0 18px; gap: 14px; }
.btn-ghost { height: 48px; padding: 0 18px; border: 1px solid currentColor; background: transparent; cursor: pointer; border-radius: 2px; font-size: 11.5px; font-stretch: 118%; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: background .3s, color .3s; }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.link-arrow svg { transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: rotate(45deg); }

/* Tags on images */
.tag { position: absolute; left: 10px; top: 10px; padding: 6px 8px; background: var(--ink); color: var(--paper); font-size: 10.5px; font-stretch: 118%; font-weight: 550; letter-spacing: .12em; line-height: 1.25; text-transform: uppercase; }
.tag--name { top: auto; bottom: 10px; max-width: calc(100% - 20px); padding: 7px 9px; }
.tag--light, .tag--paper { background: var(--paper); color: var(--ink); }
.tag--ink { background: var(--ink); color: var(--paper); }
.tag--fixed { top: auto; left: 14px; bottom: 14px; padding: 8px 10px; }

/* ---------- Home: hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(24px, 3vw, 48px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero__side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-top: clamp(16px, 3vw, 44px); }
.hero__index { display: flex; flex-direction: column; gap: 10px; }
.hero__index li { display: flex; gap: 22px; }
.hero__scroll { display: flex; align-items: center; gap: 14px; }
.hero__scroll-bar { display: block; width: 44px; height: 9px; background: var(--line); overflow: hidden; }
.hero__scroll-bar i { display: block; height: 100%; background: var(--fg); }
.hero__center { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__wires { display: flex; justify-content: space-between; width: min(100%, 400px); height: clamp(40px, 6vw, 84px); padding: 0 24%; }
.hero__wires span { display: block; width: 1px; background: var(--fg); transform-origin: top; }
.hero__book { position: relative; display: flex; width: min(100%, 400px); aspect-ratio: 5 / 8; perspective: 1800px; }
.hero__shadow { position: absolute; left: 6%; right: 6%; bottom: -26px; height: 52px; background: rgba(12, 13, 12, .5); filter: blur(22px); border-radius: 50%; }
.hero__page { position: relative; flex: 1; overflow: hidden; backface-visibility: hidden; }
.hero__page--l { transform-origin: 100% 50%; }
.hero__page--r { transform-origin: 0 50%; }
.hero__page img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: 100% 50%; }
.hero__page--r img { transform: scaleX(-1); }
.hero__title { position: absolute; left: 50%; top: 61%; transform: translate(-50%, -50%); width: max-content; display: flex; flex-direction: column; gap: .6vw; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.hero__word { font-size: clamp(60px, 17.1vw, 247px); font-stretch: 125%; font-weight: 600; letter-spacing: -.025em; line-height: .8; }
.hero__word .split-mask { padding-bottom: 0; margin-bottom: 0; }
.hero__sub { font-weight: 600; font-size: clamp(26px, 3.45vw, 50px); letter-spacing: -.015em; line-height: 1; }
.hero__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__intro .lede { max-width: 23em; font-size: clamp(17px, 1.4vw, 20px); }
.hero__caption { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .wide-only { display: none !important; }
  .hero__center { order: -1; }
}

/* ---------- Home: house ---------- */
.house { border-top: 1px solid var(--line); }
.house__grid { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6.4vw, 104px); }
.house__text { flex: 1.15 1 420px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.house__head { display: flex; flex-direction: column; gap: 28px; }
.house__cards { flex: 1 1 440px; display: flex; flex-direction: column; gap: 10px; perspective: 1200px; }
.card { display: flex; justify-content: space-between; gap: 20px; padding: 22px; border-radius: 2px; transition: transform .7s var(--ease); }
.card--panel { background: var(--panel); color: var(--fg); }
.card:hover { transform: translateX(-8px); }
.card__text { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-width: 0; }
.card__text > div { display: flex; flex-direction: column; gap: 8px; }
.card__text p { max-width: 25em; }
.card__title { display: flex; align-items: baseline; gap: 14px; }
.card__more { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.card__arrow { display: grid; place-items: center; width: 28px; height: 28px; background: var(--fg); color: var(--bg); border-radius: 1px; transition: transform .6s var(--ease); }
.card:hover .card__arrow { transform: rotate(45deg); }
.card__thumb { position: relative; flex: none; width: clamp(92px, 10.5vw, 132px); aspect-ratio: 1; overflow: hidden; }
.card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__thumb img { transform: scale(1.12); }
.card__thumb--arch { border-radius: 999px 999px 0 0; }
.card__thumb--tiles { display: grid; grid-template: repeat(3, minmax(0, 1fr)) / repeat(3, minmax(0, 1fr)); gap: 0; transition: gap .6s var(--ease); }
.card:hover .card__thumb--tiles { gap: 3px; }
.card__thumb--tiles div { background-size: 300% 300%; background-position: var(--p); }
.card__thumb--tiles [data-tile="b"] { background-image: url(../assets/img/bianco-carrara.jpg); }
.card__thumb--tiles [data-tile="v"] { background-image: url(../assets/img/verde-alpi.jpg); }

/* ---------- Home: collection teaser ---------- */
.collection-teaser__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px clamp(32px, 4.4vw, 64px); }
.collection-teaser__text { flex: 1 1 260px; }
.collection-teaser__sticky { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.collection-teaser__text .body { max-width: 24em; }
.checker { flex: 3 1 560px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); perspective: 1400px; }
.tile, .void { aspect-ratio: 1; }
.void--deep { background: #161816; }
.tile { position: relative; display: block; overflow: hidden; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.tile .tag { background: var(--paper); color: var(--ink); }
.tile--ink .tag { background: var(--ink); color: var(--paper); }
.tile:hover img { transform: scale(1.12); }
.checker:hover .tile:not(:hover) img { filter: grayscale(.8) brightness(.7); }
@media (max-width: 720px) { .checker { grid-template-columns: repeat(2, minmax(0, 1fr)); } .checker .void { display: none; } }

/* ---------- Home: finishes ---------- */
.finishes { overflow: hidden; }
.finishes__inner { display: flex; flex-direction: column; gap: clamp(36px, 4.4vw, 64px); }
.finishes__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; }
.finishes__title { flex: 1 1 520px; display: flex; flex-direction: column; gap: 24px; }
.finishes__head .body { flex: 0 1 29em; }
.finishes__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 36px 3px; }
.finish { display: flex; flex-direction: column; gap: 16px; }
.finish__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.finish__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.finish:hover .finish__img img { transform: scale(1.08); }
.finish figcaption { display: flex; flex-direction: column; gap: 6px; padding-right: 20px; }
.finish__name { display: flex; align-items: baseline; gap: 14px; font-size: 22px; letter-spacing: -.02em; }

/* ---------- Home: quarry ---------- */
.quarry { position: relative; overflow: hidden; min-height: clamp(420px, 56vw, 820px); display: flex; align-items: flex-end; padding-bottom: clamp(24px, 4vw, 60px); }
.quarry__frame { position: absolute; inset: 0; overflow: hidden; }
.quarry__frame img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.quarry__content { position: relative; width: 100%; display: flex; }
.quarry__card { max-width: 560px; padding: clamp(24px, 3vw, 44px); background: var(--paper); color: var(--ink); display: flex; flex-direction: column; gap: 18px; }
.quarry__card .h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.03; }

/* ---------- Home: steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px 20px; }
.step { position: relative; display: flex; flex-direction: column; gap: 16px; padding-top: 20px; }
.step__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--fg); transform-origin: left; }
.step__n { font-size: clamp(44px, 5vw, 72px); font-stretch: 125%; font-weight: 500; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.step p { max-width: 24em; }

/* ---------- CTA ---------- */
.cta { overflow: hidden; }
.cta__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 72px); }
.cta__text { flex: 1.5 1 460px; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.cta__title { font-size: clamp(46px, 7.4vw, 108px); line-height: .93; }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta__sphere { flex: 1 1 300px; display: flex; justify-content: center; }
.cta__sphere img { width: min(100%, 440px); height: auto; will-change: transform; }

/* ---------- Footer ---------- */
.site-footer { overflow: hidden; }
.site-footer__seam { position: relative; height: 10px; overflow: hidden; }
.site-footer__seam img { position: absolute; inset: -400% 0; width: 100%; height: 900%; object-fit: cover; }
.site-footer__body { padding-top: clamp(56px, 6.6vw, 96px); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.site-footer__intro { flex: 2 1 340px; display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.site-footer__claim { max-width: 13em; font-size: clamp(24px, 2.5vw, 36px); font-weight: 300; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
.site-footer__claim .serif { letter-spacing: -.01em; }
.site-footer__col { flex: 1 1 140px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer__col--wide { flex: 1.4 1 280px; }
.site-footer__col:last-child { flex-basis: 200px; }
.site-footer__col a, .site-footer__plain li { display: flex; align-items: center; min-height: 44px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.site-footer__legal { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 5vw, 72px); padding: 18px 0; border-top: 1px solid var(--line); }
.site-footer__word { display: flex; justify-content: center; font-size: clamp(92px, 26vw, 374px); font-stretch: 125%; font-weight: 700; letter-spacing: -.02em; line-height: .74; white-space: nowrap; padding-top: .1em; margin-bottom: -.13em; overflow: hidden; }
.site-footer__word span { display: inline-block; background: url(../assets/img/calacatta-oro.jpg) 50% 44% / 260% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Collection page ---------- */
.coll-head { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 44px); padding-block: clamp(28px, 4.4vw, 64px) clamp(32px, 3.6vw, 52px); }
.coll-head__meta { display: flex; justify-content: space-between; gap: 24px; }
.coll-head__bar { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 48px; padding-top: clamp(20px, 2.4vw, 32px); }
.coll-head__rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; }
.coll-head__bar .lede { flex: 1 1 380px; max-width: 34em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px; border: 1px solid var(--fg); border-radius: 2px; background: transparent; cursor: pointer; overflow: hidden; isolation: isolate; font-size: 11.5px; font-stretch: 118%; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: color .45s var(--ease); }
.chip::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: translateY(101%); transition: transform .45s var(--ease); }
.chip span { font-weight: 400; }
.chip:hover::before { transform: translateY(70%); }
.chip[aria-pressed="true"] { color: var(--bg); }
.chip[aria-pressed="true"]::before { transform: translateY(0); }
.stone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: clamp(40px, 4vw, 60px) 20px; padding-bottom: clamp(72px, 9vw, 132px); }
.stone-card { display: flex; flex-direction: column; gap: 16px; }
.stone-card[hidden] { display: none; }
.stone-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; transform-style: preserve-3d; }
.stone-card__media > img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; transition: scale 1.1s var(--ease); }
.stone-card:hover .stone-card__media > img { scale: 1.06; }
.stone-card__media .tag { left: 14px; top: 14px; padding: 7px 9px; font-size: 11px; line-height: 1; }
.stone-card__go { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 2px; transition: transform .6s var(--ease); }
.stone-card__go--ink { background: var(--ink); color: var(--paper); }
.stone-card__go--paper, .stone-card__go--static { background: var(--paper); color: var(--ink); }
.stone-card__go--static { position: static; }
.stone-card:hover .stone-card__go { transform: rotate(45deg) scale(1.08); }
.stone-card__ask { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 2.4vw, 34px); }
.stone-card__info { display: flex; flex-direction: column; gap: 8px; }
.stone-card__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.stone-card__name { font-size: clamp(18px, 1.55vw, 22px); font-stretch: 122%; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; white-space: nowrap; }
.stone-card__info p { max-width: 30em; }

/* ---------- Contact page ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 96px); padding-block: clamp(28px, 4.4vw, 64px) clamp(64px, 8.4vw, 128px); }
.contact__text { flex: 1 1 400px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.tips li { display: flex; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.4; }
.tips li:last-child { border-bottom: 1px solid var(--line); }
.tips .eyebrow { padding-top: 3px; }
.contact__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 22px 20px; }
.contact__facts > div { display: flex; flex-direction: column; gap: 6px; }
.contact__facts dd { font-size: 16px; line-height: 1.4; }
.contact__panel { flex: 1.2 1 480px; position: relative; overflow: hidden; border-radius: 2px; background: #DDE0DD; display: flex; flex-direction: column; min-height: 640px; }
.contact__bg { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.contact__veil { position: absolute; inset: 0; background: rgba(237, 239, 236, .5); }
.enquiry, .sent { position: relative; flex: 1; padding: clamp(22px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 22px; }
.sent { justify-content: space-between; align-items: flex-start; gap: 40px; }
.sent[hidden], .enquiry[hidden] { display: none; }
.sent__title { font-size: clamp(40px, 5.4vw, 78px); font-weight: 300; letter-spacing: -.045em; line-height: .95; }
.enquiry__top { display: flex; justify-content: space-between; font-weight: 600; }
.enquiry__row { display: flex; flex-wrap: wrap; gap: 22px 16px; }
.field-wrap { position: relative; flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.field-wrap > label, .enquiry legend { font-weight: 600; }
.field-wrap--grow { flex: 1; }
.field { width: 100%; height: 52px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font-family: inherit; font-size: 16px; transition: background .3s; }
.field::placeholder { color: #5A5F5B; opacity: 1; }
.field:focus { outline: none; background: #fff; }
.field:focus-visible { outline: none; }
.field-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); pointer-events: none; }
.field:focus ~ .field-line, .select:focus-within ~ .field-line { transform: scaleX(1); }
.field.is-invalid { border-bottom-color: #A1271C; }
textarea.field { flex: 1; height: auto; min-height: 160px; padding: 14px; line-height: 1.45; resize: vertical; }
.select { position: relative; }
.select .field { padding-right: 40px; appearance: none; -webkit-appearance: none; }
.select svg { position: absolute; right: 16px; top: 20px; pointer-events: none; transition: transform .4s var(--ease); }
.select:focus-within svg { transform: rotate(180deg); }
.enquiry__formats { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.enquiry legend { padding: 0; margin-bottom: 8px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; font-size: 15px; overflow: hidden; isolation: isolate; transition: color .4s var(--ease); }
.pick::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: circle(0% at 22px 50%); transition: clip-path .6s var(--ease); }
.pick:has(input:checked) { color: var(--paper); }
.pick:has(input:checked)::before { clip-path: circle(150% at 22px 50%); }
.pick input { width: 16px; height: 16px; margin: 0; accent-color: var(--paper); }
.pick:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.enquiry__error { color: #A1271C; font-weight: 500; }
.enquiry__send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.enquiry__send .small { max-width: 20em; font-size: 14px; }
.contact__panel .btn-ghost { color: var(--ink); }
.contact__panel .btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Stone page ---------- */
.stone-hero { position: relative; overflow: hidden; min-height: clamp(520px, 56vw, 840px); display: flex; flex-direction: column; justify-content: space-between; }
.stone-hero__media { position: absolute; inset: 0; overflow: hidden; }
.stone-hero__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.stone-hero__top { position: relative; width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; padding-block: 20px; line-height: 1; }
.crumb { display: flex; align-items: center; gap: 10px; padding: 0 12px; min-height: 44px; background: var(--paper); color: var(--ink); }
.crumb a { display: flex; align-items: center; min-height: 44px; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumb--n { background: var(--fg); color: var(--bg); }
.t-light .crumb--n { background: var(--ink); color: var(--paper); }
.t-dark .crumb--n, .t-verde .crumb--n { background: var(--paper); color: var(--ink); }
.stone-hero__bottom { position: relative; width: 100%; padding-bottom: clamp(30px, 4.8vw, 70px); }
.stone-hero__title { font-size: clamp(50px, 14.4vw, 207px); font-weight: 300; letter-spacing: -.055em; line-height: .86; color: var(--ink); }
.stone-hero__title .serif { font-weight: 700; letter-spacing: -.04em; }
.stone-hero__title--glow { color: var(--paper); text-shadow: 0 0 26px rgba(12, 13, 12, .9), 0 0 6px rgba(12, 13, 12, .7); }
.two-col { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6.4vw, 104px); }
.two-col__a { flex: 1.25 1 440px; }
.two-col__a .body { max-width: 34em; line-height: 1.6; }
.two-col__b { flex: 1 1 380px; }
.two-col__narrow { flex: 1 1 320px; }
.facts { display: flex; flex-direction: column; }
.facts__row { position: relative; display: flex; gap: 20px; padding: 14px 0; }
.facts__row::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(var(--line-x, 1)); }
.facts__row:last-child::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(var(--line-x, 1)); }
.facts dt { flex: 0 0 104px; padding-top: 4px; }
.facts dd { font-size: 16px; line-height: 1.4; }
.interest { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: clamp(20px, 2.2vw, 28px); border-radius: 2px; }
.interest__text { font-size: clamp(20px, 1.7vw, 24px); font-weight: 300; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.read__grid { display: flex; flex-wrap: wrap; gap: 40px clamp(32px, 5vw, 80px); align-items: flex-start; }
.read__media { flex: 1.35 1 460px; position: relative; aspect-ratio: 1; overflow: hidden; }
.read__img { position: absolute; inset: 0; overflow: hidden; }
.read__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: var(--zoom-origin, 50% 50%); }
.read__text { flex: 1 1 340px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; align-self: stretch; }
.pin { position: absolute; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; margin: -16px 0 0 -16px; background: var(--ink); color: var(--paper); box-shadow: 0 0 0 2px var(--paper); font-size: 10.5px; font-stretch: 118%; font-weight: 550; letter-spacing: .1em; transition: box-shadow .4s var(--ease); }
.t-dark .pin, .t-verde .pin { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.pin.is-active { box-shadow: 0 0 0 2px var(--paper), 0 0 0 10px rgba(237, 239, 236, .35); }
.t-dark .pin.is-active, .t-verde .pin.is-active { box-shadow: 0 0 0 2px var(--ink), 0 0 0 10px rgba(237, 239, 236, .35); }
.pin--static { position: relative; margin: 0; flex: none; }
.read__list { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.read__item { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.read__item > * { transition: opacity .5s var(--ease); }
.read--active .read__item > * { opacity: .35; }
.read--active .read__item.is-active > * { opacity: 1; }
.finish-view { display: flex; flex-wrap: wrap; gap: 40px clamp(32px, 5vw, 80px); }
.finish-view__text { flex: 1 1 340px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.finish-btns { display: flex; flex-direction: column; gap: 6px; }
.finish-btn { position: relative; display: flex; gap: 18px; width: 100%; padding: 16px 18px; border: 1px solid var(--fg); border-radius: 2px; background: transparent; cursor: pointer; text-align: left; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.t-dark .finish-btn, .t-verde .finish-btn { border-color: rgba(237, 239, 236, .6); }
.finish-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.finish-btn > .eyebrow { padding-top: 5px; }
.finish-btn__name { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.finish-btn__sub { font-size: 14px; line-height: 1.45; color: var(--mute); transition: color .5s; }
.finish-btn[aria-pressed="true"] { color: var(--bg); }
.finish-btn[aria-pressed="true"]::before { transform: scaleX(1); }
.finish-btn[aria-pressed="true"] .finish-btn__sub { color: var(--bg); opacity: .7; }
.finish-view__stage { flex: 1.35 1 460px; position: relative; aspect-ratio: 6 / 5; overflow: hidden; background: var(--deep); }
.finish-view__img { position: absolute; inset: 0; visibility: hidden; }
.finish-view__img.is-on { visibility: visible; }
.finish-view__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; }
.split-head > .stack-m { flex: 1 1 520px; }
.split-head .body { flex: 0 1 29em; }
.matches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px 20px; }
.match { display: flex; flex-direction: column; gap: 18px; }
.match__grid { display: grid; gap: 2px; aspect-ratio: 6 / 5; perspective: 1200px; }
.match__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.match__grid--4 { grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); }
.match__slab { position: relative; overflow: hidden; }
.match__slab img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.match__slab--hinge { transform-origin: 0 50%; }
.match__slab--hinge-top { transform-origin: 50% 0; }
.match__slab--hinge-corner { transform-origin: 0 0; }
.mirror-x { transform: scaleX(-1); }
.mirror-y { transform: scaleY(-1); }
.mirror-xy { transform: scale(-1, -1); }
.match__name { display: flex; align-items: baseline; gap: 14px; font-size: 22px; letter-spacing: -.02em; }
.match p { max-width: 26em; line-height: 1.5; }
.rooms { flex: 1.7 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 20px; }
.room { position: relative; display: flex; gap: 18px; padding: 18px 0 22px; border-top: 1px solid var(--line); }
.room > .eyebrow { padding-top: 6px; }
.pairs__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 36px 20px; }
.pair { display: flex; flex-direction: column; gap: 14px; }
.pair__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.pair__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pair:hover .pair__img img { transform: scale(1.06); }
.pair__img .tag { left: 12px; top: 12px; padding: 7px 9px; font-size: 11px; line-height: 1; }
.pair__name { font-size: 19px; font-stretch: 122%; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .curtain { display: none; }
}
