/* =====================================================================
   TerraRare Resources: public site stylesheet
   Palette: praseodymium violet-black, laterite copper, neodymium lilac
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ore: #16131A;
  --ore-2: #120F15;
  --seam: #1E1A24;
  --seam-2: #2A2431;
  --seam-3: #352E3E;
  --copper: #C9874F;
  --copper-hi: #E2A872;
  --copper-deep: #A86B38;
  --nd: #B8A9E3;
  --nd-deep: #8C7BC4;
  --mineral: #EEE8DF;
  --muted: #A49BAD;
  --line: rgba(184, 169, 227, .16);
  --line-strong: rgba(184, 169, 227, .3);
  --serif: 'Marcellus', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --radius: 6px;
  --nav-h: 86px;

  --bs-body-bg: var(--ore);
  --bs-body-color: var(--mineral);
  --bs-body-color-rgb: 238, 232, 223;
  --bs-body-font-family: var(--sans);
  --bs-border-color: rgba(184, 169, 227, .22);
  --bs-secondary-color: var(--muted);
  --bs-link-color: var(--copper);
  --bs-link-color-rgb: 201, 135, 79;
  --bs-link-hover-color: var(--mineral);
  --bs-link-hover-color-rgb: 238, 232, 223;
  --bs-emphasis-color: var(--mineral);
  --bs-heading-color: var(--mineral);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-loading { overflow: hidden; }
body {
  background: var(--ore);
  color: var(--mineral);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 400; letter-spacing: .005em; color: var(--mineral); }
a { color: var(--copper); text-underline-offset: 3px; transition: color .25s; }
a:hover { color: var(--mineral); }
img { max-width: 100%; }
::selection { background: rgba(201, 135, 79, .35); color: var(--mineral); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; box-shadow: none; }
.text-muted-2 { color: var(--muted) !important; }
.text-copper { color: var(--copper) !important; }
.text-nd { color: var(--nd) !important; }
.serif { font-family: var(--serif); }

.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 300; background: var(--copper); color: var(--ore); padding: .6rem 1rem; border-radius: 2px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 1rem; color: var(--ore); }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow.no-line::before { display: none; }

/* ---------- Buttons ---------- */
.btn-copper, .btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.5rem; border-radius: 2px; font-weight: 600; letter-spacing: .01em;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn-copper {
  --bs-btn-bg: var(--copper); --bs-btn-color: var(--ore); --bs-btn-border-color: var(--copper);
  --bs-btn-hover-bg: var(--copper-hi); --bs-btn-hover-color: var(--ore); --bs-btn-hover-border-color: var(--copper-hi);
  --bs-btn-active-bg: var(--copper-deep); --bs-btn-active-color: var(--ore); --bs-btn-active-border-color: var(--copper-deep);
  --bs-btn-disabled-bg: var(--copper-deep); --bs-btn-disabled-border-color: var(--copper-deep); --bs-btn-disabled-color: var(--ore);
}
.btn-copper::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-copper:hover::after { transform: translateX(120%); }
.btn-line {
  --bs-btn-color: var(--mineral); --bs-btn-border-color: rgba(238, 232, 223, .32);
  --bs-btn-hover-bg: rgba(238, 232, 223, .06); --bs-btn-hover-color: var(--mineral); --bs-btn-hover-border-color: var(--mineral);
  --bs-btn-active-bg: rgba(238, 232, 223, .1); --bs-btn-active-color: var(--mineral); --bs-btn-active-border-color: var(--mineral);
  font-weight: 500;
}
.btn-lg-pad { padding: 1.05rem 1.8rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .65rem; color: var(--mineral); text-decoration: none; font-weight: 500;
  padding-bottom: .3rem; border-bottom: 1px solid rgba(201, 135, 79, .5);
}
.link-arrow i { color: var(--copper); transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--copper-hi); }
.link-arrow:hover i { transform: translateX(5px); }

/* ---------- Page curtain and cursor ---------- */
.curtain { display: none; }
.js .curtain {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; pointer-events: none;
  background: var(--ore);
  transform-origin: top; transition: transform .8s var(--ease-io);
}
.js .curtain.is-out { transform: scaleY(0); transform-origin: top; }
.js .curtain.is-in { transform: scaleY(1); transform-origin: bottom; pointer-events: all; }
.curtain-mark { width: 56px; height: 56px; opacity: 1; transition: opacity .3s; }
.curtain.is-out .curtain-mark { opacity: 0; }

.cursor-dot, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor-dot, .has-cursor .cursor-ring { display: block; position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; border-radius: 50%; }
  .has-cursor .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--copper); }
  .has-cursor .cursor-ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(184, 169, 227, .45);
    transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s, border-color .3s;
  }
  .has-cursor .cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(201, 135, 79, .1); border-color: rgba(201, 135, 79, .6); }
}

