/* ==========================================================================
   LITHORA. ORES — Corporate stylesheet
   ========================================================================== */

:root {
  /* Primary */
  --forest-900: #0f2219;
  --forest-800: #16301f;
  --forest-700: #1e3d2b;
  --forest-600: #2a5139;
  --charcoal: #161817;
  --graphite: #23262a;
  --slate: #34383b;

  /* Secondary */
  --ivory: #f7f3ec;
  --ivory-2: #efe9de;
  --stone: #e2d8c6;
  --stone-dark: #c9bba3;
  --gold: #b0915a;
  --gold-light: #cdb17c;
  --earth: #7d6c55;

  --text: #1d201e;
  --text-muted: #5c605b;
  --text-on-dark: #ece6da;
  --text-on-dark-muted: #a9a89f;
  --line: rgba(29, 32, 30, 0.12);
  --line-dark: rgba(236, 230, 218, 0.14);

  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 11vw, 150px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--charcoal); padding: 10px 18px;
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--dark { background: var(--charcoal); color: var(--text-on-dark); }
.section--forest { background: var(--forest-800); color: var(--text-on-dark); }
.section--stone { background: var(--ivory-2); }
.section--tight { padding: calc(var(--section) * .6) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--earth); margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.section--dark .eyebrow, .section--forest .eyebrow, .trade .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-light); }

.lead { font-size: clamp(1.08rem, 1.4vw, 1.24rem); line-height: 1.75; color: var(--text-muted); max-width: 640px; }
.section--dark .lead, .section--forest .lead, .trade .lead { color: var(--text-on-dark-muted); }
.muted { color: var(--text-muted); }
.section--dark .muted, .section--forest .muted { color: var(--text-on-dark-muted); }
em.accent, .accent { font-style: italic; color: var(--forest-600); }
.section--dark .accent, .section--forest .accent, .trade .accent, .cta .accent, .hero .accent, .page-hero .accent { color: var(--gold-light); }

