/* ==========================================================================
   Monega Gold Trading — main stylesheet
   Identity: ivory paper · forest green #284035 · copper #7D3624 · sage #ABC4B9 · rose #C3A7A0 · copper foil
   Motif: the arch (Qatari architecture) framing the Monega star.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Givonic';
  src: url('../fonts/Givonic-Bold.otf') format('opentype'), url('../fonts/Givonic-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Givonic';
  src: url('../fonts/Givonic-Black.otf') format('opentype'), url('../fonts/Givonic-Black.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --forest-950: #0e1813;
  --forest-900: #14221c;
  --forest-850: #182a22;
  --forest-800: #1d3129;
  --forest-700: #284035;
  --forest-600: #314738;
  --forest-500: #405848;
  --sage-400: #86a996;
  --sage-300: #abc4b9;
  --sage-200: #cbdad2;
  --sage-100: #e3ebe6;
  --copper-800: #5e2819;
  --copper-700: #7d3624;
  --copper-600: #8f3f2b;
  --copper-500: #91513d;
  --copper-400: #a57366;
  --copper-300: #c89a82;
  --rose-300: #c3a7a0;
  --rose-200: #dcc8c1;
  --rose-100: #efe3dd;
  --ivory-50: #fbf8f3;
  --ivory-100: #f5efe6;
  --ivory-200: #ede4d6;
  --ivory-300: #e1d5c3;

  --ink: #14221c;
  --ink-2: #3a4c43;
  --ink-3: #56655e;
  --line: rgba(40, 64, 53, .14);
  --line-strong: rgba(40, 64, 53, .26);
  --on-dark: #f5efe6;
  --on-dark-2: rgba(245, 239, 230, .74);
  --on-dark-3: rgba(245, 239, 230, .6);
  --line-dark: rgba(171, 196, 185, .16);
  --line-dark-strong: rgba(171, 196, 185, .3);

  --up: #2b7a57;
  --down: #a9442d;
  --up-dark: #8fd1ad;
  --down-dark: #eba08a;

  --foil: linear-gradient(115deg, #7a4330 0%, #b87a5a 22%, #e9c3a8 42%, #fbe9dc 52%, #d7a383 64%, #9c5d41 82%, #6e3a28 100%);
  --foil-ink: linear-gradient(115deg, #5e2819 0%, #8f3f2b 30%, #b0704f 50%, #8f3f2b 70%, #6e3a28 100%);
  --gold-face: linear-gradient(125deg, #f9e6aa 0%, #e6b95e 20%, #c8912f 40%, #f6da92 57%, #d7a445 75%, #ad7722 100%);
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23c89a82' stroke-opacity='.16' stroke-width='1'%3E%3Crect x='24' y='24' width='36' height='36'/%3E%3Crect x='24' y='24' width='36' height='36' transform='rotate(45 42 42)'/%3E%3Ccircle cx='42' cy='42' r='7'/%3E%3Cpath d='M0 42h16.5M67.5 42H84M42 0v16.5M42 67.5V84'/%3E%3C/g%3E%3C/svg%3E");

  --font-display: 'Givonic', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 136px);
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 24px 48px -30px rgba(20, 34, 28, .3);
  --shadow-float: 0 30px 60px -24px rgba(14, 24, 19, .35), 0 2px 6px rgba(14, 24, 19, .06);
  --topbar-h: 34px;
  --nav-h: 80px;
  --header-h: calc(var(--topbar-h) + var(--nav-h));
}
@media (max-width: 899px) { :root { --nav-h: 66px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
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(--font-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--ivory-100);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -.022em; text-wrap: balance; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--copper-700); color: var(--ivory-50); }
:focus-visible { outline: 2px solid var(--copper-500); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--forest-700); color: var(--on-dark); padding: 10px 16px; border-radius: var(--radius-s); transition: top .2s; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--dark { background: var(--forest-900); color: var(--on-dark); isolation: isolate; overflow: hidden; }
/* Eight-point star lattice (a nod to Qatari mashrabiya screens), faded in from one corner */
.section--dark::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--lattice); background-size: 84px 84px; opacity: .55;
  -webkit-mask-image: radial-gradient(90% 80% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(90% 80% at 100% 0%, #000, transparent 70%); }
.section--paper { background: var(--ivory-50); }
.section--sand { background: var(--ivory-200); }
.section:not(.section--dark):not(.section--paper):not(.section--sand) + .section:not(.section--dark):not(.section--paper):not(.section--sand) { padding-top: 0; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em; margin: 0;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-600);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.on-dark .eyebrow, .section--dark .eyebrow { color: var(--copper-300); }
.display-1 { font-size: clamp(2.8rem, 6.2vw, 5.9rem); line-height: .98; letter-spacing: -.035em; }
.display-2 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); line-height: 1.02; letter-spacing: -.03em; }
.display-3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.06; letter-spacing: -.025em; }
.h-card { font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.15; letter-spacing: -.015em; }
.serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-size: 1.1em; line-height: .9;
  background: var(--foil-ink); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline: .04em .08em;
}
.on-dark .serif, .section--dark .serif { background-image: var(--foil); }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.62; color: var(--ink-2); max-width: 58ch; }
.section--dark .lead, .on-dark .lead { color: var(--on-dark-2); }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum' 1, 'zero' 1; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2 { margin-top: 4px; }
.section-head--split { grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.section-head--center { text-align: center; justify-items: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head .lead { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--forest-700); --btn-fg: var(--on-dark); --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 54px; padding: 0 1.6em; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .35s, color .35s, border-color .35s, box-shadow .45s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .5s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover { --btn-bg: var(--forest-800); box-shadow: 0 16px 32px -16px rgba(20, 34, 28, .55); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--copper { --btn-bg: var(--copper-700); --btn-fg: var(--ivory-50); }
.btn--copper:hover { --btn-bg: var(--copper-800); box-shadow: 0 16px 32px -16px rgba(125, 54, 36, .6); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: rgba(40, 64, 53, .05); --btn-bd: var(--forest-700); box-shadow: none; }
.on-dark .btn--ghost, .section--dark .btn--ghost { --btn-fg: var(--on-dark); --btn-bd: var(--line-dark-strong); }
.on-dark .btn--ghost:hover, .section--dark .btn--ghost:hover { --btn-bd: var(--sage-300); --btn-bg: rgba(171, 196, 185, .08); }
.btn--light { --btn-bg: var(--ivory-100); --btn-fg: var(--forest-900); }
.btn--light:hover { --btn-bg: #fff; }
.btn--sm { min-height: 44px; padding: 0 1.2em; font-size: .88rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .95rem; color: var(--copper-700); border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: gap .4s var(--ease), color .3s; }
.link-arrow:hover { gap: .8em; color: var(--copper-800); }
.on-dark .link-arrow, .section--dark .link-arrow, .tile--dark .link-arrow { color: var(--copper-300); }
.on-dark .link-arrow:hover, .section--dark .link-arrow:hover { color: var(--on-dark); }
.link-arrow .icon { width: 1em; height: 1em; }

/* ---------- Pills, live state, changes ---------- */
.pill { display: inline-flex; align-items: center; gap: .45em; height: 28px; padding: 0 .8em; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.on-dark .pill, .section--dark .pill { border-color: var(--line-dark-strong); color: var(--on-dark-2); }
.feed-state { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; }
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--sage-400); flex: none; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; color: var(--sage-400); opacity: 0; }
[data-status='live'] .live-dot { background: #3fae78; }
[data-status='live'] .live-dot::after { color: #3fae78; animation: ping 2s var(--ease) infinite; }
[data-status='delayed'] .live-dot, [data-status='connecting'] .live-dot { background: #d9a441; }
[data-status='closed'] .live-dot { background: var(--rose-300); }
[data-status='offline'] .live-dot { background: #c7593f; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.chg { display: inline-flex; align-items: center; gap: .3em; font-family: var(--font-mono); font-feature-settings: 'tnum' 1; white-space: nowrap; }
.chg::before { content: ''; width: 0; height: 0; border-inline: .32em solid transparent; }
.chg.is-up { color: var(--up); }
.chg.is-up::before { border-bottom: .42em solid currentColor; }
.chg.is-down { color: var(--down); }
.chg.is-down::before { border-top: .42em solid currentColor; }
.chg.is-flat { color: var(--ink-3); }
.on-dark .chg.is-up, .section--dark .chg.is-up, .topbar .chg.is-up { color: var(--up-dark); }
.on-dark .chg.is-down, .section--dark .chg.is-down, .topbar .chg.is-down { color: var(--down-dark); }
.on-dark .chg.is-flat, .section--dark .chg.is-flat, .topbar .chg.is-flat { color: var(--on-dark-3); }
.tick-up { animation: tickUp 1.1s var(--ease); }
.tick-down { animation: tickDown 1.1s var(--ease); }
@keyframes tickUp { 0% { color: var(--up); } 100% { color: inherit; } }
@keyframes tickDown { 0% { color: var(--down); } 100% { color: inherit; } }
.on-dark .tick-up, .section--dark .tick-up, .topbar .tick-up { animation-name: tickUpD; }
.on-dark .tick-down, .section--dark .tick-down, .topbar .tick-down { animation-name: tickDownD; }
@keyframes tickUpD { 0% { color: var(--up-dark); } 100% { color: inherit; } }
@keyframes tickDownD { 0% { color: var(--down-dark); } 100% { color: inherit; } }

/* ==========================================================================
   Header (light)
   ========================================================================== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .6s var(--ease); }
.site-header.is-hidden { transform: translateY(calc(-1 * var(--header-h) - 2px)); }
.topbar { height: var(--topbar-h); display: flex; align-items: center; background: var(--forest-900); color: var(--on-dark-2); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; }
.topbar__ticker { flex: 1; min-width: 0; height: 100%; }
.topbar__meta { display: none; align-items: center; gap: 14px; height: 100%; padding: 0 var(--gutter) 0 20px; white-space: nowrap; border-left: 1px solid var(--line-dark); background: var(--forest-900); }
.topbar__meta .sep { opacity: .35; }
.topbar__meta a { display: inline-flex; align-items: center; gap: 6px; transition: color .3s; }
.topbar__meta a:hover { color: var(--on-dark); }
.topbar__meta .icon { width: 14px; height: 14px; }
@media (min-width: 1100px) { .topbar__meta { display: flex; } }
.marquee { position: relative; overflow: hidden; height: 100%; display: flex; align-items: center;
  -webkit-mask: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 60s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: baseline; gap: .7em; padding: 0 22px; white-space: nowrap; position: relative; }
.tk::after { content: ''; position: absolute; right: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px; transform: rotate(45deg); background: var(--copper-400); opacity: .8; }
.tk b { font-weight: 500; color: var(--on-dark); letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }
.tk .v { color: var(--on-dark); font-feature-settings: 'tnum' 1; }
.tk .u { color: var(--on-dark-3); }

.navbar { height: var(--nav-h); display: flex; align-items: center; gap: 24px; position: relative; }
.navbar::before { content: ''; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: rgba(245, 239, 230, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .5s, background-color .5s; }
.site-header.is-solid .navbar::before { border-bottom-color: var(--line); background: rgba(245, 239, 230, .94); }
.brand { display: block; width: clamp(130px, 12vw, 168px); flex: none; }
.brand img { width: 100%; height: auto; }
.nav { margin-left: auto; display: none; }
.nav ul { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 32px); }
.nav a { position: relative; display: inline-block; padding: 8px 0; font-size: .93rem; font-weight: 500; color: var(--ink-2); transition: color .3s; }
.nav a::before { content: ''; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; margin-left: -2.5px; transform: rotate(45deg) scale(0); background: var(--copper-600); transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.nav a:hover::before, .nav a[aria-current='page']::before { transform: rotate(45deg) scale(1); }
.navbar__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.navbar__cta { display: none; }
@media (min-width: 640px) { .navbar__cta { display: inline-flex; } }
@media (min-width: 1100px) { .nav { display: block; } .nav + .navbar__actions { margin-left: clamp(8px, 1.6vw, 24px); } }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line-strong); transition: border-color .3s, background-color .3s; }
.icon-btn:hover { border-color: var(--forest-700); background: rgba(40, 64, 53, .05); }
.icon-btn .icon { width: 19px; height: 19px; }
.on-dark .icon-btn { color: var(--on-dark); border-color: var(--line-dark-strong); }
.basket-count { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--copper-700); color: var(--ivory-50); font: 600 .66rem/19px var(--font-mono); text-align: center; transform: scale(0); transition: transform .4s var(--ease); }
.basket-count.has-items { transform: scale(1); }
.basket-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn span:not(.sr-only) { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded='true'] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
@media (min-width: 1100px) { .menu-btn { display: none; } }

/* Mobile menu (light) */
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--ivory-100); color: var(--ink); padding: calc(var(--header-h) + 20px) var(--gutter) 28px; display: flex; flex-direction: column; overflow-y: auto; clip-path: circle(0% at calc(100% - 40px) 60px); transition: clip-path .8s var(--ease-in-out), visibility 0s .8s; visibility: hidden; }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 60px); visibility: visible; transition: clip-path .8s var(--ease-in-out), visibility 0s; }
.mobile-menu__star { position: absolute; right: -40px; bottom: 80px; width: 220px; opacity: .12; pointer-events: none; }
.mobile-menu li { border-bottom: 1px solid var(--line); overflow: hidden; }
.mobile-menu li a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 0; font-family: var(--font-display); font-size: clamp(1.7rem, 7vw, 2.4rem); letter-spacing: -.03em; line-height: 1.1; transform: translateY(100%); transition: transform .8s var(--ease), color .3s; }
.mobile-menu li a span { font-family: var(--font-serif); font-style: italic; font-size: 1rem; color: var(--copper-600); letter-spacing: 0; }
.mobile-menu li a[aria-current='page'] { color: var(--copper-700); }
.mobile-menu.is-open li a { transform: none; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: .25s; }
.mobile-menu.is-open li:nth-child(7) a { transition-delay: .3s; }
.mobile-menu__foot { position: relative; margin-top: auto; padding-top: 28px; display: grid; gap: 14px; font-size: .95rem; color: var(--ink-2); }
.mobile-menu__foot a { display: inline-flex; align-items: center; gap: 10px; }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Arch motif
   ========================================================================== */
.arch { position: relative; overflow: hidden; isolation: isolate; border-radius: 999px 999px var(--radius-l) var(--radius-l);
  background: radial-gradient(90% 60% at 50% 20%, rgba(145, 81, 61, .38), transparent 70%), linear-gradient(180deg, var(--forest-800), var(--forest-950)); }
.arch::after { content: ''; position: absolute; inset: 12px; z-index: 2; pointer-events: none; border: 1px solid rgba(200, 154, 130, .35); border-radius: 999px 999px calc(var(--radius-l) - 8px) calc(var(--radius-l) - 8px); }
.arch--sage { background: radial-gradient(90% 60% at 50% 25%, rgba(255, 255, 255, .8), transparent 70%), linear-gradient(180deg, var(--sage-100), var(--ivory-200)); }
.arch--sage::after { border-color: rgba(40, 64, 53, .14); }
.arch--silver { background: radial-gradient(90% 60% at 50% 25%, rgba(255, 255, 255, .9), transparent 70%), linear-gradient(180deg, #e9ecec, var(--ivory-200)); }
.arch--silver::after { border-color: rgba(40, 64, 53, .12); }
.arch__label { position: absolute; left: 50%; bottom: 28px; z-index: 3; transform: translateX(-50%); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .22em; color: var(--copper-300); white-space: nowrap; }
.pattern-bg { background-image: radial-gradient(circle at 1px 1px, rgba(40, 64, 53, .16) 1px, transparent 0); background-size: 22px 22px; }

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero { position: relative; padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto auto; width: 58%; height: 100%; z-index: -1; background: radial-gradient(60% 50% at 70% 40%, rgba(200, 154, 130, .22), transparent 70%); pointer-events: none; }
.hero__grid { display: grid; gap: clamp(40px, 6vw, 80px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } }
.hero h1 { margin: 22px 0 24px; max-width: 12.5ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); max-width: 580px; }
.hero__facts li { padding: 18px 16px 0 0; display: grid; gap: 4px; }
.hero__facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.hero__facts b { font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -.02em; }
.hero__facts span { font-size: .8rem; color: var(--ink-3); line-height: 1.35; }
.hero__stage { position: relative; justify-self: center; width: min(100%, 500px); }
.hero__arch { aspect-ratio: 4 / 5; width: 100%; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); z-index: 1; }
.hero__canvas.is-ready { opacity: 1; }
.hero__fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .8s; z-index: 1; }
.hero__fallback img { width: 34%; filter: drop-shadow(0 20px 60px rgba(201, 142, 110, .45)); animation: floaty 6s ease-in-out infinite; }
.hero__canvas.is-ready + .hero__fallback { opacity: 0; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
.hero__star { position: absolute; width: 120px; top: calc(6% - 42px); right: calc(-4% - 42px); z-index: 3; pointer-events: none; }
.hero__star--sm { width: 72px; top: calc(28% - 25px); left: calc(-5% - 25px); right: auto; }
@media (max-width: 999px) { .hero__star { right: -30px; } .hero__star--sm { left: -24px; } }
.hero-quote { position: absolute; left: 26px; right: 26px; bottom: 26px; z-index: 4; padding: 14px 18px 12px; border-radius: 18px; color: var(--on-dark);
  background: linear-gradient(180deg, rgba(245, 239, 230, .09), rgba(245, 239, 230, .035)); border: 1px solid rgba(200, 154, 130, .26);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 44px -28px rgba(0, 0, 0, .7); }
.hero-quote__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-dark); }
.hero-quote__head .chg { font-size: .72rem; }
.hero-quote__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px 0; }
.hero-quote__grid > div { display: grid; gap: 5px; min-width: 0; }
.hero-quote__grid > div + div { padding-left: 16px; border-left: 1px solid var(--line-dark); }
.hero-quote__grid > div:first-child { padding-right: 16px; }
.hero-quote__k { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); }
.hero-quote__v { font-family: var(--font-display); font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.05; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-quote__v small { font-family: var(--font-mono); font-size: .52rem; letter-spacing: .08em; color: var(--on-dark-3); margin-right: 6px; vertical-align: .5em; }
.hero-quote__link { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 9px; border-top: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); }
.hero-quote__link > span:last-child { display: inline-flex; align-items: center; gap: 6px; color: var(--copper-300); transition: color .3s; }
.hero-quote__link .icon { width: 12px; height: 12px; transition: transform .4s var(--ease); }
.hero-quote__link:hover > span:last-child { color: var(--on-dark); }
.hero-quote__link:hover .icon { transform: translate(2px, -2px); }
@media (max-width: 999px) { .hero__stage { width: min(100%, 440px); } }
@media (max-width: 479px) { .hero-quote { left: 18px; right: 18px; bottom: 18px; padding: 12px 14px 10px; } .hero-quote__grid > div + div { padding-left: 12px; } .hero-quote__grid > div:first-child { padding-right: 12px; } }
@media (max-width: 479px) { .hero__facts { grid-template-columns: 1fr 1fr 1fr; } .hero__facts li { padding-right: 10px; } .hero__facts li + li { padding-left: 12px; } .hero__facts b { font-size: .95rem; white-space: nowrap; } .hero__facts span { font-size: .72rem; } .hero__ctas .btn { flex: 1 1 100%; } }

