/* United Capital Advisors Limited
   Tokens → base → components → sections → motion */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Palette: dark green loam, pale chaff, leaf green accent */
  --loam-950: #0b140e;
  --loam-900: #102017;
  --loam-800: #14251b;
  --loam-700: #233a2b;
  --loam-600: #42574a;
  --loam-500: #5b6e62;
  --chaff-50: #ffffff;
  --chaff-100: #f5f7f1;
  --chaff-200: #e8eee3;
  --chaff-300: #d3dccb;
  --chaff-400: #b3c0a8;
  --barley-200: #dcebd3;
  --barley-300: #a8d08f;
  --barley-400: #2f7a45;
  --barley-500: #276a3b;
  --barley-700: #1f5a32;
  --red-700: #9b3218;
  --red-300: #f0a58f;

  /* Roles (light surfaces) */
  --bg: var(--chaff-100);
  --surface: var(--chaff-50);
  --surface-sunk: var(--chaff-200);
  --text: var(--loam-800);
  --text-muted: var(--loam-600);
  --text-subtle: var(--loam-500);
  --line: rgb(20 37 27 / 0.12);
  --line-strong: rgb(20 37 27 / 0.26);
  --accent: var(--barley-400);
  --accent-hover: #276a3b;
  --accent-ink: #ffffff;
  --accent-text: var(--barley-700);
  --focus: var(--loam-800);
  --danger: var(--red-700);

  /* Type */
  --font-display: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  --fs-label: 0.75rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.375rem, 1.21rem + 0.6vw, 1.75rem);
  --fs-xl: clamp(1.875rem, 1.4rem + 1.9vw, 2.875rem);
  --fs-2xl: clamp(2.25rem, 1.55rem + 2.9vw, 4rem);
  --fs-hero: clamp(2.75rem, 1.3rem + 5.2vw, 6.25rem);

  /* Space (4px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --max: 82.5rem;
  --header-h: 4.5rem;

  /* Shape and depth */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --shadow-ring: 0 0 0 1px rgb(20 37 27 / 0.06), 0 1px 3px rgb(20 37 27 / 0.06);
  --shadow-lift: 0 0 0 1px rgb(20 37 27 / 0.06), 0 18px 40px -18px rgb(20 37 27 / 0.3);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.7, 0.18, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-mid: 280ms;
  --dur-slow: 800ms;

  /* Globe colours (read by site.js; space-separated 0–1 RGB) */
  --globe-dark: 0;
  --globe-diffuse: 1.6;
  --globe-map-brightness: 7;
  --globe-map-base: 0;
  --globe-base: 0.96 0.98 0.94;
  --globe-marker: 0.18 0.48 0.27;
  --globe-glow: 0.86 0.92 0.83;
}

.on-dark {
  --bg: var(--loam-800);
  --surface: var(--loam-700);
  --text: var(--chaff-100);
  --text-muted: #c4b9a4;
  --text-subtle: #a2977f;
  --line: rgb(245 241 231 / 0.14);
  --line-strong: rgb(245 241 231 / 0.32);
  --accent-text: var(--barley-300);
  --focus: var(--barley-300);
  color: var(--text);
  background: var(--bg);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

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

::selection { background: var(--barley-200); color: var(--loam-900); }

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  vertical-align: middle;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--sp-4);
  top: -100px;
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--loam-800);
  color: var(--chaff-100);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--sp-3); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.h2 { font-size: var(--fs-2xl); }
.h3 { font-size: var(--fs-lg); letter-spacing: -0.015em; line-height: 1.15; }

