/* ==========================================================================
   Be the Best Teammate — production stylesheet
   Rebuilds the design in the handoff prototype, without the inline styles
   and bespoke runtime the prototype used.
   ========================================================================== */

/* -------- Self-hosted fonts (Fontsource WOFF2, latin subset) -------------- */

@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-latin-300-normal.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-latin-300-italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* -------- Design tokens --------------------------------------------------- */

:root {
  /* Colour */
  --stone: #E9E8E1;
  --stone-deep: #E2E0D7;
  --card: #EDECE5;
  --img-placeholder: #DFDDD3;
  --ink: #1E2528;
  --ink-on-dark: #EDEBE3;
  --muted-on-dark: #C9C7BE;
  --faint-on-dark: #8E948F;
  --plum: #7A4250;
  --dusty-rose: #B78E98;
  --body-grey: #3C464A;
  --muted-grey: #5A6467;
  --btn-text: #F3F1EB;
  --rule-soft: rgba(30, 37, 40, 0.08);
  --rule-mid:  rgba(30, 37, 40, 0.18);
  --rule-firm: rgba(30, 37, 40, 0.28);

  /* Type */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1160px;
  --pad-x: 28px;
}

/* -------- Reset + baseline ----------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, blockquote, figure { margin: 0; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--plum);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 120ms ease;
}
a:hover { color: var(--ink); }

/* Visible focus ring on everything interactive — README explicitly asks for
   this ("the prototype does not have them and production must"). */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link (a11y). Hidden until keyboard-focused. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--ink-on-dark);
  text-decoration: none;
  z-index: 100;
}

/* -------- Header --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(233, 232, 225, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.header-link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--plum);
  padding-bottom: 2px;
}
.header-link:hover { color: var(--plum); }

/* -------- Section wrappers ---------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section-dark { background: var(--ink); color: var(--ink-on-dark); }
.section-stone-deep { background: var(--stone-deep); }

/* -------- Hero ---------------------------------------------------------- */

.hero {
  padding-top: clamp(56px, 10vw, 132px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.hero__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: flex-start;
}

.hero__text {
  flex: 1 1 480px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: clamp(14px, 2vw, 22px);
}

.hero__h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.hero__h1 em {
  font-style: italic;
  font-weight: 300;
}

.hero__tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.hero__body {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--body-grey);
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.hero__reassurance {
  font-size: 13.5px;
  color: var(--muted-grey);
}

.hero__photo {
  flex: 1 1 340px;
  min-width: 280px;
}
.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 36% 42%;
  background: var(--img-placeholder);
}

/* -------- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 2px;
  border: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.btn__arrow { font-size: 17px; line-height: 1; }

.btn-primary {
  background: var(--plum);
  color: var(--btn-text);
}
.btn-primary:hover { background: var(--ink); color: var(--btn-text); }

.btn-light {
  background: var(--ink-on-dark);
  color: var(--ink);
  padding: 17px 28px;
  font-size: 15.5px;
}
.btn-light:hover { background: var(--dusty-rose); color: var(--ink); }

/* -------- Dark statement panel ----------------------------------------- */

.statement {
  padding-top: clamp(64px, 9vw, 124px);
  padding-bottom: clamp(64px, 9vw, 124px);
}

.statement__lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.statement__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  max-width: 920px;
}

.statement__grid p {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted-on-dark);
}

.statement__aside {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--dusty-rose);
  margin-top: clamp(40px, 6vw, 72px);
}

/* -------- Pillars ("What we work on") --------------------------------- */

.pillars {
  padding-top: clamp(64px, 9vw, 124px);
  padding-bottom: clamp(64px, 9vw, 124px);
}

.pillars__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.pillars__label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(32px, 4vw, 56px);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
}
/* Top rules deepen left→right — this is deliberate, signals progression. */
.pillar--1 { border-top: 1px solid var(--rule-mid); }
.pillar--2 { border-top: 1px solid var(--rule-firm); }
.pillar--3 { border-top: 2px solid var(--plum); }

.pillar h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
}
.pillar__kicker {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
}
.pillar__body {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--body-grey);
}

/* -------- Pull quote --------------------------------------------------- */