/* ---------- Refinery logo strip (home) ---------- */
.refiners { padding-block: clamp(8px, 1.5vw, 16px) clamp(20px, 3vw, 36px); }
.refiners__row { display: grid; gap: 18px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .refiners__row { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; } }
.refiners__label { margin: 0; font-family: var(--font-mono); font-size: .66rem; font-weight: 500; line-height: 1.7; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.refiners__list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
@media (max-width: 559px) { .refiners__list { grid-template-columns: repeat(6, minmax(0, 1fr)); } .refiners__list li { grid-column: span 2; } .refiners__list li:nth-child(n+4) { grid-column: span 3; } }
.refiners__list a { display: grid; place-items: center; height: clamp(64px, 6vw, 80px); padding: 0 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .4s, transform .6s var(--ease), box-shadow .6s var(--ease); }
.refiners__list a:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(20, 34, 28, .5); }
.refiners__list .brand-logo { --k: 66px; --kmax: 46px; max-width: 82%; }
@media (max-width: 559px) { .refiners__list .brand-logo { --k: 54px; --kmax: 36px; } }

/* ---------- Inner page hero (light) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(48px, 6vw, 88px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 1000px) { .page-hero__grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.page-hero h1 { margin: 20px 0 22px; max-width: 16ch; }
.page-hero .lead { max-width: 60ch; }
.page-hero__meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.page-hero__arch { display: none; height: 380px; }
.page-hero__arch img { position: absolute; left: 50%; top: 50%; width: 250px; max-width: 90%; margin: -137px 0 0 -125px; z-index: 3; animation: floaty 6s ease-in-out infinite; }
@media (min-width: 1000px) { .page-hero__arch { display: block; } }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: .5; }

/* ==========================================================================
   Cards, controls
   ========================================================================== */
