/* =========================================================
   Valeron Resources — v5 "Genesis"
   Black & white, thin uppercase type, full-bleed cinematic photography,
   logo gold (#D69B07) used sparingly.
   ========================================================= */

:root {
  --black: #000;
  --ink: #0B0B0B;
  --ink-2: #141414;
  --white: #FFF;
  --grey-50: #F5F5F3;
  --grey-200: #E2E2DF;
  --grey-500: #6B6B6B;      /* secondary text on white (5.3:1) */
  --grey-on-dark: #ABABAB;  /* secondary text on black (9:1) */
  --gold: #D69B07;          /* logo gold: on dark backgrounds and large marks */
  --gold-text: #8A6400;     /* logo gold darkened for small text on white (5.4:1) */
  --line-light: rgba(0, 0, 0, .12);
  --line-dark: rgba(255, 255, 255, .16);

  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-brand: "Cormorant", Georgia, serif;

  --gutter: clamp(20px, 4.4vw, 64px);
  --section: clamp(88px, 11vw, 160px);
  --container: 1400px;
  --header-h: 76px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: 360ms;
  --z-header: 100;
  --z-menu: 120;
  --z-quickbar: 90;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.12; letter-spacing: .02em; text-transform: uppercase; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 999; padding: 12px 18px; background: var(--white); color: var(--black); text-decoration: none; text-transform: uppercase; font-size: 12px; letter-spacing: .14em; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Type ---------- */
.kicker { display: block; margin-bottom: 18px; font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.title-xl { font-size: clamp(34px, 4.4vw, 68px); }
.title-l { font-size: clamp(30px, 3.4vw, 52px); }
.title-m { font-size: clamp(22px, 2vw, 30px); }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.65; }
.muted { color: var(--grey-500); }
.on-dark .muted { color: var(--grey-on-dark); }

/* "Discover more" underlined links */
.more {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 15px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px;
  transition: text-underline-offset var(--dur) var(--ease), opacity var(--dur);
}
.more:hover { text-underline-offset: 11px; }
.more .icon { width: 14px; height: 14px; }

/* Sharp rectangular buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 30px; border: 1px solid transparent; border-radius: 0;
  font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #2A2A2A; }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: var(--grey-200); }
.btn--line { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--line:hover { background: var(--white); color: var(--black); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 11.5px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); height: var(--header-h);
  color: var(--white); transition: background-color var(--dur), transform .5s var(--ease);
}
.site-header.is-solid { background: rgba(0, 0, 0, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo { height: 44px; width: auto; }
.site-footer .brand-logo { height: 52px; }
@media (max-width: 600px) { .brand-logo { height: 34px; } }
.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px 0 10px; background: none; border: 0; cursor: pointer; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.menu-btn .bars { position: relative; display: block; width: 26px; height: 9px; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--dur) var(--ease), top var(--dur) var(--ease); }
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 7.5px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }
@media (max-width: 600px) { .header-actions .btn { display: none; } .menu-btn .label { display: none; } }

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--black); color: var(--white);
  display: grid; grid-template-columns: 1.3fr 1fr; align-content: center; gap: 48px;
  padding: calc(var(--header-h) + 40px) var(--gutter) 48px;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.menu-links a {
  display: block; padding: 6px 0; text-decoration: none; font-size: clamp(30px, 4.2vw, 58px); font-weight: 300; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15;
  opacity: .55; transition: opacity var(--dur), padding-left var(--dur) var(--ease);
}
.menu-links a:hover, .menu-links a:focus-visible { opacity: 1; padding-left: 12px; }
.menu-aside { align-self: end; border-top: 1px solid var(--line-dark); padding-top: 28px; color: var(--grey-on-dark); }
.menu-aside a { color: var(--white); text-decoration: none; }
.menu-aside a:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-aside p { margin-bottom: 18px; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: transparent; z-index: calc(var(--z-menu) + 1); }
@media (max-width: 860px) { .menu { grid-template-columns: 1fr; align-content: start; padding-top: calc(var(--header-h) + 24px); } }

/* ---------- Hero slideshow ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--black); color: var(--white); }
/* Crossfade: the incoming slide fades in ON TOP of the outgoing one, which stays fully
   visible underneath (.is-leaving), so there is never a dip to black between photos. */
.hero { --fade: 1.8s; --fade-ease: cubic-bezier(.45, 0, .2, 1); }
.slide { position: absolute; inset: 0; z-index: 0; opacity: 0; visibility: hidden; transition: opacity var(--fade) var(--fade-ease), visibility 0s linear var(--fade); }
.slide.is-active { z-index: 2; opacity: 1; visibility: visible; transition: opacity var(--fade) var(--fade-ease); }
.slide.is-leaving { z-index: 1; opacity: 1; visibility: visible; transition: none; }
/* Slow continuous push-in. The same animation keeps running while the slide leaves,
   so the zoom never reverses or jumps mid-transition. */
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; backface-visibility: hidden; }
.slide.is-active .slide-img, .slide.is-leaving .slide-img { animation: kenburns calc(var(--slide-ms, 7000ms) + var(--fade) + 1s) cubic-bezier(.3, 0, .5, 1) forwards; }
.hero.is-paused .slide.is-active .slide-img { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.1) 60%, rgba(0,0,0,.6) 100%), linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 55%); }
.slide-content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + clamp(28px, 7vh, 88px)); max-width: 760px; }
/* Text: outgoing copy fades out quickly; incoming copy rises in once the photo is half-way through its fade. */
.slide-content > * { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.slide.is-active .slide-content > * { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: .7s; }
.slide.is-active .slide-content > :nth-child(2) { transition-delay: .82s; }
.slide.is-active .slide-content > :nth-child(3) { transition-delay: .94s; }
.slide.is-active .slide-content > :nth-child(4) { transition-delay: 1.06s; }
.hero.is-first .slide.is-active .slide-content > * { transition-delay: .15s; }
.slide h1, .slide h2 { margin-bottom: 18px; }
.slide .lead { max-width: 480px; color: rgba(255,255,255,.85); margin-bottom: 14px; }

.hero-ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(24px, 5vh, 48px); }
.hero-ui .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.slide-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); gap: 14px; }
.slide-tab { position: relative; padding: 14px 0 0; min-height: 44px; text-align: left; background: none; border: 0; cursor: pointer; color: rgba(255,255,255,.6); font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; transition: color var(--dur); }
.slide-tab::before, .slide-tab i { content: ""; position: absolute; left: 0; top: 0; height: 2px; }
.slide-tab::before { right: 0; background: rgba(255,255,255,.28); }
.slide-tab i { width: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; }
.slide-tab[aria-current="true"] { color: var(--white); }
.slide-tab[aria-current="true"] i { animation: slidefill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .slide-tab[aria-current="true"] i { animation-play-state: paused; }
.hero.is-static .slide-tab[aria-current="true"] i { animation: none; transform: scaleX(1); }
@keyframes slidefill { to { transform: scaleX(1); } }
.slide-tab:hover { color: var(--white); }
.pause-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: var(--white); cursor: pointer; transition: background-color var(--dur), color var(--dur); }
.pause-btn:hover { background: var(--white); color: var(--black); }
.pause-btn .icon { width: 16px; height: 16px; }
.pause-btn .i-play { display: none; }
.hero.is-paused .pause-btn .i-play, .hero.is-static .pause-btn .i-play { display: block; }
.hero.is-paused .pause-btn .i-pause, .hero.is-static .pause-btn .i-pause { display: none; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: calc(clamp(24px, 5vh, 48px) + 64px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.8); }
.scroll-cue .icon { width: 18px; height: 18px; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 760px) {
  .scroll-cue { display: none; }
  .slide-tabs { grid-template-columns: repeat(4, 1fr); gap: 8px; flex: 1; }
  .slide-tab { font-size: 0; min-height: 32px; }
  .hero-ui { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .slide::after { background: linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.2) 65%, rgba(0,0,0,.75) 100%); }
}