.lede {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 44ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-ring: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 3rem;
  padding: 0 var(--sp-5);
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: inset 0 0 0 1px var(--btn-ring);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur-fast) ease-out,
    color var(--dur-fast) ease-out,
    box-shadow var(--dur-fast) ease-out,
    scale 120ms ease-out;
}
.btn:has(.icon:last-child) { padding-inline-end: calc(var(--sp-5) - 4px); }
.btn .icon { width: 1.15em; height: 1.15em; transition: translate var(--dur-mid) var(--ease-out); }
.btn:active { scale: 0.97; }

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-ring: transparent;
}
.btn-dark {
  --btn-bg: var(--loam-800);
  --btn-fg: var(--chaff-50);
  --btn-ring: transparent;
}
.btn-sm { min-height: 2.5rem; padding-inline: var(--sp-4); }
.btn-sm:has(.icon:last-child) { padding-inline-end: calc(var(--sp-4) - 2px); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-ring: var(--text); }
  .btn-primary:hover { --btn-bg: var(--accent-hover); --btn-ring: transparent; }
  .btn-dark:hover { --btn-bg: var(--loam-600); --btn-ring: transparent; }
  .btn:hover .icon-arrow-r { translate: 3px 0; }
  .btn:hover .icon-arrow-d { translate: 0 2px; }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color var(--dur-fast) ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: currentColor; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color var(--dur-mid) ease-out, box-shadow var(--dur-mid) ease-out;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: color-mix(in srgb, var(--chaff-100) 92%, transparent);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-inline-end: auto;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand-mark { width: 2rem; height: 2rem; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) ease-out;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset: auto var(--sp-3) 0.55rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  scale: 0 1;
  transform-origin: left;
  transition: scale var(--dur-mid) var(--ease-out);
}
.nav-link[aria-current="true"] { color: var(--text); }
.nav-link[aria-current="true"]::after { scale: 1 1; }
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--text); }
}

.menu-toggle { display: none; }

@media (max-width: 60rem) {
  .site-nav {
    position: absolute;
    inset: var(--header-h) 0 auto;
    padding: var(--sp-2) var(--gutter) var(--sp-5);
    background: var(--chaff-100);
    box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgb(31 27 20 / 0.35);
    visibility: hidden;
    opacity: 0;
    translate: 0 -8px;
    transition: opacity 200ms ease-out, translate 240ms var(--ease-out), visibility 0s linear 240ms;
  }
  .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
    transition: opacity 200ms ease-out, translate 240ms var(--ease-out), visibility 0s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    min-height: 3.25rem;
    padding-inline: 0;
    font-size: var(--fs-md);
    color: var(--text);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-link::after { display: none; }
  .nav-cta-item { padding-top: var(--sp-5); }
  .nav-cta-item .btn { width: 100%; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
}
@media (min-width: 60.0625rem) {
  .nav-cta-item { display: none; }
}
@media (max-width: 26rem) {
  .brand-name { font-size: 0.875rem; max-width: 12.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: max(40rem, min(100svh, 62rem));
  overflow: clip;
}

.hero-copy {
  padding-top: calc(var(--header-h) + clamp(1.5rem, 0.5rem + 5vh, 4.5rem));
  padding-bottom: var(--sp-6);
}
.hero-title {
  font-size: var(--fs-hero);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
}
.hero-title .line { display: block; overflow: clip; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-title .line > span { display: inline-block; }
.hero-title em {
  font-style: normal;
  color: var(--barley-700);
}
.hero-lede {
  margin-top: var(--sp-5);
  max-width: 46ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.3125rem);
  line-height: 1.5;
  color: var(--loam-700);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.hero-actions .btn:not(.btn-primary) {
  background: rgb(252 250 245 / 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Commodity index strip — product information in the first view */
.hero-index {
  padding-bottom: var(--gutter);
}
.index-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: var(--sp-2);
  list-style: none;
  background: rgb(252 250 245 / 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
}
.index-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: var(--sp-3);
  height: 100%;
  padding: var(--sp-4);
  border-radius: calc(var(--r-lg) - var(--sp-2));
  text-decoration: none;
  transition: background-color var(--dur-fast) ease-out;
}
.index-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--chaff-200);
  color: var(--loam-700);
  grid-row: span 2;
}
.index-icon .icon { width: 1.25rem; height: 1.25rem; }
.index-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}
.index-items {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0;
  white-space: nowrap;
}
.index-go {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--text-subtle);
  transition: translate var(--dur-mid) var(--ease-out), color var(--dur-fast) ease-out;
}
.index-link:active { background: var(--chaff-200); }
@media (hover: hover) and (pointer: fine) {
  .index-link:hover { background: var(--chaff-100); }
  .index-link:hover .index-go { translate: 2px 2px; color: var(--text); }
}