/* ---------- Preloader (home) ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 260; display: grid; place-items: center;
  background: radial-gradient(40% 40% at 50% 45%, rgba(184, 169, 227, .10), transparent 70%), var(--ore);
}
.pl-tile {
  position: relative; width: 136px; height: 160px; border: 1px solid var(--line-strong); border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 38%, rgba(184, 169, 227, .14), transparent 70%);
}
.pl-num { position: absolute; top: 10px; left: 12px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-sym { font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: var(--mineral); }
.pl-name { margin-top: .55rem; font-size: .8rem; color: var(--muted); }
.pl-bar { width: 136px; height: 1px; margin-top: 1.25rem; background: var(--line); overflow: hidden; }
.pl-bar span { display: block; height: 100%; background: var(--copper); transform: scaleX(0); transform-origin: left center; }

/* =====================================================================
   Navigation
   ===================================================================== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.topbar {
  font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line);
  max-height: 40px; overflow: hidden; transition: max-height .45s var(--ease), opacity .45s, border-color .45s;
}
.topbar .container-xxl { height: 38px; }
.topbar i { color: var(--copper); margin-right: .35rem; }
.topbar-links { display: flex; gap: 1.6rem; }
.topbar-links a { color: var(--muted); text-decoration: none; }
.topbar-links a:hover { color: var(--mineral); }
.nav-main { padding: 1.05rem 0; transition: padding .45s var(--ease); }
.site-nav.is-scrolled, .site-nav.is-solid {
  background: rgba(22, 19, 26, .78);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.site-nav.is-scrolled .topbar { max-height: 0; opacity: 0; border-color: transparent; }
.site-nav.is-scrolled .nav-main { padding: .65rem 0; }
.site-nav.is-hidden { transform: translateY(-100%); }

.brand {
  display: inline-flex; align-items: center; gap: .75rem; color: var(--mineral); text-decoration: none;
  font-family: var(--serif); font-size: 1.3rem; letter-spacing: .01em; white-space: nowrap; line-height: 1;
}
.brand:hover { color: var(--mineral); }
.brand-mark { width: 40px; height: 40px; color: var(--copper); flex: none; transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(60deg); }
.brand-text small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }

.nav-links { gap: 2rem; align-items: center; }
.nav-links > a, .nav-item > a {
  position: relative; color: var(--mineral); opacity: .78; text-decoration: none; font-size: .95rem; padding: .5rem 0;
  transition: opacity .25s, color .25s;
}
.nav-links > a::after, .nav-item > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--copper);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-links > a:hover, .nav-item:hover > a, .nav-links a.is-active { opacity: 1; color: var(--mineral); }
.nav-links > a:hover::after, .nav-item:hover > a::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-item > a i { font-size: .6rem; margin-left: .3rem; opacity: .7; }

.has-mega { position: relative; }
.mega {
  position: absolute; left: 50%; top: 100%; padding-top: 1.4rem; width: 720px;
  transform: translate(-30%, 10px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-30%, 0); }
.mega-inner {
  display: grid; grid-template-columns: 260px 1fr; gap: 0;
  background: rgba(30, 26, 36, .97); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.mega-feature {
  position: relative; min-height: 240px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end;
  background-size: cover; background-position: center;
}
.mega-feature::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22, 19, 26, .92) 10%, rgba(22, 19, 26, .2)); }
.mega-feature > * { position: relative; }
.mega-feature .eyebrow { margin-bottom: .5rem; }
.mega-feature strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.25; }
.mega-links { padding: .8rem; display: grid; }
.mega-links a {
  position: relative; display: block; padding: .85rem 2.6rem .85rem 1rem; border-radius: 4px; text-decoration: none; color: var(--mineral);
  transition: background-color .25s;
}
.mega-links a span { display: block; font-weight: 500; }
.mega-links a small { color: var(--muted); font-size: .84rem; }
.mega-links a i { position: absolute; right: 1rem; top: 50%; transform: translate(-6px, -50%); opacity: 0; color: var(--copper); transition: all .3s var(--ease); }
.mega-links a:hover { background: rgba(184, 169, 227, .07); }
.mega-links a:hover i { opacity: 1; transform: translate(0, -50%); }

.nav-phone {
  display: inline-flex; align-items: center; gap: .6rem; color: var(--mineral); text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums;
  padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 2px; transition: border-color .25s; font-size: .92rem;
}
.nav-phone i { color: var(--copper); }
.nav-phone:hover { color: var(--mineral); border-color: var(--copper); }
.nav-cta { padding: .65rem 1.2rem; font-size: .92rem; }

.burger {
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; position: relative; z-index: 70;
}
.burger span { display: block; width: 20px; height: 1.5px; background: var(--mineral); transition: transform .4s var(--ease), width .3s; }
.burger span:last-child { width: 14px; margin-left: 6px; }
.burger.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger.is-open span:last-child { width: 20px; margin-left: 0; transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ore);
  background-image: radial-gradient(60% 50% at 80% 20%, rgba(184, 169, 227, .1), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(201, 135, 79, .1), transparent 70%);
  clip-path: circle(0% at calc(100% - 40px) 40px); visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility .8s;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mm-inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: 110px; padding-bottom: 2rem; overflow-y: auto; }
.mm-links a {
  display: flex; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(1.7rem, 6vw, 2.6rem); color: var(--mineral); text-decoration: none;
  opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .25s;
}
.mm-links a:hover { color: var(--copper-hi); }
.mobile-menu.is-open .mm-links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mm-links a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open .mm-links a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open .mm-links a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open .mm-links a:nth-child(5) { transition-delay: .2s; }
.mobile-menu.is-open .mm-links a:nth-child(6) { transition-delay: .25s; }
.mobile-menu.is-open .mm-links a:nth-child(7) { transition-delay: .3s; }
.mobile-menu.is-open .mm-links a:nth-child(8) { transition-delay: .35s; }
.mm-n { font-family: var(--sans); font-size: .8rem; color: var(--copper); font-variant-numeric: tabular-nums; }
.mm-foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding-top: 2rem; }
.mm-foot > a { color: var(--muted); text-decoration: none; }
.mm-foot i { color: var(--copper); margin-right: .4rem; }
.mm-social { display: flex; gap: .5rem; }
.mm-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--mineral); }

/* =====================================================================
   Home hero: 3D survey model
   ===================================================================== */
.hero {
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  background: radial-gradient(60% 55% at 72% 40%, rgba(184, 169, 227, .11), transparent 70%), radial-gradient(45% 45% at 4% 100%, rgba(201, 135, 79, .10), transparent 70%), var(--ore);
}
#terrain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.contour-fallback { display: none; position: absolute; z-index: 0; right: -8%; top: 12%; width: 72%; max-width: 900px; }
.no-webgl .contour-fallback { display: block; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(22, 19, 26, .82) 0%, rgba(22, 19, 26, .42) 38%, rgba(22, 19, 26, 0) 62%), linear-gradient(0deg, var(--ore) 0%, rgba(22, 19, 26, 0) 40%);
}
.survey-corner { position: absolute; z-index: 2; width: 22px; height: 22px; top: 140px; border: 0 solid rgba(238, 232, 223, .28); pointer-events: none; }
.survey-corner.tl { left: 24px; border-top-width: 1px; border-left-width: 1px; }
.survey-corner.tr { right: 24px; border-top-width: 1px; border-right-width: 1px; }

