/* ==========================================================================
   Agrimatics Co., Ltd. — one-page site
   Palette sampled from the two macro photographs:
   true black ground · frost white (trichome heads) · amber (pistils)
   · deep green (bracts) · violet (single accent, used sparingly)
   ========================================================================== */

/* ---------------------------------------------------------------- Fonts */
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-var.woff2") format("woff2");
  font-weight: 200 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------------------------------------------------------------- Tokens */
:root {
  --black: #000;
  --ink-1: #070807;
  --ink-2: #0d0f0d;
  --ink-3: #151815;

  --frost: #ecf1f3;
  --frost-2: rgba(236, 241, 243, .72);
  --frost-3: rgba(236, 241, 243, .5);
  --line: rgba(236, 241, 243, .12);
  --line-2: rgba(236, 241, 243, .22);

  --amber: #d68e46;
  --amber-2: #e8ab6c;
  --amber-glow: rgba(214, 142, 70, .35);

  --green: #3d5e42;
  --green-deep: #0f1c13;

  --violet: #9a82d8;

  /* gradients */
  --grad-accent: linear-gradient(100deg, #f6dcb8 0%, #e8ab6c 38%, #d68e46 68%, #b48be0 118%);
  --grad-route: linear-gradient(90deg, #ecf1f3 0%, #e8ab6c 55%, #9a82d8 100%);
  --grad-hair: linear-gradient(90deg, rgba(236, 241, 243, 0), rgba(236, 241, 243, .22) 30%, rgba(214, 142, 70, .35) 70%, rgba(154, 130, 216, 0));

  --display: "Outfit", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --header-h: 72px;
  --section-y: clamp(96px, 13vw, 184px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--frost);
  font-family: var(--sans);
  font-size: clamp(16px, .25vw + 15px, 18px);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--amber); color: var(--black); }

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

.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;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--frost); color: var(--black);
  font-size: .9rem; transition: top .2s;
}
.skip:focus { top: 16px; }

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

/* ---------------------------------------------------------------- Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  margin: 0 0 1.6rem;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--frost-2);
}
.eyebrow__num {
  color: var(--amber);
}
.eyebrow__num::after {
  content: ""; display: inline-block; width: 28px; height: 1px;
  margin-left: .75em; vertical-align: middle; background: var(--line-2);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.6vw + .4rem, 4rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.035em;
  max-width: 18ch;
  text-wrap: balance;
}
/* Accent words: colour + weight shift instead of italics */
.section-title em,
.hero__title em {
  font-style: normal; font-weight: 400;
  color: var(--amber-2);                      /* fallback */
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  padding-right: .04em;                       /* keep the last glyph inside the clip */
}

.section-lede {
  margin-top: 1.6rem;
  max-width: 46ch;
  color: var(--frost-2);
  font-size: 1.06em;
  text-wrap: pretty;
}

.section { padding-block: var(--section-y); position: relative; isolation: isolate; }
.section::before {                           /* ambient glow, tinted per section */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--glow, none);
}
.services { --glow:
  radial-gradient(55% 45% at 100% 8%, rgba(214, 142, 70, .10), transparent 70%),
  radial-gradient(45% 50% at 0% 95%, rgba(61, 94, 66, .16), transparent 70%); }
.partners { --glow:
  radial-gradient(50% 40% at 15% 20%, rgba(61, 94, 66, .20), transparent 70%),
  radial-gradient(45% 40% at 90% 30%, rgba(154, 130, 216, .09), transparent 70%); }
.contact { --glow:
  radial-gradient(50% 55% at 0% 100%, rgba(214, 142, 70, .09), transparent 70%),
  radial-gradient(45% 45% at 100% 10%, rgba(154, 130, 216, .08), transparent 70%); }

