/* ──────────────────────────────────────────────────────────────────────────
   Rob Pike — site theme
   Light editorial ground with hard black/orange counterpoints. Safety orange is
   pulled from hi-vis and emergency services — it reads as "workplace safety"
   before a single word is read, and it is the furthest thing from beige/gold.
   ────────────────────────────────────────────────────────────────────────── */
/* base.css is linked directly in inc/head.php so it can be cache-busted too. */

:root {
  --bg:          #FFFFFF;
  --fg:          #111214;
  --muted:       #5C6067;
  --card:        #F6F6F4;
  --nav-bg:      rgba(255, 255, 255, .88);
  --foot-bg:     #111214;
  --input-bg:    #FFFFFF;
  --video-bg:    rgba(17, 18, 20, .72);

  /* Safety orange, darkened to clear WCAG AA (5.13:1 on white, 4.74:1 on --card)
     for body-sized text and button fills. The vivid original is kept as
     --accent-bright and used ONLY on display-size type, where AA needs 3:1. */
  --accent:        #C93A12;
  --accent-hi:     #A32B0C;
  --accent-bright: #E8481C;
  --accent-ink:    #FFFFFF;   /* 5.13:1 on --accent */
  --focus:       #111214;
  --err:         #C0261B;
  --ok:          #14804A;

  --rule:        rgba(17, 18, 20, .12);
  --rule-strong: rgba(17, 18, 20, .30);

  --font-head:   "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:   "Inter", system-ui, sans-serif;
  --tracking-h:  -.035em;
  --radius:      2px;
}

