/* ============================================================
   UBUNTUGOLD — Gold Trade & Consultancy, Lubowa, Uganda
   Editorial luxury design system: cream / espresso / maroon /
   ochre / metallic gold. Fraunces (display) + Geist (text).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* color */
  --ivory: #F2EDE3;
  --ivory-2: #EAE2D1;
  --paper: #F7F4EC;
  --ink: #181310;
  --ink-2: #241D17;
  --espresso: #1C1510;
  --espresso-2: #140F0A;
  --maroon: #4A1712;
  --maroon-2: #3A100C;
  --ochre: #8A4D10;
  --ochre-2: #6E3D0C;
  --gold: #C9A227;
  --gold-bright: #E5C25B;
  --gold-ink: #7D6210;          /* gold as text/focus on light bg (AA) */
  --cream-on-dark: #F5EFE2;
  --muted: #675E52;             /* body muted on ivory (AA) */
  --muted-dark: #BFB4A1;        /* body muted on espresso (AA) */
  --line: #D8D0BE;
  --line-dark: #3A322A;
  --wa-green: #1FAF54;

  /* type */
  --font-serif: 'Fraunces', 'Georgia', serif;
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* scale */
  --text-hero: clamp(2.6rem, 7.4vw, 6.75rem);
  --text-display: clamp(2.1rem, 5vw, 4.5rem);
  --text-title: clamp(1.6rem, 3vw, 2.5rem);
  --text-lead: clamp(1.05rem, 1.5vw, 1.3rem);

  /* space (spacious editorial rhythm) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: clamp(4rem, 10vw, 9rem);

  --container: 1280px;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --radius: 2px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.3s;

  /* film grain, shared by dark surfaces */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");

  /* z-scale */
  --z-nav: 100;
  --z-float: 150;
  --z-menu: 200;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.on-dark :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.menu-overlay :focus-visible,
.block :focus-visible {
  outline-color: var(--gold);
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--ivory);
  padding: 0.75rem 1.25rem; z-index: 999; font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Type ---------- */
h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-display); }
h3 { font-size: var(--text-title); line-height: 1.15; }
.italic { font-style: italic; }
.gold-text {
  background: linear-gradient(105deg, #8C6A14, #E5C25B 42%, #A57F16 60%, #E9CD74 85%, #8C6A14);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-shimmer 7s ease-in-out infinite alternate;
}
@keyframes gold-shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
.lead { font-size: var(--text-lead); line-height: 1.55; max-width: 34em; }
.muted { color: var(--muted); }
.on-dark .muted, .muted-dark { color: var(--muted-dark); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.on-dark .kicker { color: var(--gold); }
.kicker::before {
  content: "";
  width: 2.25rem; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--space-7); position: relative; }
.on-dark { background: var(--espresso); color: var(--cream-on-dark); }

.section-head { max-width: 52rem; margin-bottom: var(--space-5); }
.section-head .kicker { margin-bottom: var(--space-3); }
.section-head p { margin-top: var(--space-3); }

/* ---------- Handcrafted surface treatments ---------- */
/* film grain on dark surfaces */
.grain { position: relative; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: var(--grain);
  z-index: 1;
}
.grain > * { position: relative; z-index: 2; }

/* warm corner wash for cream sections */
.wash {
  background:
    radial-gradient(52% 44% at 88% 0%, rgba(201, 162, 39, 0.07), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(138, 77, 16, 0.05), transparent 70%),
    var(--ivory);
}
.wash--paper {
  background:
    radial-gradient(52% 44% at 88% 0%, rgba(201, 162, 39, 0.07), transparent 70%),
    var(--paper);
}

/* ghost serif watermark word */
.watermark {
  position: absolute;
  right: -0.05em;
  top: 0.2em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(6rem, 18vw, 16rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.on-dark .watermark { color: var(--gold); opacity: 0.05; }

/* hairline divider with diamond */
.gold-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  position: relative;
  margin: 0 auto;
  max-width: var(--container);
}
.gold-divider::after {
  content: "◆";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.5rem;
  color: var(--gold-ink);
  background: var(--ivory);
  padding-inline: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.02rem 1.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-bright); }
/* sheen sweep — the "expensive" pass of light */
.btn--gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 253, 245, 0.5) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
.btn--gold:hover::before { transform: translateX(110%); }