.section-head { margin-bottom: clamp(56px, 7vw, 96px); }
.section-head--split {
  display: grid; gap: 24px 64px;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: 1.3fr 1fr; }
  .section-head--split .section-lede { margin: 0 0 .4rem; }
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: linear-gradient(105deg, #f2c28d 0%, #d68e46 48%, #f7fafb 52%, #d4dde1 100%) 100% 0 / 220% 100% no-repeat;
  color: var(--black);
  font: 500 .95rem/1 var(--sans);
  letter-spacing: .01em;
  cursor: pointer;
  transition: background-position .6s var(--ease-out), border-color .35s var(--ease-out), color .35s var(--ease-out), transform .35s var(--ease-out);
}
.btn::after {
  content: "→"; font-family: var(--mono); font-weight: 400;
  transition: transform .35s var(--ease-out);
}
.btn:hover { background-position: 0 0; }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 10px 16px; font-size: .85rem; }
.btn--ghost {
  background: linear-gradient(180deg, rgba(236, 241, 243, .06), rgba(236, 241, 243, 0));
  color: var(--frost); border-color: var(--line-2);
}
.btn--ghost:hover {
  background: linear-gradient(180deg, rgba(214, 142, 70, .16), rgba(214, 142, 70, 0));
  border-color: var(--amber); color: var(--amber-2);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .95rem; color: var(--frost-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.link-arrow::after { content: "↓"; font-family: var(--mono); }
.link-arrow:hover { color: var(--frost); border-color: var(--amber); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   make it the containing block for the fixed mobile menu. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity .4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__inner {
  height: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 38px; width: auto; }
@media (max-width: 860px) { .brand__logo { height: 32px; } }
.brand__suffix {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--frost-3); padding-top: 4px;
}

.nav__list { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav__list a:not(.btn) {
  font-size: .9rem; color: var(--frost-2);
  transition: color .25s;
}
.nav__list a:not(.btn):hover { color: var(--frost); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .brand__suffix { display: none; }
  .nav__toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--frost); cursor: pointer;
  }
  .nav__toggle-bars { position: relative; display: block; width: 22px; height: 9px; }
  .nav__toggle-bars::before,
  .nav__toggle-bars::after {
    content: ""; position: absolute; left: 0; width: 22px; height: 1px;
    background: currentColor;
    transition: transform .35s var(--ease-out);
  }
  .nav__toggle-bars::before { top: 0; }
  .nav__toggle-bars::after { bottom: 0; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }

  .nav__list {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px;
    background: #000;
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease-out), visibility 0s .3s;
  }
  .nav__list.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a:not(.btn) { display: block; padding: 16px 0; font-size: 1.05rem; }
  .nav__cta { border: 0 !important; padding-top: 20px; }
  .nav__cta .btn { width: 100%; padding: 15px 24px; font-size: .95rem; }
  .site-header:has(.nav__list.is-open)::before { opacity: 1; background: #000; }
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 200svh;             /* scroll runway for the scale/dissolve */
}
.hero__stage {
  position: sticky; top: 0;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}

.hero__flower {
  position: absolute; left: 50%; top: 50%;
  width: min(76svh, 48vw);
  translate: -50% -48%;
  transform-origin: 50% 55%;
  will-change: transform, opacity;
  z-index: 0;
}
.hero__tilt {
  transform-style: preserve-3d;
  will-change: transform;
}
.hero__breathe {
  position: relative;
  animation: breathe 8s var(--ease-io) infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
.hero__img { width: 100%; height: auto; }
.hero__glints {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__copy {
  position: absolute; inset: 0; z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--header-h) + clamp(20px, 4vh, 48px));
  padding-bottom: clamp(32px, 7vh, 72px);
  pointer-events: none;
  will-change: transform, opacity;
}
.hero__copy a, .hero__copy button { pointer-events: auto; }

.hero__eyebrow { grid-row: 1; margin: 0; }

.hero__title {
  grid-row: 3;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.9vw, 5.4rem);
  font-weight: 250;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .55);
  align-self: end;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }

.hero__aside {
  grid-row: 3;
  justify-self: end; align-self: end;
  max-width: 34ch;
  padding-bottom: .5rem;
  position: relative; isolation: isolate;
}
/* soft halo so copy stays legible where it crosses the flower */
.hero__aside::before,
.hero__title::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -22% -18% -22% -14%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .82), rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, 0));
}
.hero__title { position: relative; isolation: isolate; }
.hero__title::before { inset: -12% -10% -14% -18%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
.hero__sub { color: var(--frost-2); font-size: 1rem; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; z-index: 2;
  width: 1px; height: 44px; background: var(--line);
  overflow: hidden; translate: -50% 0;
}
.hero__scroll span {
  position: absolute; inset: 0; background: var(--frost);
  transform: translateY(-100%);
  animation: scrollcue 2.4s var(--ease-io) infinite;
}
@keyframes scrollcue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Desktop: title bottom-left, aside bottom-right */
@media (min-width: 961px) {
  .hero__title { grid-column: 1; max-width: 12ch; }
  .hero__copy { grid-template-columns: 1fr auto; }
  .hero__eyebrow { grid-column: 1 / -1; }
  .hero__aside { grid-column: 2; }
}
/* Narrower desktops: the flower is widest at its base, so lift the aside
   to the upper right where the silhouette tapers. */
@media (min-width: 961px) and (max-width: 1279px), (min-width: 961px) and (max-aspect-ratio: 3/2) {
  .hero__aside { grid-row: 2; align-self: start; margin-top: clamp(24px, 8vh, 96px); max-width: 30ch; }
}

/* Tablet / mobile: flower top, text stacked beneath */
@media (max-width: 960px) {
  .hero { height: 180svh; }
  .hero__flower { width: min(86vw, 58svh); top: 40%; }
  .hero__copy { grid-template-rows: auto 1fr auto auto; gap: 18px; }
  .hero__title { grid-row: 3; font-size: clamp(2.1rem, 8.6vw, 3.8rem); }
  .hero__aside { grid-row: 4; justify-self: start; max-width: 40ch; padding: 0; }
  .hero__sub { font-size: .95rem; margin-bottom: 1.2rem; }
  .hero__scroll { display: none; }
  .hero__stage::after {
    content: ""; position: absolute; inset: 45% 0 0 0; z-index: 1;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .7) 40%, rgba(0, 0, 0, .9));
    pointer-events: none;
  }
}
@media (max-width: 960px) and (max-height: 700px) {
  .hero__sub { display: none; }
}

/* Load-in: headline and copy reveal line by line */
.js .hero [data-hero-line] {
  transform: translate3d(0, 108%, 0);
  opacity: 0;
}
.js .hero__eyebrow[data-hero-line],
.js .hero__sub[data-hero-line],
.js .hero__actions[data-hero-line] { transform: translate3d(0, 16px, 0); }
.js.is-loaded .hero [data-hero-line] {
  transform: none; opacity: 1;
  transition: transform 1.1s var(--ease-out), opacity .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.js .hero__tilt { opacity: 0; }
.js.is-loaded .hero__tilt { opacity: 1; transition: opacity 1.6s var(--ease-out) .05s; }

/* ==========================================================================
   2. SUPPLY CHAIN — dissolves in over the hero
   ========================================================================== */
.supply {
  margin-top: -60svh;
  z-index: 3;
  padding-top: 0;
  background:
    radial-gradient(45% 35% at 88% 78%, rgba(154, 130, 216, .08), transparent 70%),
    radial-gradient(60% 40% at 20% 80%, rgba(61, 94, 66, .22), transparent 70%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .85) 30svh, #000 55svh);
}
.supply > .container { padding-top: 40svh; }

.route {
  --regions-h: 34px;
  --svg-h: 120px;
  --pin-y: calc(var(--regions-h) + var(--svg-h) * .6667);   /* y = 80 / 120 */
  position: relative;
}
.route__regions {
  display: grid; grid-template-columns: 4fr 2fr; gap: 12px;
  height: var(--regions-h);
}
.route__region {
  position: relative;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--frost-3);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-inline: 4%;
}
.route__region { border-image: linear-gradient(90deg, rgba(236, 241, 243, .05), rgba(236, 241, 243, .25), rgba(236, 241, 243, .05)) 1; }
.route__region--eu { color: var(--frost-2); border-image: linear-gradient(90deg, rgba(154, 130, 216, .1), rgba(154, 130, 216, .45), rgba(154, 130, 216, .1)) 1; }

