/* Layout: one language, three palettes. The actor is CVGG's navy (#002A38), the ecologist is green, Trees A Crowd is peach and orange. The home page is a full-height binary split; each inner page has a cream header and footer around solid colour bands in its own palette. Type: Cormorant Garamond for display (italic for the actor, upright for the ecologist), Manrope for text. */
/* Fonts, self-hosted (SIL Open Font License; see fonts/LICENSE-*.txt) */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Encode Sans"; src: url("fonts/encode-sans-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 75% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  /* Actor: CVGG navy */
  --blue-deep: #002a38;
  --blue: #12506a;
  --blue-pale: #a9c8d3;
  --blue-mist: #edf3f5;
  /* Ecologist: green */
  --green-deep: #0d3a23;
  --green: #006b37;
  --green-pale: #b5e0c3;
  --green-mist: #eef6f0;
  /* Trees A Crowd: orange */
  --orange: #f16522;
  --peach: #ffc688;
  --brown: #5d4a36;
  /* Shared */
  --cream: #fcf8f5;
  --ink: #1f2a2e;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.page-actor { background: var(--blue-deep); }
.page-ecologist { background: var(--green-mist); }

/* Header, the same on every inner page */
.site-header { background: var(--cream); color: var(--ink); padding-top: env(safe-area-inset-top, 0px); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 18px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 1.75rem; line-height: 1; color: var(--ink); text-decoration: none; }
.wordmark .side { font-family: var(--sans); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.page-actor .wordmark .side { color: var(--blue); }
.page-ecologist .wordmark .side { color: var(--green); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.site-nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none; }
.page-actor .site-nav a:hover { color: var(--blue); }
.page-ecologist .site-nav a:hover { color: var(--green); }
.site-nav .switch { border: 1.5px solid currentColor; border-radius: 40px; padding: 5px 16px; }

/* Bands: each sets its own palette */
.band { padding-block: clamp(56px, 8vw, 104px); background: var(--bg); color: var(--fg); }
.band-blue-deep  { --bg: var(--blue-deep);  --fg: #e3ecef;          --head: var(--cream);      --accent: var(--blue-pale);  --muted: #9fb6bf; --rule: #1e4a5a; --btn-bg: var(--cream);      --btn-fg: var(--blue-deep); }
.band-blue       { --bg: var(--blue);       --fg: #ffffff;          --head: var(--cream);      --accent: var(--blue-pale);  --muted: #cfe0e6; --rule: #2f6880; --btn-bg: var(--cream);      --btn-fg: var(--blue-deep); }
.band-blue-mist  { --bg: var(--blue-mist);  --fg: var(--blue-deep); --head: var(--blue-deep);  --accent: var(--blue);       --muted: #4d6670; --rule: #cfdde2; --btn-bg: var(--blue-deep);  --btn-fg: var(--cream); }
.band-green-deep { --bg: var(--green-deep); --fg: #e6f1e9;          --head: var(--cream);      --accent: var(--green-pale); --muted: #a9c4b2; --rule: #24503a; --btn-bg: var(--cream);      --btn-fg: var(--green-deep); }
.band-green      { --bg: var(--green);      --fg: #ffffff;          --head: var(--cream);      --accent: var(--green-pale); --muted: #d4ebdc; --rule: #2c8556; --btn-bg: var(--cream);      --btn-fg: var(--green-deep); }
.band-green-mist { --bg: var(--green-mist); --fg: var(--green-deep); --head: var(--green-deep); --accent: var(--green);     --muted: #4b6655; --rule: #d0e4d6; --btn-bg: var(--green-deep); --btn-fg: var(--cream); }
.band-tac        { --bg: var(--peach);      --fg: var(--brown);     --head: var(--brown);      --accent: var(--brown);      --muted: #6b4f30; --rule: #e1a96c; --btn-bg: var(--orange);     --btn-fg: #2a1609; }
.band h2, .band h3 { color: var(--head); }
.band a:not(.btn) { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.band a:not(.btn):hover { color: var(--accent); }

/* Display type: the actor speaks in italic, the ecologist upright */
h1 { font-size: clamp(3.4rem, 7.5vw, 5.8rem); letter-spacing: -0.01em; color: var(--head); }
h2 { font-size: clamp(2.6rem, 5.4vw, 3.8rem); letter-spacing: -0.005em; }
h3 { font-size: 1.6rem; }
.page-actor h1, .page-actor h2, .page-actor .display { font-style: italic; font-weight: 500; }
.page-ecologist h1, .page-ecologist h2, .page-ecologist .display { font-style: normal; font-weight: 600; }

.page-ecologist .hero h1 { font-size: clamp(3rem, 5.4vw, 4.5rem); }
.postnom { font-size: 0.55em; letter-spacing: 0.06em; white-space: nowrap; }
.label { font-family: var(--sans); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.lede { font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 2.1vw, 1.6rem); line-height: 1.4; max-width: 38ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 62ch; }

/* Buttons: Trees A Crowd's pill, set in Manrope */
.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; line-height: 1.2; padding: 12px 26px; border-radius: 40px; border: 1.5px solid transparent; text-decoration: none; text-align: center; transition: transform 0.15s ease; }
.btn:hover { transform: scale(1.04); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-ghost { border-color: currentColor; color: var(--head); background: transparent; }
.btn-tac { background: var(--orange); color: #2a1609; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .copy { display: grid; gap: 22px; min-width: 0; }
.hero figure { margin: 0; display: grid; gap: 10px; }
picture { display: block; }
.hero img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
.hero figcaption { font-size: 0.85rem; color: var(--muted); }
.hero-text { display: grid; gap: 24px; justify-items: start; }
.hero-text h1 { font-size: clamp(4rem, 10vw, 7.5rem); line-height: 0.95; }
.hero-text .lede { max-width: 44ch; }

/* Acting hero: copy beside headshot, showreel full width beneath */
.hero-actor { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(28px, 5vw, 64px); align-items: center; }
.hero-actor .copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.hero-actor h1 { font-size: clamp(3.6rem, 7vw, 6rem); line-height: 0.95; }
.hero-actor .lede { max-width: 44ch; }
.headshot { margin: 0; min-width: 0; }
.headshot img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.hero-actor .reel { grid-column: 1 / -1; margin-top: 24px; }
@media (max-width: 820px) {
  .hero-actor { grid-template-columns: minmax(0, 1fr); }
  .hero-actor .headshot { order: -1; max-width: 420px; }
}

/* Showreel */
.reel { margin: 24px 0 0; width: 100%; justify-self: stretch; display: grid; gap: 10px; scroll-margin-top: 24px; }
.reel-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel figcaption { font-size: 0.85rem; color: var(--muted); }


/* One picture per credit group */
.credit-photo { margin: 0 0 10px; display: grid; gap: 10px; }
.credit-photo img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); }
.credit-photo figcaption { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 600px) { .credit-photo img { aspect-ratio: 3 / 2; } }

/* Ledger: credits, roles, writing */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid currentColor; }
.ledger li { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: 2px 20px; padding-block: 15px; border-bottom: 1px solid var(--rule); }
.ledger .yr { font-weight: 700; font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.ledger .ti { display: grid; gap: 2px; min-width: 0; }
.ledger .ti b { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.ledger .ti b .tag { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; }
.ledger .ro { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.ledger .co { grid-column: 2; color: var(--muted); font-size: 0.9rem; line-height: 1.5; min-width: 0; }
.ledger .ti .co { grid-column: auto; }
@media (min-width: 820px) {
  .ledger.cols li { grid-template-columns: 5.6rem minmax(0, 1.2fr) minmax(0, 1fr); }
  .ledger.cols li > .co { grid-column: 3; padding-top: 4px; }
}

.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.jump a { font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 6px 18px; border-radius: 40px; border: 1.5px solid var(--rule); color: inherit; }
.jump a:hover { border-color: var(--accent); }
.credit-group { display: grid; gap: 16px; scroll-margin-top: 24px; }
.credit-group + .credit-group { margin-top: clamp(44px, 6vw, 68px); }

.feature { display: grid; gap: 16px; max-width: 62ch; }
.feature .display { font-family: var(--serif); font-size: clamp(3rem, 7vw, 4.8rem); line-height: 1; color: var(--head); }

/* A single photo beside a column of lists */
.side-photo { margin: 0; display: grid; gap: 10px; min-width: 0; }
.side-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.side-photo figcaption { font-size: 0.85rem; color: var(--muted); }
.side-photo.wide img { aspect-ratio: 3 / 2; }
.media-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.media-row + .media-row { margin-top: clamp(56px, 8vw, 96px); }
@media (max-width: 820px) {
  .media-row { grid-template-columns: minmax(0, 1fr); }
  .media-row figure { order: -1; }
}
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.stack { display: grid; gap: 20px; min-width: 0; }

.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 44px; margin: 0; }
.details div { display: grid; gap: 6px; padding-top: 14px; border-top: 1.5px solid currentColor; }
.details dt { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.details dd { margin: 0; }

/* Trees A Crowd: press quotes and accolades */
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.quotes blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.22; }
.quotes cite { display: block; margin-top: 6px; font-style: normal; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.accolades { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1.5px solid currentColor; display: grid; gap: 4px; font-size: 0.92rem; font-weight: 600; }

.hooks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hooks li { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.2; }


/* Footer, the same on every inner page */
.site-footer { background: var(--cream); color: var(--ink); padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .social { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .social a { font-weight: 500; }
.site-footer small { font-size: 0.85rem; }

/* Home: the binary landing */
html.home, html.home body { height: 100%; }
.landing { position: relative; display: flex; min-height: 100%; }
.choice { position: relative; flex: 1 1 33.333%; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(110px, 16vh, 170px) clamp(20px, 4vw, 72px); text-decoration: none; color: var(--cream); transition: flex-grow 0.5s ease, background-color 0.5s ease; min-width: 0; }
.choice-actor { background: var(--blue-deep); }
.choice-ecologist { background: var(--green-deep); }
.choice-podcaster { background: #6b2f12; }
.choice .word { font-family: var(--serif); font-size: clamp(3rem, 5.2vw, 6rem); line-height: 0.9; margin: 0; }
.choice-podcaster .word { font-family: "Encode Sans", var(--sans); font-style: normal; font-weight: 300; font-stretch: 112%; font-size: clamp(2.5rem, 4.3vw, 5rem); letter-spacing: -0.01em; color: var(--peach); } /* after .choice .word so it wins */
.choice-actor .word { font-style: italic; font-weight: 500; color: var(--blue-pale); }
.choice-ecologist .word { font-style: normal; font-weight: 600; color: var(--green-pale); }
.choice p { max-width: 34ch; font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 1.6; }
.choice:focus-visible { outline: 2px solid var(--cream); outline-offset: -10px; border-radius: 0; }
.landing-name { position: absolute; z-index: 2; top: clamp(28px, 6vh, 56px); left: 50%; transform: translateX(-50%); margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: 0.01em; color: var(--cream); white-space: nowrap; pointer-events: none; }
@media (hover: hover) and (min-width: 760px) {
  .landing:hover .choice { flex-grow: 0.94; }
  .landing .choice:hover { flex-grow: 1.12; }
  .choice-actor:hover { background: #00394c; }
  .choice-ecologist:hover { background: #124a2e; }
  .choice-podcaster:hover { background: #7d3816; }
}
@media (max-width: 759px) {
  .landing { flex-direction: column; }
  .choice, .choice-ecologist { flex: 1 1 0; justify-content: center; padding: 32px 24px; gap: 14px; }
  .choice-actor { padding-top: 104px; }
  .choice .word { font-size: clamp(3rem, 13vw, 3.6rem); }
  .choice-podcaster .word { font-size: clamp(2.5rem, 11vw, 3rem); }
  .choice p { font-size: 0.98rem; }
}

@media (max-width: 820px) {
  .hero, .split-2 { grid-template-columns: minmax(0, 1fr); }
  .hero figure { order: -1; }
  .details { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .ledger li { grid-template-columns: 4.6rem minmax(0, 1fr); gap: 2px 14px; }
  .btn { padding: 12px 26px; }
}
/* A video inside a ledger row (Writing and features: the CITES film). Under the title on
   laptops, the same width as the title column; full width on phones. */
.ledger li.has-video .reel { grid-column: 1 / -1; margin: 10px 0 4px; }
@media (min-width: 820px) {
  .ledger.cols li.has-video .reel { grid-column: 2; grid-row: 2; }
}
@media (min-width: 820px) and (max-width: 999px) {
  .ledger.cols li.has-video .reel { grid-column: 2 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .choice { transition: none; }
  .btn:hover { transform: none; }
}