.callout { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease); will-change: transform; }
.callout.is-on { opacity: 1; }
.callout .dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--nd); background: rgba(184, 169, 227, .25); }
.callout .dot::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--nd); animation: ping 2.6s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(3.4); opacity: 0; } }
.callout .leader { position: absolute; left: 7px; top: 0; width: 96px; height: 1px; background: linear-gradient(90deg, var(--nd), rgba(184, 169, 227, .3)); transform: rotate(-32deg); transform-origin: 0 50%; }
.callout .label { position: absolute; left: 90px; top: -78px; white-space: nowrap; padding-left: .65rem; border-left: 1px solid var(--line-strong); font-size: .9rem; line-height: 1.35; color: var(--mineral); }
.callout .label small { display: block; color: var(--muted); font-size: .76rem; }

.hero-content { position: relative; z-index: 3; padding: 11rem 0 3rem; }
.hero-title { font-size: clamp(3.4rem, 10.5vw, 9.4rem); line-height: .9; letter-spacing: -.015em; margin: 0 0 1.75rem; }
.hero-title .line, .ph-title .line { display: block; overflow: hidden; padding: .02em 0 .1em; }
.hero-title .line + .line { padding-left: .8em; }
.hero-title .line-inner, .ph-title .line-inner {
  display: inline-block; color: var(--mineral);
  background: linear-gradient(100deg, #F7F2EA 0%, #EBDDCB 42%, #D29E6E 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.5; max-width: 36ch; margin: 0 0 2.1rem; color: rgba(238, 232, 223, .88); }

.hero-band { position: relative; z-index: 3; border-top: 1px solid var(--line); background: rgba(22, 19, 26, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hb-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hb-item { padding: 1.5rem 1.5rem 1.6rem; border-left: 1px solid var(--line); }
.hb-item:first-child { border-left: 0; padding-left: 0; }
.hb-num { display: block; font-weight: 200; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hb-num .sfx { color: var(--copper); font-size: .55em; margin-left: .15rem; letter-spacing: 0; }
.hb-label { display: block; margin-top: .55rem; font-size: .85rem; color: var(--muted); }

/* =====================================================================
   Sections and shared blocks
   ===================================================================== */
.section { position: relative; padding: clamp(5rem, 10vw, 8.5rem) 0; }
.section-sm { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.bg-seam { background: var(--seam); }
.bg-gradient-seam { background: linear-gradient(180deg, var(--ore) 0%, var(--seam) 100%); }
.border-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head h2, .h-display { font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.06; margin: 0; max-width: 18ch; }
.section-head p, .lede { color: var(--muted); font-size: 1.125rem; margin: 0; max-width: 52ch; }
.h-xl { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -.01em; }
.h-card { font-size: 1.45rem; line-height: 1.2; }

/* Big statement with highlighted words */
.statement { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 3.1rem); line-height: 1.22; max-width: 26ch; margin: 0; }
.statement .w { opacity: .18; transition: opacity .4s; }
.statement em { font-style: normal; color: var(--copper-hi); }
.statement-aside { color: var(--muted); max-width: 40ch; }
.sig { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.sig img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.sig strong { display: block; font-weight: 500; }
.sig small { color: var(--muted); }

/* Media frames with reveal */
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.media-frame.is-in img, .no-gsap .media-frame img { transform: scale(1); }
.media-frame .mf-mask { position: absolute; inset: 0; background: var(--ore); transform-origin: right; }
.media-frame:hover img { transform: scale(1.03); }
.media-tall { aspect-ratio: 4 / 5; }
.media-wide { aspect-ratio: 16 / 10; }
.media-badge {
  position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2; max-width: 280px;
  padding: 1rem 1.15rem; background: rgba(22, 19, 26, .78); border: 1px solid var(--line); border-radius: 4px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.media-badge strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--copper-hi); }
.media-badge span { font-size: .85rem; color: var(--muted); }
.offset-card {
  position: absolute; right: -1.5rem; bottom: -2rem; z-index: 3; width: min(320px, 70%);
  background: var(--seam-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.fi-icon { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(201, 135, 79, .45); color: var(--copper); }
.feature-list h4 { font-size: 1.2rem; margin: .15rem 0 .25rem; }
.feature-list p { color: var(--muted); margin: 0; }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 0; background: var(--ore-2); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 3rem; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: rgba(238, 232, 223, .82); white-space: nowrap; }
.marquee-item::after { content: ''; width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--copper); }
.marquee-item .sym { color: transparent; -webkit-text-stroke: 1px var(--nd); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   WOW-style cinematic slider
   ===================================================================== */
.wslider { position: relative; height: clamp(540px, 88vh, 880px); overflow: hidden; background: var(--ore-2); }
.ws-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.4s var(--ease), visibility 1.4s; }
.ws-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.ws-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: saturate(.85) contrast(1.05); }
.ws-slide.is-active img { animation: kenburns 9s var(--ease) forwards; }
.ws-slide:nth-child(even).is-active img { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(1.5%, 0, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
@keyframes kenburns-alt { from { transform: scale(1.02) translate3d(-1%, 1%, 0); } to { transform: scale(1.14) translate3d(1%, -1%, 0); } }
.ws-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22, 19, 26, .88) 0%, rgba(22, 19, 26, .45) 45%, rgba(22, 19, 26, .1) 75%), linear-gradient(0deg, rgba(22, 19, 26, .85) 0%, rgba(22, 19, 26, 0) 45%);
}
.ws-caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(7rem, 16vh, 10rem); }
.ws-caption .eyebrow, .ws-caption h3, .ws-caption p, .ws-caption .link-arrow { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.ws-slide.is-active .ws-caption .eyebrow { opacity: 1; transform: none; transition-delay: .4s; }
.ws-slide.is-active .ws-caption h3 { opacity: 1; transform: none; transition-delay: .55s; }
.ws-slide.is-active .ws-caption p { opacity: 1; transform: none; transition-delay: .7s; }
.ws-slide.is-active .ws-caption .link-arrow { opacity: 1; transform: none; transition-delay: .85s; }
.ws-caption h3 { font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: 1.02; max-width: 16ch; margin: 0 0 1.2rem; }
.ws-caption p { max-width: 46ch; font-size: 1.12rem; color: rgba(238, 232, 223, .85); margin-bottom: 1.6rem; }
.ws-ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 2.2rem; }
.ws-ui .container-xxl { display: flex; align-items: center; gap: 2rem; }
.ws-count { font-variant-numeric: tabular-nums; font-size: .95rem; color: var(--muted); min-width: 70px; }
.ws-count b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--mineral); }
.ws-bars { flex: 1; display: flex; gap: .5rem; }
.ws-bar { flex: 1; height: 2px; background: rgba(238, 232, 223, .18); border: 0; padding: 0; position: relative; cursor: pointer; }
.ws-bar::before { content: ''; position: absolute; inset: -10px 0; }
.ws-bar span { position: absolute; inset: 0; background: var(--copper); transform: scaleX(0); transform-origin: left; }
.ws-bar.is-done span { transform: scaleX(1); }
.ws-bar-label { font-style: normal; position: absolute; left: 0; top: 12px; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; transition: color .3s; }
.ws-bar.is-active .ws-bar-label { color: var(--mineral); }
.ws-arrows { display: flex; gap: .5rem; }
.ws-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(22, 19, 26, .4); color: var(--mineral); transition: all .3s; }
.ws-arrow:hover { border-color: var(--copper); background: var(--copper); color: var(--ore); }