.section-head { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 60px; }
.section-head h2 { max-width: 760px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --bg: var(--gold); --fg: var(--charcoal); --bd: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 30px; min-height: 52px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: var(--radius);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; position: relative; overflow: hidden;
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ivory); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
.btn:hover { border-color: var(--ivory); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost { --bg: transparent; --fg: var(--ivory); --bd: rgba(247, 243, 236, .45); }
.btn--ghost:hover { --fg: var(--charcoal); }
.btn--dark { --bg: var(--forest-800); --fg: var(--ivory); --bd: var(--forest-800); }
.btn--dark::after { background: var(--charcoal); }
.btn--dark:hover { border-color: var(--charcoal); }
.btn--outline { --bg: transparent; --fg: var(--forest-800); --bd: var(--forest-800); }
.btn--outline::after { background: var(--forest-800); }
.btn--outline:hover { --fg: var(--ivory); border-color: var(--forest-800); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--forest-700); padding-bottom: 6px; border-bottom: 1px solid currentColor;
  transition: gap .3s var(--ease), color .3s;
}
.text-link:hover { gap: 16px; color: var(--gold); }
.section--dark .text-link, .section--forest .text-link { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  color: var(--ivory);
  transition: background .5s var(--ease), height .4s var(--ease), border-color .5s, box-shadow .5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(15, 34, 25, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
  --header-h: 72px;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand__logo {
  display: block; width: 40px; height: 40px; flex: none;
  /* Keep the complete rectangular source inside the circular frame. */
  box-sizing: border-box; padding: 5px; object-fit: contain; object-position: center;
  border-radius: 50%; background: #fff;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  white-space: nowrap;
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.14em;
}
.brand__name .dot { color: var(--gold-light); }
.brand__tag { font-size: 0.56rem; letter-spacing: 0.32em; text-transform: uppercase; opacity: .7; margin-top: 6px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  white-space: nowrap;
  position: relative; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 0; opacity: .86; transition: opacity .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-light);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { opacity: 1; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { white-space: nowrap; padding: 12px 22px; min-height: 44px; font-size: 0.72rem; }

.nav-toggle {
  flex: none;
  display: none; width: 46px; height: 46px; border: 1px solid var(--line-dark); background: transparent;
  border-radius: var(--radius); cursor: pointer; position: relative; color: inherit;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--ivory); overflow: hidden; background: var(--forest-900);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 16, .62) 0%, rgba(10, 22, 16, .25) 38%, rgba(10, 22, 16, .88) 100%),
    linear-gradient(90deg, rgba(10, 22, 16, .7) 0%, rgba(10, 22, 16, 0) 70%);
}
.hero__content { position: relative; width: 100%; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(56px, 9vh, 110px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; align-items: end; }
.hero__company {
  font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 26px; display: flex; align-items: center; gap: 14px;
}
.hero__company::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hero h1 { max-width: 900px; margin-bottom: 30px; }
.hero__text { font-size: clamp(1.02rem, 1.3vw, 1.16rem); max-width: 620px; color: rgba(247, 243, 236, .82); margin-bottom: 40px; }
.hero__aside {
  border-left: 1px solid var(--line-dark); padding-left: 28px;
  font-size: 0.86rem; color: rgba(247, 243, 236, .72);
}
.hero__aside dt { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; }
.hero__aside dd { margin: 0 0 22px; }
.hero__aside dd:last-child { margin-bottom: 0; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 1px; height: 44px; background: rgba(247,243,236,.25); overflow: hidden;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 0; top: -44px; width: 1px; height: 44px; background: var(--gold-light);
  animation: scrollCue 2.4s var(--ease) infinite;
}
@keyframes scrollCue { to { top: 44px; } }

/* Inner page hero */
.page-hero {
  position: relative; color: var(--ivory); background: var(--forest-900); overflow: hidden;
  padding: calc(var(--header-h) + clamp(80px, 12vw, 150px)) 0 clamp(70px, 9vw, 120px);
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,22,16,.95) 0%, rgba(10,22,16,.7) 55%, rgba(10,22,16,.45) 100%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); max-width: 900px; margin-bottom: 26px; }
.page-hero p { max-width: 640px; color: rgba(247, 243, 236, .8); font-size: 1.1rem; }
.breadcrumb { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0 0 36px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(247,243,236,.6); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.breadcrumb a:hover { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   Layout blocks
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split--top { align-items: start; }
.split--wide { grid-template-columns: 1.15fr .85fr; }

.figure { position: relative; overflow: hidden; background: var(--stone); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.figure:hover img { transform: scale(1.04); }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 10; }
.figure--frame::before {
  content: ""; position: absolute; inset: 18px; border: 1px solid rgba(247,243,236,.4); z-index: 1; pointer-events: none;
}
.figure__caption {
  position: absolute; left: 0; bottom: 0; z-index: 2; background: var(--forest-800); color: var(--ivory);
  padding: 18px 24px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
}

.intro-stack { display: grid; gap: 28px; }
.intro-stack h2 { margin-bottom: 4px; }

.rule-list { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--line); }
.rule-list li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.rule-list li::before { content: ""; width: 7px; height: 7px; margin-top: 10px; flex: none; background: var(--gold); transform: rotate(45deg); }
.section--dark .rule-list, .section--forest .rule-list, .section--dark .rule-list li, .section--forest .rule-list li { border-color: var(--line-dark); }

/* Activities (numbered) */
.activities { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.activity {
  padding: 40px 32px 44px 0; border-right: 1px solid var(--line-dark); position: relative;
  display: flex; flex-direction: column; gap: 18px; transition: background .5s var(--ease);
}
.activity + .activity { padding-left: 32px; }
.activity:last-child { border-right: 0; }
.activity__num { font-family: var(--font-display); font-size: 1rem; color: var(--gold-light); letter-spacing: .1em; }
.activity h3 { font-size: 1.6rem; color: var(--ivory); }
.activity p { font-size: .94rem; color: var(--text-on-dark-muted); flex: 1; }
.activity .text-link { align-self: flex-start; }
.activity::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.activity:hover::before { transform: scaleX(1); }

/* Material cards */
.materials { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.material { grid-column: span 2; position: relative; display: block; overflow: hidden; color: var(--ivory); background: var(--forest-900); min-height: 440px; }
.material--lg { grid-column: span 3; min-height: 520px; }
.material img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; opacity: .9; }
.material::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,16,0) 30%, rgba(10,22,16,.92) 100%); }
.material:hover img { transform: scale(1.06); opacity: 1; }
.material__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 32px; }
.material__index { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); display: block; margin-bottom: 12px; }
.material h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin-bottom: 10px; }
.material p { font-size: .9rem; color: rgba(247,243,236,.78); max-width: 420px; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s, margin .5s; }
.material:hover p, .material:focus-visible p { max-height: 140px; opacity: 1; margin-top: 8px; }
.material__go {
  position: absolute; z-index: 1; top: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(247,243,236,.4); display: grid; place-items: center; transition: background .4s, border-color .4s, transform .5s var(--ease);
}
.material:hover .material__go { background: var(--gold); border-color: var(--gold); color: var(--charcoal); transform: rotate(-45deg); }

