/* CSR Creatives — inner pages (Work, About, projects). Builds on site.css tokens. */

/* ---------- Page intro (Work) ---------- */
.page-intro { text-align: center; padding: clamp(48px, 5.5vw, 80px) var(--gutter) clamp(80px, 10.5vw, 150px); }
.page-intro h1 { font-family: var(--serif); font-weight: 400; font-size: var(--t-talk); line-height: 1.2; }
.page-intro p { max-width: 730px; margin: clamp(24px, 3vw, 44px) auto 0; line-height: 1.3; }

/* ---------- Work list ---------- */
.work-list { max-width: 1426px; margin: 0 auto; padding: 0 clamp(20px, 3.1vw, 45px) clamp(80px, 9vw, 140px); }
.work-list ol { list-style: none; margin: 0; padding: 0; }
.work-row { position: relative; border-bottom: 1px solid var(--ink); }
.work-row a {
  display: grid; grid-template-columns: clamp(48px, 4.6vw, 66px) 1fr; align-items: start;
  padding: 13px 0 14px; text-decoration: none; color: var(--navy); min-height: 108px;
  transition: background-color .2s ease;
}
.work-row__num { font-family: var(--serif); font-size: clamp(32px, 3.3vw, 48px); line-height: 1; padding-top: 4px; }
.work-row__title { display: block; font-size: clamp(24px, 2.5vw, 36px); font-weight: 300; line-height: 1.15; transition: transform .25s ease; }
.work-row__client { display: block; margin-top: 10px; font-size: clamp(15px, 1.56vw, 22.5px); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.work-row__preview {
  position: absolute; right: 41px; bottom: -12px; z-index: 2; width: clamp(280px, 32vw, 456px); height: auto;
  aspect-ratio: 456 / 241; object-fit: cover; opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity .25s ease, transform .25s ease; pointer-events: none; box-shadow: 0 18px 40px rgba(15, 47, 79, .18);
}
@media (hover: hover) and (min-width: 1000px) {
  .work-row a:hover, .work-row a:focus-visible { background: #f4f4f4; }
  .work-row a:hover .work-row__title, .work-row a:focus-visible .work-row__title { transform: translateX(10px); }
  .work-row a:hover .work-row__preview, .work-row a:focus-visible .work-row__preview { opacity: 1; transform: none; }
}
@media (max-width: 999px), (hover: none) {
  .work-row a { grid-template-columns: 40px 1fr 112px; gap: 0 14px; align-items: center; min-height: 0; padding: 18px 0; }
  .work-row__preview { position: static; width: 112px; opacity: 1; transform: none; box-shadow: none; }
}

/* ---------- About ---------- */
.about-hero { max-width: 1426px; margin: 0 auto; padding: clamp(24px, 3.4vw, 50px) clamp(20px, 3.1vw, 45px) 0; }
.about-hero__photo { width: 100%; height: clamp(260px, 35vw, 500px); object-fit: cover; border-radius: clamp(24px, 3.5vw, 50px); object-position: 50% 72%; }
.about-hero__text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 41px); margin-top: clamp(32px, 3.4vw, 49px); }
.about-hero__text h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.05vw, 80px); line-height: 1.05; }
.about-hero__text p { font-size: 16px; font-weight: 300; line-height: 1.3; }
.logo-band { padding: clamp(64px, 7vw, 110px) var(--gutter) 0; }
.logo-band--also { padding-bottom: clamp(70px, 8vw, 120px); }
.rule-label {
  display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.4vw, 40px);
  font-weight: 300; font-size: clamp(16px, 1.42vw, 20.25px); letter-spacing: .4em; text-transform: uppercase; color: var(--navy);
}
.rule-label::before, .rule-label::after { content: ""; flex: 0 1 320px; height: 1px; background: rgba(15, 47, 79, .45); }
.logo-row {
  list-style: none; margin: clamp(36px, 4.5vw, 64px) auto 0; padding: 0; max-width: 1200px;
  display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 32px 48px;
}
.logo-row li { width: min(var(--w), 40vw); }
.logo-row img, .logo-row svg { width: 100%; height: auto; }
.logo-row a { display: block; transition: opacity .2s ease; }
.logo-row a:hover { opacity: .7; }
.logo-band--also .logo-row { justify-content: center; gap: 32px clamp(48px, 8vw, 120px); }
.logo-band--also .logo-row li { width: min(calc(var(--w) * .85), 36vw); }
@media (max-width: 999px) {
  .about-hero__text { grid-template-columns: 1fr; }
  .logo-row { justify-content: center; }
}