.card { position: relative; background: var(--ivory-50); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-card); }
.card--pad { padding: clamp(20px, 2.6vw, 34px); }
.card--dark { background: var(--forest-800); border-color: var(--line-dark); color: var(--on-dark); box-shadow: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(40, 64, 53, .07); border: 1px solid var(--line); }
.seg button { height: 34px; padding: 0 16px; border-radius: 999px; font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .08em; color: var(--ink-3); transition: color .3s, background-color .3s, box-shadow .3s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed='true'] { background: var(--ivory-50); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 34, 28, .12), 0 0 0 1px var(--line); }
.on-dark .seg { background: rgba(171, 196, 185, .08); border-color: var(--line-dark); }
.on-dark .seg button { color: var(--on-dark-3); }
.on-dark .seg button:hover { color: var(--on-dark); }
.on-dark .seg button[aria-pressed='true'] { background: var(--ivory-100); color: var(--forest-900); box-shadow: none; }
.px-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.on-dark .px-label { color: var(--on-dark-3); }
.px-big { display: flex; align-items: baseline; gap: .3em; margin-top: 8px; font-family: var(--font-display); font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.px-mid { display: flex; align-items: baseline; gap: .3em; margin-top: 8px; font-family: var(--font-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.px-big .ccy, .px-mid .ccy { font-family: var(--font-mono); font-size: .28em; letter-spacing: .08em; color: var(--ink-3); align-self: flex-start; margin-top: .5em; font-weight: 500; }
.px-mid .ccy { font-size: .36em; margin-top: .35em; }
.on-dark .px-big .ccy, .on-dark .px-mid .ccy { color: var(--on-dark-3); }
.px-sub { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--ink-3); }
.on-dark .px-sub { color: var(--on-dark-3); }

/* ==========================================================================
   Rates panel (live gold)
   ========================================================================== */
.rates-panel { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--forest-900); color: var(--on-dark); padding: clamp(22px, 3.2vw, 48px); isolation: isolate; }
.rates-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 100% 0%, rgba(145, 81, 61, .32), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(64, 88, 72, .55), transparent 70%); }
.rates-panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: clamp(20px, 2.4vw, 32px); border-bottom: 1px solid var(--line-dark); }
.rates-panel__head h2 { margin-top: 12px; max-width: 18ch; }
.rates-panel__grid { display: grid; gap: clamp(24px, 3vw, 40px); padding-top: clamp(24px, 3vw, 40px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .rates-panel__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.rp-prices { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .rp-prices { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; } }
.rp-gold { display: flex; flex-direction: column; gap: 28px; }
.rp-gold__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rp-gold__title h3 { font-size: 1.3rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.coin { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 600 .7rem var(--font-mono); letter-spacing: .04em; color: #3b2508; background: var(--gold-face); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), inset 0 -6px 12px rgba(120, 75, 10, .3), 0 6px 16px -6px rgba(120, 75, 10, .5); }
.coin--ag { background: linear-gradient(125deg, #fbfbfa, #c9cdd0 30%, #9aa0a5 50%, #eef0f1 65%, #aeb3b7); color: #2d3336; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), inset 0 -6px 12px rgba(60, 70, 75, .25); }
.coin--pt { background: linear-gradient(125deg, #f3f5f7, #cfd6dc 30%, #aab4bd 52%, #eef2f5 66%, #b8c1c9); color: #28313a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), inset 0 -6px 12px rgba(50, 60, 70, .22); }
.coin--pd { background: linear-gradient(125deg, #f5f1ee, #d6cdc6 30%, #b3a79e 52%, #efe9e4 66%, #c1b5ab); color: #3a2f28; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), inset 0 -6px 12px rgba(70, 55, 45, .22); }
.coin--sm { width: 32px; height: 32px; font-size: .62rem; }

/* Karat ladder */
.ladder { display: grid; gap: 10px; align-content: start; }
.ladder__head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); padding-bottom: 6px; }
.rung { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(171, 196, 185, .05); border: 1px solid var(--line-dark); overflow: hidden; }
.rung__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); background: linear-gradient(90deg, rgba(200, 154, 130, .03), rgba(200, 154, 130, .2)); transform-origin: left; transition: transform 1.4s var(--ease); z-index: 0; }
.rung__fill::after { content: ''; position: absolute; right: 0; bottom: 0; width: 18px; height: 2px; background: var(--copper-300); border-radius: 2px; }
.js .rung__fill { transform: scaleX(0); }
.js .is-in .rung__fill, .js .rung.is-in .rung__fill { transform: scaleX(1); }
.rung > *:not(.rung__fill) { position: relative; z-index: 1; }
.rung__k { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.02em; }
.rung__n { font-size: .8rem; color: var(--on-dark-3); line-height: 1.3; }
.rung__n b { display: block; color: var(--on-dark); font-weight: 600; font-size: .9rem; }
.rung__v { text-align: right; line-height: 1.25; font-variant-numeric: tabular-nums; }
.rung__v b { display: block; font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -.01em; font-weight: 700; white-space: nowrap; }
.rung__v > span { font-family: var(--font-mono); font-size: .74rem; color: var(--on-dark-3); white-space: nowrap; }

.rp-metals { display: grid; gap: 1px; margin-top: clamp(24px, 3vw, 40px); border-radius: 18px; overflow: hidden; background: var(--line-dark); border: 1px solid var(--line-dark); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .rp-metals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.metal-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px 20px; background: var(--forest-900); }
.metal-strip__name { font-weight: 600; font-size: .95rem; line-height: 1.2; }
.metal-strip__name small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .68rem; letter-spacing: .08em; color: var(--on-dark-3); margin-top: 2px; }
.metal-strip__v { text-align: right; font-variant-numeric: tabular-nums; line-height: 1.25; }
.metal-strip__v b { display: block; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; }
.metal-strip__v > span { display: block; font-family: var(--font-mono); font-size: .72rem; color: var(--on-dark-3); white-space: nowrap; }
.rates-panel__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 24px; font-size: .82rem; color: var(--on-dark-3); }

/* Chart */
.chart-wrap { display: flex; flex-direction: column; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.on-dark .chart-head { color: var(--on-dark-3); }
.chart { position: relative; height: 170px; margin-inline: -4px; touch-action: pan-y; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis-label { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-3); letter-spacing: .04em; }
.chart .series-line { fill: none; stroke: var(--copper-600); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .crosshair { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity .2s; }
.chart .hover-dot, .chart .end-dot { fill: var(--copper-600); stroke: var(--ivory-50); stroke-width: 2; }
.chart .hover-dot { opacity: 0; transition: opacity .2s; }
.chart .end-pulse { fill: var(--copper-600); opacity: .25; transform-box: fill-box; transform-origin: center; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }
.chart.is-hover .crosshair, .chart.is-hover .hover-dot { opacity: 1; }
.chart__tip { position: absolute; top: 0; left: 0; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: var(--forest-900); color: var(--on-dark); font-family: var(--font-mono); font-size: .72rem; line-height: 1.35; white-space: nowrap; box-shadow: var(--shadow-float); opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .2s; }
.chart__tip b { display: block; font-family: var(--font-display); font-size: .95rem; letter-spacing: -.01em; }
.chart.is-hover .chart__tip { opacity: 1; }
.chart__empty { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border: 1px dashed var(--line-strong); border-radius: var(--radius-m); }
.on-dark .chart .grid-line { stroke: var(--line-dark); }
.on-dark .chart .axis-label { fill: var(--on-dark-3); }
.on-dark .chart .series-line { stroke: var(--copper-300); }
.on-dark .chart .crosshair { stroke: var(--on-dark-2); }
.on-dark .chart .hover-dot, .on-dark .chart .end-dot { fill: var(--copper-300); stroke: var(--forest-900); }
.on-dark .chart .end-pulse { fill: var(--copper-300); }
.chart.is-bars { height: auto !important; min-height: 0; margin-inline: 0; }
.chart.is-bars svg, .chart.is-bars .chart__tip { display: none; }
.chart__bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chart__bar { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 76px; padding: 12px 14px; border-radius: var(--radius-m); border: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.chart__bar span { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.chart__bar small { font-size: inherit; opacity: .8; }
.chart__bar b { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.3rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.on-dark .chart__bar { border-color: var(--line-dark); background: rgba(255, 255, 255, .04); }
.on-dark .chart__bar span { color: var(--on-dark-3); }
.on-dark .chart__tip { background: var(--ivory-50); color: var(--ink); }
.on-dark .chart__empty { color: var(--on-dark-3); border-color: var(--line-dark-strong); }

.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.specs li { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; padding: 5px 9px; border-radius: 6px; background: rgba(40, 64, 53, .07); color: var(--ink-2); }
.add-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 6px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .88rem; font-weight: 600; transition: background-color .35s, border-color .35s, color .35s; }
.add-btn i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--forest-700); color: var(--on-dark); transition: transform .5s var(--ease), background-color .35s; }
.add-btn i .icon { width: 15px; height: 15px; }
.add-btn:hover { border-color: var(--forest-700); }
.add-btn:hover i { transform: rotate(90deg); }
.add-btn.is-added { background: var(--forest-700); border-color: var(--forest-700); color: var(--on-dark); }
.add-btn.is-added i { background: var(--copper-700); }
.stack-lg { display: grid; gap: 24px; align-content: start; }
.status-pill .state { width: 8px; height: 8px; border-radius: 50%; background: var(--rose-300); }
.status-pill.is-open .state { background: #3fae78; box-shadow: 0 0 0 3px rgba(63, 174, 120, .18); }
.tile--dark .chip { background: transparent; border-color: var(--line-dark-strong); color: var(--on-dark-2); }
/* ==========================================================================
   The Monega standard (pillars)
   ========================================================================== */
.pillars { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-dark); }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pillar { padding: 32px 28px 8px 0; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 700px) { .pillar { padding: 40px 32px 40px 0; } .pillar:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line-dark); } }
@media (min-width: 1100px) { .pillar { border-bottom: 0; } .pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line-dark); } }
.pillar__n { font-family: var(--font-serif); font-style: italic; font-size: 3.4rem; line-height: 1; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillar h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.pillar p { color: var(--on-dark-2); font-size: .95rem; margin: 0; }

/* ==========================================================================
   Karat explorer
   ========================================================================== */
.karat-x { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1000px) { .karat-x { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.karat-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 36px; }
.karat-tab { position: relative; display: grid; gap: 4px; justify-items: start; padding: 16px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--ivory-50); text-align: left; transition: background-color .4s, border-color .4s, color .4s, transform .5s var(--ease); }
.karat-tab b { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.03em; line-height: 1; }
.karat-tab span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--ink-3); }
.karat-tab:hover { border-color: var(--forest-700); transform: translateY(-2px); }
.karat-tab[aria-selected='true'] { background: var(--forest-700); border-color: var(--forest-700); color: var(--on-dark); }
.karat-tab[aria-selected='true'] span { color: var(--sage-300); }
.karat-panel { position: relative; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; padding: clamp(24px, 3vw, 44px); border-radius: var(--radius-l); background: var(--ivory-50); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
@media (min-width: 600px) and (max-width: 999px), (min-width: 1240px) { .karat-panel { grid-template-columns: 200px minmax(0, 1fr); } }
.ring { position: relative; width: 200px; height: 200px; justify-self: center; }
@media (min-width: 1000px) and (max-width: 1239px) { .karat-panel { text-align: center; } .karat-panel .ring { width: 170px; height: 170px; } .karat-vals { text-align: left; } }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--ivory-300); stroke-width: 10; }
.ring__bar { fill: none; stroke: url(#ringFoil); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring__center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; gap: 2px; }
.ring__center b { font-family: var(--font-display); font-size: 2.1rem; letter-spacing: -.03em; line-height: 1; }
.ring__center span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.karat-panel h3 { font-size: 1.6rem; letter-spacing: -.02em; }
.karat-panel p { color: var(--ink-2); font-size: .95rem; margin: 10px 0 0; }
.karat-vals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 20px; border-radius: 14px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.karat-vals div { background: var(--ivory-100); padding: 14px 16px; display: grid; gap: 4px; }
.karat-vals dt { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.karat-vals dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.3rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.karat-panel [data-k-fade] { transition: opacity .35s var(--ease), transform .5s var(--ease); }
.karat-panel.is-switching [data-k-fade] { opacity: 0; transform: translateY(8px); }
@media (max-width: 479px) { .karat-tab { padding: 12px 10px; } .karat-tab b { font-size: 1.2rem; } .karat-tab span { font-size: .6rem; } }

/* ==========================================================================
   Editorial rows (audiences)
   ========================================================================== */
.rows { border-top: 1px solid var(--line-strong); }
.row-item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 16px 24px; align-items: center; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line-strong); isolation: isolate; transition: color .5s var(--ease), padding .6s var(--ease); }
.row-item::before { content: ''; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--forest-700); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.row-item__n { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--copper-600); transition: color .5s; }
.row-item__body { display: grid; gap: 8px; }
@media (min-width: 900px) { .row-item__body { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; } }
.row-item h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); letter-spacing: -.03em; }
.row-item p { margin: 0; color: var(--ink-2); font-size: .98rem; transition: color .5s; }
.row-item__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: transform .6s var(--ease), background-color .5s, border-color .5s, color .5s; }
.row-item__go .icon { width: 18px; height: 18px; }
@media (hover: hover) {
  .row-item:hover { color: var(--on-dark); padding-inline: 20px; }
  .row-item:hover::before { transform: scaleY(1); transform-origin: top; }
  .row-item:hover p { color: var(--on-dark-2); }
  .row-item:hover .row-item__n { color: var(--copper-300); }
  .row-item:hover .row-item__go { background: var(--ivory-100); color: var(--forest-900); border-color: transparent; transform: rotate(-45deg); }
}