.btn--outline { border-color: currentColor; color: inherit; }
.btn--outline:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.on-dark .btn--outline:hover, .cta-band .btn--outline:hover { background: var(--cream-on-dark); color: var(--ink); border-color: var(--cream-on-dark); }
.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { background: var(--maroon); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  transition: gap var(--dur) var(--ease-out), opacity var(--dur);
}
.link-arrow:hover { gap: 1rem; opacity: 0.75; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background-color 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out),
              color 0.35s var(--ease-out);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 1.1rem;
  max-width: none;
}
body[data-nav="light"] .site-header { color: var(--cream-on-dark); }
body[data-nav="dark"] .site-header { color: var(--ink); }
body[data-nav] .site-header.is-scrolled {
  background: rgba(242, 237, 227, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(24, 19, 16, 0.08);
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand svg { width: 2.1rem; height: 2.1rem; flex: none; }
.brand b { font-weight: 600; }
.brand span { font-weight: 300; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  opacity: 0.85;
  transition: opacity var(--dur);
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-links .btn { padding: 0.8rem 1.4rem; overflow: hidden; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5rem;
  min-height: 44px;
}
.menu-toggle .bars { display: inline-block; width: 22px; }
.menu-toggle .bars span {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur);
}
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--espresso-2);
  color: var(--cream-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-overlay nav ul { display: grid; gap: 0.4rem; }
.menu-overlay nav a {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  line-height: 1.2;
  display: inline-flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  transition: color var(--dur);
}
.menu-overlay nav a:hover,
.menu-overlay nav a[aria-current="page"] { color: var(--gold); }
.menu-overlay nav a small {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.menu-overlay .menu-meta {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: 0.85rem;
  color: var(--muted-dark);
}
.menu-overlay .menu-meta a { color: var(--cream-on-dark); }
.menu-close {
  position: absolute;
  top: 1.2rem;
  right: var(--gutter);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  min-height: 44px;
  min-width: 44px;
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(58% 55% at 78% 38%, rgba(201, 162, 39, 0.16), transparent 68%),
    radial-gradient(40% 40% at 12% 88%, rgba(74, 23, 18, 0.5), transparent 70%),
    var(--espresso);
  color: var(--cream-on-dark);
  overflow: hidden;
  padding-block: calc(var(--space-6) + 4rem) var(--space-6);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: var(--grain);
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-5);
  align-items: center;
  width: 100%;
}
.hero .kicker { margin-bottom: var(--space-3); }
.hero h1 { margin-bottom: var(--space-4); max-width: 11em; }
.hero .lead { color: var(--muted-dark); margin-bottom: var(--space-4); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* line-reveal helpers (JS animates .line-inner) */
.line { display: block; overflow: hidden; }
.line-inner { display: block; }

/* framed hero video panel */
.hero-media {
  position: relative;
  will-change: transform;
  perspective: 900px;
}
.hero-media .frame {
  position: relative;
  border: 1px solid rgba(201, 162, 39, 0.45);
  padding: clamp(0.6rem, 1.2vw, 1rem);
  background: rgba(20, 15, 10, 0.55);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.hero-media .frame::before,
.hero-media .frame::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold);
}
.hero-media .frame::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.hero-media .frame::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }
.hero-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--espresso-2);
}
.hero-media .caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.8rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.hero-media .caption b { color: var(--gold); font-weight: 600; }
.hero-media .coin {
  position: absolute;
  width: clamp(84px, 9vw, 130px);
  bottom: -9%;
  left: -8%;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.55));
  will-change: transform;
  z-index: 2;
}

/* Hero film is ambient and uncontrollable — swallow all pointer interaction
   so no click, right-click or native control surface can reach it. */
.hero-media video { pointer-events: none; }

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 2rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 3rem;
  background: linear-gradient(var(--gold), transparent);
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--gold);
  color: var(--ink);
  overflow: hidden;
  padding-block: 0.95rem;
  border-block: 1px solid rgba(24, 19, 16, 0.25);
  transform: rotate(-1.1deg) scale(1.02);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track,
.marquee-group {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex: none;
}
.marquee span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee span::after { content: "◆"; font-size: 0.6rem; opacity: 0.6; }
@keyframes marquee {
  to { transform: translateX(calc(-50% - 1.5rem)); }
}

/* ---------- Editorial intro ---------- */
.editorial h2 { max-width: 15em; }
.editorial .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-5);
  align-items: end;
  position: relative;
  z-index: 1;
}