/* ---------- Header over video (project pages) ----------
   At the top: no bar, a soft dark scrim behind it, white logo and links so they read on any footage.
   Once scrolled (or with the mobile menu open): the site's plain white bar, colour logo, navy links. */
.site-header--dark { position: fixed; left: 0; right: 0; transition: background-color .3s ease, box-shadow .3s ease; }
.page--dark-header main { padding-top: 0; }
.site-header--dark::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 170%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 22, 38, .62) 0%, rgba(6, 22, 38, .28) 55%, rgba(6, 22, 38, 0) 100%);
  transition: opacity .3s ease;
}
.site-header--dark .site-header__inner { position: relative; z-index: 1; }
.site-header--dark .site-header__logo { display: grid; }
.site-header--dark .site-header__logo img { grid-area: 1 / 1; transition: opacity .3s ease; }
.site-header--dark .logo--color { opacity: 0; }
.site-header--dark .site-nav a, .site-header--dark .menu-toggle { color: var(--white); transition: color .3s ease; }
.site-header--dark .site-nav a[aria-current="page"] { color: var(--yellow); }
.site-header--dark .site-nav a:hover { color: var(--yellow); }

.site-header--dark.is-scrolled,
.site-header--dark:has(.site-nav.is-open) { background: rgba(255, 255, 255, .97); box-shadow: 0 2px 14px rgba(15, 47, 79, .08); }
.site-header--dark.is-scrolled::before,
.site-header--dark:has(.site-nav.is-open)::before { opacity: 0; }
.site-header--dark.is-scrolled .logo--color,
.site-header--dark:has(.site-nav.is-open) .logo--color { opacity: 1; }
.site-header--dark.is-scrolled .logo--light,
.site-header--dark:has(.site-nav.is-open) .logo--light { opacity: 0; }
.site-header--dark.is-scrolled .site-nav a,
.site-header--dark.is-scrolled .menu-toggle,
.site-header--dark:has(.site-nav.is-open) .site-nav a,
.site-header--dark:has(.site-nav.is-open) .menu-toggle { color: var(--navy); }
.site-header--dark.is-scrolled .site-nav a[aria-current="page"],
.site-header--dark:has(.site-nav.is-open) .site-nav a[aria-current="page"] { color: var(--ink); }
.site-header--dark.is-scrolled .site-nav a:hover,
.site-header--dark:has(.site-nav.is-open) .site-nav a:hover { color: var(--red); }
@media (max-width: 999px) {
  .site-header--dark { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header--dark, .site-header--dark::before, .site-header--dark .site-header__logo img,
  .site-header--dark .site-nav a, .site-header--dark .menu-toggle { transition: none; }
}
/* ---------- Project hero ---------- */
.p-hero {
  position: relative; height: 100vh; min-height: 620px; max-height: 1100px; overflow: hidden;
  background: var(--navy); color: var(--white);
}
.p-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .25) 38%, rgba(0, 0, 0, 0) 62%);
}
.p-hero__content {
  position: relative; z-index: 1; height: 100%; max-width: var(--max); margin: 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(20px, 3.6vw, 52px) clamp(64px, 21vh, 200px);
}
.p-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.68vw, 92px); line-height: 1.15; }
.p-hero__meta {
  display: grid; grid-template-columns: minmax(0, 560px) auto 1fr; align-items: end; gap: 12px 24px; margin-top: 10px;
}
.p-hero__meta p { display: flex; flex-direction: column; gap: 10px; }
.p-hero__client, .p-hero__year { font-size: clamp(15px, 1.42vw, 20.25px); font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
.p-hero__category, .p-hero__role { font-size: var(--t-small); font-weight: 400; }
.p-hero__role { text-transform: uppercase; }
.p-hero__watch {
  justify-self: end; background: var(--yellow); color: var(--navy); text-decoration: none; text-transform: uppercase;
  font-size: var(--t-small); font-weight: 400; padding: 15px 30px; transition: background-color .2s ease;
}
.p-hero__watch:hover { background: var(--white); }

/* ---------- Lead statement ---------- */
.p-lead { padding: clamp(64px, 8vw, 116px) var(--gutter); text-align: center; }
.p-lead h2 { font-weight: 300; font-size: var(--t-display); line-height: 1.25; max-width: 1200px; margin: 0 auto; }

/* ---------- Challenge / Approach / Angle blocks ---------- */
.p-block {
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 4.6vw, 70px) clamp(20px, 4.1vw, 60px);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 8.5vw, 127px); row-gap: 0;
  grid-template-areas: "head head" "kicker ." "media text";
}
.p-block--left { grid-template-areas: "head head" ". kicker" "text media"; }
.p-block__head { grid-area: head; display: grid; grid-template-columns: 1fr 1fr; column-gap: inherit; align-items: center; margin-bottom: clamp(48px, 7vw, 110px); }
.p-block__head h2 { font-family: var(--serif); font-weight: 400; font-size: var(--t-talk); line-height: 1.2; }
.p-block__rule { height: 1px; background: rgba(15, 47, 79, .55); }
.p-block--left .p-block__head h2 { order: -1; }
.p-block__kicker { grid-area: kicker; font-weight: 300; font-size: clamp(22px, 2.37vw, 36px); line-height: 1.15; text-transform: uppercase; margin-bottom: clamp(20px, 3vw, 44px); }
.p-block__kicker strong { font-weight: 700; }
.p-block__media { grid-area: media; width: 100%; max-width: 594px; height: auto; aspect-ratio: 594 / 273; object-fit: cover; }
.p-block__text { grid-area: text; font-size: clamp(16px, 1.42vw, 20.25px); font-weight: 300; line-height: 1.3; max-width: 600px; }