.note {
  margin-top: 40px; padding: 22px 26px; border-left: 2px solid var(--gold);
  background: rgba(176, 145, 90, .08); font-size: .88rem; color: var(--text-muted); max-width: 880px;
}
.section--dark .note, .section--forest .note { color: var(--text-on-dark-muted); background: rgba(205,177,124,.07); }

/* Capability grid */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cap { padding: 40px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .5s var(--ease); }
.cap:hover { background: var(--ivory); }
.section--stone .cap:hover { background: var(--ivory); }
.cap__icon { width: 44px; height: 44px; color: var(--forest-600); margin-bottom: 26px; }
.cap h3 { font-size: 1.5rem; margin-bottom: 12px; }
.cap p { font-size: .94rem; color: var(--text-muted); }

/* Trade band */
.trade { position: relative; overflow: hidden; color: var(--ivory); background: var(--forest-900); }
.trade__media { position: absolute; inset: 0; }
.trade__media img { width: 100%; height: 100%; object-fit: cover; }
.trade__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,16,.94) 0%, rgba(10,22,16,.78) 50%, rgba(10,22,16,.3) 100%); }
.trade .container { position: relative; }
.trade__inner { max-width: 640px; }
.trade__flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line-dark); }
.trade__flow div { padding: 22px 20px 0 0; font-size: .82rem; color: var(--text-on-dark-muted); }
.trade__flow strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--ivory); margin-bottom: 6px; }

/* Values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.value { padding: 34px 30px; background: var(--ivory); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .5s, box-shadow .5s; }
.value:hover { transform: translateY(-6px); border-color: var(--stone-dark); box-shadow: 0 24px 48px -28px rgba(22, 48, 31, .35); }
.value__mark { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); margin-bottom: 26px; }
.value h3 { font-size: 1.45rem; margin-bottom: 10px; }
.value p { font-size: .92rem; color: var(--text-muted); }

/* Process */
.process { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.process li { counter-increment: step; padding: 38px 34px 42px 0; border-top: 1px solid var(--line-dark); position: relative; }
.process li:nth-child(3n+2), .process li:nth-child(3n+3) { padding-left: 34px; border-left: 1px solid var(--line-dark); }
.process li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--gold-light); margin-bottom: 22px; opacity: .9;
}
.process h3 { font-size: 1.5rem; color: var(--ivory); margin-bottom: 10px; }
.process p { font-size: .93rem; color: var(--text-on-dark-muted); }
.section:not(.section--dark):not(.section--forest) .process li { border-color: var(--line); }
.section:not(.section--dark):not(.section--forest) .process h3 { color: var(--text); }
.section:not(.section--dark):not(.section--forest) .process p { color: var(--text-muted); }
.section:not(.section--dark):not(.section--forest) .process li::before { color: var(--gold); }

/* CTA band */
.cta { background: var(--forest-800); color: var(--ivory); position: relative; overflow: hidden; }
.cta__pattern { position: absolute; right: -80px; top: 50%; transform: translateY(-50%); width: 520px; opacity: .1; color: var(--gold-light); pointer-events: none; }
.cta .container { position: relative; display: grid; grid-template-columns: 1.4fr auto; gap: 48px; align-items: center; }
.cta h2 { max-width: 720px; }
.cta p { color: var(--text-on-dark-muted); margin-top: 18px; max-width: 560px; }