/* =====================================================================
   Periodic table of rare earths
   ===================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.75rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: .92rem; text-decoration: none;
  transition: color .25s, border-color .25s, background-color .25s;
}
.chip i { color: var(--copper); font-size: .85rem; transition: color .25s; }
.chip:hover { color: var(--mineral); border-color: rgba(238, 232, 223, .45); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--mineral); border-color: var(--mineral); color: var(--ore); }
.chip[aria-pressed="true"] i, .chip.is-active i { color: var(--copper-deep); }
.chip .n { font-size: .75rem; opacity: .7; }
.filter-count { color: var(--muted); font-size: .92rem; margin: .9rem 0 1.25rem; }

.ptable { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.ptile {
  position: relative; overflow: hidden; align-self: start; aspect-ratio: 4 / 5; padding: 0; text-align: left;
  background: rgba(32, 27, 38, .55); border: 1px solid var(--line); border-radius: 6px; color: var(--mineral);
  transition: border-color .3s, background-color .3s, opacity .35s, transform .3s var(--ease);
}
.ptile:hover { transform: translateY(-3px); }
.ptile::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(140px circle at var(--mx, -200px) var(--my, -200px), rgba(201, 135, 79, .24), transparent 60%); transition: opacity .3s;
}
.ptable:hover .ptile::before { opacity: 1; }
.ptile .n { position: absolute; top: 6px; left: 8px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ptile .s { position: absolute; left: 8px; bottom: 24px; font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1; transition: color .3s; }
.ptile .nm { position: absolute; left: 8px; right: 4px; bottom: 7px; font-size: .6rem; letter-spacing: -.01em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptile.is-match { border-color: rgba(201, 135, 79, .55); }
.ptile.is-dim { opacity: .22; }
.ptile.is-active { border-color: var(--copper); background: rgba(201, 135, 79, .12); opacity: 1; }
.ptile.is-active .s { color: var(--copper-hi); }
.pdetail { grid-column: 1 / -1; order: -1; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(135deg, rgba(42, 36, 49, .75), rgba(22, 19, 26, .45)); padding: 1.25rem 1.5rem; margin-bottom: 8px; }
.pd-inner { position: relative; z-index: 1; display: flex; gap: 1.75rem; align-items: stretch; height: 100%; }
.pd-tile { position: relative; flex: 0 0 150px; min-height: 160px; border: 1px solid rgba(201, 135, 79, .6); border-radius: 6px; background: radial-gradient(circle at 50% 40%, rgba(201, 135, 79, .2), transparent 70%); }
.pd-tile .n { position: absolute; top: 10px; left: 12px; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-tile .s { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: var(--copper-hi); }
.pd-tile .m { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pd-body h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; margin: 0 0 .5rem; }
.pd-use { font-size: 1.05rem; line-height: 1.5; max-width: 54ch; margin: 0 0 .8rem; }
.pd-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.pd-tags span { border: 1px solid var(--line-strong); border-radius: 999px; padding: .15rem .7rem; font-size: .8rem; color: var(--muted); }
.pd-watermark { position: absolute; right: -.5rem; bottom: -3.6rem; z-index: 0; pointer-events: none; font-family: var(--serif); font-size: 15rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(184, 169, 227, .13); }
.ptable-note { color: var(--muted); font-size: .9rem; margin: 1.1rem 0 0; }
@media (min-width: 1200px) {
  .ptable { grid-template-columns: repeat(15, minmax(0, 1fr)); }
  .ptile { grid-column-start: var(--col); grid-row-start: var(--row); }
  .pdetail { grid-column: 3 / 16; grid-row: 1 / 3; order: 0; margin: 0; }
}

/* =====================================================================
   Stages (path)
   ===================================================================== */