/* ---------- Service color blocks ---------- */
.blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.block {
  padding: clamp(2.5rem, 6vw, 5rem);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--cream-on-dark);
  position: relative;
  overflow: hidden;
}
.block--maroon { background: linear-gradient(160deg, var(--maroon), var(--maroon-2)); }
.block--ochre { background: linear-gradient(160deg, var(--ochre), var(--ochre-2)); }
/* cursor spotlight — set via --mx/--my from JS */
.block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(229, 194, 91, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.block:hover::before { opacity: 1; }
.block .kicker { color: var(--cream-on-dark); }
.block h3 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); max-width: 10em; }
.block p { max-width: 30em; color: var(--cream-on-dark); }
.block ul { display: grid; gap: 0.55rem; }
.block li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--cream-on-dark);
}
.block li::before { content: "—"; color: var(--gold-bright); flex: none; }
.block .link-arrow { align-self: flex-start; position: relative; z-index: 1; }
.block-emblem {
  position: absolute;
  right: -4%;
  bottom: -12%;
  width: clamp(160px, 22vw, 300px);
  opacity: 0.14;
  pointer-events: none;
  transition: transform 0.6s var(--ease-out);
}
.block:hover .block-emblem { transform: rotate(8deg) scale(1.04); }

/* ---------- Value cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}
/* hand-placed stagger: every other card sits a step lower */
@media (min-width: 1081px) {
  .cards .card:nth-child(even) { margin-top: 1.75rem; margin-bottom: -1.75rem; }
  .cards { padding-bottom: 1.75rem; }
}
.card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 300px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
/* gold hairline that draws across the top on hover */
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
/* cursor spotlight */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 39, 0.09), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.card:hover { background: var(--ivory-2); transform: translateY(-4px); }
.card:hover::after { transform: scaleX(1); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 44px; height: 44px;
  color: var(--gold-ink);
  transition: color 0.35s, transform 0.35s var(--ease-out);
}
.card:hover .icon { color: var(--ochre); transform: translateY(-2px); }
.card h3 { font-size: 1.35rem; }
.card p { font-size: 0.95rem; color: var(--muted); }
.card .num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-ink);
  font-size: 1rem;
  margin-top: auto;
}
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.stat { border-top: 1px solid var(--line-dark); padding-top: var(--space-3); }
.stat .value {
  font-family: var(--font-serif);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  line-height: 1;
  color: var(--gold);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.stat .value sup { font-size: 0.45em; }
.stat .label {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; gap: 0; position: relative; z-index: 1; }
.process-step {
  display: grid;
  grid-template-columns: 5rem minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
  align-items: baseline;
  transition: padding-left 0.4s var(--ease-out);
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-step:hover { padding-left: 0.75rem; }
.process-step .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-ink);
  transition: color 0.3s;
}
.process-step:hover .num { color: var(--ochre); }
.process-step h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.process-step p { color: var(--muted); max-width: 32em; }

/* ---------- Journey (mines → refinery) ---------- */
.journey {
  position: relative;
  display: grid;
  gap: clamp(3rem, 7vw, 5.5rem);
  z-index: 1;
}
/* gold connector line down the center */
.journey::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 162, 39, 0.45) 8%, rgba(201, 162, 39, 0.45) 92%, transparent);
  transform: translateX(-50%);
}
.j-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.j-step:nth-child(even) .j-media { order: 2; }
.j-step:nth-child(even) .j-body { order: 1; text-align: right; justify-items: end; }
.j-step:nth-child(even) .j-body .kicker { flex-direction: row-reverse; }
/* diamond node on the connector */
.j-step::after {
  content: "◆";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.55rem;
  color: var(--gold-ink);
  background: var(--paper);
  padding-block: 0.4rem;
}
.j-media {
  position: relative;
}
.j-media img {
  width: 100%;
  height: auto;
  display: block;
}
.j-num {
  position: absolute;
  top: -1.1rem;
  left: -0.6rem;
  z-index: 2;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--gold-ink);
  text-shadow: 0 1px 0 var(--ivory), 0 2px 12px rgba(242, 237, 227, 0.9);
}
.j-step:nth-child(even) .j-num { left: auto; right: -0.6rem; }
.j-body { display: grid; gap: var(--space-2); }
.j-body h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 12em; }
.j-body p { color: var(--muted); max-width: 28em; }
.j-wide { grid-column: 1 / -1; }