/* ==========================================================================
   Timeline (working with Monega)
   ========================================================================== */
.split { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } .split__sticky { position: sticky; top: calc(var(--header-h) + 40px); } }
.timeline { position: relative; padding-left: 44px; }
.timeline__list { display: grid; gap: clamp(32px, 4.4vw, 56px); }
.ccy-mini { font-family: var(--font-mono); font-size: .56em; font-weight: 500; letter-spacing: .08em; color: var(--on-dark-3); vertical-align: .25em; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); border-radius: 2px; }
.timeline__fill { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--foil); transform-origin: top; transform: scaleY(var(--tl, 0)); }
.tl-step { position: relative; display: grid; gap: 8px; }
.tl-step__dot { position: absolute; left: -44px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--ivory-200); border: 2px solid var(--line-strong); display: grid; place-items: center; transition: background-color .5s, border-color .5s; }
.tl-step__dot::after { content: ''; width: 8px; height: 8px; transform: rotate(45deg); background: var(--line-strong); transition: background-color .5s; }
.tl-step.is-on .tl-step__dot { background: var(--forest-700); border-color: var(--forest-700); }
.tl-step.is-on .tl-step__dot::after { background: var(--copper-300); }
.tl-step__n { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-600); }
.tl-step h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.02em; }
.tl-step p { margin: 0; color: var(--ink-2); max-width: 54ch; }
.tl-step ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tl-step li { font-size: .8rem; padding: 5px 10px; border-radius: 999px; background: var(--ivory-50); border: 1px solid var(--line); color: var(--ink-2); }