.path { list-style: none; padding: 0; margin: 0; position: relative; }
.path li:not(:last-child)::before { content: ''; position: absolute; left: 23px; top: 47px; bottom: 0; width: 1px; background: var(--line-strong); }
.path li { position: relative; display: flex; gap: 1.4rem; padding-bottom: 2.1rem; }
.path li:last-child { padding-bottom: 0; }
.step-n { position: relative; z-index: 1; flex: 0 0 47px; height: 47px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--seam); font-family: var(--serif); font-size: 1rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.path li.is-now .step-n { border-color: var(--nd); color: var(--mineral); box-shadow: 0 0 0 6px rgba(184, 169, 227, .08), 0 0 26px rgba(184, 169, 227, .35); }
.path li.is-done .step-n { border-color: var(--copper); color: var(--copper); }
.path li.is-done:not(:last-child)::before { background: var(--copper); }
.path h4 { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: 1.35rem; margin: .6rem 0 .3rem; }
.path .period { font-family: var(--sans); font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.now-tag { font-family: var(--sans); font-size: .72rem; font-weight: 600; color: var(--ore); background: var(--nd); border-radius: 999px; padding: .15rem .65rem; }
.done-tag { font-family: var(--sans); font-size: .72rem; font-weight: 600; color: var(--ore); background: var(--copper); border-radius: 999px; padding: .15rem .65rem; }
.path p { color: var(--muted); margin: 0; max-width: 50ch; }

/* Horizontal stages */
.stages-h { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 0; position: relative; }
.stages-h::before { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-strong); }
.sh-item { position: relative; padding-right: 2rem; }
.sh-item .step-n { margin-bottom: 1.5rem; }
.sh-item.is-now .step-n { border-color: var(--nd); color: var(--mineral); box-shadow: 0 0 0 6px rgba(184, 169, 227, .08), 0 0 26px rgba(184, 169, 227, .35); }
.sh-item.is-done .step-n { border-color: var(--copper); color: var(--copper); }
.sh-item h4 { font-size: 1.6rem; margin-bottom: .35rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sh-item .period { display: block; font-size: .82rem; color: var(--copper); letter-spacing: .06em; margin-bottom: .75rem; }
.sh-item p { color: var(--muted); margin: 0; }

/* =====================================================================
   Cards
   ===================================================================== */
.pillar {
  position: relative; overflow: hidden; height: 100%; min-height: 420px; border-radius: var(--radius); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.8rem; text-decoration: none; color: var(--mineral); isolation: isolate;
}
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.7) brightness(.75); }
.pillar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(22, 19, 26, .96) 15%, rgba(22, 19, 26, .35) 60%, rgba(22, 19, 26, .15)); transition: background .6s; }
.pillar:hover img { transform: scale(1.06); filter: saturate(.95) brightness(.85); }
.pillar:hover { color: var(--mineral); }
.pillar .pn { position: absolute; top: 1.4rem; left: 1.8rem; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pillar .p-icon { position: absolute; top: 1.2rem; right: 1.4rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(238, 232, 223, .3); transition: all .4s var(--ease); }
.pillar:hover .p-icon { background: var(--copper); border-color: var(--copper); color: var(--ore); transform: rotate(-45deg); }
.pillar h3 { font-size: 1.75rem; margin-bottom: .6rem; }
.pillar p { color: rgba(238, 232, 223, .78); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s, margin .5s; }
.pillar:hover p, .pillar:focus-visible p { max-height: 160px; opacity: 1; }
@media (hover: none) { .pillar p { max-height: none; opacity: 1; } }

.glass-card {
  height: 100%; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(42, 36, 49, .6), rgba(22, 19, 26, .3));
  transition: border-color .35s, transform .35s var(--ease), background-color .35s;
}
.glass-card:hover { border-color: rgba(201, 135, 79, .45); transform: translateY(-4px); }
.glass-card .gc-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.5rem; border: 1px solid rgba(201, 135, 79, .45); color: var(--copper); font-size: 1.1rem; }
.glass-card h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.glass-card p { color: var(--muted); margin: 0; }
.glass-card .gc-n { font-family: var(--serif); font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201, 135, 79, .6); display: block; margin-bottom: 1rem; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { padding: 2.2rem 1.8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; transition: background-color .4s; }
.stat:hover { background: rgba(184, 169, 227, .04); }
.stat i { color: var(--copper); font-size: 1.1rem; margin-bottom: 1.6rem; display: block; }
.stat-num { display: block; font-weight: 200; font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-num .sfx { color: var(--copper); font-size: .5em; margin-left: .2rem; letter-spacing: 0; }
.stat-label { display: block; margin-top: .8rem; font-weight: 500; }
.stat-desc { display: block; margin-top: .3rem; color: var(--muted); font-size: .88rem; }

/* News cards */
.post-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--mineral); }
.post-card:hover { color: var(--mineral); }
.pc-media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 11; margin-bottom: 1.3rem; background: var(--seam-2); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.85); }
.post-card:hover .pc-media img { transform: scale(1.06); filter: saturate(1); }
.pc-cat { position: absolute; left: 1rem; top: 1rem; z-index: 1; padding: .3rem .75rem; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(22, 19, 26, .75); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pc-meta { display: flex; gap: 1rem; font-size: .84rem; color: var(--muted); margin-bottom: .6rem; }
.pc-meta i { color: var(--copper); margin-right: .3rem; }
.post-card h3 { font-size: 1.45rem; line-height: 1.22; margin-bottom: .7rem; transition: color .3s; }
.post-card:hover h3 { color: var(--copper-hi); }
.post-card p { color: var(--muted); font-size: .97rem; margin-bottom: 1rem; }
.pc-more { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .92rem; }
.pc-more i { color: var(--copper); transition: transform .35s var(--ease); }
.post-card:hover .pc-more i { transform: translateX(5px); }

.post-feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--mineral); background: var(--seam); }
.post-feature:hover { color: var(--mineral); }
.post-feature .pf-media { position: relative; min-height: 420px; overflow: hidden; }
.post-feature .pf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-feature:hover .pf-media img { transform: scale(1.05); }
.post-feature .pf-body { padding: clamp(1.8rem, 4vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; }
.post-feature h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; margin-bottom: 1rem; }
.post-feature p { color: var(--muted); }

/* Team */
.team-card { position: relative; text-align: left; background: transparent; border: 0; padding: 0; color: var(--mineral); width: 100%; }
.tc-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--seam-2); margin-bottom: 1.1rem; }
.tc-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.05); transition: filter .6s, transform 1s var(--ease); }
.team-card:hover .tc-media img { filter: grayscale(0); transform: scale(1.04); }
.tc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22, 19, 26, .6), transparent 50%); }
.tc-plus { position: absolute; right: 1rem; bottom: 1rem; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--copper); color: var(--ore); transform: scale(.8); opacity: 0; transition: all .4s var(--ease); }
.team-card:hover .tc-plus { transform: scale(1); opacity: 1; }
.team-card h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.team-card span { color: var(--muted); font-size: .92rem; }

.modal-content { background: var(--seam); border: 1px solid var(--line); color: var(--mineral); border-radius: 8px; }
.modal-backdrop.show { opacity: .8; }
.team-modal img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }

/* Accordion */
.accordion { --bs-accordion-bg: transparent; --bs-accordion-color: var(--mineral); --bs-accordion-border-color: var(--line); --bs-accordion-btn-color: var(--mineral); --bs-accordion-active-color: var(--copper-hi); --bs-accordion-active-bg: transparent; --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; }
.accordion-item { border-left: 0; border-right: 0; }
.accordion-button { font-family: var(--serif); font-size: 1.3rem; padding: 1.5rem 0; }
.accordion-button::after { filter: invert(.7) sepia(1) hue-rotate(340deg) saturate(3); }
.accordion-body { padding: 0 0 1.5rem; color: var(--muted); max-width: 70ch; }