/* ---------- Media frame (photos) ---------- */
.media-frame {
  border: 1px solid var(--line);
  padding: clamp(0.6rem, 1.2vw, 0.9rem);
  background: var(--paper);
  position: relative;
}
.media-frame::before,
.media-frame::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--gold-ink);
  opacity: 0.6;
}
.media-frame::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.media-frame::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.media-frame img { width: 100%; height: auto; }
/* photos pinned by hand, not by a grid */
.j-step:nth-child(odd) .media-frame { transform: rotate(-0.6deg); }
.j-step:nth-child(even) .media-frame { transform: rotate(0.5deg); }
.j-wide .media-frame { transform: none; }
.media-frame figcaption {
  padding-top: 0.7rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.media-frame .zoom { overflow: hidden; }
.media-frame .zoom img {
  transition: transform 0.8s var(--ease-out);
}
.media-frame:hover .zoom img { transform: scale(1.035); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 80% at 85% 20%, rgba(201, 162, 39, 0.18), transparent 70%),
    var(--espresso-2);
  color: var(--cream-on-dark);
  text-align: center;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: var(--grain);
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { max-width: 14em; margin-inline: auto; margin-bottom: var(--space-3); }
.cta-band p { max-width: 36em; margin-inline: auto; color: var(--muted-dark); margin-bottom: var(--space-4); }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .alt-contact {
  margin-top: var(--space-3);
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--muted-dark);
}
.cta-band .alt-contact a {
  color: var(--cream-on-dark);
  border-bottom: 1px solid var(--gold);
  transition: color var(--dur);
}
.cta-band .alt-contact a:hover { color: var(--gold-bright); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso-2);
  color: var(--cream-on-dark);
  padding-top: var(--space-6);
  overflow: hidden;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.5), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}
.footer-grid .brand { font-size: 1.4rem; }
.footer-grid .tagline { margin-top: var(--space-3); color: var(--muted-dark); max-width: 24em; font-size: 0.95rem; }
.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.65;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a, .footer-col li { font-size: 0.92rem; color: var(--muted-dark); }
.footer-col a { transition: color var(--dur); }
.footer-col a:hover { color: var(--cream-on-dark); }
.footer-mark {
  border-top: 1px solid var(--line-dark);
  padding-block: var(--space-3);
  overflow: hidden;
}
.footer-mark .wordmark {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 12.5vw, 11rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 162, 39, 0.4);
  user-select: none;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-top: 1px solid var(--line-dark);
  font-size: 0.78rem;
  color: var(--muted-dark);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: var(--z-float);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding-top: calc(var(--space-7) + 3rem);
  padding-bottom: var(--space-6);
  background:
    radial-gradient(50% 60% at 92% 8%, rgba(201, 162, 39, 0.08), transparent 70%),
    var(--ivory);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .kicker { margin-bottom: var(--space-3); }
.page-hero h1 { max-width: 10em; margin-bottom: var(--space-3); }
.page-hero .lead { color: var(--muted); }

/* ---------- Two-column feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
  padding-block: var(--space-5);
  position: relative;
  z-index: 1;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row .art { position: relative; }

.list-check { display: grid; gap: 0.8rem; margin-top: var(--space-3); }
.list-check li { display: flex; gap: 0.85rem; align-items: baseline; }
.list-check li::before { content: "◆"; color: var(--gold-ink); font-size: 0.6rem; flex: none; transform: translateY(-2px); }
.on-dark .list-check li::before { color: var(--gold); }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--line); position: relative; z-index: 1; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: 1.4rem 0;
  text-align: left;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  transition: color var(--dur);
}
.accordion-trigger:hover { color: var(--gold-ink); }
.accordion-trigger .indicator {
  flex: none;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  transition: transform 0.35s var(--ease-out), background-color var(--dur);
}
.accordion-item.is-open .indicator { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); color: var(--ink); }
.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease-out), visibility 0.45s;
}
/* keep collapsed answers out of the accessibility tree */
.accordion-item:not(.is-open) .accordion-panel { visibility: hidden; }
.accordion-panel p {
  padding-bottom: 1.5rem;
  color: var(--muted);
  max-width: 44em;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-4);
}
.field { display: flex; flex-direction: column; gap: 0.55rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req { color: var(--ochre); }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0.65rem 0;
  border-radius: 0;
  min-height: 44px;
  transition: border-color var(--dur);
}
.field select { cursor: pointer; }
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--gold-ink);
}
.field .error-msg { display: none; font-size: 0.8rem; color: #A32014; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #A32014; }
.field.has-error .error-msg { display: block; }
.form-note { font-size: 0.85rem; color: var(--muted); max-width: 36em; }
.form-status {
  display: none;
  margin-top: var(--space-3);
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
  border: 1px solid;
  border-radius: var(--radius);
}
.form-status.is-success { display: flex; gap: 0.75rem; align-items: center; border-color: #2F6C36; color: #23522A; background: #E8F0E4; }
.form-status.is-error { display: flex; gap: 0.75rem; align-items: center; border-color: #A32014; color: #7C170E; background: #F6E7E1; }

/* ---------- Contact info list ---------- */
.info-list { display: grid; gap: 0; }
.info-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
  align-items: start;
}
.info-item:last-child { border-bottom: 1px solid var(--line); }
.info-item .icon { width: 30px; height: 30px; color: var(--gold-ink); margin-top: 0.2rem; }
.info-item h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.info-item p, .info-item a { color: var(--muted); font-size: 0.95rem; }
.info-item a:hover { color: var(--ink); }

.map-frame {
  border: 1px solid var(--line);
  filter: grayscale(0.85) sepia(0.18);
  width: 100%;
  aspect-ratio: 16 / 10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Quote / pull ---------- */
.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.25;
  max-width: 22em;
}
.pull-quote em { color: var(--gold-ink); }
.on-dark .pull-quote em { color: var(--gold); }

/* ---------- Editorial handcraft ---------- */
.ml-ind { display: inline-block; margin-left: clamp(1rem, 6vw, 4rem); }
.margin-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.margin-note::before { content: "↳"; font-style: normal; }
.on-dark .margin-note { color: var(--gold); }

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); position: relative; z-index: 1; }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.center { text-align: center; }