/* ==========================================================================
   Trust grid, checklist, statement
   ========================================================================== */
.trust { display: grid; gap: clamp(14px, 1.6vw, 20px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .trust--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 22px; background: var(--ivory-50); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s; }
.trust-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -34px rgba(20, 34, 28, .45); border-color: var(--line-strong); }
.trust-card__icon { width: 50px; height: 58px; display: grid; place-items: center; border-radius: 999px 999px 10px 10px; background: var(--sage-100); color: var(--forest-700); }
.trust-card__icon .icon { width: 22px; height: 22px; margin-top: 4px; }
.trust-card h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.trust-card p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.section--dark .trust-card { background: rgba(171, 196, 185, .05); border-color: var(--line-dark); }
.section--dark .trust-card p { color: var(--on-dark-2); }
.section--dark .trust-card__icon { background: rgba(171, 196, 185, .12); color: var(--sage-300); }
.checklist { display: grid; gap: 12px; }
.check-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px 24px; border-radius: var(--radius-m); background: var(--ivory-50); border: 1px solid var(--line); }
.check-item__icon { width: 44px; height: 52px; border-radius: 999px 999px 10px 10px; display: grid; place-items: center; background: var(--sage-100); color: var(--forest-700); }
.check-item__icon .icon { width: 20px; height: 20px; margin-top: 4px; }
.check-item h3 { font-size: 1.08rem; letter-spacing: -.01em; margin-bottom: 4px; }
.check-item p { font-size: .92rem; color: var(--ink-2); margin: 0; }

/* ==========================================================================
   Contact arch + tiles
   ========================================================================== */
