:root {
  /* Ginkgo-inspired palette, tuned to Herafield */
  --canvas: #f2efe9;          /* warm cream page background */
  --canvas-2: #efeae1;        /* slightly deeper cream for banding */
  --ink: #0b1f30;             /* navy — primary text + dark CTAs */
  --soft-white: #fcfcfc;
  --soft-black: #141414;      /* dark sections + footer */
  --brand: #056b39;           /* deep brand green — accents, rules, marks */
  --brand-bright: #1fab73;    /* lighter green highlight */
  --amber-20: #ffedde;        /* soft warm tint */
  --muted: #4c5a63;           /* secondary text on light */
  --muted-dark: rgba(252, 252, 252, 0.72); /* secondary text on dark */
  --line: rgba(11, 31, 48, 0.16);
  --line-dark: rgba(252, 252, 252, 0.2);

  --shadow-card: 0 30px 80px rgba(11, 31, 48, 0.18);
  --shadow-soft: 0 18px 50px rgba(11, 31, 48, 0.1);

  --radius-card: 24px;
  --radius-btn: 2px;
  --radius-pill: 999px;
  --card-blur: 16px;

  --max: 1640px;
  --max-text: 920px;

  --font-display: "Fraunces", "Recoleta", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Lato", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 7.4vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  max-width: 16ch;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

/* Eyebrow label + green gradient underline rule */
.section-label {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 22px;
  padding-bottom: 10px;
  position: relative;
  text-transform: uppercase;
}

.section-label::after {
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-bright) 55%, rgba(31, 171, 115, 0) 100%);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 64px;
}

/* Section header with long hairline rule, à la "See ours in action ———" */
.rule-heading {
  align-items: center;
  display: flex;
  gap: 22px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  max-width: var(--max);
}

.rule-heading h2,
.rule-heading h3 {
  margin: 0;
  white-space: nowrap;
}

.rule-heading::after {
  background: var(--line);
  content: "";
  flex: 1;
  height: 1px;
}

.skip-link {
  background: var(--ink);
  clip-path: inset(50%);
  color: #fff;
  height: 1px;
  left: 20px;
  overflow: hidden;
  padding: 10px 14px;
  position: fixed;
  top: 20px;
  white-space: nowrap;
  width: 1px;
  z-index: 30;
}

.skip-link:focus {
  clip-path: none;
  height: auto;
  width: auto;
}

/* ---------- Header ---------- */
.site-header {
  align-items: center;
  display: flex;
  height: 76px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 200ms ease, box-shadow 200ms ease, height 200ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(242, 239, 233, 0.92);
  backdrop-filter: blur(var(--card-blur));
  box-shadow: 0 10px 34px rgba(11, 31, 48, 0.08);
  height: 66px;
}

/* Hero header sits over a dark image: light text by default */
.brand {
  align-items: center;
  color: var(--soft-white);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  gap: 11px;
  letter-spacing: 0.01em;
  transition: color 200ms ease;
}

.brand > span:last-child span {
  color: var(--brand-bright);
}

.is-scrolled .brand {
  color: var(--ink);
}

.brand-mark {
  align-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: var(--soft-white);
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  letter-spacing: 0;
  width: 34px;
}

.site-nav {
  align-items: center;
  display: flex;
  font-size: 16px;
  font-weight: 400;
  gap: 32px;
}

.site-nav a {
  color: rgba(252, 252, 252, 0.85);
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--soft-white);
}

.is-scrolled .site-nav a {
  color: rgba(11, 31, 48, 0.7);
}

.is-scrolled .site-nav a:hover,
.is-scrolled .site-nav a:focus-visible {
  color: var(--ink);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.locale-switch {
  align-items: center;
  border: 1.5px solid rgba(252, 252, 252, 0.5);
  border-radius: var(--radius-pill);
  display: inline-flex;
  overflow: hidden;
  padding: 3px;
}

.is-scrolled .locale-switch {
  border-color: rgba(11, 31, 48, 0.24);
}

.locale-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  color: rgba(252, 252, 252, 0.72);
  cursor: pointer;
  font: 700 12px/1 var(--font-body);
  height: 30px;
  letter-spacing: 0.06em;
  padding: 0 13px;
  transition: background 160ms ease, color 160ms ease;
}