@media (max-width: 64rem) {
  .index-panel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 34rem) {
  .hero { min-height: 0; }
  .index-panel { grid-template-columns: 1fr; }
  .index-link { padding: var(--sp-3); }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--sp-5) var(--sp-8);
  align-items: end;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.section-head .lede { justify-self: end; }
@media (max-width: 52rem) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .lede { justify-self: start; }
}

/* Company */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-5);
}
.intro-statement { grid-column: 1 / span 6; }
.intro-statement .h2 { max-width: 13ch; }
.intro-body {
  grid-column: 8 / span 5;
  display: grid;
  gap: var(--sp-4);
  align-content: start;
  color: var(--text-muted);
  padding-top: var(--sp-2);
}
.intro-body p:first-child { color: var(--text); font-size: var(--fs-md); line-height: 1.5; }

.facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: var(--sp-6) 0 0;
  border-top: 1px solid var(--line-strong);
}
.fact { padding: var(--sp-5) var(--sp-5) 0 0; }
.fact + .fact { padding-inline-start: var(--sp-5); border-inline-start: 1px solid var(--line); }
.fact dt {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--sp-2);
}
.fact dd { margin: 0; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; line-height: 1.35; }

.photo-pair {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}
.photo { margin: 0; }
.photo-frame {
  position: relative;
  overflow: clip;
  border-radius: var(--r-md);
  background: var(--chaff-300);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08);
  pointer-events: none;
}
.photo-pair .photo:first-child .photo-frame { aspect-ratio: 16 / 10; }
.photo-pair .photo:last-child .photo-frame { aspect-ratio: auto; height: 100%; min-height: 0; }
.photo-pair .photo:last-child { display: grid; grid-template-rows: 1fr auto; }
.photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-subtle);
  letter-spacing: 0.03em;
}

@media (max-width: 52rem) {
  .intro-statement,
  .intro-body { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; }
  .fact,
  .fact + .fact { padding: var(--sp-4) 0; border-inline-start: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .photo-pair { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .photo-pair .photo:first-child { grid-column: 1 / -1; }
  .photo-pair .photo:last-child { display: none; }
}

/* Commodities */
.commodities { background: var(--chaff-200); }
.crop-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-5);
}
.crop {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-ring);
  overflow: clip;
  scroll-margin-top: calc(var(--header-h) + var(--sp-5));
  transition: box-shadow var(--dur-mid) ease-out;
}
.crop:nth-child(1),
.crop:nth-child(4) { grid-column: span 7; }
.crop:nth-child(2),
.crop:nth-child(3) { grid-column: span 5; }
.crop-media {
  position: relative;
  margin: 0;
  height: clamp(13rem, 9rem + 10vw, 19rem);
  overflow: clip;
  background: var(--chaff-300);
}
.crop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.1s var(--ease-out);
}
.crop-tag {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-2);
  border-radius: 999px;
  background: rgb(252 250 245 / 0.92);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  color: var(--loam-700);
}
.crop-tag .icon { width: 1rem; height: 1rem; }
.crop-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-5) var(--sp-5);
}
.crop-body p { color: var(--text-muted); max-width: 52ch; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
  align-self: start;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.25rem;
  padding: 0 0.75rem 0 0.875rem;
  border: 0;
  border-radius: 999px;
  background: var(--chaff-100);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out, scale 120ms ease-out;
}
.chip .icon { width: 0.875rem; height: 0.875rem; color: var(--text-subtle); transition: rotate var(--dur-mid) var(--ease-out), color var(--dur-fast); }
.chip:active { scale: 0.96; background: var(--chaff-200); }
.crop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.crop-foot .mono { color: var(--text-subtle); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .crop:hover { box-shadow: var(--shadow-lift); }
  .crop:hover .crop-media img { scale: 1.04; }
  .chip:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
  .chip:hover .icon { rotate: 90deg; color: var(--text); }
}
.crop-note {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 70ch;
}
.crop-note .icon { margin-top: 0.15em; color: var(--text-subtle); }