/* Supply chain */
.chain { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chain-step { background: var(--ore); padding: 1.8rem 1.3rem; position: relative; transition: background-color .35s; }
.chain-step:hover { background: var(--seam); }
.chain-step.is-us { background: linear-gradient(180deg, rgba(201, 135, 79, .14), rgba(22, 19, 26, 1)); }
.chain-step .cs-n { font-size: .78rem; color: var(--copper); letter-spacing: .1em; }
.chain-step i { display: block; font-size: 1.5rem; color: var(--nd); margin: 1.2rem 0; }
.chain-step h4 { font-size: 1.2rem; margin-bottom: .4rem; }
.chain-step p { color: var(--muted); font-size: .9rem; margin: 0; }
.chain-step .us-tag { position: absolute; top: 1rem; right: 1rem; font-size: .68rem; font-weight: 600; background: var(--copper); color: var(--ore); padding: .1rem .5rem; border-radius: 999px; }

/* Values / numbered list */
.num-list { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.num-list li { counter-increment: n; position: relative; padding: 1.5rem 0 1.5rem 4.2rem; border-top: 1px solid var(--line); }
.num-list li:last-child { border-bottom: 1px solid var(--line); }
.num-list li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 1.5rem; font-family: var(--serif); font-size: 1.6rem; color: var(--copper); }
.num-list h4 { font-size: 1.3rem; margin-bottom: .3rem; }
.num-list p { color: var(--muted); margin: 0; }

/* Quote */
.big-quote { position: relative; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.3; max-width: 32ch; margin: 0 auto; text-align: center; }
.big-quote::before { content: '\201C'; display: block; font-size: 5rem; line-height: .6; color: var(--copper); margin-bottom: 1rem; }
.big-quote cite { display: block; margin-top: 1.6rem; font-family: var(--sans); font-style: normal; font-size: .95rem; color: var(--muted); }

/* SDGs */
.sdg { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; }
.sdg b { flex: 0 0 52px; height: 52px; display: grid; place-items: center; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; border-radius: 4px; color: #fff; }
.sdg span { font-size: .95rem; }

/* =====================================================================
   Page hero (inner pages)
   ===================================================================== */
.page-hero { position: relative; min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding-top: 170px; padding-bottom: clamp(3.5rem, 8vh, 6rem); }
.ph-media { position: absolute; inset: -6% 0; z-index: -2; }
.ph-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05) brightness(.85); transform: scale(1.1); animation: phzoom 2.6s var(--ease) forwards; }
@keyframes phzoom { to { transform: scale(1); } }
.ph-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 19, 26, .7) 0%, rgba(22, 19, 26, .2) 35%, rgba(22, 19, 26, .55) 70%, var(--ore) 100%), linear-gradient(90deg, rgba(22, 19, 26, .78) 0%, rgba(22, 19, 26, .1) 70%), rgba(70, 45, 90, .14); }
.ph-content { position: relative; z-index: 2; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: .85rem; color: var(--muted); margin-bottom: 2rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--mineral); }
.crumbs i { font-size: .55rem; opacity: .6; }
.crumbs span { color: var(--mineral); max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-title { font-size: clamp(2.8rem, 7.5vw, 6.6rem); line-height: .98; letter-spacing: -.012em; margin: 0 0 1.5rem; max-width: 16ch; }
.page-article .ph-title { font-size: clamp(2.2rem, 5vw, 4.4rem); max-width: 22ch; }
.ph-lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 52ch; color: rgba(238, 232, 223, .88); margin: 0; }
.ph-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; color: var(--muted); font-size: .92rem; }
.ph-meta i { color: var(--copper); margin-right: .4rem; }
.scroll-cue { position: absolute; right: clamp(1.5rem, 4vw, 3rem); bottom: 2.5rem; z-index: 2; width: 26px; height: 44px; border: 1px solid rgba(238, 232, 223, .4); border-radius: 13px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--copper); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* =====================================================================
   Forms
   ===================================================================== */