/* ---------- Full-bleed image panels ---------- */
.panel { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--black); color: var(--white); }
.panel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s var(--ease); }
.panel.is-visible .panel-img { transform: scale(1); }
.panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 70%), linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 45%); }
.panel-content { position: relative; z-index: 2; padding-bottom: clamp(56px, 10vh, 112px); max-width: 760px; }
.panel h2 { margin-bottom: 22px; }
.panel .lead { max-width: 520px; color: rgba(255,255,255,.82); margin-bottom: 18px; }
@media (max-width: 760px) { .panel::after { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.1) 75%); } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.on-dark { background: var(--black); color: var(--white); }
.on-grey { background: var(--grey-50); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .lead { max-width: 520px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 112px); }
.about-grid .lead { color: var(--ink); }
.about-copy { color: var(--grey-500); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line-light); }
.stat { padding: 32px 24px 0 0; }
.stat + .stat { padding-left: clamp(18px, 3vw, 40px); border-left: 1px solid var(--line-light); }
.stat-value { display: block; font-size: clamp(56px, 7vw, 108px); font-weight: 200; line-height: 1; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.stat-value sup { font-size: .4em; vertical-align: top; position: relative; top: .3em; margin-left: 4px; color: var(--gold-text); }
.stat-label { display: block; margin-top: 16px; max-width: 240px; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-500); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
}