@media (max-width: 60rem) {
  .crop:nth-child(n) { grid-column: span 6; }
  .crop-foot { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
  .crop-foot .btn { width: 100%; }
}
@media (max-width: 40rem) {
  .crop-grid { gap: var(--sp-4); }
  .crop:nth-child(n) { grid-column: 1 / -1; }
  .crop-body { padding: var(--sp-4); }
}

/* Panorama */
.panorama {
  position: relative;
  isolation: isolate;
  height: clamp(22rem, 12rem + 34vw, 44rem);
  overflow: clip;
  color: var(--chaff-50);
  display: grid;
  align-items: end;
}
.panorama-media { position: absolute; inset: 0; z-index: -1; }
.panorama-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.panorama-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(19 17 12 / 0.72) 0%, rgb(19 17 12 / 0.1) 55%, rgb(19 17 12 / 0) 100%);
}
.panorama-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-7);
  padding-bottom: clamp(2rem, 1rem + 4vw, 4rem);
}
.panorama-copy blockquote {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.panorama-copy .mono { color: rgb(252 250 245 / 0.78); }

/* Markets */
.markets { position: relative; overflow: clip; }
.markets::before {
  /* furrow lines: faint ploughed-row texture behind the globe */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(105deg, rgb(245 241 231 / 0.035) 0 1px, transparent 1px 28px);
  mask-image: radial-gradient(70% 70% at 70% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 50%, #000 0%, transparent 75%);
  pointer-events: none;
}
.markets-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sp-7) var(--sp-8);
  align-items: center;
}
.markets-copy .h2 { max-width: 12ch; }
.markets-copy .lede { margin-top: var(--sp-5); }

.region-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin: var(--sp-6) 0 0;
  padding: 0;
  list-style: none;
}
.region-list li:first-child { grid-column: 1 / -1; }
.region-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 3rem;
  padding: 0 var(--sp-4);
  border: 0;
  border-radius: var(--r-sm);
  background: rgb(245 241 231 / 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-align: start;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) ease-out, color var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out, scale 120ms ease-out;
}
.region-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background-color var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out;
}
.region-btn .region-meta {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}
.region-btn:active { scale: 0.98; }
.region-btn[aria-pressed="true"] {
  background: rgb(238 199 119 / 0.12);
  box-shadow: inset 0 0 0 1px rgb(238 199 119 / 0.6);
  color: var(--chaff-50);
}
.region-btn[aria-pressed="true"] .region-dot {
  background: var(--barley-300);
  box-shadow: inset 0 0 0 1.5px var(--barley-300), 0 0 0 4px rgb(238 199 119 / 0.18);
}
@media (hover: hover) and (pointer: fine) {
  .region-btn:hover { color: var(--chaff-50); box-shadow: inset 0 0 0 1px var(--line-strong); }
  .region-btn[aria-pressed="true"]:hover { box-shadow: inset 0 0 0 1px var(--barley-300); }
}

.region-detail {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: rgb(245 241 231 / 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: 12.5rem;
}
.region-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}
.region-detail h3 { font-size: var(--fs-lg); }
.region-detail p { color: var(--text-muted); }
.region-detail-body.is-swapping { animation: detail-in 360ms var(--ease-out); }
.region-dest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-subtle);
}
.region-dest .icon { color: var(--barley-300); }
.region-dest[hidden] { display: none; }

.globe-col { position: relative; }
.globe-wrap {
  position: relative;
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
}
.globe-stage {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
}
.globe-stage::before {
  /* placeholder disc so the first frame never shows an empty box */
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #3a3326 0%, #231f17 62%, #1b1812 100%);
  box-shadow: 0 0 80px 10px rgb(226 171 72 / 0.08);
  transition: opacity 900ms ease-out;
}
.globe-stage.is-ready::before { opacity: 0; }
.globe-stage canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 900ms ease-out;
}
.globe-stage.is-ready canvas { opacity: 1; }
.globe-labels { position: absolute; inset: 0; pointer-events: none; }
.globe-label {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgb(19 17 12 / 0.82);
  box-shadow: inset 0 0 0 1px rgb(238 199 119 / 0.45);
  color: var(--chaff-100);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 240ms ease-out;
  will-change: transform;
}
.globe-label.is-visible { opacity: 1; }