.form-panel { position: relative; background: rgba(22, 19, 26, .6); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.5rem, 3vw, 2.75rem); }
.form-title { font-size: 1.9rem; margin-bottom: .4rem; }
.form-intro { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }
.field { position: relative; margin-bottom: 1.6rem; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.field .form-control, .field .nice-select {
  width: 100%; background: transparent; color: var(--mineral); border: 0; border-bottom: 1px solid rgba(184, 169, 227, .3); border-radius: 0;
  padding: .65rem 0; font-size: 1.05rem; box-shadow: none; transition: border-color .3s;
}
.field .form-control::placeholder { color: rgba(164, 155, 173, .6); }
.field .form-control:focus { background: transparent; color: var(--mineral); border-bottom-color: var(--copper); box-shadow: none; }
.field textarea.form-control { min-height: 130px; resize: vertical; }
.field .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.field .form-control:focus ~ .bar { transform: scaleX(1); }
.field .invalid-feedback { font-size: .82rem; color: #e58c8c; }
.was-validated .form-control:invalid { border-bottom-color: #e58c8c; background-image: none; }
.was-validated .form-control:valid { border-bottom-color: rgba(184, 169, 227, .3); background-image: none; }
.form-check-input { background-color: transparent; border-color: var(--line-strong); }
.form-check-input:checked { background-color: var(--copper); border-color: var(--copper); }
.form-check-label { color: var(--muted); font-size: .9rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Nice Select, themed */
.nice-select { height: auto; line-height: 1.5; float: none; display: block; padding-right: 1.75rem !important; }
.nice-select:after { border-color: var(--copper); right: 4px; width: 7px; height: 7px; }
.nice-select:hover, .nice-select.open, .nice-select:focus { border-bottom-color: var(--copper); }
.nice-select .current { color: var(--mineral); }
.nice-select .list { width: 100%; background: var(--seam-2); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); margin-top: 6px; max-height: 280px; overflow-y: auto; }
.nice-select .option { color: var(--mineral); font-size: .98rem; min-height: 42px; line-height: 42px; padding-left: 16px; }
.nice-select .option:hover, .nice-select .option.focus, .nice-select .option.selected.focus { background: rgba(201, 135, 79, .14); }
.nice-select .option.selected { font-weight: 600; color: var(--copper-hi); }
.nice-select .option.disabled { color: var(--muted); }
.nice-select.is-invalid { border-bottom-color: #e58c8c; }

.form-alert { display: none; margin-top: 1rem; padding: .9rem 1rem; border-radius: 4px; font-size: .95rem; }
.form-alert.is-ok { display: block; background: rgba(120, 190, 140, .12); border: 1px solid rgba(120, 190, 140, .4); color: #bfe6c9; }
.form-alert.is-err { display: block; background: rgba(229, 140, 140, .1); border: 1px solid rgba(229, 140, 140, .4); color: #f2c0c0; }
.btn .spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; margin-left: .6rem; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact */
.contact-card { display: flex; gap: 1.1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.contact-card:last-child { border-bottom: 1px solid var(--line); }
.contact-card .fi-icon { flex-basis: 50px; height: 50px; }
.contact-card h4 { font-size: 1.15rem; margin-bottom: .2rem; }
.contact-card p, .contact-card a { color: var(--muted); margin: 0; text-decoration: none; }
.contact-card a:hover { color: var(--copper-hi); }
.big-phone { display: inline-block; padding-bottom: .35rem; font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; color: var(--mineral); text-decoration: none; font-variant-numeric: tabular-nums; border-bottom: 1px solid rgba(201, 135, 79, .5); }
.big-phone small { display: block; margin-bottom: .45rem; font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.big-phone:hover { color: var(--copper-hi); }
.map-frame { position: relative; height: clamp(380px, 60vh, 560px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--seam); }
.map-frame iframe { width: 100%; height: 100%; display: block; filter: grayscale(.9) invert(.92) hue-rotate(200deg) saturate(.6) brightness(.95) contrast(.9); transition: filter .6s; }
.map-frame:hover iframe { filter: none; }
.map-frame.no-filter iframe { filter: none; }
.map-card { position: absolute; right: clamp(1rem, 4vw, 3rem); top: 50%; transform: translateY(-50%); z-index: 2; width: min(360px, calc(100% - 2rem)); padding: 1.6rem; background: rgba(22, 19, 26, .92); border: 1px solid var(--line); border-radius: 6px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.map-card h3 { font-size: 1.5rem; }
.map-card p { color: var(--muted); font-size: .95rem; margin-bottom: .4rem; }
.social-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.social-row a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--mineral); text-decoration: none; transition: all .3s; }
.social-row a:hover { background: var(--copper); border-color: var(--copper); color: var(--ore); transform: translateY(-3px); }

/* =====================================================================
   Article
   ===================================================================== */
.read-progress { position: fixed; left: 0; top: 0; z-index: 70; height: 2px; width: 100%; background: linear-gradient(90deg, var(--copper), var(--nd)); transform: scaleX(0); transform-origin: left; }
.prose { font-size: 1.12rem; line-height: 1.8; color: rgba(238, 232, 223, .9); }
.prose > * { max-width: 72ch; }
.prose .lead, .prose > p:first-child { font-size: 1.35rem; line-height: 1.6; color: var(--mineral); font-weight: 300; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 3rem 0 1rem; line-height: 1.2; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.45rem; margin: 2.2rem 0 .7rem; scroll-margin-top: 110px; }
.prose p { margin-bottom: 1.4rem; }
.prose a { color: var(--copper-hi); }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: 1.6rem; }
.prose li { margin-bottom: .7rem; }
.prose ul li::marker { color: var(--copper); }
.prose strong { color: var(--mineral); font-weight: 600; }
.prose blockquote { position: relative; margin: 2.5rem 0; padding: 1.8rem 2rem 1.8rem 2.4rem; border-left: 2px solid var(--copper); background: linear-gradient(90deg, rgba(201, 135, 79, .08), transparent); font-family: var(--serif); font-size: 1.45rem; line-height: 1.45; color: var(--mineral); }
.prose figure { margin: 2.5rem 0; max-width: 100%; }
.prose figure img, .prose img { width: 100%; border-radius: var(--radius); }
.prose figcaption { margin-top: .7rem; font-size: .88rem; color: var(--muted); }
.prose figcaption::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--copper); vertical-align: middle; margin-right: .6rem; }
.article-aside { position: sticky; top: 110px; }
.toc { border-left: 1px solid var(--line); padding-left: 1.2rem; }
.toc h4 { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.toc a { display: block; padding: .4rem 0; color: var(--muted); text-decoration: none; font-size: .92rem; line-height: 1.4; position: relative; transition: color .25s; }
.toc a.is-active, .toc a:hover { color: var(--mineral); }
.toc a.is-active::before { content: ''; position: absolute; left: -1.25rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--copper); }
.share { display: flex; gap: .5rem; flex-wrap: wrap; }
.share a, .share button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--mineral); background: transparent; text-decoration: none; transition: all .3s; }
.share a:hover, .share button:hover { background: var(--copper); border-color: var(--copper); color: var(--ore); }
.author-box { display: flex; gap: 1.2rem; align-items: center; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--seam); }
.author-box .av { flex: 0 0 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--seam-2); border: 1px solid var(--line-strong); font-family: var(--serif); font-size: 1.5rem; color: var(--copper); overflow: hidden; }
.author-box .av img { width: 100%; height: 100%; object-fit: cover; }

/* Pagination */
.pager { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.pager a, .pager span { min-width: 46px; height: 46px; padding: 0 .9rem; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--mineral); text-decoration: none; font-variant-numeric: tabular-nums; transition: all .25s; }
.pager a:hover { border-color: var(--copper); color: var(--copper-hi); }
.pager .is-current { background: var(--copper); border-color: var(--copper); color: var(--ore); }
.search-box { position: relative; }
.search-box input { width: 100%; background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: .7rem 3rem .7rem 1.2rem; color: var(--mineral); }
.search-box input:focus { outline: none; border-color: var(--copper); }
.search-box button { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--copper); color: var(--ore); }

/* =====================================================================
   CTA band and footer
   ===================================================================== */
.cta-band { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 8rem) 0; border-top: 1px solid var(--line); }
.cta-bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; filter: saturate(.6) brightness(.5); }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(22, 19, 26, .95) 20%, rgba(22, 19, 26, .6) 70%, rgba(22, 19, 26, .4)), rgba(70, 45, 90, .2); }
.cta-band .container-xxl { z-index: 2; }
.cta-title { font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.05; max-width: 18ch; margin: 0; }