/* ── Hero: split type / media ───────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1fr; padding: 0 !important; align-items: stretch; }
@media (min-width: 1000px) { .hero { grid-template-columns: 48fr 52fr; min-height: 88vh; } }
.hero__type { display: flex; flex-direction: column; justify-content: center;
              padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem); }
.hero__eyebrow { font-size: .82rem; text-transform: uppercase; letter-spacing: .28em;
                 font-weight: 700; color: var(--accent); margin-bottom: 1.4rem; }
.hero__h1 { font-size: clamp(3rem, 7.5vw, 6rem); font-weight: 800; letter-spacing: -.045em;
            line-height: .92; margin-bottom: .4em; }
.hero__h1 em { font-style: normal; color: var(--accent-bright); } /* display size — 3:1 applies */
.hero__lede { font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 32rem; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__tags { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.5rem;
              padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.hero__tags li { font-size: .84rem; text-transform: uppercase; letter-spacing: .14em;
                 font-weight: 700; color: var(--muted); }
.hero__media { position: relative; min-height: 60vw; background: #111214; }
@media (min-width: 1000px) { .hero__media { min-height: 0; } }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__video { position: absolute; left: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); }
.videoslot { color: #fff; border-color: rgba(255,255,255,.4); }
.videoslot__txt em { color: rgba(255,255,255,.72); }

/* ── Kickers ────────────────────────────────────────────────────────────── */
.sec__kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .24em;
               font-weight: 700; color: var(--accent); margin-bottom: .9rem; }

/* ── Story ──────────────────────────────────────────────────────────────── */
.story__grid { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 950px) { .story__grid { grid-template-columns: 7fr 5fr; } }
.story__media { display: grid; gap: 1rem; }
.story__media img { border-radius: var(--radius); }
.story .creds { margin-top: 2.5rem; }
.creds li { background: var(--card); }

/* ── Credo: full-bleed black break ──────────────────────────────────────── */
.credo { background: #111214; color: #fff; padding: clamp(4rem, 8vw, 6.5rem) 0 !important; }
.credo blockquote { margin: 0; max-width: 54rem; font-family: var(--font-head); font-weight: 700;
  letter-spacing: -.03em; font-size: clamp(1.5rem, 3.6vw, 2.7rem); line-height: 1.15; text-wrap: balance; }
.credo blockquote::before { content: ""; display: block; width: 4rem; height: 5px;
  background: var(--accent); margin-bottom: 1.8rem; }

/* ── Topics: editorial rows ─────────────────────────────────────────────── */
.topics { background: var(--card); }
.topics__list { counter-reset: none; }
.topicrow { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.5rem;
            padding: clamp(1.6rem, 3vw, 2.4rem) 0; border-top: 1px solid var(--rule-strong); }
@media (min-width: 900px) { .topicrow { grid-template-columns: 4rem 1fr 15rem; align-items: baseline; gap: 2rem; } }
.topicrow:last-child { border-bottom: 1px solid var(--rule-strong); }
.topicrow__n { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.topicrow__t { font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: -.02em; margin-bottom: .4rem; }
.topicrow__b { color: var(--muted); margin: 0; max-width: 46rem; }
.topicrow__for { grid-column: 2 / -1; margin: .6rem 0 0; font-size: .82rem; text-transform: uppercase;
                 letter-spacing: .1em; font-weight: 700; color: var(--muted); }
@media (min-width: 900px) { .topicrow__for { grid-column: 3; margin: 0; text-align: right; } }

/* ── Enquiry ────────────────────────────────────────────────────────────── */
.enquiry { background: var(--card); }
.rp-foot { color: #fff; }
.rp-foot p { color: rgba(255,255,255,.6); }
/* On the dark footer the darkened orange drops to 3.7:1 — the brighter one
   reads at 4.8:1 there, so the wordmark flips back to it. */
.rp-foot .rp-wordmark span { color: var(--accent-bright); }

/* Location cue in the hero eyebrow — muted separator so "Keynote Speaker" still
   reads as the primary label. */
.hero__eyebrow-sep { opacity: .5; margin: 0 .35rem; }

/* ── Testimonial ────────────────────────────────────────────────────────────
   Sits immediately before the enquiry form: the last thing an organiser reads
   before deciding whether to fill it in. Dark ground so it reads as a distinct
   beat between the light "Ideal for" grid and the form below it. */
.proof { background: #111214; color: #fff; }
.proof .sec__kicker { color: var(--accent-bright); }

.quote { margin: 0; max-width: 60rem; }
.quote__lead {
  margin: 0 0 1.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -.025em;
  font-size: clamp(1.45rem, 3.4vw, 2.5rem);
  line-height: 1.18;
  text-wrap: balance;
}
.quote__lead::before { content: "\201C"; }
.quote__lead::after  { content: "\201D"; }

.quote__body {
  margin: 0 0 2rem;
  max-width: 46rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .74);   /* 9.4:1 on #111214 */
}

.quote__by {
  display: grid;
  gap: .15rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.quote__name { font-weight: 700; font-size: 1.05rem; }
.quote__role { color: rgba(255, 255, 255, .72); font-size: .95rem; }
.quote__org  { font-weight: 700; color: var(--accent-bright); font-size: .95rem; }
.quote__ctx  {
  margin-top: .5rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .55);
}

/* ── Logo ───────────────────────────────────────────────────────────────────
   Client's own lockup. The supplied file was a CMYK print JPEG; it is converted
   to RGB with the white knocked out to alpha, so it sits cleanly on the
   translucent nav instead of showing as a white block when content scrolls
   behind it. */
.rp-logo { display: block; line-height: 0; }
.rp-logo img { height: 42px; width: auto; display: block; }
@media (max-width: 680px) { .rp-logo img { height: 34px; } }

.rp-logo__foot { height: 37px; width: auto; display: block; }

/* ── Video ──────────────────────────────────────────────────────────────────
   Click-to-play facade. The poster is served from our own domain so nothing is
   requested from YouTube until the visitor presses play. */
.video { background: var(--card); }

.videoembed {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 68rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111214;
  box-shadow: 0 24px 60px -32px rgba(17, 18, 20, .6);
}
.videoembed__btn {
  display: block; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
}
.videoembed__btn img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease, ease), filter .3s ease;
}
.videoembed__btn:hover img,
.videoembed__btn:focus-visible img { transform: scale(1.02); filter: brightness(.88); }

.videoembed__play {
  position: absolute; inset: 0; margin: auto;
  width: clamp(3.6rem, 7vw, 5.2rem); height: clamp(3.6rem, 7vw, 5.2rem);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: clamp(1.1rem, 2vw, 1.5rem); padding-left: .18em;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5);
  transition: transform .2s ease, background .2s ease;
}
.videoembed__btn:hover .videoembed__play { transform: scale(1.08); background: var(--accent-hi); }

.videoembed__frame { width: 100%; height: 100%; border: 0; display: block; }

.videoembed__meta {
  display: grid; gap: .3rem;
  margin: 1.2rem 0 0; max-width: 68rem;
  font-size: .95rem; color: var(--muted);
}
.videoembed__meta strong { color: var(--fg); font-size: 1.02rem; }
.videoembed__meta a { color: var(--accent); font-weight: 600; }

/* ── Interview (supporting long-form) ───────────────────────────────────────
   Deliberately quieter than the showreel slot: side-by-side and half the width,
   so it reads as depth for someone already interested rather than the hook. */
.interview { background: var(--card); }
.interview__grid {
  display: grid; gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 900px) { .interview__grid { grid-template-columns: 1fr 1fr; } }
.rp-h3--lg {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem); letter-spacing: -.02em;
  line-height: 1.2; margin: 0 0 .7rem;
}
.interview__copy p { color: var(--muted); margin-bottom: .9rem; }
.interview__meta { font-size: .9rem; margin: 0; }
.interview__meta a { color: var(--accent); font-weight: 600; }
.videoembed--sm { box-shadow: 0 16px 40px -26px rgba(17, 18, 20, .55); }
.videoembed--sm .videoembed__play { width: clamp(3rem, 5vw, 3.8rem); height: clamp(3rem, 5vw, 3.8rem); }

/* ── Stacksy credit ─────────────────────────────────────────────────────────
   House pattern, matching the other client sites: "Built by Stacksy" under the
   copyright line, linking out to stacksy.com.au. */
.rp-foot__base { line-height: 1.7; }
.stacksy-credit {
  color: rgba(255, 255, 255, .88);        /* 15.1:1 on the footer ground */
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  transition: border-color .2s ease, color .2s ease;
}
.stacksy-credit:hover { color: #fff; border-bottom-color: var(--accent-bright); }

/* Secondary testimonials — quieter cards beneath the featured quote. */
.quotes {
  display: grid; gap: 1.5rem; margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.qcard {
  margin: 0; padding: 1.7rem 1.8rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.qcard__q {
  margin: 0 0 1.3rem; flex: 1;
  font-size: 1.08rem; line-height: 1.55; color: #fff;
}
.qcard__q::before { content: "\201C"; }
.qcard__q::after  { content: "\201D"; }
.qcard__by { display: grid; gap: .1rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.14); }
.qcard__name { font-weight: 700; font-size: .98rem; }
.qcard__role { color: rgba(255,255,255,.72); font-size: .9rem; }
/* The card's 5% white overlay lifts the ground enough that --accent-bright drops
   to 4.27:1 here. This step clears AA on the card (5.12:1) and on the section. */
.qcard__org  { font-weight: 700; color: #F0603A; font-size: .9rem; }
.qcard__ctx  {
  margin-top: .4rem; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.55);
}

/* ── Showreel player ────────────────────────────────────────────────────────
   Self-hosted. preload="none" means nothing but the poster is fetched until the
   visitor presses play. */
.videoplayer {
  display: block; width: 100%; max-width: 68rem; height: auto;
  aspect-ratio: 16 / 9; background: #111214;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -32px rgba(17, 18, 20, .6);
}
.videoplayer__fallback { padding: 2rem; color: var(--muted); }
.videoplayer__fallback a { color: var(--accent); font-weight: 600; }
