/* quyca.tech — light, clean, image-led. Brand tokens from the existing site. */

:root {
  --green-deep: #013A17;
  --green:      #00471C;
  --green-mid:  #3D7252;
  --sage:       #B7C9BE;
  --sage-soft:  #EFF4F0;
  --gold:       #C9971F;
  --ink:        #242323;
  --ink-soft:   #5f6360;
  --line:       #E1E1E1;
  --soil:       #3D2621;   /* dark brown of the QUYCA wordmark in the logo */
  --earth:      #9C6B43;   /* warm subsoil */
  --sand:       #F7F1E6;   /* warm light background */
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
}
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; font-weight: 700; }
h1 { font-size: clamp(36px, 6vw, 60px); }
h2 { font-size: clamp(28px, 3.6vw, 38px); color: var(--green); }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; max-width: 60ch; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
section { padding: 76px 0; }
section.tint { background: var(--sage-soft); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.lead { font-size: 19px; color: var(--ink-soft); }

/* Header */
header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
header.site .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding: 16px 24px; max-width: 1040px; margin: 0 auto; }   /* the nav drops below the logo when they don't fit side by side */
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }   /* never squeezed by the nav */
.logo .wordmark { display: block; height: 60px; width: auto; max-width: none; }   /* not the global img max-width, which squashed it sideways */
nav.main { margin-left: auto; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
nav.main a { color: var(--ink); text-decoration: none; font-size: 15.5px; font-family: var(--display); }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--green); }
.cta-nav { background: var(--green); color: #fff !important; padding: 9px 18px; border-radius: 4px; font-weight: 600; }
.cta-nav:hover { background: var(--green-deep); }
nav.main a.lang { font-size: 14px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
nav.main a.lang:hover { color: var(--green); border-color: var(--sage); }

/* Hero — full-bleed video like the current site, with a green wash for legibility.
   Layering uses positive z-index only: hero background (fallback) → video → wash → text. */
.hero {
  position: relative; overflow: hidden;
  min-height: 560px; display: flex; align-items: center;
  background: linear-gradient(135deg, #0d5a2a, #013A17);  /* shows if the video can't load */
  color: #fff; padding: 92px 0;
}
.hero video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero::after {           /* wash — keeps white text readable over moving footage */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(1,58,23,.82) 0%, rgba(1,58,23,.60) 55%, rgba(1,58,23,.38) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 18px rgba(0,0,0,.28); }
/* SoilOS mark on a dark ground: warm halo + brightness lift, per brand/QuycaBrand/docs/brand.md.
   Negative margin lets the halo bleed past the logo without moving the layout. */
.hero .product-logo {
  display: block; height: 156px; width: auto;
  padding: 16px 22px; margin: -16px -22px;
  background: radial-gradient(closest-side, rgba(255,206,120,.22), transparent);
  filter: brightness(1.12) saturate(1.22) drop-shadow(0 2px 18px rgba(0,0,0,.35));
}
@media (max-width: 640px) { .hero .product-logo { height: 109px; } }
.hero.short { min-height: 360px; padding: 76px 0; }
.hero .kicker { font-family: var(--display); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.hero p { color: #E8EFEA; font-size: 20px; max-width: 46ch; margin-top: 16px; }
.hero .actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 16px; padding: 13px 26px; border-radius: 4px; text-decoration: none; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: #1a1400; }
.btn-gold:hover { background: #b3860f; }
.btn-white { background: #fff; color: var(--green-deep); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); }

/* Simple grids */
.grid { display: grid; gap: 26px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.feature h3 { color: var(--green); margin-bottom: 6px; }
.feature p { font-size: 15.5px; color: var(--ink-soft); }
.feature .mark { width: 38px; height: 3px; background: var(--gold); margin-bottom: 14px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.card h3 { color: var(--green); margin-bottom: 6px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }

/* Team */
.team { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.member .photo { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 15%; border-radius: 6px; background: var(--sage-soft); margin-bottom: 16px; }
.member h2 { font-size: 21px; color: var(--green); }
.member p { font-size: 15.5px; color: var(--ink-soft); }
.role { color: var(--gold) !important; font-family: var(--display); font-size: 14px !important; margin: 4px 0 10px; }

/* Steps */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: s; }
.step { counter-increment: s; }
.step::before { content: counter(s); font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--gold); display: block; margin-bottom: 6px; }
.step h3 { margin-bottom: 4px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* Crops */
.crops { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.crop { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 22px; font-family: var(--display); font-size: 15px; color: var(--green); }
.crop.soon { color: var(--ink-soft); border-style: dashed; }

/* Quote */
blockquote.field { margin: 30px auto 0; max-width: 44ch; font-family: var(--display); font-size: 22px; line-height: 1.4; color: var(--green-deep); }
blockquote.field footer { font-family: var(--body); font-size: 15px; color: var(--ink-soft); margin-top: 14px; }

/* Featured field story — one strong story, presented as a feature rather than a lone quote */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--sage-soft); border-radius: 10px; overflow: hidden; }
.story-photo { margin: 0; position: relative; min-height: 320px; }
.story-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.story-photo figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(1,58,23,.78); color: #fff; font-size: 13px; padding: 5px 11px; border-radius: 999px; }
.story-body { padding: 44px 46px; display: flex; flex-direction: column; gap: 22px; }
.story-meta { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-soft); }
.story-meta .crop { padding: 5px 16px; font-size: 14px; }
.story blockquote { margin: 0; }
.story blockquote p { font-family: var(--display); font-size: clamp(21px, 2.4vw, 26px); line-height: 1.35; color: var(--green-deep); max-width: none; }
.story blockquote footer { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
.outcomes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.outcomes li { background: #fff; border: 1px solid var(--sage); border-radius: 6px; padding: 7px 14px 7px 32px; font-size: 15px; color: var(--green); position: relative; }
.outcomes li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 6px; height: 11px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: translateY(-65%) rotate(45deg); }
.story-next { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--sage); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.story-next p { font-size: 15.5px; color: var(--ink-soft); max-width: 36ch; }
.story-next strong { color: var(--green); }
@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
  .story-photo { min-height: 240px; }
  .story-body { padding: 28px 22px; }
}

/* Home: mission line under "Who we are" */
/* Mission: a big, confident statement. No box. */
.mission-card { margin: 64px auto 0; max-width: 940px; text-align: center; }
.mission-label { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 auto 18px; }
.mission-label::before, .mission-label::after { content: ""; width: 36px; height: 2px; background: var(--gold); }
.mission-text { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -.015em; color: var(--green-deep); max-width: 21ch; margin: 0 auto; text-wrap: balance; }
.mission-text em { font-style: normal; color: var(--gold); }

/* Home: product showcase */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.eyebrow { font-family: var(--display); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; font-weight: 600; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 6px; height: 11px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mock-wrap { margin: 0; }
.mock-wrap figcaption { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 12px; }
/* Product preview: a simplified copy of SoilOS's Mix Plan panel, in the app's own colours */
.mock {
  --app-soil: #8b5a2b; --app-soil-light: #a0522d; --app-soil-sand: #cd853f;
  --app-soil-tint: rgba(139,90,43,.08); --app-soil-line: rgba(139,90,43,.15); --app-cream: #fffbf5;
  --app-text: #111827; --app-muted: #6b7280; --app-subtle: #9ca3af;
  --app-border: #e5e7eb; --app-well: #f9fafb; --app-chip: #f3f4f6;
  background: #fff; border: 1px solid var(--app-border); border-radius: 10px; box-shadow: 0 18px 50px rgba(1,58,23,.14);
  overflow: hidden; font-family: var(--body); font-size: 14px; color: var(--app-text);
}
.mock svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mock-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; color: #fff;
  background: linear-gradient(135deg, var(--app-soil) 0%, var(--app-soil-light) 50%, var(--app-soil-sand) 100%); }
.mock-head svg { width: 22px; height: 22px; }
.mock-head b { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; }
.mock-head span { display: block; font-size: 12.5px; opacity: .85; margin-top: 2px; }
.mock-head em { margin-left: auto; font-style: normal; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: rgba(61,38,33,.35); }
.mock-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; }
.mock-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; background: var(--app-cream); border: 1px solid var(--app-soil-line); border-radius: 8px; }
.mock-field .pin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: #fff; background: linear-gradient(135deg, var(--app-soil), var(--app-soil-light)); }
.mock-field .pin svg { width: 14px; height: 14px; }
.mock-field strong { font-size: 14.5px; font-weight: 600; }
.mock-field .crop { padding: 2px 8px; border: 0; border-radius: 999px; background: var(--app-soil); color: #fff; font-family: inherit; font-size: 11.5px; font-weight: 500; }
.mock-field .meta { margin-left: auto; color: var(--app-muted); font-size: 13px; }
.mock-approval { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--app-well); border: 1px solid var(--app-border); border-radius: 12px; }
.mock-approval svg { width: 16px; height: 16px; padding: 3px; box-sizing: content-box; border-radius: 50%; color: #15803d; background: #dcfce7; stroke-width: 3; }
.mock-approval b { font-weight: 700; }
.mock-approval span { color: var(--app-muted); font-size: 13px; }
.mock-label { margin: 2px 0 -4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--app-subtle); }
.mock-label span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.gaps { display: flex; flex-direction: column; gap: 8px; }
.gap { display: grid; grid-template-columns: 18px 1fr 36px; align-items: center; gap: 10px; }
.gap span { font-weight: 700; font-size: 13px; }
.gap i { display: block; height: 8px; border-radius: 999px; background: var(--app-chip); overflow: hidden; }
.gap i u { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--app-soil-sand), var(--app-soil)); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
html.js [data-reveal]:not(.in) .gap i u { width: 0; }
.gaps .gap:nth-child(2) i u { transition-delay: .15s; }
.gaps .gap:nth-child(3) i u { transition-delay: .3s; }
.gap b { text-align: right; font-weight: 700; font-size: 13px; color: var(--app-soil); }
.passes { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: rgba(139,90,43,.04); border: 1px solid var(--app-soil-tint); border-radius: 10px; }
.passes li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; background: #fff; border: 1px solid var(--app-border); border-radius: 8px; }
.passes .fert { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.passes .fert b { font-size: 13.5px; font-weight: 600; }
.passes .fert span { padding: 1px 6px; border-radius: 4px; font-size: 11px; color: var(--app-muted); background: var(--app-chip); border: 1px solid var(--app-border); }
.passes .amt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.passes small { margin-right: 6px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--app-subtle); }
.passes em { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--app-soil); }
.passes em span { font-size: 11px; font-weight: 400; color: var(--app-subtle); }
.passes .amt > span { font-size: 12.5px; font-weight: 600; color: var(--app-muted); }
.mock-window { display: flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 6px; font-size: 12.5px; color: #92400e; background: rgba(217,119,6,.12); border: 1px solid rgba(217,119,6,.35); }
.mock-window svg { width: 14px; height: 14px; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; gap: 36px; } }

/* Home: pilot band */
.pilot-band { background: var(--green); color: #fff; padding: 64px 0; }
.pilot-band .wrap { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between; }
.pilot-text { max-width: 600px; }
.pilot-band .places { font-family: var(--display); font-size: 15px; color: var(--gold); letter-spacing: .04em; margin-bottom: 10px; }
.pilot-band h2 { color: #fff; }
.pilot-band p { color: #DCE8E0; margin-top: 12px; }
.pilot-band .pilot-small { font-size: 14.5px; color: var(--sage); }
.pilot-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ================= Home, layout v2 ================= */

/* Hero with the product preview overlapping its bottom edge */
.hero-home { min-height: 0; padding: 84px 0 0; display: block; overflow: visible; }
.hero-home video, .hero-home::after { bottom: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 390px); gap: 48px; align-items: end; }
.hero-copy { padding-bottom: 150px; }
.hero-mock { margin: 0; position: relative; z-index: 3; transform: translateY(200px); }
@media (min-width: 1200px) { .hero-mock { transform: translate(70px, 200px); } }
.hero-mock .mock { box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.after-hero { padding-top: 250px; }
.hero-home .wrap { z-index: 3; }   /* keep the preview above the soil edge */
.hero .mock { color: var(--app-text); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 40px; }
  .hero-mock { transform: translateY(48px); }
  .after-hero { padding-top: 110px; }
}

/* Soil-layer edges: the brand's signature divider */
.soil-edge { position: absolute; left: 0; right: 0; height: 64px; z-index: 2; pointer-events: none;
  background: no-repeat center / 100% 100%; }
.soil-edge.to-white { bottom: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%239C6B43' d='M0 18C220 40 470 2 720 20s520 26 720 4v40H0z'/%3E%3Cpath fill='%233D2621' d='M0 32c260 22 520-14 780 6s470 14 660-2v28H0z'/%3E%3Cpath fill='%23fff' d='M0 46c280 16 560-12 820 4s440 10 620-2v16H0z'/%3E%3C/svg%3E"); }
.soil-edge.from-white { top: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%233D2621' d='M0 0h1440v44c-200 18-450-14-700 4S200 60 0 40z'/%3E%3Cpath fill='%239C6B43' d='M0 0h1440v30c-210 16-470-16-720 2S210 44 0 26z'/%3E%3Cpath fill='%23fff' d='M0 0h1440v16c-220 14-480-14-740 2S230 28 0 12z'/%3E%3C/svg%3E"); }
.has-soil-top { position: relative; padding-top: 120px !important; }


/* How it works: a connected journey */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; position: relative; }
.journey::before { content: ""; position: absolute; top: 34px; left: 16%; right: 16%; border-top: 2px dashed var(--sage); }
.journey li { position: relative; text-align: center; }
.journey .ico { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 2px solid var(--sage); display: grid; place-items: center; color: var(--green); position: relative; }
.journey .ico svg { width: 30px; height: 30px; }
.journey .num { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #1a1400; font-family: var(--display); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.journey h3 { color: var(--green); margin-bottom: 6px; min-height: 2.3em; display: flex; align-items: flex-end; justify-content: center; }
.journey p { font-size: 15.5px; color: var(--ink-soft); max-width: 30ch; margin: 0 auto; }
@media (max-width: 760px) {
  .journey { grid-template-columns: 1fr; gap: 34px; }
  .journey::before { top: 34px; bottom: 34px; left: 50%; right: auto; border-top: 0; border-left: 2px dashed var(--sage); }
  .journey h3, .journey p { position: relative; background: var(--sage-soft); padding: 2px 0; }
}

/* Why Quyca: icon cards */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.why-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(1,58,23,.10); border-color: var(--sage); }
.why-card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--sand); color: var(--earth); display: grid; place-items: center; margin-bottom: 16px; }
.why-card .ico svg { width: 26px; height: 26px; }
.why-card h3 { color: var(--green); margin-bottom: 6px; min-height: 2.3em; display: flex; align-items: flex-end; }   /* same height so the paragraphs line up */
.why-card p { font-size: 15.5px; color: var(--ink-soft); }

/* Crops: photo cards */
.crop-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 34px; text-align: left; }
.crop-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; margin: 0; background: var(--green-deep); }
.crop-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.crop-card:hover img { transform: scale(1.04); }
.crop-card figcaption { position: absolute; inset: auto 0 0 0; padding: 70px 20px 20px; background: linear-gradient(180deg, transparent, rgba(1,30,12,.85)); color: #fff; }
.crop-card figcaption strong { display: block; font-family: var(--display); font-size: 26px; }
.crop-card.soon { background: var(--sand); border: 2px dashed #D9C7A8; display: grid; place-items: center; text-align: center; padding: 20px; }
.crop-card.soon strong { font-family: var(--display); font-size: 22px; color: var(--earth); display: block; }
.crops-band { background: var(--sand); }

/* Gold Founders badge on the pilot band */
.badge { display: inline-block; background: var(--gold); color: #1a1400; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 4px; margin-bottom: 14px; }

@media (prefers-reduced-motion: reduce) {
  .gap i u { transition: none; }
  html.js [data-reveal]:not(.in) .gap i u { width: var(--w); }
}


/* Readable wrapping everywhere */
p { text-wrap: pretty; }
/* Anchor targets clear the sticky header */
[id] { scroll-margin-top: 110px; }

/* Floating back button: "Back to where you were" after an in-page jump, otherwise "Back to top" */
.back-btn { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px 11px 13px; border: 0; border-radius: 999px; background: var(--green-deep); color: #fff; font-family: var(--display); font-weight: 600; font-size: 14.5px; cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.25); transition: transform .2s, background .2s; }
.back-btn:hover { background: var(--green); transform: translateY(-2px); }
.back-btn[hidden] { display: none; }
.back-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.back-btn.is-down svg { transform: rotate(180deg); }
.back-btn.is-return { background: var(--gold); color: #1a1400; }
.back-btn.is-return:hover { background: #b3860f; }
@media (max-width: 520px) { .back-btn { right: 14px; bottom: 14px; } }




/* Story photo carousel: swipe, arrows, dots; autoplay handled in site.js */
.carousel .slides { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel .slides::-webkit-scrollbar { display: none; }
.carousel .slides:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.carousel .slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.carousel .cap { position: absolute; left: 14px; bottom: 44px; background: rgba(1,58,23,.78); color: #fff; font-size: 13px; padding: 5px 11px; border-radius: 999px; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--green-deep); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); transition: background .2s; z-index: 1; }
.car-btn:hover { background: #fff; }
.car-btn svg { width: 20px; height: 20px; }
.car-btn.prev { left: 12px; }
.car-btn.next { right: 12px; }
.car-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 1; }
.car-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.6); cursor: pointer; transition: width .25s, background .25s; }
.car-dots button[aria-current="true"] { width: 24px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .carousel .slides { scroll-behavior: auto; } }

/* ================= Team page ================= */

/* Scroll reveal: fade up, staggered with --i */
html.js .timeline[data-reveal] > li,
html.js .gallery[data-reveal] > figure,
html.js .flip[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 120ms); }
html.js .timeline[data-reveal].in > li,
html.js .gallery[data-reveal].in > figure,
html.js .flip[data-reveal].in { opacity: 1; transform: none; }

/* Team photos: full colour; gentle zoom and gold glow on hover or focus */
.duo { position: relative; display: block; overflow: hidden; }
.duo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.duo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 rgba(201,151,31,0); transition: box-shadow .4s ease; pointer-events: none; }
.flip:hover .duo img, .flip:focus-within .duo img { transform: scale(1.05); }
.flip:hover .duo::after, .flip:focus-within .duo::after { box-shadow: inset 0 0 0 3px var(--gold); }

/* Flip cards */
.team-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; align-items: stretch; }
.flip { perspective: 1400px; }
.flip-inner { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.2,.7,.2,1); }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { grid-area: 1 / 1; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 18px; box-shadow: 0 10px 28px rgba(1,58,23,.07); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: box-shadow .3s; }
.flip:hover .flip-face { box-shadow: 0 18px 40px rgba(1,58,23,.14); }
.flip-front > :not(.member-photo) { margin-left: 8px; margin-right: 8px; }
.member-photo { aspect-ratio: 4 / 5; border-radius: 10px; margin-bottom: 14px; background: var(--sage-soft); }
.flip h3 { font-size: 20px; color: var(--green); }
.flip-front h3 { min-height: 2.3em; display: flex; align-items: flex-end; }   /* names share a height so roles and tags line up */
.flip-front .role { margin: 2px 8px 0; min-height: 2.9em; line-height: 1.4; }   /* room for a two-line role so tags line up */
.flip-back .role { margin: 2px 0 0; }
.tags { list-style: none; margin: 12px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12.5px; line-height: 1.3; background: var(--sand); color: var(--earth); border-radius: 999px; padding: 4px 10px; }
.flip-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--sage); border-radius: 999px; padding: 7px 14px; font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--green); cursor: pointer; transition: background .2s, border-color .2s; }
.flip-btn::after { content: "↻"; font-size: 14px; }
.flip-btn:hover { background: var(--sage-soft); border-color: var(--green-mid); }
.flip-back { transform: rotateY(180deg); background: linear-gradient(150deg, var(--green-deep) 0%, #24452A 45%, #6B4A2E 80%, var(--earth) 100%); border-color: transparent; padding: 28px 24px 22px; color: #F1EADF; }   /* earth gradient: green into soil brown */
.flip-back h3 { color: #fff; }
.flip-back p:not(.role) { color: #F1EADF; font-size: 15px; line-height: 1.6; margin: 14px 0 20px; }
.flip-back .flip-btn { color: #fff; border-color: rgba(255,255,255,.4); }
.flip-back .flip-btn:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 10px; right: 0; height: 2px; background: linear-gradient(90deg, var(--sage), var(--gold)); }
.timeline li { position: relative; padding-top: 36px; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); box-sizing: border-box; }
.timeline li.now::before { background: var(--gold); animation: pulse 2.2s infinite; }
.t-when { font-family: var(--display); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.timeline h3 { color: var(--green); font-size: 19px; margin: 6px 0 6px; min-height: 2.3em; display: flex; align-items: flex-end; }
@media (max-width: 760px) { .timeline h3 { min-height: 0; } }
.timeline p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { top: 4px; bottom: 4px; left: 9px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--sage), var(--gold)); }
  .timeline li { padding: 0 0 0 40px; }
}

/* Pulse used by the timeline and hero pins */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,151,31,.55); } 70% { box-shadow: 0 0 0 12px rgba(201,151,31,0); } 100% { box-shadow: 0 0 0 0 rgba(201,151,31,0); } }