/* ---------- Stat ---------- */
.p-lead strong, .p-stat strong, .p-takeaway strong { font-weight: 700; }
.p-stat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center;
  padding: clamp(72px, 10vw, 150px) clamp(20px, 4.1vw, 60px);
}
.p-stat__figure { text-align: center; max-width: 560px; justify-self: center; }
.p-stat__story { border-left: 2px solid var(--navy); padding: 8px 0 8px clamp(32px, 6vw, 86px); }
.p-stat__num { font-family: var(--serif); font-weight: 700; font-size: clamp(64px, 7.5vw, 108px); line-height: 1; font-variant-numeric: lining-nums; }
.p-stat__caption { margin-top: 18px; font-size: clamp(19px, 1.97vw, 28.4px); font-weight: 300; line-height: 1.2; text-transform: capitalize; }
.p-stat__story { max-width: 690px; }
.p-stat__story h2 { font-weight: 300; font-size: clamp(26px, 2.85vw, 44px); line-height: 1.2; text-transform: uppercase; }
.p-stat__source { margin-top: 28px; font-size: clamp(14px, 1.1vw, 15.75px); font-weight: 300; }
.p-stat__source a { text-underline-offset: 3px; }

/* ---------- Takeaway ---------- */
.p-takeaway { background: var(--navy); color: var(--white); padding: clamp(80px, 9vw, 130px) var(--gutter); text-align: center; }
.p-takeaway p { font-weight: 300; font-size: var(--t-display); line-height: 1.3; max-width: 920px; margin: 0 auto; }
.p-takeaway mark { background: none; color: var(--yellow); }

/* ---------- Film ---------- */
.p-film { background: var(--ink); }
.p-film iframe { display: block; width: 100%; height: clamp(240px, 39vw, 640px); border: 0; }

/* ---------- Project pages: tablet and phone ---------- */
@media (max-width: 999px) {
  .p-hero { height: 100vh; min-height: 520px; }
  @supports (height: 100svh) { .p-hero { height: 100svh; } }
  .p-hero__content { padding-bottom: 48px; }
  .p-hero__meta { grid-template-columns: 1fr 1fr; }
  .p-hero__watch { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }
  .p-lead h2 { font-size: clamp(24px, 5.6vw, 36px); }
  .p-block, .p-block--left {
    grid-template-columns: 1fr; grid-template-areas: "head" "kicker" "media" "text";
  }
  .p-block__head { grid-template-columns: auto 1fr; column-gap: 20px; margin-bottom: 28px; }
  .p-block__head h2, .p-block--left .p-block__head h2 { order: -1; text-align: left; font-size: clamp(40px, 9vw, 64px); }
  .p-block__media { max-width: none; margin-bottom: 24px; }
  .p-stat { grid-template-columns: 1fr; gap: 40px; text-align: left; }
  .p-stat__story { padding-left: 24px; }
  .p-stat__figure { justify-self: start; text-align: left; }
  .p-takeaway p { font-size: clamp(24px, 5.6vw, 36px); }
}
@media (prefers-reduced-motion: reduce) {
  .work-row__title, .work-row__preview, .work-row a { transition: none; }
}

/* Phones: stack the hero details so long client names stay on one or two clean lines */
@media (max-width: 600px) {
  .p-hero__meta { grid-template-columns: 1fr; gap: 16px; }
  .p-hero__watch { margin-top: 4px; }
}
