/* =========================================================================
   The Premium Nexus: site.css (shared on every page)
   Ported 1:1 from concept G "Portoro" (../prototype/concept-g-portoro/style.css).
   A black-and-gold house: Portoro marble (black stone, gold veins), carved
   arches with gold jali, and one travelling bar of warm gold light.
   Gold is solid on type; metallic sheen lives only on hairlines, bezels,
   fills and the light bar. Shape rule: actions = pill, media = pointed arch
   or 2px, inputs = 2px, cabochons = circle.
   The home chapters (hero, about, houses, approach, arcade, loupe) live in
   home.css; inner-page layouts in pages.css. Relative url()s are rewritten
   to hashed asset names by build.js.
   ========================================================================= */

/* ---------- Fonts (self-hosted; Anybody instanced to the axes the site uses) ---------- */
@font-face { font-family: "Anybody"; font-style: normal; font-weight: 600 840; font-stretch: 125% 150%; font-display: swap; src: url("/assets/fonts/anybody-g-latin-ext.woff2?v=002c1c40c2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Anybody"; font-style: normal; font-weight: 600 840; font-stretch: 125% 150%; font-display: swap; src: url("/assets/fonts/anybody-g-latin.woff2?v=0174e63742") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/gloock-latin-ext.woff2?v=f4c411c2a1") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/gloock-latin.woff2?v=9389ada8d3") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin-ext.woff2?v=768af2923e") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin.woff2?v=e9201eddf1") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@property --xn   { syntax: "<number>"; inherits: true; initial-value: 1.25; }
@property --rv   { syntax: "<number>"; inherits: true; initial-value: 1.2; }
@property --on   { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --p    { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --blur { syntax: "<length>"; inherits: true; initial-value: 0px; }
/* Registered as lengths so getComputedStyle returns resolved px (the loupe camera reads them) */
@property --safe-top    { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --lift        { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --safe-bottom { syntax: "<length>"; inherits: true; initial-value: 0px; }

:root {
  --black: #070707;
  --marble: #0d0c0b;
  /* the Portoro stone, pre-rendered from img/portoro.svg (tools/render-marble.mjs): the SVG's noise
     filters re-ran on every re-raster and made scrolling heavy; a bitmap is free to move and scale */
  --marble-img: url("/assets/img/portoro.1e935335e0.webp");
  --stone: #12110f;
  --stone-2: #1a1814;
  --gold: #d6b46a;
  --gold-deep: #9c7a3c;
  --gold-hi: #f1dda6;
  --gold-line: rgb(214 180 106 / .32);
  --gold-soft: rgb(214 180 106 / .16);
  --white: #f2eee6;
  --text: #e4ddd0;
  --muted: #a7a097;
  --line: rgb(242 238 230 / .1);
  --error: #f3a08f;

  --font-band: "Anybody", "Hanken Grotesk", system-ui, sans-serif;
  --font-serif: "Gloock", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.32, .72, 0, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(20px, 4.2vw, 64px);
  --maxw: 1440px;
  --chapter: clamp(112px, 15vh, 210px);

  --metal: linear-gradient(135deg, #f1dda6 0%, #d6b46a 32%, #9c7a3c 58%, #d6b46a 78%, #f1dda6 100%);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #4a3c22 var(--black); scrollbar-width: thin; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
a { color: inherit; text-underline-offset: .28em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--black); }
input, textarea, select { caret-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #3d321d; border-radius: 10px; border: 2px solid var(--black); }
::-webkit-scrollbar-thumb:hover { background: #5c4a28; }
main { overflow-x: clip; }
sub { font-size: .68em; line-height: 0; vertical-align: -.28em; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.chapter { padding-block: var(--chapter); }
.chapter-head { display: grid; gap: 24px; max-width: 980px; margin-bottom: clamp(48px, 6.5vw, 104px); }

.portoro { background: var(--marble) var(--marble-img) center / cover no-repeat; }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100; padding: 14px 20px; border-radius: 999px;
  background: var(--gold); color: var(--black); font-weight: 600; text-decoration: none;
  transition: top .4s var(--ease-out);
}
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 4.9rem); line-height: 1.02; letter-spacing: -0.012em;
  color: var(--white); text-wrap: balance; max-width: 17ch;
}
.lead { font-size: clamp(1.1rem, 1.35vw, 1.28rem); line-height: 1.6; color: var(--text); max-width: 58ch; }
.lbl, .house__source, .spec__label, .panel__scope, .prow__scope, .principle__sub, .route__label, .gem__specs dt, .mohs__label span:first-child, .footer__h, .figure dt, .abay__meta, .cab__name, .ladder a, .loupe__tag, .next__caption, .eyebrow, .crumbs {
  font-family: var(--font-band); font-stretch: 125%; font-weight: 600; text-transform: uppercase;
}

/* ---------- Grain + progress channel ---------- */
.grain {
  position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .78 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 46; height: 8px; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease-out); }
html.has-progress .progress { opacity: 1; }
.progress__channel {
  position: absolute; left: 0; right: 0; top: 2px; height: 5px;
  border-top: 1px solid rgb(214 180 106 / .22); border-bottom: 1px solid rgb(214 180 106 / .22);
}
.progress__fill {
  position: absolute; inset: 1px 0; transform-origin: 0 50%; transform: scaleX(var(--p));
  background: linear-gradient(90deg, #6e5226, var(--gold-deep) 30%, var(--gold) 80%, var(--gold-hi));
}
.progress__glint {
  position: absolute; top: -3px; width: 90px; height: 11px; margin-left: -60px; left: calc(var(--p) * 100%);
  background: radial-gradient(50% 50% at 66% 50%, rgb(255 246 222 / .9), transparent 70%);
  opacity: min(1, calc(var(--p) * 40));
}
.progress__nodes { position: absolute; left: 0; right: 0; top: 0; height: 9px; }
.progress__node { position: absolute; top: 0; width: 9px; height: 9px; margin-left: -4.5px; fill: #1a1712; stroke: var(--gold-deep); stroke-width: 1.4; transition: fill .4s var(--ease-out), stroke .4s var(--ease-out); }
.progress__node.is-on { fill: var(--gold); stroke: var(--gold-hi); }
.nav-sentinel { position: absolute; top: 90px; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 6px 6px 6px 24px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 15px/1 var(--font-body); letter-spacing: .01em;
  transition: transform .55s var(--ease-spring), background-color .45s var(--ease-out), color .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.btn__icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 19px;
  transition: transform .55s var(--ease-spring), background-color .45s var(--ease-out);
}
.btn:hover .btn__icon { transform: translate(2px, -2px) scale(1.06); }
.btn:active { transform: scale(.98); }
.btn--gold { background: var(--gold); color: var(--black); box-shadow: inset 0 1px 0 rgb(255 246 222 / .55), inset 0 -1px 0 rgb(110 82 38 / .45); }
.btn--gold .btn__icon { background: var(--black); color: var(--gold); }
.btn--gold:hover { background: #e2c47e; box-shadow: inset 0 1px 0 rgb(255 246 222 / .6), 0 14px 40px rgb(214 180 106 / .22); }
.btn--ghost { background: rgb(214 180 106 / .05); color: var(--white); box-shadow: inset 0 0 0 1px var(--gold-line); }
.btn--ghost .btn__icon { background: rgb(214 180 106 / .12); color: var(--gold); }
.btn--ghost:hover { background: rgb(214 180 106 / .11); box-shadow: inset 0 0 0 1px rgb(214 180 106 / .55); }
.btn--sm { min-height: 46px; padding: 4px 4px 4px 18px; font-size: 14px; gap: 10px; }
.btn--sm .btn__icon { width: 38px; height: 38px; font-size: 17px; }

.tlink {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 18px;
  color: var(--gold); font-weight: 600; text-decoration: underline; text-decoration-color: rgb(214 180 106 / .42);
  transition: text-decoration-color .35s var(--ease-out), color .35s var(--ease-out);
}
.tlink i { transition: transform .5s var(--ease-spring); font-size: 1.1em; }
.tlink:hover { color: var(--gold-hi); text-decoration-color: var(--gold-hi); }
.tlink:hover i { transform: translate(2px, -2px); }

/* ---------- The gold light bar (the page's single motion grammar) ---------- */
.light {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 2; pointer-events: none;
  width: clamp(130px, 15cqw, 280px);
  background: linear-gradient(90deg,
    transparent 0%, rgb(214 180 106 / .05) 24%, rgb(241 221 166 / .2) 44%,
    rgb(255 246 222 / .95) 50%, rgb(241 221 166 / .2) 56%, rgb(214 180 106 / .05) 76%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--xn) * 100cqw - 50%), 0, 0);
  will-change: transform;
}
.channel {
  position: absolute; top: 0; left: 0; right: 0; height: 5px; pointer-events: none;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold-deep);
  transform-origin: 0 50%; transform: scaleX(var(--on)); opacity: calc(.2 + .8 * var(--on));
}

/* ---------- Nav (floating island) ---------- */
.nav {
  position: fixed; top: max(16px, env(safe-area-inset-top)); left: 0; right: 0; z-index: 80;
  display: flex; justify-content: center; padding-inline: 12px; pointer-events: none;
}
.nav__pill {
  pointer-events: auto; display: flex; align-items: center; gap: clamp(10px, 1.4vw, 26px);
  padding: 7px 7px 7px 16px; border-radius: 999px;
  background: rgb(12 11 9 / .6); -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: inset 0 0 0 1px rgb(214 180 106 / .2), inset 0 1px 0 rgb(255 246 222 / .07), 0 18px 50px rgb(0 0 0 / .4);
  transform-origin: 50% 0;
  transition: transform .6s var(--ease-spring), background-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.nav.is-condensed .nav__pill { background: rgb(12 11 9 / .88); transform: scale(.965); box-shadow: inset 0 0 0 1px rgb(214 180 106 / .26), inset 0 1px 0 rgb(255 246 222 / .07), 0 14px 40px rgb(0 0 0 / .5); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--white); text-decoration: none; }
.nav__mark { flex: none; height: 32px; width: auto; object-fit: contain; }
.footer__logo { display: inline-block; margin-bottom: 6px; }
.footer__logo img { width: clamp(190px, 17vw, 250px); height: auto; }
.nav__word {
  font-family: var(--font-band); font-stretch: 140%; font-weight: 700; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  font-size: 14px; color: var(--text); text-decoration: none; white-space: nowrap;
  transition: color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.nav__links a:hover, .nav__links a[aria-current] { color: var(--gold-hi); background: rgb(214 180 106 / .1); }
.nav__menu {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: rgb(214 180 106 / .1); color: var(--white); font-size: 14px; font-weight: 600; cursor: pointer;
}
.nav__lines { position: relative; width: 18px; height: 10px; }
.nav__lines i { position: absolute; left: 0; width: 18px; height: 1.6px; border-radius: 2px; background: var(--gold); transition: transform .55s var(--ease-spring); }
.nav__lines i:first-child { top: 1px; }
.nav__lines i:last-child { bottom: 1px; }
.nav__menu[aria-expanded="true"] .nav__lines i:first-child { transform: translateY(3.4px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__lines i:last-child { transform: translateY(-3.4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; justify-content: space-between;
  padding: 116px var(--gutter) max(40px, env(safe-area-inset-bottom)); overflow-y: auto;
  background: rgb(7 7 7 / .96) var(--marble-img) center / cover; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.menu__links { display: grid; gap: 2px; }
.menu__links a {
  font-family: var(--font-serif); font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.12; color: var(--white); text-decoration: none; padding: 6px 0;
}
.menu__links a:hover, .menu__links a[aria-current] { color: var(--gold); }
.menu__foot { display: grid; gap: 22px; justify-items: start; padding-top: 28px; }
.menu__socials { display: flex; gap: 8px; }

/* ---------- Arch frames (pointed arch, gold double channel) ---------- */
.arch { position: relative; }
.arch__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke-width: 1; }
.arch__lines path { stroke: var(--gold); }
.arch__lines path + path { stroke: var(--gold-deep); }
.arch__img {
  position: absolute; inset: 13px; container-type: inline-size;
  -webkit-clip-path: url(#arch); clip-path: url(#arch);
  overflow: hidden; background: #0b0a08;
}
.jali { position: absolute; left: 0; right: 0; top: 0; background: url("/assets/img/jali.2159c70a87.svg") 50% 0 / 30px 30px repeat; pointer-events: none; z-index: 1; }
.jali--head { height: 34%; border-bottom: 3px solid var(--marble); box-shadow: 0 1px 0 rgb(214 180 106 / .55); }

/* ---------- Partnerships ---------- */
.partners__primary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.panel {
  position: relative; display: grid; gap: 18px; align-content: start; justify-items: start;
  padding: clamp(40px, 4.4vw, 68px);
}
.panel:nth-child(2) { background-position: 80% 20%; }
.panel::before {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 6px transparent, inset 0 0 0 7px rgb(156 122 60 / .7);
  opacity: calc(.25 + .75 * var(--on));
}
.panel__title { order: -2; font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.04; color: var(--white); }
.panel__scope { order: -1; font-size: 11.5px; letter-spacing: .18em; color: var(--gold); }
.panel__text { color: var(--text); max-width: 50ch; }
.panel__list { list-style: none; margin: 6px 0 14px; padding: 0; display: grid; gap: 12px; }
.panel__list li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: baseline; color: var(--white); line-height: 1.5; }
.panel__list svg { fill: var(--gold); transform: translateY(1px); }
.prows { list-style: none; margin: clamp(44px, 5vw, 80px) 0 0; padding: 0; border-top: 1px solid var(--gold-line); }
.prow {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr) minmax(0, 1.7fr) auto; gap: 28px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.prow__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.35rem, 1.7vw, 1.65rem); color: var(--white); line-height: 1.15; }
.prow__scope { font-size: 10.5px; letter-spacing: .16em; color: var(--gold); }
.prow__text { color: var(--text); font-size: .98rem; }
.prow .tlink { margin-top: 0; }

/* ---------- Philosophy ---------- */
.philosophy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(36px, 5vw, 96px) clamp(40px, 6vw, 120px); align-items: end; }
.philosophy__lead { display: grid; gap: 22px; }
.philosophy__statement { position: relative; padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid var(--gold-line); }
.philosophy__statement p { font-family: var(--font-serif); font-size: clamp(1.35rem, 1.9vw, 1.9rem); line-height: 1.4; color: var(--white); max-width: 36ch; }
.principles { grid-column: 1 / -1; list-style: none; margin: clamp(24px, 3vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); }
.principle { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--gold-line); }
.principle__star { fill: var(--gold); margin-bottom: 4px; }
.principle h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 2vw, 1.95rem); line-height: 1.08; color: var(--white); }
.principle__sub { font-size: 10.5px; letter-spacing: .18em; color: var(--gold); }
.principle p:last-child { color: var(--muted); font-size: .98rem; }

/* ---------- Contact (Portoro marble) ---------- */
.contact { position: relative; padding: var(--chapter) 0 clamp(96px, 11vw, 160px); background-position: 70% 30%; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact__side { display: grid; gap: 28px; justify-items: start; }
.contact__title { position: relative; display: inline-block; overflow: hidden; padding-bottom: .06em; margin: 0; font-weight: 400; }
.contact__title-text { display: block; font-family: var(--font-serif); font-weight: 400; font-size: clamp(3.2rem, 7vw, 7rem); line-height: .98; color: var(--gold); letter-spacing: -0.012em; }
.contact__sheen {
  position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none; mix-blend-mode: color-dodge;
  background: linear-gradient(100deg, transparent 0%, rgb(255 246 222 / .12) 32%, rgb(255 246 222 / .9) 50%, rgb(255 246 222 / .12) 68%, transparent 100%);
  transform: translateX(-130%);
}
.contact__title.is-lit .contact__sheen { animation: sheen-pass 1.9s var(--ease-in-out) both; }
@keyframes sheen-pass { to { transform: translateX(330%); } }
.routes { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--gold-line); }
.route {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "i l" "i v" "i n";
  column-gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; min-height: 44px;
}
.route i { grid-area: i; font-size: 24px; color: var(--gold); margin-top: 2px; }
.route__label { grid-area: l; font-size: 10.5px; letter-spacing: .18em; color: var(--muted); }
.route__value { grid-area: v; margin-top: 4px; color: var(--white); font-size: 1.08rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.route__note { grid-area: n; margin-top: 4px; color: var(--muted); font-size: .93rem; }
a.route:hover .route__value { color: var(--gold-hi); text-decoration: underline; text-decoration-color: var(--gold-line); }

.contact__formwrap {
  position: relative; padding: clamp(30px, 3.8vw, 58px);
  background: rgb(10 9 8 / .72); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.contact__formwrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 7px transparent, inset 0 0 0 8px rgb(156 122 60 / .75);
}
.contact__formwrap::after {
  content: ""; position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; transform: rotate(45deg);
  background: var(--black); box-shadow: inset 0 0 0 1px var(--gold); pointer-events: none;
}
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.form.is-sent { display: none; }
.form__alert { grid-column: 1 / -1; margin: 0 0 6px; padding: 12px 16px; border-left: 2px solid var(--error); background: rgb(243 160 143 / .08); color: var(--white); font-size: 14.5px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; letter-spacing: .02em; color: var(--white); }
.field label span { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 2px;
  border: 1px solid rgb(214 180 106 / .26); background: rgb(7 7 7 / .82); color: var(--white);
  font: 400 16px/1.4 var(--font-body);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #8f887e; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(214 180 106 / .5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(214 180 106 / .2); background: #0b0a08; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select select option { background: #0f0e0c; color: var(--white); }
.select i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--gold); }
.field-error { min-height: 1.3em; font-size: 13px; line-height: 1.3; color: var(--error); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 8px; }
.form__note { font-size: 13.5px; color: var(--muted); max-width: 46ch; }
.form__note span { color: var(--gold); }
.form.is-sending .form__submit { opacity: .78; pointer-events: none; }
.form.is-sending .form__submit .btn__icon i { display: none; }
.form.is-sending .form__submit .btn__icon::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-done { display: grid; gap: 18px; justify-items: start; align-content: center; min-height: 420px; }
.form-done:focus { outline: none; }
.form-done__star { width: 76px; height: 76px; }
.form-done__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.2rem, 3.6vw, 3.4rem); color: var(--gold); line-height: 1; }
.form-done p { color: var(--text); max-width: 46ch; }