/* Field gallery */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: stretch; }
.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; height: clamp(280px, 30vw, 380px); box-shadow: 0 16px 40px rgba(1,58,23,.14); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(1,58,23,.8); color: #fff; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } .gallery figure { height: auto; aspect-ratio: 4 / 3; } }

/* Team hero: room for the soil edge */
.team-hero { padding-bottom: 110px; }


/* Team hero: illustrated circuit lines from the logo, no video */
.team-hero .soil-edge.to-white { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%239C6B43' d='M0 18C220 40 470 2 720 20s520 26 720 4v40H0z'/%3E%3Cpath fill='%233D2621' d='M0 32c260 22 520-14 780 6s470 14 660-2v28H0z'/%3E%3Cpath fill='%23EFF4F0' d='M0 46c280 16 560-12 820 4s440 10 620-2v16H0z'/%3E%3C/svg%3E"); }   /* last layer matches the pale green section below */
.team-hero { background: radial-gradient(120% 140% at 85% 100%, #0f5a2b 0%, var(--green-deep) 55%, #012a11 100%); }
.team-hero::after { background: linear-gradient(90deg, rgba(1,42,17,.92) 0%, rgba(1,42,17,.7) 38%, rgba(1,42,17,0) 70%); }
.circuits { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.circuits .traces path { fill: none; stroke: rgba(183,201,190,.28); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.circuits .pulses path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26 520; stroke-dashoffset: 546; animation: circuit-pulse 4.5s linear infinite; animation-delay: var(--d, 0s); filter: drop-shadow(0 0 4px rgba(201,151,31,.8)); }
.circuits .nodes circle { stroke-width: 2.5; }
.circuits .n-ring { fill: var(--green-deep); stroke: rgba(183,201,190,.55); }
.circuits .n-fill { fill: rgba(201,151,31,.85); stroke: none; animation: node-glow 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes circuit-pulse { to { stroke-dashoffset: 0; } }
@keyframes node-glow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (max-width: 760px) { .team-hero::after { background: linear-gradient(180deg, rgba(1,42,17,.55), rgba(1,42,17,.85)); } }


/* Bento gallery: one wide photo, one tall, two small; click to enlarge */
.gallery.bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 20vw, 260px); gap: 16px; }
.gallery.bento figure { height: auto; aspect-ratio: auto; }
.gallery.bento figure.wide { grid-column: span 2; }
.gallery.bento figure.tall { grid-row: span 2; }
.gallery.bento .g-open { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery.bento .g-open:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.gallery.bento figcaption { pointer-events: none; max-width: calc(100% - 28px); }
.gallery.bento figure:not(.wide) figcaption { font-size: 12.5px; }
@media (max-width: 860px) {
  .gallery.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 38vw, 220px); }
  .gallery.bento figure.tall { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 760px) { .gallery.bento figure { height: auto; aspect-ratio: auto; } }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1200px); max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(1,20,8,.86); }
.lightbox img { display: block; max-width: min(92vw, 1200px); max-height: 82vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox p { color: #fff; text-align: center; margin: 12px auto 0; font-size: 15px; max-width: none; }
.lightbox-close { position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--green-deep); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.3); }


/* Team page, layout v3 */
.hero-places { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-places li { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; font-family: var(--display); font-weight: 600; font-size: 15px; backdrop-filter: blur(4px); }
.hero-places .pin { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: pulse 2.2s infinite; }

.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; margin-bottom: 40px; }
.split-head .lead { max-width: 36ch; }

.journey-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.journey-text h2 { margin-bottom: 34px; max-width: 18ch; }
.timeline.vertical { grid-template-columns: 1fr; gap: 28px; }
.timeline.vertical::before { top: 4px; bottom: 4px; left: 9px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--sage), var(--gold)); }
.timeline.vertical li { padding: 0 0 0 42px; }
.timeline.vertical h3 { min-height: 0; display: block; margin: 4px 0; }
.timeline.vertical p { max-width: 52ch; }
.journey-photo { margin: 0; position: sticky; top: 120px; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 22px 50px rgba(1,58,23,.18); }
.journey-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.journey-photo figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; width: fit-content; background: rgba(1,58,23,.8); color: #fff; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
html.js .journey-photo[data-reveal]:not(.in) { opacity: 0; transform: translateY(26px); }
.journey-photo[data-reveal] { transition: opacity .8s ease .2s, transform .8s cubic-bezier(.2,.7,.2,1) .2s; }
@media (max-width: 860px) {
  .journey-grid { grid-template-columns: 1fr; gap: 36px; }
  .journey-photo { position: relative; top: 0; aspect-ratio: 16 / 11; }
}

/* Pilot offer box */
.offer { background: var(--green-deep); color: #fff; border-radius: 8px; padding: 34px; }
.offer h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.offer ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: #DCE8E0; font-size: 15.5px; }
.offer .places { font-family: var(--display); font-size: 15px; color: var(--gold); margin-bottom: 14px; letter-spacing: .04em; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.faq summary { font-family: var(--display); font-weight: 600; font-size: 17px; padding: 16px 0; cursor: pointer; color: var(--green); }
details.faq p { padding: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; }

/* Strip */
.strip { background: var(--green); color: #fff; padding: 50px 0; }
.strip .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.strip h2 { color: #fff; }
.strip p { color: var(--sage); }

/* Footer */
footer.site { background: var(--green-deep); color: var(--sage); padding: 48px 0 32px; }
footer.site .cols { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
footer.site h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
footer.site a { color: #DFE9E2; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 15px; }
footer.site .legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid #1E4A2E; font-size: 13.5px; color: #9DB3A6; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