/* ---------- Value chain carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 48px) / 3.25));
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.stage { scroll-snap-align: start; }
.stage-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--black); }
.stage-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.stage:hover .stage-img img { transform: scale(1.05); }
.stage-tag { display: inline-block; margin: 22px 0 14px; padding: 3px 9px; border: 1px solid currentColor; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; }
.stage h3 { font-size: clamp(22px, 1.9vw, 28px); margin-bottom: 10px; }
.stage p { color: var(--grey-500); font-size: 15.5px; max-width: 34ch; }
.carousel-controls { display: flex; align-items: center; gap: 24px; margin-top: 40px; }
.progress { position: relative; flex: 1; max-width: 320px; height: 2px; background: var(--grey-200); }
.progress i { position: absolute; left: 0; top: 0; height: 100%; width: 20%; background: var(--black); transition: transform .45s var(--ease); }
.arrow-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-light); background: transparent; cursor: pointer; transition: background-color var(--dur), color var(--dur), opacity var(--dur); }
.arrow-btn:hover { background: var(--black); color: var(--white); }
.arrow-btn:disabled { opacity: .3; cursor: default; background: transparent; color: inherit; }
.arrow-btn .icon { width: 18px; height: 18px; }
.arrow-btn--prev .icon { transform: rotate(180deg); }

/* ---------- Capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.cap { padding: 36px 28px 44px 0; border-bottom: 1px solid var(--line-dark); }
.cap:not(:nth-child(4n+1)) { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.cap .icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 30px; }
.cap h3 { font-size: 19px; font-weight: 400; letter-spacing: .06em; margin-bottom: 12px; }
.cap p { font-size: 15px; color: var(--grey-on-dark); }
@media (max-width: 1080px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap, .cap:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .cap:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line-dark); }
}
@media (max-width: 620px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* ---------- Experts (event-card style) ---------- */
.experts { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px); }
.expert { display: flex; flex-direction: column; }
.expert-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(90% 120% at 72% 30%, #4E3720 0%, #1C140D 45%, #050403 100%); }
.expert-img img { position: absolute; right: 6%; bottom: 0; height: 100%; width: auto; max-width: none; object-fit: contain; object-position: bottom; transition: transform 1.2s var(--ease); }
.expert:hover .expert-img img { transform: scale(1.03); transform-origin: bottom center; }
.expert-img .kicker { position: absolute; left: 24px; top: 22px; margin: 0; color: rgba(255,255,255,.75); }
.expert .kicker--below { margin: 26px 0 10px; color: var(--grey-500); }
.expert h3 { font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 16px; }
.expert p { color: var(--grey-500); font-size: 15.5px; }
.expert-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 26px; }
.expert-actions .btn--dark { flex: 1; }
.square-btn { display: inline-grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--line-light); color: var(--ink); transition: background-color var(--dur), color var(--dur); }
.square-btn:hover { background: var(--black); color: var(--white); }
.square-btn .icon { width: 18px; height: 18px; }
@media (max-width: 960px) { .experts { grid-template-columns: 1fr; } }