.globe-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}
.globe-note {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-subtle);
  max-width: 44ch;
}
.toggle-btn {
  --btn-ring: var(--line-strong);
  flex-shrink: 0;
}
.toggle-icons {
  display: grid;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
}
.toggle-icons .icon {
  grid-area: 1 / 1;
  width: 1.15em;
  height: 1.15em;
  transition: opacity 300ms cubic-bezier(0.2, 0, 0, 1), scale 300ms cubic-bezier(0.2, 0, 0, 1), filter 300ms cubic-bezier(0.2, 0, 0, 1);
}
.toggle-btn .i-play { opacity: 0; scale: 0.25; filter: blur(4px); }
.toggle-btn[data-state="paused"] .i-pause { opacity: 0; scale: 0.25; filter: blur(4px); }
.toggle-btn[data-state="paused"] .i-play { opacity: 1; scale: 1; filter: blur(0); }
@media (hover: hover) and (pointer: fine) {
  .on-dark .btn:hover { --btn-ring: var(--chaff-100); }
}

@media (max-width: 60rem) {
  /* Single column: heading, globe, then the region controls beneath it */
  .markets-grid { grid-template-columns: 1fr; gap: 0; }
  .markets-copy { display: contents; }
  .markets-copy > .eyebrow { order: 1; justify-self: start; }
  .markets-copy > .h2 { order: 2; }
  .markets-copy > .lede { order: 3; }
  .globe-col { order: 4; margin-top: var(--sp-5); }
  .region-list { order: 5; }
  .region-detail { order: 6; }
  .globe-wrap { max-width: 32rem; }
}
@media (max-width: 34rem) {
  .region-btn .region-meta { display: none; }
  .globe-bar { flex-direction: column; align-items: stretch; }
  .region-detail { padding: var(--sp-4); min-height: 14rem; }
  .region-detail-head { flex-direction: column; gap: var(--sp-1); }
  .globe-wrap { max-width: 21rem; }
}

/* Process */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: var(--sp-7);
}
.step::before {
  /* the furrow: a ruled line joining the steps */
  content: "";
  position: absolute;
  top: 1.375rem;
  left: 0;
  right: calc(var(--sp-5) * -1);
  height: 1px;
  background: var(--line-strong);
}
.step:last-child::before { right: 0; }
.step-marker {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}
.step-marker .icon { width: 1.25rem; height: 1.25rem; }
.step-num {
  display: block;
  margin-bottom: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.step h3 { margin-bottom: var(--sp-3); max-width: 16ch; }
.step p { color: var(--text-muted); max-width: 36ch; }

@media (max-width: 52rem) {
  .steps { grid-template-columns: 1fr; gap: var(--sp-6); }
  .step { padding-top: 0; padding-inline-start: 4.25rem; }
  .step::before { top: 2.75rem; bottom: calc(var(--sp-6) * -1); left: 1.375rem; right: auto; width: 1px; height: auto; }
  .step:last-child::before { display: none; }
}

/* Contact */
.contact { background: var(--chaff-200); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sp-7) var(--sp-8);
  align-items: start;
}
.contact-copy .h2 { max-width: 11ch; }
.contact-copy .lede { margin-top: var(--sp-5); }
.contact-copy .photo { margin-top: var(--sp-7); }
.contact-copy .photo-frame { aspect-ratio: 4 / 3; }

.notice {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--barley-200);
  color: var(--loam-800);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.notice .icon { margin-top: 0.1em; color: var(--barley-700); }
.notice strong { font-family: var(--font-display); font-weight: 650; }