.is-scrolled .locale-switch button {
  color: rgba(11, 31, 48, 0.6);
}

.locale-switch button[aria-pressed="true"] {
  background: var(--soft-white);
  color: var(--ink);
}

.is-scrolled .locale-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--soft-white);
}

.locale-switch button:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 2px;
}

/* ---------- Buttons (pills with circular arrow) ---------- */
.button {
  align-items: center;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  gap: 14px;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 8px 0 26px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button .arrow {
  align-items: center;
  border-radius: var(--radius-pill);
  display: inline-flex;
  flex: none;
  height: 36px;
  justify-content: center;
  transition: transform 180ms ease, background 180ms ease;
  width: 36px;
}

.button .arrow svg {
  height: 16px;
  width: 16px;
}

.button:hover .arrow,
.button:focus-visible .arrow {
  transform: translateX(3px);
}

.button-primary {
  background: var(--ink);
  color: var(--soft-white);
}

.button-primary .arrow {
  background: var(--brand-bright);
  color: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #0a2a18;
  background: var(--brand);
}

.button-secondary {
  border-color: rgba(11, 31, 48, 0.3);
  color: var(--ink);
}

.button-secondary .arrow {
  background: var(--ink);
  color: var(--soft-white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--ink);
}

/* On dark backgrounds */
.on-dark .button-secondary {
  border-color: rgba(252, 252, 252, 0.4);
  color: var(--soft-white);
}

.on-dark .button-secondary .arrow {
  background: var(--soft-white);
  color: var(--ink);
}

.on-dark .button-secondary:hover {
  border-color: var(--soft-white);
}

/* Header CTA — compact outlined pill */
.header-cta {
  align-items: center;
  border: 1.5px solid rgba(252, 252, 252, 0.55);
  border-radius: var(--radius-pill);
  color: var(--soft-white);
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
  padding: 0 22px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--soft-white);
  color: var(--ink);
}

.is-scrolled .header-cta {
  border-color: rgba(11, 31, 48, 0.28);
  color: var(--ink);
}

.is-scrolled .header-cta:hover {
  background: var(--ink);
  color: var(--soft-white);
}

/* ---------- Hero (full-bleed photography + overlay) ---------- */
.hero {
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: 58% center;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(11, 31, 48, 0.5) 0%, rgba(11, 31, 48, 0.18) 26%, rgba(11, 31, 48, 0.45) 64%, rgba(8, 22, 35, 0.92) 100%),
    linear-gradient(90deg, rgba(8, 22, 35, 0.85) 0%, rgba(11, 31, 48, 0.45) 38%, rgba(11, 31, 48, 0.05) 70%, rgba(11, 31, 48, 0) 100%);
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero::after {
  background: linear-gradient(180deg, rgba(242, 239, 233, 0) 78%, var(--canvas) 100%);
  bottom: 0;
  content: "";
  height: 22%;
  left: 0;
  position: absolute;
  right: 0;
}