/* Services (detail) */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; padding: clamp(60px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:last-child { border-bottom: 0; }
.service:nth-child(even) .service__media { order: 2; }
.service__num { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .14em; color: var(--gold); display: block; margin-bottom: 18px; }
.service h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 24px; }
.service__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.service__cols h4 { font-family: var(--font-body); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--earth); margin-bottom: 12px; font-weight: 600; }
.service__cols ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--text-muted); }
.service__cols li { padding: 5px 0 5px 18px; position: relative; }
.service__cols li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 1px; background: var(--gold); }

/* Material detail (products page) */
.mat-nav { position: sticky; top: 72px; z-index: 20; background: rgba(247,243,236,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.mat-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 14px 0; overflow-x: auto; scrollbar-width: none; }
.mat-nav ul::-webkit-scrollbar { display: none; }
.mat-nav a { white-space: nowrap; display: block; padding: 10px 18px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.mat-nav a:hover, .mat-nav a.is-active { background: var(--forest-800); color: var(--ivory); border-color: var(--forest-800); }

.mat-detail { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; padding: clamp(70px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.mat-detail:nth-of-type(even) .mat-detail__media { order: 2; }
.mat-detail__media { aspect-ratio: 4 / 5; }
.mat-detail h2 { margin-bottom: 22px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; padding: 0; list-style: none; }
.tag-list li { padding: 8px 14px; border: 1px solid var(--stone-dark); font-size: .8rem; color: var(--text-muted); background: rgba(255,255,255,.4); }
.mat-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0 34px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mat-meta h4 { font-family: var(--font-body); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--earth); margin-bottom: 8px; font-weight: 600; }
.mat-meta p { font-size: .9rem; color: var(--text-muted); }

/* Principles (approach) */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.principle { padding: 40px 36px; border: 1px solid var(--line-dark); }
.principle h3 { color: var(--ivory); font-size: 1.6rem; margin-bottom: 12px; }
.principle p { color: var(--text-on-dark-muted); font-size: .95rem; }

/* Vision / mission */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vm__card { padding: clamp(36px, 5vw, 60px); background: var(--forest-800); color: var(--ivory); position: relative; overflow: hidden; }
.vm__card:nth-child(2) { background: var(--charcoal); }
.vm__card .eyebrow { color: var(--gold-light); }
.vm__card blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.3; }
.vm__card svg { position: absolute; right: -40px; bottom: -40px; width: 220px; opacity: .07; color: var(--gold-light); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact-info { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-info__row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info__label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--earth); font-weight: 600; margin-bottom: 6px; display: block; }
.contact-info__value { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35; }
.contact-info__value a:hover { color: var(--forest-600); }
.is-pending { color: var(--text-muted); font-style: italic; font-size: 1.1rem; }

.form { background: #fff; border: 1px solid var(--line); padding: clamp(28px, 4vw, 52px); box-shadow: 0 40px 80px -60px rgba(22,48,31,.45); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--text); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; background: var(--ivory); border: 1px solid var(--stone-dark); border-radius: var(--radius);
  font-size: .96rem; transition: border-color .3s, background .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237d6c55' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest-600); background: #fff; box-shadow: 0 0 0 3px rgba(42,81,57,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #a5432f; }
.field__error { font-size: .8rem; color: #a5432f; min-height: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; }
.form__consent { font-size: .82rem; color: var(--text-muted); max-width: 380px; }
.form__consent a { text-decoration: underline; }
.form__status { margin-top: 22px; padding: 16px 20px; font-size: .92rem; display: none; }
.form__status.is-visible { display: block; }
.form__status--ok { background: rgba(42,81,57,.08); border-left: 2px solid var(--forest-600); color: var(--forest-700); }
.form__status--err { background: rgba(165,67,47,.08); border-left: 2px solid #a5432f; color: #7c3324; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 52px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 20px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; color: var(--forest-600); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--forest-900); color: var(--text-on-dark-muted); padding: clamp(70px, 9vw, 110px) 0 36px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid var(--line-dark); }
.site-footer .brand { color: var(--ivory); margin-bottom: 24px; }
.footer-about { max-width: 340px; }
.footer-col h3 { font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 22px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { transition: color .3s; }
.footer-col a:hover { color: var(--ivory); }
.footer-contact li span { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: border-color .3s, color .3s; }
.footer-social a:hover { border-color: var(--gold-light); color: var(--gold-light); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-top: 30px; font-size: .8rem; }
.footer-bottom ul { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.footer-bottom a:hover { color: var(--ivory); }

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .12s; }
.js .reveal[data-delay="2"] { transition-delay: .24s; }
.js .reveal[data-delay="3"] { transition-delay: .36s; }
.js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1480px) {
  .nav .btn { display: none; }
}
@media (max-width: 1320px) {
  .nav { gap: 24px; }
  .nav__list { gap: 20px; }
  .nav__link { font-size: .72rem; letter-spacing: .1em; }
}
@media (max-width: 1100px) {
  .activities { grid-template-columns: 1fr 1fr; }
  .activity:nth-child(2) { border-right: 0; }
  .activity:nth-child(3) { padding-left: 0; }
  .activity:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__aside { display: none; }
}

@media (max-width: 1180px) {
  .site-header.nav-active { background: var(--forest-900); }
  .nav-toggle { display: block; border-color: var(--gold-light); }
  .nav-toggle:focus-visible, .nav a:focus-visible {
    outline: 2px solid var(--gold-light); outline-offset: 4px;
  }
  .nav {
    /* Anchor to the actual header edge, including during its height transition. */
    position: absolute; inset: 100% 0 auto; z-index: 1;
    background: var(--forest-900); border-top: 1px solid var(--line-dark);
    box-shadow: 0 16px 24px rgba(15, 34, 25, .2);
    display: block; max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav-open .nav {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  }
  .nav__list { flex-direction: column; gap: 4px; width: 100%; }
  .nav__list > li { flex: none; min-width: 0; }
  .nav__link {
    display: block; min-height: 48px; padding: 10px 0;
    font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.25; letter-spacing: 0; text-transform: none;
    white-space: normal; overflow-wrap: anywhere; opacity: .9;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--gold-light); }
  html.nav-open { overflow: hidden; }
  body.nav-open { position: fixed; width: 100%; overflow: hidden; }

  .section-head--split, .split, .split--wide, .service, .mat-detail, .contact-grid, .vm, .cta .container { grid-template-columns: 1fr; }
  .section-head--split { gap: 24px; }
  .service:nth-child(even) .service__media, .mat-detail:nth-of-type(even) .mat-detail__media { order: 0; }
  .materials { grid-template-columns: 1fr 1fr; }
  .material, .material--lg { grid-column: span 1; min-height: 380px; }
  .material:last-child { grid-column: span 2; }
  .material p { max-height: none; opacity: 1; margin-top: 8px; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .process li, .process li:nth-child(3n+2), .process li:nth-child(3n+3) { padding: 34px 26px 38px 0; border-left: 0; }
  .process li:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--line-dark); }
  .section:not(.section--dark):not(.section--forest) .process li:nth-child(even) { border-left-color: var(--line); }
  .trade__flow { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .principles { grid-template-columns: 1fr; }
  .figure--tall, .mat-detail__media { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .brand svg { width: 32px; height: 32px; }
  .brand__name { font-size: 1.3rem; }
  .brand__tag { display: none; }
  .activities, .materials, .cap-grid, .process, .form__grid, .service__cols, .mat-meta, .footer-grid { grid-template-columns: 1fr; }
  .activity, .activity + .activity, .activity:nth-child(3) { padding: 32px 0; border-right: 0; border-top: 1px solid var(--line-dark); }
  .material, .material--lg, .material:last-child { grid-column: span 1; min-height: 340px; }
  .process li, .process li:nth-child(even), .process li:nth-child(3n+2), .process li:nth-child(3n+3) { padding: 30px 0; border-left: 0; }
  .btn-row .btn { width: 100%; }
  .hero__text { margin-bottom: 30px; }
  .footer-bottom { flex-direction: column; }
  .mat-nav { top: 72px; }
}

/* Keep the existing wordmark and close control inside narrow phone headers. */
@media (max-width: 380px) {
  .site-header .container { gap: 12px; }
  .site-header .brand { gap: 10px; }
  .site-header .brand__name { font-size: 1.1rem; }
}