.form-card {
  position: relative;
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
}
.form-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--barley-200);
  color: var(--barley-700);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5) var(--sp-4);
}
.field { display: grid; gap: var(--sp-2); align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}
.field .req { color: var(--text-subtle); font-weight: 400; }
.input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--chaff-50);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out, background-color 600ms ease-out;
}
.input::placeholder { color: var(--loam-500); opacity: 0.75; }
textarea.input { min-height: 9rem; resize: vertical; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-inline-end: 2.5rem; cursor: pointer; }
.select-wrap .icon {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  translate: 0 -50%;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  color: var(--text-muted);
}
@media (hover: hover) and (pointer: fine) {
  .input:hover { border-color: var(--loam-500); }
}
.input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--loam-800);
}
.input[aria-invalid="true"] { border-color: var(--danger); }
.field.is-prefilled .input { background: var(--barley-200); }
.field-hint { font-size: 0.875rem; color: var(--text-subtle); }
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--danger);
}
.field-error[hidden] { display: none; }
.field-error .icon { width: 1rem; height: 1rem; margin-top: 0.1em; }

.notice-error { margin-top: var(--sp-5); }
.notice-error[hidden] { display: none; }
.notice-error .icon { color: var(--danger); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.form-foot p { font-size: 0.875rem; color: var(--text-subtle); max-width: 40ch; }
.form-foot a { color: var(--text-muted); }

.form-result { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
.form-result:focus { outline: none; }
.form-result[hidden] { display: none; }
.form-result .result-icon { width: 2.5rem; height: 2.5rem; color: var(--barley-700); }
.form-result h3 { font-size: var(--fs-lg); }
.form-result p { color: var(--text-muted); }
.summary {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--sp-2) var(--sp-5);
  margin: 0;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--chaff-100);
  font-size: var(--fs-sm);
}
.summary dt { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--text-subtle); padding-top: 0.2em; }
.summary dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.result-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

@media (max-width: 60rem) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy .photo { display: none; }
}
@media (max-width: 34rem) {
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .summary { grid-template-columns: 1fr; gap: 0 0; }
  .summary dd + dt { margin-top: var(--sp-3); }
}

/* Footer */
.site-footer {
  padding-block: var(--sp-8) var(--sp-6);
  background: var(--loam-900);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}
.footer-top .brand { color: var(--chaff-100); margin: 0; }
.footer-top p { margin-top: var(--sp-4); color: var(--text-muted); max-width: 38ch; font-size: var(--fs-sm); }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) ease-out;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-subtle);
}
.footer-legal { display: flex; gap: var(--sp-5); margin: 0; padding: 0; list-style: none; }
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: rgb(245 241 231 / 0.3);
}
@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover,
  .footer-legal a:hover { color: var(--chaff-50); }
}

/* Legal pages */
.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--chaff-100);
}
.legal-header .container { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--header-h); }
.legal {
  padding-block: var(--sp-8) var(--section-y);
}
.legal-inner { max-width: 44rem; }
.legal h1 { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
.legal h2 { font-size: var(--fs-md); letter-spacing: -0.01em; margin: var(--sp-7) 0 var(--sp-3); }
.legal p,
.legal li { color: var(--text-muted); }
.legal p + p { margin-top: var(--sp-3); }
.legal ul { padding-inline-start: 1.25rem; display: grid; gap: var(--sp-2); }
.legal .meta { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--text-subtle); letter-spacing: 0.04em; }
.legal .notice { margin: var(--sp-6) 0; }
.legal strong { color: var(--text); font-weight: 600; }

/* ---------- Greenline layer: rounded cards, split hero, light markets ---------- */
h1,
h2,
h3,
.h3 { font-weight: 700; letter-spacing: -0.03em; }
.eyebrow,
.mono,
.fact dt,
.step-num { font-weight: 600; letter-spacing: 0.06em; }
.eyebrow {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--barley-200);
  color: var(--barley-700);
}
.eyebrow::before { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--barley-400); }
.site-footer .eyebrow { background: rgb(168 208 143 / 0.14); color: var(--barley-300); }

