/* =========================================================================
   Rewild Atlantic — Public site
   Shared stylesheet. Palette + type drawn from the brand reference.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Spline+Sans+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand palette */
  --forest: #1a3d2b;
  --forest-deep: #10231a;
  --leaf: #4a7c5f;
  --leaf-soft: #6f9b81;
  --rhodo: #7b5ea7;
  --cream: #f5f0e8;
  --cream-deep: #ece3d4;
  --cliff: #fafaf7;
  --ocean: #4a4a4a;
  --ocean-soft: #6c6c66;

  --line: rgba(26, 61, 43, 0.16);
  --line-soft: rgba(26, 61, 43, 0.10);
  --line-dark: rgba(245, 240, 232, 0.18);

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --mono: 'Spline Sans Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --nav-h: 70px;
  --maxw: 1240px;
  --measure: 68ch;

  --shadow-soft: 0 1px 2px rgba(16,35,26,.04), 0 8px 30px rgba(16,35,26,.07);
  --shadow-lift: 0 2px 6px rgba(16,35,26,.06), 0 24px 60px rgba(16,35,26,.12);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ocean);
  background: var(--cream);
  line-height: 1.62;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--forest); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
strong { font-weight: 600; color: var(--forest); }
em { font-style: italic; }

/* ---------- shared atoms ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--leaf);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 26px; height: 1px;
  background: var(--leaf);
  display: inline-block;
}
.lede {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.5;
  color: var(--forest);
  font-weight: 400;
}
.muted { color: var(--ocean-soft); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 820px; }
.measure { max-width: var(--measure); }

/* ---------- top nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(250, 250, 247, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.transparent {
  background: transparent;
  border-bottom-color: transparent;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px rgba(16,35,26,.05); }
.nav__inner {
  width: 100%; max-width: 1340px; margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif);
  font-weight: 600; font-size: 17px; color: var(--forest);
  letter-spacing: 0.01em;
}
.brand__tag {
  font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--leaf); margin-top: 3px;
}
.nav.transparent .brand__name { color: var(--cream); }
.nav.transparent .brand__tag { color: rgba(245,240,232,.8); }

.navlinks { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: nowrap; }
.navlinks a {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.04em;
  text-decoration: none; color: var(--forest);
  padding: 8px 10px; border-radius: 6px;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.navlinks a:hover { background: rgba(26,61,43,.07); }
.navlinks a.active { color: var(--leaf); font-weight: 600; }
.nav.transparent .navlinks a { color: var(--cream); }
.nav.transparent .navlinks a:hover { background: rgba(245,240,232,.14); }

.navtoggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.navtoggle span { display: block; width: 24px; height: 2px; background: var(--forest); margin: 5px 0; transition: .25s; }
.nav.transparent .navtoggle span { background: var(--cream); }

@media (max-width: 1080px) {
  .navtoggle { display: block; }
  .navlinks {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cliff);
    border-bottom: 1px solid var(--line);
    padding: 10px 18px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .25s ease;
    box-shadow: var(--shadow-lift);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .navlinks.open { transform: none; opacity: 1; pointer-events: auto; }
  .navlinks a { padding: 13px 8px; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
  .nav.transparent .navlinks a { color: var(--forest); }
}

/* ---------- video frame ---------- */
.videoframe {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: var(--forest-deep);
  box-shadow: var(--shadow-lift);
}
.videoframe.tall { aspect-ratio: 4 / 5; }
.videoframe.wide { aspect-ratio: 21 / 9; }
.videoframe video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.videoframe.is-loaded video { opacity: 1; }
.videoframe__ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px;
  color: rgba(245,240,232,.62);
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(245,240,232,.05) 22px 24px),
    linear-gradient(160deg, #173627, #0e2018);
}
.videoframe__ph svg { width: 30px; height: 30px; stroke: rgba(245,240,232,.45); }
.videoframe__ph .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.videoframe__ph .path { font-family: var(--mono); font-size: 11.5px; color: rgba(245,240,232,.4); letter-spacing: .02em; }
.videoframe.is-loaded .videoframe__ph { opacity: 0; }
.videoframe__badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); background: rgba(16,35,26,.55);
  padding: 4px 9px; border-radius: 100px; backdrop-filter: blur(6px);
  border: 1px solid rgba(245,240,232,.18);
}
.videoframe__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 40px 16px 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--cream);
  background: linear-gradient(transparent, rgba(16,35,26,.7));
  opacity: 0; transition: opacity .4s ease;
}
.videoframe.is-loaded .videoframe__cap { opacity: 1; }

/* ---------- log infographic figure ---------- */
.logfig {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(245,240,232,.16);
  box-shadow: var(--shadow-lift);
  background: #f3ead9;
}
.logfig img { display: block; width: 100%; height: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 100px;
  border: 1px solid var(--forest);
  background: var(--forest); color: var(--cream);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--forest-deep); }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: rgba(26,61,43,.06); }