.route__svg {
  position: absolute; left: 0; right: 0; top: var(--regions-h);
  width: 100%; height: var(--svg-h);
  overflow: visible;
}
.route__base,
.route__progress { fill: none; stroke-width: 1.25; }
.route__base { stroke: var(--line-2); stroke-dasharray: 3 5; }
.route__progress {
  stroke: url(#route-grad);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.route__dot {
  position: absolute; left: 0; top: 0;
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(154, 130, 216, .18), 0 0 24px 4px rgba(154, 130, 216, .45);
  opacity: 0;
  will-change: transform;
  transition: opacity .4s;
}
.route.is-active .route__dot { opacity: 1; }

.route__vline { display: none; }

.route__nodes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding-top: calc(var(--svg-h) + 8px);
  counter-reset: node;
}
.node {
  position: relative;
  padding: 36px 4% 0;
}
.node__pin {
  position: absolute; left: 50%; top: calc(var(--svg-h) * -.3333 - 8px);
  width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--line-2);
  transition: border-color .5s, background-color .5s, box-shadow .5s;
}
.node.is-on .node__pin {
  border-color: var(--frost);
  background: radial-gradient(circle at 35% 35%, #fff, var(--frost) 45%, var(--amber-2));
  box-shadow: 0 0 0 5px rgba(236, 241, 243, .08);
}
.node__idx {
  display: block;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
  color: var(--amber);
  margin-bottom: 12px;
}
.node__title {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.45vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-bottom: 12px;
}
.node__text { color: var(--frost-2); font-size: .9rem; line-height: 1.55; margin-bottom: 0; }

/* Node reveal (driven by route progress) */
.js .node > :not(.node__pin) {
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
.js .node.is-on > :not(.node__pin) { opacity: 1; transform: none; }
.js .node.is-on > .node__idx   { transition-delay: 0s; }
.js .node.is-on > .node__title { transition-delay: .06s; }
.js .node.is-on > .node__text  { transition-delay: .12s; }

/* Vertical route on narrow screens */
@media (max-width: 960px) {
  .route { --pin-x: 6px; }
  .route__regions, .route__svg, .route__dot { display: none; }
  .route__vline {
    display: block; position: absolute;
    left: var(--pin-x); top: 10px; bottom: 40px; width: 1px;
    background: repeating-linear-gradient(to bottom, var(--line-2) 0 3px, transparent 3px 8px);
  }
  .route__vline > span {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, var(--frost), var(--amber-2) 60%, var(--violet));
    transform-origin: top;
    transform: scaleY(0);
    will-change: transform;
  }
  .route__nodes { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .node { padding: 0 0 48px 40px; }
  .node__pin { left: var(--pin-x); top: 8px; margin: -6px 0 0 -6px; width: 13px; height: 13px; }
  .node__text { max-width: 44ch; }
}

/* ==========================================================================
   3. SERVICES
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1180px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.4vw, 34px);
  min-height: 100%;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(214, 142, 70, .07), transparent 60%) padding-box,
    linear-gradient(180deg, #111411, var(--ink-1) 70%) padding-box,
    linear-gradient(160deg, rgba(236, 241, 243, .20), rgba(236, 241, 243, .05) 45%, rgba(214, 142, 70, .22)) border-box;
  border: 1px solid transparent;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.card::before {             /* amber hairline that draws in on hover */
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 1px;
  background: var(--grad-route);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease-out);
}
@media (hover: hover) {
  .card:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 18px 50px -34px rgba(214, 142, 70, .35);
  }
  .card:hover::before { transform: scaleX(1); }
  .card:hover .card__glyph { color: var(--amber-2); }
}
.card__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.card__num { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--frost-3); }
.card__glyph {
  width: 40px; height: 40px;
  fill: none; stroke: currentColor; stroke-width: 1;
  color: var(--frost-2);
  transition: color .5s;
}
.card__title {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.6vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-bottom: 14px;
  text-wrap: balance;
}
.card__text { color: var(--frost-2); font-size: .94rem; margin-bottom: 24px; }
.card__list {
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.card__list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: .86rem; color: var(--frost-2);
  display: flex; gap: 10px;
}
.card__list li::before { content: "—"; color: var(--amber); font-family: var(--mono); }

/* ==========================================================================
   4. QUALITY & COMPLIANCE — loupe reveal
   ========================================================================== */
.quality {
  position: relative;
  background: var(--black);
  --lens-x: 50%;
}
@media (min-width: 961px) { .quality { --lens-x: 64%; } }

.quality__stage {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
}

.quality__lens {
  position: absolute; inset: 0;
  clip-path: circle(0px at var(--lens-x) 50%);
  background: var(--black);
}
.quality__drift {
  position: absolute; inset: -3%;
  will-change: transform;
}
.quality__drift picture { width: 100%; height: 100%; }
.quality__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 47% 52%;
  filter: blur(4px);
  transform: scale(1.02);
  transition: filter 4.2s var(--ease-out);
  will-change: filter;
}
.quality.is-focused .quality__img { filter: blur(0); }
.quality.is-settled .quality__img { will-change: auto; }

/* Desktop: slide the subject into the right-hand half; the graded image
   falls off to pure black so the exposed left edge is seamless. */
@media (min-width: 961px) {
  .quality__drift picture { transform: translateX(14%); }
}