.contact-arch { position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 10vw, 140px) clamp(20px, 4vw, 64px) clamp(28px, 4vw, 56px); border-radius: 50% 50% var(--radius-l) var(--radius-l) / clamp(80px, 12vw, 200px) clamp(80px, 12vw, 200px) var(--radius-l) var(--radius-l); background: var(--forest-900); color: var(--on-dark); text-align: center; }
.contact-arch::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 0%, rgba(145, 81, 61, .45), transparent 70%), var(--lattice) center top / 84px 84px;
  -webkit-mask-image: radial-gradient(75% 85% at 50% 0%, #000 30%, rgba(0, 0, 0, .12) 100%); mask-image: radial-gradient(75% 85% at 50% 0%, #000 30%, rgba(0, 0, 0, .12) 100%); }
.contact-arch::after { content: ''; position: absolute; inset: 14px; z-index: -1; pointer-events: none; border: 1px solid rgba(200, 154, 130, .3); border-radius: 50% 50% calc(var(--radius-l) - 8px) calc(var(--radius-l) - 8px) / clamp(72px, 11vw, 190px) clamp(72px, 11vw, 190px) calc(var(--radius-l) - 8px) calc(var(--radius-l) - 8px); }
.contact-arch__star { width: 140px; margin: -44px auto -14px; }
.contact-arch h2 { max-width: 16ch; margin: 14px auto 18px; }
.contact-arch .lead { margin-inline: auto; }
.tiles { display: grid; gap: 12px; margin-top: clamp(36px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); text-align: left; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: rgba(245, 239, 230, .05); border: 1px solid var(--line-dark); transition: background-color .4s, border-color .4s, transform .5s var(--ease); }
.tile-link:hover { background: rgba(245, 239, 230, .1); border-color: var(--line-dark-strong); transform: translateY(-3px); }
.tile-link__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory-100); color: var(--forest-900); }
.tile-link__icon .icon { width: 20px; height: 20px; }
.tile-link__icon--wa { background: #25a366; color: #fff; }
.tile-link__txt { min-width: 0; }
.tile-link__txt b { display: block; font-size: .95rem; font-weight: 600; }
.tile-link__txt span { display: block; font-size: .82rem; color: var(--on-dark-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-link > .icon { width: 16px; height: 16px; color: var(--copper-300); transition: transform .5s var(--ease); }
.tile-link:hover > .icon { transform: translate(2px, -2px); }

.tiles--light .tile-link { background: var(--ivory-50); border-color: var(--line); color: var(--ink); }
.tiles--light .tile-link:hover { background: #fff; border-color: var(--line-strong); }
.tiles--light .tile-link__icon { background: var(--forest-700); color: var(--on-dark); }
.tiles--light .tile-link__icon--wa { background: #25a366; }
.tiles--light .tile-link__txt span { color: var(--ink-3); }
.tiles--light .tile-link > .icon { color: var(--copper-600); }
.tiles--stack { grid-template-columns: minmax(0, 1fr) !important; margin-top: 0; }

/* ==========================================================================
   Product cards & catalogue
   ========================================================================== */
.prods { display: grid; gap: clamp(14px, 1.8vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 640px) { .prods--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .prods--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prod { display: flex; flex-direction: column; border-radius: 24px; background: var(--ivory-50); border: 1px solid var(--line); overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s; }
.prod:hover { transform: translateY(-5px); box-shadow: 0 34px 60px -38px rgba(20, 34, 28, .5); border-color: var(--line-strong); }
.prod__stage { position: relative; display: block; width: calc(100% - 20px); margin: 10px 10px 0; height: 272px; border-radius: 999px 999px 16px 16px; overflow: hidden; cursor: zoom-in;
  background: radial-gradient(60% 55% at 50% 48%, #fff, rgba(255, 255, 255, 0) 72%), linear-gradient(180deg, var(--sage-100), var(--ivory-200)); }
.prod__stage::after { content: ''; position: absolute; inset: 8px; border-radius: 999px 999px 10px 10px; border: 1px solid rgba(40, 64, 53, .1); pointer-events: none; }
.prod__stage .bar-img { position: absolute; left: 50%; bottom: 6px; height: 88%; width: auto; transform: translateX(-50%); transition: transform .8s var(--ease); }
.prod:hover .prod__stage .bar-img { transform: translateX(-50%) translateY(-6px) scale(1.03); }
.prod__brand, .prod__wt { position: absolute; bottom: 14px; z-index: 2; height: 30px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.prod__brand { left: 14px; padding: 0 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 14px -10px rgba(20, 34, 28, .45); }
.prod__wt { right: 14px; background: var(--forest-700); color: var(--on-dark); }

/* Official refinery logos (assets/brands). --lh (set per logo) keeps wide and square marks optically equal. */
.brand-logo { display: block; width: auto; height: calc(var(--k, 32px) * var(--lh, .55)); max-height: var(--kmax, 22px); max-width: 100%; object-fit: contain; }
.brand-logo.is-light { filter: brightness(0); }
.prod__brand .brand-logo { --k: 32px; --kmax: 21px; max-width: 86px; }
.prod__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod__meta { margin: 0; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-600); }
.prod__name { font-size: 1.06rem; letter-spacing: -.01em; line-height: 1.25; }
.prod__avail { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-3); }
.prod__avail::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-400); }
.prod__actions { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.prod__actions .link-arrow { font-size: .84rem; }
.prod__actions .add-btn { margin-top: 0; height: 40px; padding: 0 14px 0 5px; font-size: .84rem; }
.prod__actions .add-btn i { width: 30px; height: 30px; }

.catalog__bar { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-bottom: 18px; }
@media (min-width: 700px) { .catalog__bar { grid-template-columns: minmax(0, 1fr) 220px; } }
.search { position: relative; display: block; }
.search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 48px; border-radius: 999px; }
.catalog__bar .select { border-radius: 999px; }
.filters { display: grid; gap: 12px; padding: 18px 20px; border-radius: 22px; background: var(--ivory-50); border: 1px solid var(--line); }
.filter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; }
@media (min-width: 800px) { .filter { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; } }
.filter__label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.chip-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -2px; padding: 2px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row button { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: .86rem; color: var(--ink-2); white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.chip-row button:hover { border-color: var(--forest-700); color: var(--ink); }
.chip-row button[aria-pressed='true'] { background: var(--forest-700); border-color: var(--forest-700); color: var(--on-dark); }
.catalog__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 18px; }
.catalog__meta b { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.02em; }
.catalog__meta button { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-700); border-bottom: 1px solid currentColor; }
.catalog__more { display: flex; justify-content: center; margin-top: 36px; }
.catalog__empty { padding: 48px 20px; text-align: center; border-radius: 22px; border: 1px dashed var(--line-strong); color: var(--ink-3); }

/* Refineries: 2 + 3 bento on desktop */
.brands { display: grid; gap: clamp(14px, 1.8vw, 22px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) and (max-width: 1099px) { .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brand-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .brands { grid-template-columns: repeat(6, minmax(0, 1fr)); } .brand-card { grid-column: span 2; } .brand-card:nth-child(-n+2) { grid-column: span 3; } }
.brand-card { display: flex; flex-direction: column; padding: 10px; border-radius: 26px; background: var(--ivory-50); border: 1px solid var(--line); transition: border-color .4s, transform .6s var(--ease), box-shadow .6s var(--ease); }
.brand-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(20, 34, 28, .45); }
.brand-card__logo { position: relative; height: clamp(150px, 15vw, 190px); display: grid; place-items: center; border-radius: 18px; overflow: hidden;
  background: radial-gradient(70% 90% at 50% 40%, #fff 40%, #f7f4ee); border: 1px solid rgba(40, 64, 53, .08); }
.brand-card__logo::after { content: ''; position: absolute; inset: 8px; border-radius: 12px; border: 1px solid rgba(40, 64, 53, .06); pointer-events: none; }
.brand-card__logo .brand-logo { --k: 104px; --kmax: 76px; max-width: 64%; transition: transform .8s var(--ease); }
@media (min-width: 1100px) { .brand-card:nth-child(-n+2) .brand-card__logo .brand-logo { --k: 124px; --kmax: 88px; max-width: 46%; } }
.brand-card:hover .brand-card__logo .brand-logo { transform: scale(1.05); }
.brand-card__count { position: absolute; top: 14px; right: 14px; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ivory-100); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.brand-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 14px 12px; }
.brand-card h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.brand-card p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.brand-card .specs { margin-top: 4px; }
.brand-card .link-arrow { align-self: flex-start; margin-top: auto; padding-top: 10px; font-size: .88rem; }
@media (min-width: 700px) and (max-width: 1099px) { .brand-card:last-child:nth-child(odd) { flex-direction: row; } .brand-card:last-child:nth-child(odd) .brand-card__logo { flex: 0 0 48%; height: auto; min-height: 200px; } }
.brands-note { margin: 22px 0 0; font-size: .78rem; color: var(--ink-3); }

/* Specification dialog */
.spec { width: min(940px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 28px; background: var(--ivory-100); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(14, 24, 19, .6); overflow: auto; }
.spec[open] { display: grid; grid-template-columns: minmax(0, 1fr); animation: specIn .5s var(--ease); }
@media (min-width: 800px) { .spec[open] { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.spec::backdrop { background: rgba(14, 24, 19, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes specIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.spec__visual { position: relative; min-height: 320px; display: grid; place-items: center; padding: 24px; background: radial-gradient(60% 55% at 50% 48%, #fff, rgba(255, 255, 255, 0) 72%), linear-gradient(180deg, var(--sage-100), var(--ivory-200)); }
.spec__visual .bar-img { height: min(420px, 60vh); width: auto; max-width: 100%; }
.spec__body { padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.spec__body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; padding-right: 44px; }
.spec__close { position: absolute; top: 16px; right: 16px; z-index: 5; background: var(--ivory-50); box-shadow: 0 6px 18px -8px rgba(14, 24, 19, .35); }
.spec__brand { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-right: 44px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.spec__logo { height: 44px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.spec__logo .brand-logo { --k: 48px; --kmax: 30px; max-width: 120px; }
.spec .kv dd { max-width: 60%; }
.spec__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
html.dialog-open { overflow: hidden; }
@media (max-width: 799px) { .spec__visual { min-height: 260px; } .spec__visual .bar-img { height: 260px; } }

/* Price formula */
.equation { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 900px) { .equation { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); } }
.eq-card { padding: 28px; border-radius: 22px; background: var(--ivory-50); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.eq-card--dark { background: var(--forest-700); color: var(--on-dark); border-color: transparent; }
.eq-card--dark p { color: var(--on-dark-2) !important; }
.eq-card h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.eq-card p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.eq-card .px-mid { margin-top: auto; padding-top: 12px; font-size: 1.6rem; }
.eq-op { display: grid; place-items: center; font-family: var(--font-serif); font-style: italic; font-size: 2.4rem; color: var(--copper-600); line-height: 1; }

/* Document list */
.doc-list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.doc-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.doc-list li > span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-100); color: var(--forest-700); }
.doc-list li > span .icon { width: 16px; height: 16px; }
.doc-list b { display: block; font-weight: 600; }
.doc-list p { margin: 2px 0 0; font-size: .9rem; color: var(--ink-2); }
.doc-list--no li > span { background: var(--rose-100); color: var(--copper-700); }

/* Contact page */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } .contact-grid > :first-child { position: sticky; top: calc(var(--header-h) + 32px); } }
.form-card { padding: clamp(22px, 3.4vw, 48px); border-radius: var(--radius-l); background: var(--ivory-50); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.form-card__head { margin-bottom: 32px; }
.form-card__head h2 { margin-top: 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.visit-card { padding: 26px; border-radius: 22px; background: var(--forest-900); color: var(--on-dark); display: grid; gap: 18px; }
.visit-card .status { border-color: var(--line-dark); }

/* Legal */
.legal-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .legal-grid { grid-template-columns: 240px minmax(0, 1fr); } .legal-grid .toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.prose section + section { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { display: grid; gap: 8px; position: relative; }
.field > label, .field > .label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.field label .req { color: var(--copper-600); }
.input, .select, .textarea { width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background-color: var(--ivory-50); font-size: 1rem; line-height: 1.3; color: var(--ink); transition: border-color .3s, box-shadow .3s, background-color .3s; -webkit-appearance: none; appearance: none; }
.textarea { min-height: 136px; resize: vertical; }
.select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23284035' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: .8; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--forest-500); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(40, 64, 53, .12); background-color: #fff; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--down); box-shadow: 0 0 0 4px rgba(169, 68, 45, .1); }
.field__error { font-size: .8rem; color: var(--down); display: none; }
.field.is-invalid .field__error, .consent.is-invalid .field__error { display: block; }
.consent.is-invalid { color: var(--down); }
.field__hint { font-size: .8rem; color: var(--ink-3); }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .9rem; transition: all .3s; background: var(--ivory-50); }
.choice input:hover + span { border-color: var(--forest-500); }
.choice input:checked + span { background: var(--forest-700); border-color: var(--forest-700); color: var(--on-dark); }
.choice input:focus-visible + span { outline: 2px solid var(--copper-500); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .88rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--forest-700); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent .field__error { grid-column: 2; }
.form-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: 1 / -1; } }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-divider { height: 1px; background: var(--line); margin: 36px 0; border: 0; }
.fieldset legend { padding: 0; margin-bottom: 20px; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.fieldset legend span { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--copper-600); font-weight: 400; }
.form-success { text-align: center; display: grid; gap: 16px; justify-items: center; padding: clamp(24px, 4vw, 56px) 0; }
.form-success__icon { width: 76px; height: 88px; border-radius: 999px 999px 16px 16px; display: grid; place-items: center; background: var(--forest-700); color: var(--copper-300); }
.form-success__icon .icon { width: 32px; height: 32px; stroke-width: 2; margin-top: 6px; }
.form-success .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Enquiry lines */
.basket-lines { display: grid; gap: 8px; }
.basket-line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--ivory-50); }
.basket-line__name { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.basket-line__name small { display: block; font-weight: 400; font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); margin-top: 2px; letter-spacing: .04em; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; height: 38px; }
.qty button { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-2); border-radius: 50%; }
.qty button:hover { color: var(--ink); background: rgba(40, 64, 53, .06); }
.qty button .icon { width: 14px; height: 14px; }
.qty input { width: 44px; border: 0; background: transparent; text-align: center; font-family: var(--font-mono); font-size: .9rem; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.remove-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.remove-btn:hover { color: var(--down); background: rgba(169, 68, 45, .08); }
.remove-btn .icon { width: 16px; height: 16px; }
.basket-empty { padding: 20px; border-radius: 14px; border: 1px dashed var(--line-strong); font-size: .9rem; color: var(--ink-3); text-align: center; }
.basket-empty a { color: var(--copper-700); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Drawer (enquiry list)
   ========================================================================== */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; transition: visibility 0s .6s; }
.drawer.is-open { visibility: visible; transition: visibility 0s; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(14, 24, 19, .45); opacity: 0; transition: opacity .5s var(--ease); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--ivory-100); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .6s var(--ease); box-shadow: -30px 0 60px -30px rgba(14, 24, 19, .4); outline: none; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.45rem; letter-spacing: -.02em; margin-top: 6px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; display: grid; align-content: start; gap: 18px; overscroll-behavior: contain; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--ivory-50); }
.drawer__foot .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer__catalog { display: grid; gap: 8px; }
.drawer__catalog button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--ivory-50); text-align: left; font-size: .9rem; transition: border-color .3s; }
.drawer__catalog button:hover { border-color: var(--forest-500); }
.drawer__catalog button .icon { width: 16px; height: 16px; color: var(--copper-600); }

/* Toast */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 300; display: grid; gap: 8px; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--forest-900); color: var(--on-dark); box-shadow: var(--shadow-float); font-size: .9rem; pointer-events: auto; animation: toastIn .6s var(--ease); }
.toast .icon { color: var(--copper-300); width: 18px; height: 18px; }
.toast.is-leaving { animation: toastOut .4s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ==========================================================================
   Tables, FAQ, prose, misc
   ========================================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--ivory-50); -webkit-overflow-scrolling: touch; }
.table { min-width: 620px; font-size: .92rem; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); background: var(--ivory-100); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .3s; }
.table tbody tr:hover { background: rgba(171, 196, 185, .14); }
.table td.r, .table th.r { text-align: right; }
.table .strong { font-weight: 600; }
.table .big { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -.01em; white-space: nowrap; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--ivory-50); transition: border-color .3s, background-color .3s; }
.faq details[open] { border-color: var(--line-strong); background: #fff; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -.01em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory-200); color: var(--copper-700); transition: transform .5s var(--ease), background-color .3s; }
.faq summary i .icon { width: 16px; height: 16px; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--forest-700); color: var(--on-dark); }
.faq .faq__body { padding: 0 22px 22px; color: var(--ink-2); font-size: .95rem; max-width: 72ch; }
.prose { max-width: 74ch; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); color: var(--ink); margin: 2.2em 0 .7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; color: var(--ink); margin: 1.8em 0 .6em; }
.prose ul { display: grid; gap: 8px; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--copper-400); }
.prose a { color: var(--copper-700); text-decoration: underline; text-underline-offset: 3px; }
.toc { display: grid; gap: 4px; font-size: .92rem; }
.toc a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); border-left: 2px solid transparent; transition: all .3s; }
.toc a:hover, .toc a.is-active { color: var(--ink); background: rgba(40, 64, 53, .05); border-left-color: var(--copper-500); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--ivory-50); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 8px; align-content: start; }
.stat__v { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -.03em; line-height: 1.05; }
.stat__l { font-size: .88rem; color: var(--ink-3); }
.bento { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); } .bento > .b-7 { grid-column: span 7; } .bento > .b-5 { grid-column: span 5; } .bento > .b-6 { grid-column: span 6; } .bento > .b-4 { grid-column: span 4; } .bento > .b-8 { grid-column: span 8; } .bento > .b-12 { grid-column: span 12; } }
.tile { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-l); background: var(--ivory-50); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.tile--dark { background: var(--forest-800); color: var(--on-dark); border-color: var(--line-dark); }
.tile.tile--dark p { color: var(--on-dark-2); }
.tile h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.kv { display: grid; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.tile--dark .kv div { border-color: var(--line-dark); }
.tile--dark .kv dt { color: var(--on-dark-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .86rem; background: var(--ivory-50); }
.chip code { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); }
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-m); background: var(--rose-100); border: 1px solid rgba(125, 54, 36, .18); color: var(--copper-800); font-size: .9rem; }
.notice .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.notice--sage { background: var(--sage-100); border-color: rgba(40, 64, 53, .16); color: var(--forest-700); }
.info-list { display: grid; gap: 18px; }
.info-list dt { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.info-list dd { margin: 0; }
.info-list a { color: var(--copper-700); }
.on-dark .info-list dt { color: var(--on-dark-3); }

/* Sessions timeline (market page) */
.sessions { display: flex; flex-direction: column; gap: 18px; }
.sessions__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.sessions__rows { position: relative; display: grid; gap: 14px; padding-top: 6px; }
.srow { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.srow__name { font-size: .86rem; line-height: 1.2; }
.srow__name small { display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; color: var(--on-dark-3); margin-top: 2px; }
.srow__bar { position: relative; height: 30px; border-radius: 8px; background: rgba(171, 196, 185, .06); border: 1px solid var(--line-dark); overflow: hidden; }
.srow__bar i { position: absolute; top: 4px; bottom: 4px; border-radius: 5px; background: rgba(171, 196, 185, .3); }
.srow--desk .srow__bar i { background: var(--foil); }
.srow.is-live .srow__bar i { background: var(--sage-300); }
.srow--desk.is-live .srow__bar i { background: var(--foil); }
.sessions__axis { display: grid; grid-template-columns: 120px 1fr; gap: 14px; }
.sessions__axis div { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .64rem; color: var(--on-dark-3); }
.sessions__overlay { position: absolute; top: 0; bottom: 0; left: 134px; right: 0; pointer-events: none; }
.sessions__now { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--copper-300); border-radius: 2px; }
.sessions__now::before { content: attr(data-label); position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: .62rem; color: var(--copper-300); white-space: nowrap; letter-spacing: .06em; }
@media (max-width: 559px) { .srow, .sessions__axis { grid-template-columns: 84px 1fr; gap: 10px; } .srow__name { font-size: .78rem; } .sessions__overlay { left: 94px; } }
.status-row { display: grid; gap: 10px; }
.status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(171, 196, 185, .04); font-size: .9rem; }
.status b { font-weight: 600; white-space: nowrap; }
.status span:last-child { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--on-dark-3); text-align: right; }
.status .state { display: inline-flex; align-items: center; gap: 10px; }
.status .state::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rose-300); }
.status.is-open .state::before { background: #3fae78; box-shadow: 0 0 0 4px rgba(63, 174, 120, .18); }

/* Calculator */
.calc { display: grid; gap: 18px; }
.calc__row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .calc__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc__result { padding: 24px; border-radius: 20px; background: var(--forest-900); color: var(--on-dark); display: grid; gap: 16px; }
.calc__result .px-big { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-top: 4px; }
.calc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: .85rem; color: var(--on-dark-3); }
.calc__grid b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--on-dark); letter-spacing: -.01em; margin-top: 2px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--forest-950); color: var(--on-dark-2); padding: clamp(64px, 8vw, 112px) 0 32px; position: relative; overflow: hidden; isolation: isolate; }
.footer__top { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .footer__top { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); } }
.footer__brand img { width: min(260px, 70%); }
.footer__brand p { margin-top: 24px; max-width: 38ch; font-size: .95rem; }
.footer__h { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { font-size: .95rem; transition: color .3s; display: inline-flex; align-items: flex-start; gap: 10px; }
.footer__links a:hover { color: var(--on-dark); }
.footer__links .icon { width: 16px; height: 16px; color: var(--copper-300); margin-top: 3px; }
.footer__legal { padding-top: 28px; display: grid; gap: 16px; font-size: .8rem; color: var(--on-dark-3); }
@media (min-width: 900px) { .footer__legal { grid-template-columns: 1fr auto; align-items: start; } }
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a:hover { color: var(--on-dark); }
.footer__disclaimer { max-width: 90ch; }
.footer__arch { display: flex; justify-content: center; margin-top: 56px; }
.footer__arch div { width: min(320px, 60%); aspect-ratio: 5 / 3; border-radius: 999px 999px 0 0; border: 1px solid var(--line-dark-strong); border-bottom: 0; display: grid; place-items: center; }
.footer__arch img { width: 110px; margin-top: 14px; }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal='fade'] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] { opacity: 0; animation: splitFallback .6s 2.2s var(--ease) forwards; }
@keyframes splitFallback { to { opacity: 1; } }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; }
.notfound__arch { width: min(280px, 70vw); aspect-ratio: 4 / 5; margin: 0 auto 32px; display: grid; place-items: center; }
.notfound__arch b { position: relative; z-index: 3; font-family: var(--font-display); font-size: clamp(4rem, 12vw, 6rem); letter-spacing: -.05em; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .rung__fill { transform: none; }
}
@media print {
  .site-header, .drawer, .mobile-menu, .hero__canvas { display: none !important; }
  body { background: #fff; }
}