.btn--light { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn--light:hover { background: #fff; }
.btn .arw { transition: transform .2s ease; }
.btn:hover .arw { transform: translateX(3px); }

/* ---------- footer ---------- */
.footer {
  background: var(--forest-deep);
  color: rgba(245,240,232,.72);
  padding: 72px 0 40px;
  font-size: 15.5px;
}
.footer a { color: rgba(245,240,232,.72); text-decoration: none; }
.footer a:hover { color: var(--cream); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.footer__brand img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.footer__brand h3 { color: var(--cream); font-size: 22px; margin-bottom: 4px; }
.footer__brand .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf-soft); }
.footer__brand p { max-width: 36ch; margin-top: 14px; font-size: 14.5px; }
.footer__col h4 { color: var(--cream); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 9px; font-size: 15px; }
.footer__rule { height: 1px; background: var(--line-dark); margin: 48px 0 22px; }
.footer__meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: rgba(245,240,232,.5); text-transform: uppercase; }

@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- generic sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section--cream { background: var(--cream); }
.section--cliff { background: var(--cliff); }
.section--dark { background: var(--forest-deep); color: rgba(245,240,232,.82); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark .eyebrow { color: var(--leaf-soft); }
.section--dark .eyebrow::before, .section--dark .eyebrow::after { background: var(--leaf-soft); }
.section--dark .lede { color: var(--cream); }
.section--green { background: var(--forest); color: rgba(245,240,232,.85); }
.section--green h1, .section--green h2 { color: var(--cream); }
.section--green .eyebrow { color: var(--leaf-soft); }
.section--green .eyebrow::before, .section--green .eyebrow::after { background: var(--leaf-soft); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- data / figures ---------- */
.figtable { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.figtable th, .figtable td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.figtable thead th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--leaf); font-weight: 600; border-bottom: 1.5px solid var(--forest);
}
.figtable tbody tr:hover { background: rgba(26,61,43,.03); }
.figtable td.num, .figtable th.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.figcap { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ocean-soft); margin-top: 14px; }

/* stat row */
.stats { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat__num { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5vw, 58px); color: var(--forest); line-height: 1; letter-spacing: -.02em; }
.section--dark .stat__num, .section--green .stat__num { color: var(--cream); }
.stat__lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); margin-top: 12px; }
.section--dark .stat__lbl, .section--green .stat__lbl { color: var(--leaf-soft); }
.stat__note { font-size: 14px; color: var(--ocean-soft); margin-top: 8px; max-width: 26ch; }
.section--dark .stat__note { color: rgba(245,240,232,.6); }

/* cards */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--cliff); border: 1px solid var(--line);
  border-radius: 6px; padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--leaf); }
.card__k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); margin-bottom: 14px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { font-size: 15.5px; margin: 0; color: var(--ocean); }
.card--dark { background: rgba(245,240,232,.04); border-color: var(--line-dark); }
.card--dark h3 { color: var(--cream); }
.card--dark p { color: rgba(245,240,232,.7); }

/* prose */
.prose p { max-width: var(--measure); }
.prose h3 { font-size: clamp(24px, 3vw, 32px); margin: 1.6em 0 .5em; }
.prose h3:first-child { margin-top: 0; }
.prose ul { max-width: var(--measure); padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }

/* pull quote */
.pull {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(24px, 3.4vw, 38px); line-height: 1.32; color: var(--forest);
  max-width: 22ch; letter-spacing: -.01em;
}
.section--dark .pull, .section--green .pull { color: var(--cream); }

/* tag chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  padding: 7px 13px; border-radius: 100px; border: 1px solid var(--line);
  color: var(--forest); background: rgba(26,61,43,.03);
}
.chip--rhodo { color: var(--rhodo); border-color: rgba(123,94,167,.4); background: rgba(123,94,167,.06); }

/* divider mark */
.seal-rule { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--leaf); }
.seal-rule::before, .seal-rule::after { content:""; height:1px; flex:1; max-width:120px; background: var(--line); }
.seal-rule svg { width: 22px; height: 22px; }

/* ---------- page header (sub-pages) ---------- */
.pagehead {
  padding: calc(var(--nav-h) + 70px) 0 0;
  background: var(--forest-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.pagehead__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-bottom: 70px; }
.pagehead__idx { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--leaf-soft); margin-bottom: 22px; }
.pagehead h1 { color: var(--cream); font-size: clamp(40px, 6vw, 76px); font-weight: 600; letter-spacing: -.025em; margin-bottom: 24px; }
.pagehead__lede { font-size: clamp(18px, 2.1vw, 23px); line-height: 1.5; color: rgba(245,240,232,.82); max-width: 46ch; }
.pagehead .videoframe { box-shadow: 0 30px 70px rgba(0,0,0,.45); }
@media (max-width: 900px) {
  .pagehead__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* sub-page section pacing */
.block { padding: clamp(64px, 8vw, 110px) 0; }
.block--tight { padding: clamp(44px, 6vw, 80px) 0; }

/* two-col content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--media-first .split__media { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split--media-first .split__media { order: 0; } }

/* next-page link */
.nextlink {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-decoration: none; padding: 38px 0; border-top: 1px solid var(--line);
  transition: padding .2s ease;
}
.nextlink:hover { padding-left: 8px; }
.nextlink__k { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); margin-bottom: 8px; }
.nextlink__t { font-family: var(--serif); font-size: clamp(26px, 4vw, 42px); font-weight: 600; color: var(--forest); }
.nextlink__arw { font-size: 32px; color: var(--leaf); transition: transform .2s ease; }
.nextlink:hover .nextlink__arw { transform: translateX(8px); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 22px; }
}