.quality__rim {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  fill: none; stroke: var(--frost); stroke-width: 1;
  pointer-events: none;
  opacity: 0;
}
.quality__rim circle,
.quality__rim line { vector-effect: non-scaling-stroke; }
.quality__rim line { stroke: var(--frost-3); }

.quality__reticle {
  position: absolute; left: var(--lens-x); top: 50%;
  width: min(240px, 44vw); height: min(240px, 44vw);
  translate: -50% -50%;
  overflow: visible;
  fill: none; stroke: rgba(236, 241, 243, .5); stroke-width: 1;
  pointer-events: none;
}
.quality__reticle path,
.quality__reticle circle { vector-effect: non-scaling-stroke; }
.quality__reticle .minor { stroke: rgba(236, 241, 243, .8); }
.quality__reticle .fill { fill: rgba(236, 241, 243, .85); stroke: none; }

.quality__hud {
  position: absolute;
  inset: calc(var(--header-h) + 16px) var(--gutter) 28px var(--gutter);
  pointer-events: none;
}
.hud__corner {
  position: absolute; width: 22px; height: 22px;
  border: 0 solid rgba(236, 241, 243, .5);
}
.hud__corner--tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.hud__corner--tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.hud__corner--bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.hud__corner--br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.hud__label {
  position: absolute; right: 34px; top: 4px;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(236, 241, 243, .6);
}
.hud__scale {                 /* scale bar: ticks, no numeric values */
  position: absolute; right: 34px; bottom: 6px;
  width: 120px; height: 8px;
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid rgba(236, 241, 243, .6);
}
.hud__scale span { width: 1px; height: 4px; background: rgba(236, 241, 243, .6); }
.hud__scale span:first-child,
.hud__scale span:last-child { height: 8px; }

.quality__scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 82%, #000 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .88) 38%, rgba(0, 0, 0, .45) 56%, rgba(0, 0, 0, 0) 74%);
}
@media (max-width: 960px) {
  .quality__scrim {
    background:
      linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .15) 16%, rgba(0, 0, 0, .15) 84%, #000 100%);
  }
}

/* Reticle + scrim appear once the lens has opened */
.js .quality__reticle,
.js .quality__hud,
.js .quality__scrim { opacity: 0; transition: opacity 1.6s var(--ease-out); }
.js .quality.is-open .quality__reticle,
.js .quality.is-open .quality__hud { opacity: 1; transition-delay: .6s; }
.js .quality.is-open .quality__scrim { opacity: 1; }

.quality__content {
  position: relative; z-index: 2;
  margin-top: -100svh;
  padding-top: 155svh;
  padding-bottom: 22svh;
}
.quality__panel { max-width: 560px; }
.quality__panel .section-title { max-width: 14ch; }

@media (max-width: 960px) {
  .quality__panel {
    max-width: none;
    padding: 28px 22px 8px;
    margin-inline: calc(var(--gutter) * -.5);
    background: linear-gradient(180deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .9));
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border: 1px solid var(--line);
  }
}

.custody {
  margin: clamp(40px, 5vw, 64px) 0 40px;
  border-top: 1px solid var(--line-2);
}
.custody__item {
  display: grid; grid-template-columns: 44px 1fr; gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.custody__step {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  color: var(--amber);
  padding-top: 6px;
}
.custody__item h3 {
  font-family: var(--display); font-size: 1.22rem; font-weight: 400; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 6px;
}
.custody__item p { margin: 0; color: var(--frost-2); font-size: .92rem; }

.notice {
  font-size: .85rem; line-height: 1.6;
  color: var(--frost-2);
  padding: 16px 18px;
  border-left: 1px solid var(--violet);
  background: rgba(154, 130, 216, .06);
  margin: 0;
}

/* ==========================================================================
   5. GROWERS / BUYERS
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.split__col {
  padding: clamp(28px, 4.2vw, 64px);
  display: flex; flex-direction: column;
  position: relative;
}
.split__col + .split__col { border-left: 1px solid var(--line); }
@media (max-width: 860px) {
  .split__col + .split__col { border-left: 0; border-top: 1px solid var(--line); }
}
.split__col--grow {
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(61, 94, 66, .38), transparent 62%),
    linear-gradient(180deg, rgba(15, 28, 19, .6), var(--ink-1) 70%);
}
.split__col--buy {
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(154, 130, 216, .14), transparent 62%),
    linear-gradient(180deg, rgba(20, 18, 28, .6), var(--ink-1) 70%);
}
.split__kicker {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.split__title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: 18px;
  text-wrap: balance;
}
.split__text { color: var(--frost-2); max-width: 44ch; margin-bottom: 32px; }
.split__sub {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--frost-3);
  margin: 8px 0 10px;
}
.checklist { margin-bottom: 28px; }
.checklist li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 1.2em;
  width: 10px; height: 5px;
  border-left: 1px solid var(--amber); border-bottom: 1px solid var(--amber);
  transform: rotate(-45deg);
}
.split__col .btn { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   6. CONTACT
   ========================================================================== */
.contact::after,
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--grad-hair);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(48px, 7vw, 120px);
}
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__meta { margin: 48px 0 0; display: grid; gap: 22px; }
.contact__meta div { border-top: 1px solid var(--line); padding-top: 14px; }
.contact__meta dt {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--frost-3); margin-bottom: 4px;
}
.contact__meta dd { margin: 0; color: var(--frost-2); }
.contact__meta a {
  color: var(--frost);
  font-family: var(--display); font-weight: 300; letter-spacing: -.02em; font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  border-bottom: 1px solid var(--line-2);
  transition: border-color .3s, color .3s;
  overflow-wrap: anywhere;
}
.contact__meta a:hover { border-color: var(--amber); color: var(--amber-2); }