/* ============================================================
   Responsive — tablet (≤920px)
   ============================================================ */
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-media { order: -1; margin-top: var(--space-2); }
  .hero-media .coin { width: 72px; left: -4%; bottom: -7%; }
  .hero-scroll { display: none; }

  .editorial .grid, .grid-2 { grid-template-columns: 1fr; gap: var(--space-4); }
  .blocks { grid-template-columns: 1fr; }
  .block { min-height: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process-step { grid-template-columns: 3rem 1fr; }
  .process-step p { grid-column: 2; }
  .feature-row { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }

  /* journey collapses to single column, connector hugs the left */
  .journey::before { left: 0.35rem; }
  .j-step { grid-template-columns: 1fr; gap: var(--space-3); padding-left: 2rem; }
  .j-step::after { left: 0.35rem; top: 0.4rem; transform: translateX(-50%); background: var(--paper); }
  .j-step:nth-child(even) .j-media { order: 0; }
  .j-step:nth-child(even) .j-body { order: 0; text-align: left; justify-items: start; }
  .j-step:nth-child(even) .j-body .kicker { flex-direction: row; }
  .j-num { left: -0.4rem; }
  .j-step:nth-child(even) .j-num { right: auto; left: -0.4rem; }
}

/* ============================================================
   Responsive — phone (≤560px): the dedicated mobile pass
   ============================================================ */
@media (max-width: 560px) {
  :root {
    --space-7: 3.5rem;               /* tighter section rhythm */
    --text-hero: clamp(2.3rem, 11vw, 3rem);
    --text-display: clamp(1.8rem, 8vw, 2.4rem);
  }

  /* decoration is desktop's luxury; mobile gets clarity */
  .watermark, .block-emblem, .gold-divider { display: none; }
  .hero-media .coin { display: none; }
  .card::before, .block::before { display: none; }

  .hero { min-height: auto; padding-top: calc(var(--space-6) + 2.5rem); }
  .hero .lead { font-size: 1rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .cta-band .hero-ctas { align-items: stretch; }

  .marquee { padding-block: 0.7rem; }
  .marquee-track { animation-duration: 26s; }

  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 1.5rem 1.25rem; }
  .stats { gap: var(--space-3); }
  .stat .value { font-size: 2.4rem; }
  .stat .label { font-size: 0.72rem; }

  .process-step { padding-block: var(--space-3); grid-template-columns: 2.4rem 1fr; }
  .process-step:hover { padding-left: 0; }

  .j-step { padding-left: 1.6rem; }
  .j-num { font-size: 2rem; top: -0.8rem; }
  .j-body h3 { font-size: 1.45rem; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .footer-mark .wordmark { -webkit-text-stroke-width: 0.6px; }
  .footer-legal { flex-direction: column; gap: 0.35rem; }

  .map-frame { aspect-ratio: 4 / 3; }
  .form-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .info-item { grid-template-columns: 2.4rem 1fr; gap: var(--space-2); }

  .menu-overlay nav a { font-size: clamp(1.9rem, 10vw, 2.6rem); }
  .wa-float { width: 52px; height: 52px; }
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
}