.site-footer { background: var(--ore); border-top: 1px solid var(--line); overflow: hidden; padding-top: clamp(4rem, 7vw, 6rem); }
.footer-top { padding-bottom: 3rem; }
.footer-about { color: var(--muted); margin: 1.5rem 0; max-width: 40ch; font-size: .97rem; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--mineral); text-decoration: none; transition: all .3s; }
.footer-social a:hover { background: var(--copper); border-color: var(--copper); color: var(--ore); }
.footer-h { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--copper); margin-bottom: 1.3rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .65rem; }
.footer-list a { color: var(--muted); text-decoration: none; transition: color .25s, padding .3s var(--ease); }
.footer-list a:hover { color: var(--mineral); padding-left: .3rem; }
.footer-small { color: var(--muted); font-size: .92rem; }
.newsletter { display: flex; border-bottom: 1px solid var(--line-strong); margin-top: 1rem; transition: border-color .3s; }
.newsletter:focus-within { border-color: var(--copper); }
.newsletter input { flex: 1; background: transparent; border: 0; color: var(--mineral); padding: .8rem 0; min-width: 0; }
.newsletter input:focus { outline: none; }
.newsletter button { background: transparent; border: 0; color: var(--copper); width: 44px; font-size: 1.05rem; transition: transform .3s var(--ease); }
.newsletter button:hover { transform: translateX(4px); }
.newsletter-msg { font-size: .85rem; min-height: 1.3em; margin: .5rem 0 1rem; color: var(--nd); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .8rem; margin-bottom: .65rem; color: var(--muted); font-size: .95rem; }
.footer-contact i { color: var(--copper); margin-top: .3rem; width: 16px; }
.footer-contact a { color: var(--muted); text-decoration: none; }
.footer-contact a:hover { color: var(--mineral); }
.footer-mark {
  font-family: var(--serif); font-size: clamp(4.5rem, 17vw, 17rem); line-height: .82; text-align: center; white-space: nowrap; letter-spacing: -.01em; user-select: none;
  background: linear-gradient(0deg, rgba(201, 135, 79, .38) 0%, rgba(201, 135, 79, 0) 58%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1px rgba(184, 169, 227, .3);
}
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.75rem; padding-bottom: 1.75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-row a { color: var(--mineral); text-decoration: none; }
.footer-row a:hover { color: var(--copper-hi); }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { color: var(--muted); }

/* Floating actions */
.fab-wa { position: fixed; right: 1.4rem; bottom: 5.6rem; z-index: 80; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; font-size: 1.6rem; text-decoration: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); }
.fab-wa::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #25D366; animation: ping 2.8s ease-out infinite; }
.fab-wa:hover { color: #fff; transform: scale(1.08); }
.to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 80; width: 54px; height: 54px; border: 0; padding: 0; border-radius: 50%; background: var(--seam-2); color: var(--mineral); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .4s var(--ease); }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.to-top .tt-progress { stroke: var(--copper); stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }
.to-top i { position: relative; }
.to-top:hover { background: var(--copper); color: var(--ore); }

.toast { background: var(--seam-2); border: 1px solid var(--line); color: var(--mineral); }

/* Legal */
.legal h2 { font-size: 1.8rem; margin-top: 2.5rem; }

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 8rem 1rem 4rem; }
.nf-code { font-family: var(--serif); font-size: clamp(7rem, 22vw, 16rem); line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(201, 135, 79, .6); }

/* WOW / reveal fallbacks */
.wow { visibility: hidden; }
.no-js .wow, .reduced .wow { visibility: visible !important; animation: none !important; }
.animate__animated { --animate-duration: 1.1s; }
.reveal-up { will-change: transform, opacity; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1199.98px) {
  .chain { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
  .hero-shade { background: linear-gradient(0deg, var(--ore) 8%, rgba(22, 19, 26, .7) 48%, rgba(22, 19, 26, .1) 80%); }
  .hero-content { padding-top: clamp(15rem, 40vh, 22rem); padding-bottom: 2rem; }
  .survey-corner { top: 100px; }
  .hb-grid { grid-template-columns: repeat(2, 1fr); }
  .hb-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .hb-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .pf-media { min-height: 280px; }
  .stages-h { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .stages-h::before { display: none; }
  .offset-card { position: relative; right: auto; bottom: auto; width: auto; margin-top: -3rem; margin-left: 1rem; margin-right: 1rem; }
  .article-aside { position: static; }
  .map-card { position: relative; right: auto; top: auto; transform: none; width: auto; margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
  .map-frame { height: auto; }
  .map-frame iframe { height: 380px; }
}
@media (max-width: 767.98px) {
  .callout { display: none; }
  .pd-inner { flex-direction: column; gap: 1.1rem; }
  .pd-tile { flex-basis: auto; width: 120px; min-height: 140px; }
  .pd-tile .s { font-size: 3.4rem; }
  .pd-watermark { font-size: 10rem; bottom: -2.5rem; }
  .chain { grid-template-columns: 1fr 1fr; }
  .ws-bar-label { display: none; }
  .ws-arrows { display: none; }
  .ws-caption { bottom: 6rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.6rem 1.1rem; }
  .fab-wa { bottom: 5rem; right: 1rem; width: 50px; height: 50px; }
  .to-top { right: 1rem; bottom: 1rem; width: 50px; height: 50px; }
}
@media (max-width: 575.98px) {
  .ptable { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .ptile .nm { display: none; }
  .ptile .s { bottom: 12px; }
  .hero-title .line + .line { padding-left: .4em; }
  .survey-corner { display: none; }
  .stages-h { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .brand { font-size: 1.1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .page-hero { min-height: 70svh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .wow { visibility: visible !important; }
  .marquee-track { animation: none; }
}

/* Keep browser autofill on-theme */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #1A1620 inset !important; -webkit-text-fill-color: var(--mineral) !important; caret-color: var(--mineral);
  transition: background-color 9999s;
}

/* Mobile refinements */
body.menu-open .fab-wa, body.menu-open .to-top { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 767.98px) { .scroll-cue { display: none; } }
