/* ==========================================================
   Ydun — site styles
   Brand colours taken from the website-story deck.
   ========================================================== */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --dark-green: #092D1A;   /* text, cards, wordmark */
  --powder-green: #CDE0CC; /* page background */
  --off-white: #F4F5F1;    /* text on dark */
  --lime: #7AC44E;         /* role labels on dark */
  --sage: #B9CEBA;         /* borders, quiet lines */

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--dark-green);
  background: var(--powder-green);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.015em; line-height: 1.12; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--dark-green); color: var(--off-white);
  padding: .5rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--powder-green) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--sage); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 40px; width: auto; }
.nav-links { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: .8125rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .25rem 0; border-bottom: 1.5px solid transparent;
  transition: border-color .2s ease;
}
.nav-links a:hover { border-bottom-color: var(--dark-green); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }

.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); margin-bottom: 1.75rem; max-width: 15ch; }
.hero .lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; margin-bottom: 1.25rem; max-width: 36ch; }
.hero-copy > p:not(.lead) { max-width: 52ch; color: color-mix(in srgb, var(--dark-green) 85%, var(--powder-green)); }

.pillars {
  list-style: none; padding: 0; margin: 2.25rem 0 2.5rem;
  display: flex; flex-wrap: wrap; gap: .25rem 0;
  font-weight: 700; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase;
}
.pillars li:not(:last-child)::after { content: "/"; margin: 0 .7em; font-weight: 400; }

.btn {
  display: inline-block; text-decoration: none;
  background: var(--dark-green); color: var(--off-white);
  padding: .9rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { background: #134a2d; transform: translateY(-1px); }

.hero-media { margin: 0; }
.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1.04;
  object-fit: cover;
  border-radius: calc(var(--radius) + 6px);
}

/* ---------- Team ---------- */
.team { padding: clamp(4rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--sage); }
.eyebrow {
  font-weight: 700; font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.team h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); max-width: 26ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.team-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 760px) { .team-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

.card {
  background: var(--dark-green); color: var(--off-white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.card h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: .6rem; }
.card h3 span { white-space: nowrap; }
.card .role {
  color: var(--lime);
  font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: .9rem;
}
.card p:last-child { color: color-mix(in srgb, var(--off-white) 88%, var(--dark-green)); }

/* ---------- Contact ---------- */
.contact { background: var(--dark-green); color: var(--off-white); padding: clamp(4rem, 9vw, 7rem) 0; }
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.contact p { font-size: 1.15rem; margin-bottom: 1.5rem; }
.contact-email {
  display: inline-block;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  padding-bottom: .15rem;
  transition: color .2s ease;
}
.contact-email:hover { color: var(--lime); }
.contact :focus-visible { outline-color: var(--lime); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-green); color: var(--off-white); border-top: 1px solid #1d4a31; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 1.75rem 0; font-size: .9rem;
}
.footer-logo { height: 24px; width: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--lime); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .team-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .team-grid .reveal:nth-child(3) { transition-delay: .16s; }
.js .team-grid .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