.hero-content {
  color: var(--soft-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  padding: 150px clamp(22px, 6vw, 80px) 124px;
  width: min(880px, 94vw);
}

.hero-content .section-label {
  color: var(--soft-white);
}

.hero h1 {
  color: var(--soft-white);
}

.hero-copy {
  color: rgba(252, 252, 252, 0.86);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.scroll-cue {
  align-items: center;
  border: 1.5px solid rgba(252, 252, 252, 0.4);
  border-radius: var(--radius-pill);
  bottom: 30px;
  display: flex;
  height: 48px;
  justify-content: center;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 30px;
  z-index: 1;
}

.scroll-cue span {
  animation: cue 1.8s ease-in-out infinite;
  background: var(--brand-bright);
  display: block;
  height: 11px;
  width: 2px;
}

@keyframes cue {
  0%, 100% { transform: translateY(-5px); opacity: 0.4; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ---------- Generic section scaffolding ---------- */
.section-inner {
  margin: 0 auto;
  max-width: var(--max);
}

.narrow {
  max-width: var(--max-text);
}

/* thin left vertical divider on light sections */
.principle-section {
  border-left: 1px solid var(--line);
  margin: 0 clamp(22px, 5vw, 64px);
  padding: clamp(80px, 11vw, 150px) 0 64px clamp(24px, 4vw, 60px);
}

.lead {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.16;
  max-width: 18ch;
}

.capability-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  margin: 70px auto 0;
  max-width: var(--max);
}

.capability-row article {
  border-right: 1px solid var(--line);
  padding: 30px 28px 20px 0;
}

.capability-row article:last-child {
  border-right: 0;
}

.capability-row span {
  color: var(--brand);
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

.capability-row p,
.audience-list p,
.operations-note p {
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- Image story: copy + circular masked image ---------- */
.image-story {
  align-items: center;
  display: grid;
  gap: clamp(40px, 6vw, 90px);
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1fr);
  padding: clamp(70px, 9vw, 120px) clamp(22px, 5vw, 64px);
}

.image-story.media-left {
  grid-template-columns: minmax(420px, 1fr) minmax(280px, 0.78fr);
}

.image-story.media-left .story-media {
  order: -1;
}

.story-copy {
  max-width: 480px;
}

.story-media {
  margin: 0;
}

/* circular image mask — signature Ginkgo move */
.story-media.circle img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  height: auto;
  object-fit: cover;
  width: 100%;
}

.signal-list {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 32px 0 0;
  padding: 18px 0 0;
}

.signal-list li {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 16px;
  font-weight: 600;
  gap: 13px;
  line-height: 1.4;
  margin: 14px 0;
}

.signal-list li::before {
  background: var(--brand-bright);
  border-radius: var(--radius-pill);
  content: "";
  flex: none;
  height: 8px;
  width: 8px;
}

/* ---------- Full-bleed image with overlapping frosted card ---------- */
.operations-section {
  position: relative;
}

.operations-media {
  margin: 0;
}

.operations-media img {
  height: clamp(560px, 78vh, 880px);
  object-fit: cover;
  width: 100%;
}

.operations-overlay {
  display: flex;
  justify-content: flex-end;
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 clamp(22px, 5vw, 64px);
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.glass-card {
  align-self: center;
  background: rgba(252, 252, 252, 0.82);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  border: 1px solid rgba(252, 252, 252, 0.6);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin: clamp(40px, 6vw, 96px) 0;
  padding: clamp(32px, 3.4vw, 52px);
  pointer-events: auto;
  width: min(560px, 100%);
}

.glass-card .section-label {
  color: var(--ink);
}

.glass-card h2 {
  margin-bottom: 12px;
}

.glass-card .glass-sub {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}

.glass-card p {
  font-size: 17px;
}

.glass-note {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 22px;
}

.glass-note h3 {
  margin-bottom: 8px;
}

.glass-note p {
  margin-bottom: 0;
}

/* ---------- Platform (copy + image) ---------- */
.platform-section {
  align-items: center;
  display: grid;
  gap: clamp(40px, 6vw, 90px);
  grid-template-columns: minmax(420px, 1fr) minmax(300px, 0.82fr);
  padding: clamp(78px, 10vw, 128px) clamp(22px, 5vw, 64px);
}

.platform-media {
  margin: 0;
}

.platform-media img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  height: clamp(440px, 56vw, 640px);
  object-fit: cover;
  width: 100%;
}

.platform-copy {
  max-width: 540px;
}

.loop {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 36px;
  padding-top: 20px;
}

.loop span {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Audience ---------- */
.audience-section {
  background: var(--canvas-2);
  padding: clamp(78px, 10vw, 128px) clamp(22px, 5vw, 64px);
}

.audience-section .rule-heading h2 {
  max-width: 18ch;
  white-space: normal;
}

.audience-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: var(--max);
}

.audience-list article {
  border-right: 1px solid var(--line);
  padding: 28px 26px 12px 0;
}

.audience-list article:last-child {
  border-right: 0;
}

/* ---------- Pilot (dark section + frosted form) ---------- */
.pilot-section {
  background: var(--soft-black);
  color: var(--soft-white);
  display: grid;
  gap: clamp(40px, 6vw, 90px);
  grid-template-columns: 0.9fr 1fr;
  padding: clamp(82px, 10vw, 140px) clamp(22px, 5vw, 64px);
}

.pilot-copy {
  justify-self: end;
  max-width: 520px;
}

.pilot-copy .section-label {
  color: var(--soft-white);
}

.pilot-copy h2 {
  color: var(--soft-white);
}

.pilot-copy p {
  color: var(--muted-dark);
}

.pilot-form {
  background: rgba(252, 252, 252, 0.06);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  border: 1px solid rgba(252, 252, 252, 0.14);
  border-radius: var(--radius-card);
  display: grid;
  gap: 22px;
  max-width: 580px;
  padding: clamp(28px, 4vw, 44px);
}

label {
  color: rgba(252, 252, 252, 0.6);
  display: grid;
  font-size: 12px;
  font-weight: 600;
  gap: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

label > span {
  margin-bottom: 4px;
}

/* underline-only inputs — Ginkgo style */
input,
textarea {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(252, 252, 252, 0.32);
  border-radius: 0;
  color: var(--soft-white);
  font: 400 16px/1.5 var(--font-body);
  letter-spacing: 0;
  outline: none;
  padding: 10px 2px;
  resize: vertical;
  text-transform: none;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: rgba(252, 252, 252, 0.4);
}

input:focus,
textarea:focus {
  border-bottom-color: var(--brand-bright);
}

.pilot-form .button {
  justify-self: start;
  margin-top: 8px;
}

.form-note {
  color: rgba(252, 252, 252, 0.52);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 0;
}

.form-note a {
  color: var(--soft-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  align-items: center;
  background: var(--soft-black);
  border-top: 1px solid var(--line-dark);
  color: rgba(252, 252, 252, 0.66);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 40px clamp(22px, 5vw, 64px);
}

.site-footer .brand {
  color: var(--soft-white);
}

.site-footer .brand-mark {
  background: var(--soft-white);
  color: var(--ink);
}

.site-footer p,
.site-footer a {
  color: rgba(252, 252, 252, 0.66);
  font-size: 14px;
  margin: 0;
}

.site-footer a:hover {
  color: var(--soft-white);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .button,
  .scroll-cue span,
  .site-header {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  .hero-content {
    padding-bottom: 96px;
  }

  .capability-row,
  .audience-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-row article:nth-child(2),
  .audience-list article:nth-child(2) {
    border-right: 0;
  }

  .image-story,
  .image-story.media-left,
  .platform-section,
  .pilot-section {
    grid-template-columns: 1fr;
  }

  .image-story.media-left .story-media {
    order: 0;
  }

  .story-copy,
  .pilot-copy {
    justify-self: start;
    max-width: 720px;
  }

  .story-media.circle img {
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-card);
    max-width: 560px;
  }

  /* overlay card stacks below image on small screens */
  .operations-overlay {
    position: static;
    padding: 0 clamp(22px, 5vw, 64px);
  }

  .glass-card {
    background: var(--soft-white);
    margin: -64px auto 0;
    width: min(620px, 100%);
  }

  .operations-media img {
    height: clamp(360px, 60vw, 520px);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 16px;
  }

  .header-cta {
    display: none;
  }

  .hero-content {
    padding-bottom: 110px;
    width: 100%;
  }

  .capability-row,
  .audience-list,
  .loop {
    grid-template-columns: 1fr;
  }

  .capability-row article,
  .audience-list article {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding-right: 0;
  }

  .capability-row article:last-child,
  .audience-list article:last-child {
    border-bottom: 0;
  }

  .rule-heading::after {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    justify-content: space-between;
    width: 100%;
  }

  .platform-media img {
    height: clamp(320px, 80vw, 460px);
  }

  .pilot-form {
    padding: 22px;
  }
}