.pullquote-section {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.pullquote {
  border-top: 1px solid var(--rule-mid);
  border-bottom: 1px solid var(--rule-mid);
  padding: clamp(40px, 6vw, 72px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.pullquote p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 19ch;
}
.pullquote cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
}

/* -------- Video + client testimonial ---------------------------------- */

.video-block {
  padding-top: 0;
  padding-bottom: clamp(64px, 9vw, 120px);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

/* Vimeo facade: shows a poster-ish frame with a play button, then swaps
   in the real iframe on click. Saves ~500KB on first paint. */
.video-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--img-placeholder);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: block;
  overflow: hidden;
}
.video-facade::before {
  /* Soft vignette so the dark play button reads against the placeholder. */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(30, 37, 40, 0.05) 0%,
    rgba(30, 37, 40, 0.18) 100%);
  transition: background 200ms ease;
}
.video-facade:hover::before {
  background: radial-gradient(ellipse at center,
    rgba(30, 37, 40, 0.1) 0%,
    rgba(30, 37, 40, 0.28) 100%);
}
.video-facade__label {
  position: absolute;
  bottom: clamp(16px, 3vw, 24px);
  left: clamp(16px, 3vw, 24px);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  z-index: 2;
}
.video-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 10vw, 88px);
  height: clamp(64px, 10vw, 88px);
  border-radius: 50%;
  background: var(--ink);
  color: var(--btn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease, transform 160ms ease;
  z-index: 2;
}
.video-facade__play svg {
  width: 32%;
  height: 32%;
  margin-left: 8%; /* optical centre — triangle looks off-centre otherwise */
}
.video-facade:hover .video-facade__play {
  background: var(--plum);
  transform: translate(-50%, -50%) scale(1.05);
}
.video-facade:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 4px;
}
.video-embed iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  display: block;
  background: var(--img-placeholder);
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial__label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
}
.testimonial__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.testimonial__attrib {
  font-size: 15px;
  line-height: 1.5;
  color: var(--body-grey);
}
.testimonial__role { color: var(--muted-grey); }

/* -------- How it works ------------------------------------------------- */

.how {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.how__h2 { margin-bottom: clamp(36px, 5vw, 56px); }

.how__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.format-card {
  background: var(--card);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.format-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.format-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body-grey);
}

.how__research {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(48px, 6vw, 80px);
  align-items: flex-start;
}
.how__research-copy {
  flex: 1 1 380px;
  max-width: 52ch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.how__research-copy p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--body-grey);
}
.stats {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__figure {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--plum);
}
.stat__caption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body-grey);
}

/* -------- Bios --------------------------------------------------------- */

.bios {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(24px, 4vw, 48px);
}
.bios__h2 { margin-bottom: clamp(36px, 5vw, 60px); }

.bios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 5vw, 72px);
}
.bio { display: flex; flex-direction: column; gap: 20px; }
.bio__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--img-placeholder);
}
.bio__photo--dave { object-position: 52% 30%; }
.bio__photo--simon { object-position: 22% 55%; }

.bio__text { display: flex; flex-direction: column; gap: 12px; }
.bio__text h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.bio__role {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
}
.bio__body {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--body-grey);
}

/* -------- Client logo marquee ----------------------------------------- */

.logos {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.logos__label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-grey);
  margin-bottom: clamp(28px, 4vw, 40px);
}

/* Viewport clips the strip and fades both edges. */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right,
    transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right,
    transparent, #000 8%, #000 92%, transparent);
}
/* Track carries the animation. The inter-logo gap lives INSIDE each group
   (plus a matching trailing padding-right) — putting the gap on the track
   would leave `translateX(-50%)` half a gap short and cause a visible jump
   every cycle. This is the seam fix. */
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(56px, 7vw, 96px);
  padding-right: clamp(56px, 7vw, 96px);
  flex: 0 0 auto;
}
.marquee__group img {
  width: auto;
  flex: 0 0 auto;
  display: block;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* Optically balanced logo heights — set per-logo, not uniform. */
.logo-police       { height: 58px; }
.logo-openuni      { height: 34px; }
.logo-ey           { height: 52px; }
.logo-rollsroyce   { height: 60px; }
.logo-audi         { height: 44px; }
.logo-vw           { height: 28px; }
.logo-mercedes     { height: 46px; }
.logo-iris-circle  { height: 66px; }

/* -------- Closing CTA -------------------------------------------------- */

.cta {
  padding-top: clamp(64px, 10vw, 140px);
  padding-bottom: clamp(64px, 10vw, 140px);
}
.cta__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 88px);
}
.cta__title {
  flex: 1 1 380px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 12ch;
}
.cta__body {
  flex: 1 1 380px;
  max-width: 52ch;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.cta__body p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted-on-dark);
}
.cta__signoff {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--faint-on-dark);
}
.cta__signoff a { color: var(--muted-on-dark); }
.cta__signoff a:hover { color: var(--ink-on-dark); }

/* -------- Footer ------------------------------------------------------- */

.site-footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted-grey);
}