/* ---------- Footer ---------- */
.footer { position: relative; background: #050505; border-top: 1px solid var(--gold-line); padding: clamp(68px, 8vw, 116px) 0 40px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.05fr) minmax(0, .85fr) minmax(0, 1.2fr); gap: clamp(32px, 4vw, 72px); }
.footer__brand p { color: var(--muted); max-width: 40ch; }
.footer__h { margin: 0 0 18px; font-size: 10.5px; letter-spacing: .2em; color: var(--gold); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.footer__list a:hover { color: var(--gold-hi); text-decoration: underline; }
.footer__list span { display: block; font-size: 13px; color: var(--muted); margin-top: -4px; }
.footer__grid > div > p { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.footer strong { color: var(--text); font-weight: 600; }
.footer__contact { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; }
.footer__contact a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text); text-decoration: none; }
.footer__contact a:hover { color: var(--gold-hi); }
.footer__socials, .menu__socials { display: flex; gap: 8px; margin-top: 24px; }
.social-link {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); font-size: 20px;
  box-shadow: inset 0 0 0 1px var(--gold-line); text-decoration: none; transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.social-link:hover { background: rgb(214 180 106 / .12); box-shadow: inset 0 0 0 1px var(--gold); }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
}
.footer__tag { font-family: var(--font-band); font-stretch: 130%; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; color: var(--gold); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.footer__legal a:hover { color: var(--gold-hi); text-decoration: underline; }
.footer__line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-deep) 20%, var(--gold-hi) 50%, var(--gold-deep) 80%, transparent); }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .nav__links a { padding: 0 9px; font-size: 13.5px; }
}
@media (max-width: 1179px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__pill { gap: 10px; }
}
@media (max-width: 1100px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  :root { --chapter: clamp(88px, 13vh, 130px); }
  .nav { padding-inline: 10px; }
  .nav__pill { width: 100%; justify-content: space-between; padding: 6px 6px 6px 12px; }
  .nav__cta { display: none; }
  .partners__primary, .philosophy__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .prow { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form__submit { width: 100%; justify-content: space-between; }
  .footer { padding-bottom: 150px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) { :root { --marble-img: url("/assets/img/portoro-1200.e560c7a1d8.webp"); } }
@media (max-width: 560px) {
  .nav__word { font-size: 11px; letter-spacing: .06em; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .light, .contact__sheen { display: none; }
}
html.reduced .progress { display: none; }

/* ---------- Phones: readable micro-labels ---------- */
@media (max-width: 899px) {
  .prow__scope, .principle__sub, .route__label, .footer__h { font-size: 12px; letter-spacing: .14em; }
  .footer__tag { font-size: 12px; }
}
/* long button labels wrap inside narrow cards instead of widening them past the screen */
@media (max-width: 560px) {
  .btn { white-space: normal; max-width: 100%; line-height: 1.25; text-align: left; }
}
/* the phone app shell (tab bar + Talk sheet) exists only on phones: css/mobile.css */
.tabbar, .talk, .splash { display: none; }