/* ---------- Why ---------- */
.why-list { border-top: 1px solid var(--line-light); }
.why-item { display: grid; grid-template-columns: 90px 1.1fr 1fr; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line-light); }
.why-num { font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--gold-text); }
.why-item h3 { font-size: clamp(22px, 2.2vw, 32px); }
.why-item p { color: var(--grey-500); margin: 0; }
@media (max-width: 760px) { .why-item { grid-template-columns: 48px 1fr; gap: 6px 14px; } .why-item p { grid-column: 2; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 120px); }
.contact-list { border-top: 1px solid var(--line-dark); }
.contact-item { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.contact-item .icon { width: 20px; height: 20px; margin-top: 4px; color: var(--gold); }
.contact-label { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-on-dark); }
.contact-item a { text-decoration: none; overflow-wrap: anywhere; }
.contact-item a:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-item address { font-style: normal; }
.contact-lines { display: flex; flex-direction: column; }
.factsheet { margin-top: 32px; }

.form-card { background: var(--white); color: var(--ink); padding: clamp(28px, 4vw, 52px); }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--grey-500); font-size: 14.5px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-500); }
.field label .req { color: var(--gold-text); margin-left: 2px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid #9A9A9A; border-radius: 0;
  font: inherit; font-size: 16px; color: var(--ink); background: transparent;
  transition: border-color var(--dur);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--black); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #B3261E; }
.field-error { display: block; margin-top: 8px; font-size: 13.5px; color: #B3261E; }
.field-error:empty { display: none; }
.form-status { margin-top: 16px; font-size: 15px; }
.form-status:empty { display: none; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Profile pages ---------- */
.profile-hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; background: radial-gradient(70% 90% at 75% 40%, #4E3720 0%, #1C140D 40%, #000 80%); color: var(--white); }
.profile-hero-img { position: absolute; right: 8%; bottom: 0; height: 88%; width: auto; max-width: none; }
.profile-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 55%); pointer-events: none; }
.profile-hero .container { position: relative; z-index: 2; padding-bottom: clamp(48px, 9vh, 96px); }
.back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 28px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.8); }
.back-link:hover { color: var(--white); }
.back-link .icon { width: 15px; height: 15px; transform: rotate(180deg); }
@media (max-width: 760px) {
  .profile-hero { min-height: 92vh; }
  .profile-hero-img { right: 50%; transform: translateX(50%); height: 62%; }
  .profile-hero::after { background: linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.6) 35%, rgba(0,0,0,0) 60%); }
}
.profile-body { display: grid; grid-template-columns: 1fr 340px; gap: clamp(48px, 7vw, 120px); }
.prose { font-size: 18px; line-height: 1.85; color: #333; max-width: 68ch; }
.prose p + p { margin-top: 1em; }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 56px; border-top: 1px solid var(--line-light); }
.highlight { padding: 26px 24px 0 0; }
.highlight dt { font-size: 28px; font-weight: 300; text-transform: uppercase; margin-bottom: 6px; }
.highlight dd { margin: 0; color: var(--grey-500); font-size: 14.5px; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; padding: 32px; background: var(--grey-50); }
.aside-card h2 { font-size: 20px; font-weight: 400; letter-spacing: .08em; margin-bottom: 18px; }
.aside-card ul { margin-bottom: 24px; border-top: 1px solid var(--line-light); }
.aside-card li { border-bottom: 1px solid var(--line-light); }
.aside-card li a { display: flex; align-items: center; gap: 14px; min-height: 52px; text-decoration: none; overflow-wrap: anywhere; }
.aside-card li a:hover { text-decoration: underline; text-underline-offset: 5px; }
.aside-card .icon { width: 18px; height: 18px; color: var(--gold-text); }
@media (max-width: 960px) { .profile-body { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink-2); color: var(--white); padding: clamp(56px, 7vw, 96px) 0; }
.cta-band .container { display: grid; grid-template-columns: 1fr auto; gap: 28px 64px; align-items: end; }
.cta-band p.lead { max-width: 620px; color: var(--grey-on-dark); margin: 14px 0 0; }
@media (max-width: 760px) { .cta-band .container { grid-template-columns: 1fr; } .cta-band .btn { width: 100%; } }