/* Brand mark */
.site-header .brand-mark rect { fill: var(--barley-400); }
.site-header .brand-mark path:first-of-type { stroke: #dcebd3; }

/* Hero: copy left, layered photos right */
.hero { min-height: 0; display: block; padding-bottom: var(--sp-6); }
.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 1rem + 3vw, 3.5rem));
}
.hero-copy { padding: 0; }
.hero-title {
  font-size: clamp(2.75rem, 1.5rem + 4vw, 5.25rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.045em;
}
.hero-title em { color: var(--barley-400); }
.hero-lede { color: var(--loam-600); }
.hero-actions .btn:not(.btn-primary) { background: var(--chaff-50); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero-gallery { display: block; position: relative; }
.hg-wheat-sky {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 40% 50%;
  border-radius: 32px;
}
.hg-wheat-grain {
  display: block;
  position: absolute;
  left: -3rem;
  bottom: 2.5rem;
  width: 42%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  border: 6px solid var(--chaff-50);
  box-shadow: 0 20px 40px -16px rgb(20 37 27 / 0.45);
}
.hero-index { padding-top: var(--sp-7); padding-bottom: 0; }
.index-panel {
  gap: var(--sp-3);
  padding: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.index-link {
  padding: var(--sp-5) var(--sp-4);
  background: var(--chaff-50);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-ring);
  transition: background-color var(--dur-fast) ease-out, box-shadow var(--dur-mid) ease-out;
}
.index-icon { background: var(--barley-200); color: var(--barley-700); border-radius: 12px; }
@media (hover: hover) and (pointer: fine) {
  .index-link:hover { background: var(--chaff-50); box-shadow: var(--shadow-lift); }
}
@media (max-width: 52rem) {
  .hero-main { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hg-wheat-sky { aspect-ratio: 4 / 3; border-radius: 24px; }
  .hg-wheat-grain { left: auto; right: var(--sp-4); bottom: calc(var(--sp-5) * -1); width: 38%; border-width: 4px; border-radius: 16px; }
}

/* Company */
.facts { border-top: 0; gap: var(--sp-3); }
.fact,
.fact + .fact {
  padding: var(--sp-5);
  border: 0;
  border-radius: var(--r-md);
  background: var(--chaff-50);
  box-shadow: var(--shadow-ring);
}
.photo-frame { border-radius: 24px; }

/* Commodities: 2 × 2 cards with inset images */
.crop:nth-child(n) { grid-column: span 6; }
.crop { padding: 10px; border-radius: 28px; }
.crop-media { border-radius: 18px; height: clamp(12rem, 8rem + 9vw, 17rem); }
.crop-body { padding: var(--sp-5) var(--sp-4) var(--sp-4); }
.crop-tag { background: var(--chaff-50); color: var(--barley-700); font-weight: 600; }
.chip { background: var(--chaff-100); }
.crop-foot { border-top: 0; padding-top: 0; }
.crop-foot .btn-dark { --btn-bg: var(--barley-400); }
@media (hover: hover) and (pointer: fine) {
  .crop-foot .btn-dark:hover { --btn-bg: var(--barley-500); }
}
@media (max-width: 40rem) {
  .crop:nth-child(n) { grid-column: 1 / -1; }
}

/* Panorama: inset, rounded */
.panorama {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin: var(--section-y) auto 0;
  border-radius: 32px;
  height: clamp(20rem, 10rem + 28vw, 36rem);
}
.panorama-media::after { background: linear-gradient(0deg, rgb(16 32 23 / 0.7) 0%, rgb(16 32 23 / 0) 60%); }
.panorama-copy { padding-inline: clamp(1.25rem, 0.5rem + 3vw, 3rem); }

/* Markets: light section, light globe */
.markets {
  --bg: var(--chaff-100);
  --surface: var(--chaff-50);
  --text: var(--loam-800);
  --text-muted: var(--loam-600);
  --text-subtle: var(--loam-500);
  --line: rgb(20 37 27 / 0.12);
  --line-strong: rgb(20 37 27 / 0.26);
  --accent-text: var(--barley-700);
  --focus: var(--loam-800);
}
.markets::before { display: none; }
.markets .btn:hover { --btn-ring: var(--text); }
.region-btn {
  background: var(--chaff-50);
  box-shadow: var(--shadow-ring);
  color: var(--text-muted);
  border-radius: 14px;
}
.region-btn[aria-pressed="true"] {
  background: var(--barley-400);
  box-shadow: none;
  color: #fff;
}
.region-btn[aria-pressed="true"] .region-meta { color: rgb(255 255 255 / 0.75); }
.region-btn[aria-pressed="true"] .region-dot { background: #fff; box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 4px rgb(255 255 255 / 0.25); }
@media (hover: hover) and (pointer: fine) {
  .region-btn:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
  .region-btn[aria-pressed="true"]:hover { color: #fff; box-shadow: none; background: var(--barley-500); }
}
.region-detail { background: var(--chaff-50); box-shadow: var(--shadow-ring); border-radius: var(--r-lg); }
.region-dest .icon { color: var(--barley-400); }
.globe-stage::before { background: radial-gradient(circle at 38% 34%, #ffffff 0%, #eef3ea 70%); box-shadow: 0 30px 60px -20px rgb(20 37 27 / 0.25); }
.globe-label { background: #fff; color: var(--loam-800); box-shadow: 0 0 0 1px rgb(47 122 69 / 0.4), 0 4px 10px -4px rgb(20 37 27 / 0.3); font-family: var(--font-display); font-weight: 600; }

/* Process: three cards */
.step {
  padding: var(--sp-6);
  background: var(--chaff-50);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-ring);
}
.step::before { display: none; }
.step-marker {
  position: static;
  margin-bottom: var(--sp-5);
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  color: #fff;
}
@media (max-width: 52rem) {
  .step { padding: var(--sp-5); padding-inline-start: var(--sp-5); }
}

/* Contact */
.notice { background: var(--barley-200); }
.notice .icon { color: var(--barley-700); }
.badge { background: var(--barley-200); color: var(--barley-700); }
.input { background: var(--chaff-100); border-color: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--danger); }
.input:focus-visible { background: #fff; }
.form-card { border-radius: 28px; }

/* Footer */
.site-footer { background: var(--loam-900); }
.site-footer .brand-mark rect { fill: var(--barley-300); }
.site-footer .brand-mark path { stroke: var(--loam-900); }

/* ---------- Motion (opt-in) ---------- */
@keyframes detail-in {
  from { opacity: 0; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes rise {
  from { translate: 0 105%; }
  to { translate: 0 0; }
}
@keyframes fade-up {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes drift {
  from { translate: 0 -4%; }
  to { translate: 0 4%; }
}
@keyframes prefill-flash {
  0% { background-color: var(--barley-300); }
  100% { background-color: var(--barley-200); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Load sequence for the first view */
  .hero-title .line > span { animation: rise 1s var(--ease-out) both; }
  .hero-title .line:nth-child(2) > span { animation-delay: 90ms; }
  .hero .eyebrow { animation: fade-up 700ms var(--ease-out) both; }
  .hero-lede { animation: fade-up 800ms var(--ease-out) 260ms both; }
  .hero-actions { animation: fade-up 800ms var(--ease-out) 360ms both; }
  .index-panel { animation: fade-up 900ms var(--ease-out) 480ms both; }

  /* Scroll reveals (only when JS can reveal them again) */
  .js [data-reveal] {
    opacity: 0;
    translate: 0 18px;
    transition: opacity 700ms ease-out, translate 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal].is-in { opacity: 1; translate: 0 0; }

  .field.is-prefilled .input { animation: prefill-flash 1.4s ease-out both; }
}

/* Subtle image drift tied to scroll position, where supported */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .drift img {
      scale: 1.1;
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .toggle-icons .icon { transition: opacity 150ms linear; scale: 1 !important; filter: none !important; }
  .globe-stage canvas,
  .globe-stage::before { transition: none; }
  .region-detail-body.is-swapping { animation: none; }
}

@media (forced-colors: active) {
  .btn, .chip, .region-btn { border: 1px solid ButtonText; }
  .region-btn[aria-pressed="true"] { outline: 2px solid Highlight; }
  .index-panel, .form-card, .crop { border: 1px solid CanvasText; }
}