.form { display: grid; gap: 26px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--frost-3);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  padding: 10px 0 12px;
  color: var(--frost);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(236, 241, 243, .3); }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--frost-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--violet);
  box-shadow: 0 1px 0 0 var(--violet);
}
.field select { cursor: pointer; padding-right: 24px; }
.field select option { background: var(--ink-2); color: var(--frost); }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 7px; height: 7px; margin-top: -6px;
  border-right: 1px solid var(--frost-2); border-bottom: 1px solid var(--frost-2);
  transform: rotate(45deg); pointer-events: none;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-bottom-color: var(--amber); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px;
  font-size: .85rem; color: var(--frost-2); cursor: pointer;
}
.consent input {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; margin: 2px 0 0;
  border: 1px solid var(--line-2); border-radius: 2px;
  display: grid; place-items: center; cursor: pointer;
}
.consent input::after {
  content: ""; width: 9px; height: 5px; margin-top: -3px;
  border-left: 1.5px solid var(--black); border-bottom: 1.5px solid var(--black);
  transform: rotate(-45deg) scale(0); transition: transform .2s;
}
.consent input:checked { background: var(--frost); border-color: var(--frost); }
.consent input:checked::after { transform: rotate(-45deg) scale(1); }
.consent.is-invalid input { border-color: var(--amber); }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { margin: 0; font-size: .9rem; color: var(--frost-2); }
.form__status.is-error { color: var(--amber-2); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #000, #060806);
  padding-block: 56px 40px;
  color: var(--frost-3);
  font-size: .82rem;
}
.site-footer__inner {
  display: grid; gap: 28px 64px;
  grid-template-columns: 1fr 2fr auto;
  align-items: start;
}
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__logo { width: 230px; height: auto; margin-bottom: 18px; }
.site-footer__brand p, .site-footer__legal, .site-footer__copy { margin: 0; }
.site-footer__legal { max-width: 70ch; line-height: 1.65; }

/* ==========================================================================
   Scroll reveal (generic)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* cards keep their hover transition after revealing */
.js .card[data-reveal].is-in { transition: opacity 1s var(--ease-out), transform .6s var(--ease-out), border-color .6s var(--ease-out), box-shadow .6s var(--ease-out); transition-delay: 0s; }

/* ==========================================================================
   Reduced motion: static images, no particles, no mask, no blur
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .hero__glints { display: none; }
  .hero__scroll { display: none; }
  .supply { margin-top: 0; background: #000; }
  .supply > .container { padding-top: var(--section-y); }

  .quality__lens { clip-path: none !important; }
  .quality__img { filter: none !important; transform: none; }
  .quality__rim { display: none; }
  .quality__drift { transform: none !important; }
  .js .quality__reticle, .js .quality__hud, .js .quality__scrim { opacity: 1; }
  .quality__content { padding-top: 70svh; }

  .js [data-reveal], .js .hero [data-hero-line], .js .node > :not(.node__pin), .js .hero__tilt {
    opacity: 1 !important; transform: none !important;
  }
  .route__progress { stroke-dashoffset: 0 !important; }
  .route__vline > span { transform: none !important; }
  .node__pin { border-color: var(--frost) !important; background: var(--frost) !important; }
}