/* ---------- Simple page (privacy notice) ---------- */
.page-hero { background: var(--black); color: var(--white); padding: calc(var(--header-h) + clamp(48px, 9vh, 96px)) 0 clamp(48px, 7vh, 80px); }
.page-hero h1 { margin-top: 6px; }
.legal { max-width: 820px; }
.legal-updated { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 18px; }
.legal .lead { margin-bottom: 8px; }
.legal h2 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 400; letter-spacing: .06em; margin: 44px 0 14px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.legal p, .legal li { color: #333; font-size: 16.5px; line-height: 1.75; }
.legal ul { margin: 0 0 1em; padding: 0; }
.legal li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.legal li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; background: var(--gold); }
.legal strong { font-weight: 500; color: var(--ink); }
.legal a, .form-card > p a, .fs-note a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Factsheet pop-up ---------- */
.fs-dialog {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 0; overflow: auto;
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.fs-dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.fs-dialog[open] { animation: fs-in .45s var(--ease); }
.fs-dialog[open]::backdrop { animation: fs-fade .45s ease; }
@keyframes fs-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fs-fade { from { opacity: 0; } to { opacity: 1; } }
.fs-panel { padding: clamp(32px, 5vw, 48px); border-top: 3px solid var(--gold); }
.fs-icon { width: 44px; height: 44px; color: var(--gold); stroke-width: 1.2; margin-bottom: 22px; }
.fs-panel .kicker { color: var(--gold-text); }
.fs-panel h2 { margin-bottom: 12px; }
.fs-desc { color: var(--grey-500); font-size: 15.5px; margin-bottom: 26px; }
.fs-desc strong { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.fs-desc a { color: var(--gold-text); }
.fs-note { margin-top: 18px; font-size: 12.5px; line-height: 1.55; color: var(--grey-500); }
.fs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fs-close {
  position: absolute; top: 10px; right: 10px; display: inline-grid; place-items: center;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--ink);
  transition: background-color var(--dur);
}
.fs-close:hover { background: var(--grey-50); }
.fs-close .icon { width: 20px; height: 20px; }
.fs-dialog .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
body.fs-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--grey-on-dark); padding: 80px 0 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.site-footer .brand { color: var(--white); margin-bottom: 22px; }
.footer-title { margin-bottom: 14px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--white); }
.footer-links a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Mobile quick-action bar ---------- */
.quickbar { display: none; }
@media (max-width: 760px) {
  .quickbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-quickbar);
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: rgba(20, 20, 20, .96); color: var(--white); border-top: 1px solid var(--line-dark);
    padding-bottom: env(safe-area-inset-bottom);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .quickbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; text-decoration: none; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
  .quickbar a + a { border-left: 1px solid var(--line-dark); }
  .quickbar .icon { width: 20px; height: 20px; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  body.menu-open .quickbar { display: none; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .panel-img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .panel-img { transform: none; }
  .carousel-track { scroll-behavior: auto; }
}
