/*
 * PRIMA ELITE DESIGN SYSTEM
 * Shared tokens, layout primitives, responsive behaviour and component styles.
 * Fonts (Raleway headings, Roboto body) are self-hosted in /fonts.
 */

/* Fonts are served from this website; no request goes to a third-party font service. */
@font-face {
  font-family: Raleway;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/raleway-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Raleway;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/raleway-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: Raleway;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/raleway-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2");
}

:root {
  /* Core palette: Midnight Navy for heroes, footer and emphasis; white content
     surfaces; pale blue-grey for selected sections; Champagne Gold as a fine accent.
     Ivory remains the text colour on navy. */
  --navy: #07111f;
  --deep: #050c16;
  --navy-raised: #0d1d30;
  --ivory: #f5f2ea;
  --surface: #ffffff;
  --soft: #f1f5f9;
  --paper: #ffffff;
  --gold: #d6c29a;
  --dark-gold: #b79f72;
  /* Gold for small text on light backgrounds: 5.99:1 on white, 5.47:1 on soft. Never for text on navy. */
  --gold-ink: #75612f;
  --error: #9b2c2c;

  --muted: rgba(245, 242, 234, 0.74);
  --ink-muted: rgba(7, 17, 31, 0.72);
  --rule: rgba(7, 17, 31, 0.14);
  --rule-strong: rgba(7, 17, 31, 0.55);
  --rule-dark: rgba(245, 242, 234, 0.16);

  --max: 1240px;
  --measure: 68ch;
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --heading: Raleway, "Helvetica Neue", Arial, sans-serif;
  --body: Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base reset and document defaults. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--navy);
  font: 400 1.0625rem/1.7 var(--body);
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
::selection {
  background: var(--gold);
  color: var(--navy);
}
h1,
h2,
h3,
h4,
.logo,
.eyebrow,
.button,
.meta {
  font-family: var(--heading);
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.75rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}
h4 {
  font-size: 1.1rem;
}
p {
  max-width: var(--measure);
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus {
  transform: none;
}
:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
}
.dark :focus-visible,
.deep :focus-visible,
.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}
.container {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}
.narrow {
  max-width: 820px;
}
.section {
  padding: var(--section) 0;
}
.section-tight {
  padding: calc(var(--section) * 0.6) 0;
}
.eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--gold-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.dark .eyebrow,
.deep .eyebrow,
.hero .eyebrow,
.site-footer .eyebrow {
  color: var(--gold);
}
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}
.muted {
  color: var(--ink-muted);
}
.lead {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.6;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-link {
  display: inline-block;
  padding: 0.45rem 0 0.15rem;
  color: var(--gold-ink);
  font: 700 0.75rem var(--heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.dark .text-link,
.deep .text-link {
  color: var(--gold);
}
.text-link:hover {
  color: var(--navy);
}
.dark .text-link:hover,
.deep .text-link:hover {
  color: var(--ivory);
}

/* Shared header and primary navigation. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--ivory);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.site-header.scrolled,
.internal .site-header,
.no-js .site-header {
  background: rgba(5, 12, 22, 0.97);
  border-color: rgba(245, 242, 234, 0.1);
}
.site-nav {
  min-height: 80px;
  width: min(calc(100% - 3rem), 1400px);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover {
  color: var(--gold);
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  flex: 1;
}
.nav-links {
  display: flex;
  gap: clamp(0.9rem, 1.8vw, 1.8rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 0.6rem 0;
  font: 600 0.7rem var(--heading);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.25rem;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current] {
  color: var(--gold);
}
.nav-links a:hover::after,
.nav-links a[aria-current]::after {
  width: 100%;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid rgba(214, 194, 154, 0.6);
  background: transparent;
  color: var(--ivory);
  text-decoration: none;
  font: 700 0.68rem var(--heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.25s;
}
.nav-cta:hover {
  border-color: var(--ivory);
  background: var(--ivory);
  color: var(--navy);
}
.nav-toggle {
  display: none;
  border: 0;
  background: none;
  color: var(--ivory);
  width: 44px;
  height: 44px;
  position: relative;
  margin-left: auto;
}
.nav-toggle .bar {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle .bar:first-of-type {
  top: 17px;
}
.nav-toggle .bar:last-of-type {
  top: 26px;
}
.nav-toggle[aria-expanded="true"] .bar:first-of-type {
  top: 21px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:last-of-type {
  top: 21px;
  transform: rotate(-45deg);
}

/* Page heroes. Inner pages use a calm navy field; the home page adds photography. */
.hero {
  background: var(--navy);
  color: var(--ivory);
  min-height: 52vh;
  padding: 11rem 0 clamp(4rem, 7vw, 6.5rem);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy), var(--deep));
}
.hero > * {
  position: relative;
}
.hero h1 {
  max-width: 15ch;
  margin: 0 0 1.6rem;
}
.hero-wide h1 {
  max-width: 20ch;
}
.hero p {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}
.hero-compact {
  min-height: 48vh;
}
.hero-home {
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
}
.hero-home::before {
  background:
    linear-gradient(180deg, rgba(5, 12, 22, 0.78) 0, rgba(5, 12, 22, 0) 190px),
    linear-gradient(90deg, rgba(5, 12, 22, 0.92) 0%, rgba(5, 12, 22, 0.7) 45%, rgba(5, 12, 22, 0.15) 85%),
    linear-gradient(0deg, rgba(5, 12, 22, 0.65), transparent 55%);
  z-index: 1;
}
.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
}
.hero-slides {
  z-index: 0;
}
.hero-slide {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  transition: transform 7s ease;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-slide.is-active img {
  transform: scale(1);
}
.hero-home > .container {
  z-index: 2;
}
.hero-home h1 {
  max-width: 13ch;
}
.hero-slider-controls {
  position: absolute;
  right: max(1.5rem, calc((100vw - var(--max)) / 2));
  bottom: 2.25rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-slider-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 242, 234, 0.5);
  background: rgba(5, 12, 22, 0.45);
  color: var(--ivory);
  font-size: 1rem;
  line-height: 1;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.hero-slider-button:hover,
.hero-slider-button:focus-visible {
  border-color: var(--ivory);
  background: var(--ivory);
  color: var(--navy);
}
.hero-slider-status {
  min-width: 4.5rem;
  text-align: center;
  color: var(--ivory);
  font: 600 0.75rem var(--heading);
  letter-spacing: 0.12em;
}

/* Buttons. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
/* Primary button on navy (class name kept for compatibility). */
.button-gold {
  background: var(--ivory);
  color: var(--navy);
}
.button-gold:hover {
  background: var(--surface);
  border-color: var(--gold);
}
.button-dark {
  background: var(--navy);
  color: var(--ivory);
}
.button-dark:hover {
  background: var(--navy-raised);
  border-color: var(--gold);
}
.button-outline {
  border-color: rgba(245, 242, 234, 0.45);
  color: var(--ivory);
  background: transparent;
}
.button-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.button-line {
  border-color: var(--rule-strong);
  color: var(--navy);
  background: transparent;
}
.button-line:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--ivory);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* Editorial layout primitives. */
.intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) 2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.intro > .eyebrow {
  padding-top: 0.6rem;
}
.intro p {
  color: var(--ink-muted);
  font-size: 1.15rem;
}
.dark {
  background: var(--navy);
  color: var(--ivory);
}
.deep {
  background: var(--deep);
  color: var(--ivory);
}
.soft {
  background: var(--soft);
}
.dark p,
.deep p,
.dark .muted {
  color: var(--muted);
}
.gold-text {
  color: var(--gold);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}
.split-top {
  align-items: start;
}
.split-wide {
  grid-template-columns: 0.85fr 1.15fr;
}
.large-number {
  font: 500 clamp(4rem, 11vw, 9rem) var(--heading);
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.05em;
}

/* Photography: real <img> elements with fixed aspect ratios and responsive crops. */
.media {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-landscape {
  aspect-ratio: 4 / 3;
}
.media-wide {
  aspect-ratio: 16 / 9;
}
.media-portrait {
  aspect-ratio: 3 / 4;
}
.media::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(245, 242, 234, 0.3);
  pointer-events: none;
}
.media figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.6rem 1rem;
  background: rgba(5, 12, 22, 0.75);
  color: var(--muted);
  font-size: 0.75rem;
}

/* Large typographic statement, used sparingly to vary page rhythm. */
.statement {
  max-width: 22ch;
  margin: 0;
  font: 500 clamp(2rem, 4.6vw, 4rem) / 1.12 var(--heading);
  letter-spacing: -0.035em;
}
.statement em {
  font-style: normal;
  color: var(--gold-ink);
}
.dark .statement em,
.deep .statement em {
  color: var(--gold);
}
.statement-support {
  margin-top: 2rem;
  font-size: 1.15rem;
}

/* Home capability sequence. */
.capability-list {
  margin-top: 2.5rem;
}
.capability-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 2rem;
  padding: 2.75rem 0;
  border-top: 1px solid var(--rule-dark);
}
.capability-row:last-child {
  border-bottom: 1px solid var(--rule-dark);
}
.capability-number {
  color: var(--gold);
  font: 500 clamp(2.25rem, 4.5vw, 4rem) var(--heading);
  line-height: 1;
}
.capability-row h2,
.capability-row h3 {
  max-width: 26ch;
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  letter-spacing: -0.03em;
}
.capability-row p {
  color: var(--muted);
  font-size: 1.05rem;
}
.capability-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.capability-points li {
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule-dark);
}
.capability-points strong,
.capability-points span {
  display: block;
}
.capability-points strong {
  color: var(--gold);
  font: 600 0.75rem var(--heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.capability-points span {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Numbered step sequence (approach, learning sequence, engagement flow). */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--rule-strong);
}
.dark .steps,
.deep .steps {
  border-color: rgba(245, 242, 234, 0.45);
}
.steps li {
  counter-increment: step;
  padding: 1.5rem 1.5rem 1.5rem 0;
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1.4rem;
  color: var(--gold-ink);
  font: 600 0.78rem var(--heading);
  letter-spacing: 0.14em;
}
.dark .steps li::before,
.deep .steps li::before {
  color: var(--gold);
}
.steps li::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--gold-ink);
  border-radius: 50%;
}
.dark .steps li::after,
.deep .steps li::after {
  background: var(--gold);
}
.steps strong {
  display: block;
  font: 500 1.2rem/1.3 var(--heading);
  letter-spacing: -0.01em;
}
.steps span {
  display: block;
  margin-top: 0.6rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.dark .steps span,
.deep .steps span {
  color: var(--muted);
}

/* About practice architecture. */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 3.5rem;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.practice-pillar {
  min-height: 280px;
  padding: 1.6rem;
  background: var(--surface);
}
.practice-pillar h3 {
  margin: 1.5rem 0 1.25rem;
  font-size: 1.3rem;
}
.practice-pillar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.practice-pillar li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
}

/* Thin-rule lists for principles, values and structured content. */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list li {
  border-top: 1px solid var(--rule);
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}
.dark .list li,
.deep .list li {
  border-color: var(--rule-dark);
}
.list li:last-child {
  border-bottom: 1px solid var(--rule);
}
.dark .list li:last-child {
  border-color: var(--rule-dark);
}
.list strong {
  flex: 0 1 auto;
  min-width: 0;
  font: 500 1.2rem var(--heading);
}
.list span {
  color: var(--ink-muted);
  max-width: 440px;
  text-align: right;
}
.dark .list span {
  color: var(--muted);
}
.plain-list {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
}
.plain-list li {
  margin: 0.5rem 0;
  max-width: var(--measure);
}
.plain-list li::marker {
  color: var(--gold-ink);
}

/* About: six-step process list. */
.process-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 3rem;
  margin: 3.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}
.process-list li {
  display: grid;
  grid-template-columns: clamp(4rem, 7vw, 6rem) 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  counter-increment: process;
}
.process-list li::before {
  grid-row: span 2;
  color: var(--gold-ink);
  content: "0" counter(process);
  font: 500 clamp(1.8rem, 3.5vw, 3rem) var(--heading);
  line-height: 1;
  letter-spacing: -0.04em;
}
.process-list strong {
  grid-column: 2;
  font: 500 1.2rem var(--heading);
}
.process-list span {
  grid-column: 2;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Services: editorial rows instead of a generic card grid. */
.service-rows {
  margin-top: 3rem;
  border-top: 1px solid var(--rule-strong);
}
.service-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.25rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 100px;
}
.service-number {
  color: var(--gold-ink);
  font: 500 2.4rem/1 var(--heading);
  letter-spacing: -0.04em;
}
.service-row h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin-bottom: 0.9rem;
}
.service-summary {
  color: var(--ink-muted);
  font-size: 1.05rem;
}
.service-detail p {
  font-size: 1.05rem;
}
.service-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
}
.service-related span {
  color: var(--ink-muted);
}
.service-related a {
  color: var(--navy);
}
.service-related a:hover {
  color: var(--gold-ink);
}

/* Index cards (articles, resources). */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}
.article {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--navy);
  padding-top: 1.5rem;
}
.dark .article {
  border-color: rgba(245, 242, 234, 0.4);
}
.article .meta {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dark .article .meta {
  color: var(--gold);
}
.article h3 {
  margin: 1rem 0 0.8rem;
}
.article h3 a {
  text-decoration: none;
}
.article h3 a:hover {
  color: var(--gold-ink);
  text-decoration: underline;
}
.dark .article h3 a:hover {
  color: var(--gold);
}
.article p {
  font-size: 0.98rem;
}
.article .meta:last-child {
  margin-top: auto;
}
.article-feature {
  grid-column: span 2;
}
.article-feature h3 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

/* Filters. */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 1.25rem 0;
}
.filter-label {
  min-width: 4.5rem;
  color: var(--gold-ink);
  font: 700 0.7rem var(--heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dark .filter-label {
  color: var(--gold);
}
.filter {
  min-height: 44px;
  border: 1px solid var(--rule-strong);
  background: none;
  padding: 0.55rem 1rem;
  color: inherit;
  font: 700 0.68rem var(--heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dark .filter {
  border-color: rgba(245, 242, 234, 0.4);
}
.filter[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}
.filter-results {
  min-height: 1.5em;
  margin: 1rem 0 2.5rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.dark .filter-results {
  color: var(--muted);
}
.filter-item.is-hidden {
  display: none;
}

/* Long-form article layout. */
.article-hero {
  min-height: 58vh;
}
.article-hero h1 {
  max-width: 20ch;
}
.article-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-bottom: 1.4rem;
  color: var(--gold);
  font: 600 0.72rem var(--heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-content {
  max-width: 760px;
}
.article-content > p,
.article-content li {
  font-size: 1.1rem;
  line-height: 1.75;
}
.article-content .article-lead {
  color: var(--navy);
  font: 500 clamp(1.35rem, 2.2vw, 1.65rem) / 1.45 var(--heading);
  letter-spacing: -0.01em;
}
.article-content h2 {
  margin-top: 3.75rem;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
}
.article-content ul,
.article-content ol {
  padding-left: 1.25rem;
}
.article-content li {
  margin: 0.45rem 0;
}
.article-content li::marker {
  color: var(--gold-ink);
}
.article-content blockquote {
  margin: 3rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 2px solid var(--dark-gold);
  color: var(--navy);
  font: 500 clamp(1.3rem, 2.2vw, 1.6rem) / 1.45 var(--heading);
}
/* Deliberate editorial panel that stands in for future article photography. */
.article-theme {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 1.5rem;
  margin: 0 0 3.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--navy);
  color: var(--ivory);
  border-left: 3px solid var(--gold);
}
.article-theme-number {
  color: var(--gold);
  font: 500 clamp(3rem, 7vw, 5rem) / 0.9 var(--heading);
  letter-spacing: -0.05em;
}
.article-theme-label {
  color: var(--muted);
  font: 600 0.75rem/1.6 var(--heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-theme-label strong {
  display: block;
  color: var(--ivory);
}
.article-related {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--soft);
}
.article-related h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}
.article-related ul {
  margin: 0;
  padding-left: 1.1rem;
}
.article-related li {
  font-size: 1rem;
}
.article-share {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.article-share h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--navy);
  font: 600 0.78rem var(--heading);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.share-button:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--ivory);
}
.share-status {
  min-height: 1.5em;
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.article-end-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}
.article-end h2 {
  max-width: 18ch;
}
.panel {
  padding: 2rem;
  border: 1px solid var(--rule-dark);
  background: rgba(245, 242, 234, 0.04);
}
.panel .eyebrow {
  margin-bottom: 0.75rem;
}

/* Contact. */
.conversion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1.5rem;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.conversion-option {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 220px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  color: var(--navy);
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.conversion-option:hover,
.conversion-option:focus-visible {
  background: var(--navy);
  color: var(--ivory);
}
.conversion-option strong {
  margin-top: auto;
  font: 500 clamp(1.2rem, 2vw, 1.6rem) var(--heading);
}
.conversion-option > span:last-child {
  max-width: 30ch;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.conversion-option:hover > span:last-child,
.conversion-option:focus-visible > span:last-child {
  color: var(--muted);
}
.conversion-level {
  color: var(--gold-ink);
  font: 700 0.68rem var(--heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.conversion-option:hover .conversion-level,
.conversion-option:focus-visible .conversion-level {
  color: var(--gold);
}
.form-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}
.contact-details {
  margin: 1.5rem 0 0;
  font-style: normal;
  line-height: 1.7;
}
.contact-details a {
  color: var(--navy);
}
.note {
  max-width: 560px;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.note p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.notice {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--dark-gold);
  background: var(--soft);
  font-size: 0.97rem;
}
.notice p:last-child {
  margin-bottom: 0;
}
.dark .notice {
  background: rgba(245, 242, 234, 0.06);
}
form.stacked {
  display: grid;
  gap: 1.4rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
label,
.label {
  font: 700 0.72rem var(--heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hint {
  color: var(--ink-muted);
  font-size: 0.88rem;
}
input,
textarea,
select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  padding: 0.75rem 0;
  min-height: 44px;
}
input:focus,
textarea:focus,
select:focus {
  border-bottom-color: var(--navy);
}
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-bottom: 2px solid var(--error);
}
.field-error {
  color: var(--error);
  font-size: 0.88rem;
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-ink) 50%),
    linear-gradient(135deg, var(--gold-ink) 50%, transparent 50%);
  background-position:
    calc(100% - 1.2rem) 50%,
    calc(100% - 0.85rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.35rem 0.35rem;
  padding-right: 2.5rem;
}
textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}
.form-status {
  min-height: 1.4em;
  margin: 0;
}
.form-status:not(:empty) {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--dark-gold);
  background: var(--soft);
}

/* FAQ accordion. */
.faq-list {
  max-width: 900px;
}
.faq-item {
  border-top: 1px solid var(--rule);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--rule);
}
.faq-item h3 {
  margin: 0;
  font-size: inherit;
}
.faq-question {
  width: 100%;
  min-height: 44px;
  padding: 1.5rem 0;
  border: 0;
  background: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font: 500 clamp(1.1rem, 1.8vw, 1.3rem) / 1.35 var(--heading);
}
.faq-icon {
  flex: 0 0 auto;
  color: var(--gold-ink);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.25s;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer p {
  padding-bottom: 0.25rem;
  color: var(--ink-muted);
}
.faq-answer > div {
  padding-bottom: 1.25rem;
}
.js .faq-answer[hidden] {
  display: none;
}

/* Legal and policy documents. */
.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 110px;
  font-size: 0.9rem;
}
.doc-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.doc-toc li {
  border-bottom: 1px solid var(--rule);
}
.doc-toc a {
  display: block;
  padding: 0.6rem 0;
  text-decoration: none;
  color: var(--ink-muted);
}
.doc-toc a:hover {
  color: var(--navy);
}
.doc h2 {
  margin-top: 3rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  scroll-margin-top: 100px;
}
.doc h2:first-child {
  margin-top: 0;
}
.doc h3 {
  margin-top: 2rem;
  font-size: 1.2rem;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.doc th,
.doc td {
  padding: 0.8rem 0.75rem 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.doc th {
  font: 700 0.72rem var(--heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.facts {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) 1fr;
  margin: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.facts dt,
.facts dd {
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt {
  padding-right: 1rem;
  color: var(--gold-ink);
  font: 700 0.72rem/1.9 var(--heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dark .facts {
  border-color: var(--rule-dark);
}
.dark .facts dt {
  color: var(--gold);
}
.dark .facts dt,
.dark .facts dd {
  border-color: var(--rule-dark);
}
.doc-status {
  margin-bottom: 2.5rem;
}

/* Founder profile. */
.profile-hero {
  min-height: 52vh;
}
.profile-heading {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 3rem;
  align-items: end;
}
.profile-heading h1 {
  margin-bottom: 0.8rem;
}
.profile-title {
  color: var(--gold);
  font: 500 1.1rem var(--heading);
}
.profile-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}
.profile-portrait {
  position: sticky;
  top: 110px;
}
.profile-section {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-top: 3rem;
}
.profile-meta {
  list-style: none;
  margin: 0;
  padding: 0;
}
.profile-meta li {
  border-top: 1px solid var(--rule-dark);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}
.profile-meta li:last-child {
  border-bottom: 1px solid var(--rule-dark);
}
.profile-meta strong {
  font: 600 0.72rem/1.9 var(--heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.profile-meta span {
  text-align: right;
}
.founder-role {
  color: var(--gold-ink);
  font: 600 0.78rem var(--heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Resources: in-browser worksheets and assessments. */
.tool-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.tool-facts {
  margin: 0;
  padding: 1.5rem;
  background: var(--soft);
  font-size: 0.95rem;
}
.tool-facts dt {
  color: var(--gold-ink);
  font: 700 0.7rem var(--heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tool-facts dd {
  margin: 0.25rem 0 1rem;
}
.tool-facts dd:last-child {
  margin-bottom: 0;
}
.tool {
  margin-top: 3rem;
}
.tool-toolbar {
  position: sticky;
  top: 80px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.tool-toolbar .button {
  min-height: 44px;
  padding: 0.6rem 1rem;
}
.tool-status {
  margin: 0 0 0 auto;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.tool-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.tool-section > h2,
.tool-section legend {
  margin: 0 0 0.6rem;
  padding: 0;
  font: 500 clamp(1.35rem, 2.4vw, 1.9rem) / 1.2 var(--heading);
  letter-spacing: -0.02em;
}
.tool-section > p,
.tool-section .tool-prompt {
  color: var(--ink-muted);
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  margin-top: 1.5rem;
}
.tool-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tool-field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.tool-field label {
  font-size: 0.7rem;
}
.tool-field textarea {
  min-height: 110px;
  padding: 0.75rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}
.tool-field input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}
.tool-field textarea:focus,
.tool-field input:focus {
  border-color: var(--navy);
}
.canvas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.5rem;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
}
.canvas-cell {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1.1rem;
  background: var(--paper);
}
.canvas-cell textarea {
  min-height: 140px;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
}
.canvas-cell .hint {
  margin: 0;
}
.canvas-wide {
  grid-column: span 3;
}
.canvas-tall textarea {
  min-height: 220px;
}
.rating {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 2rem;
  align-items: center;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}
.rating:last-of-type {
  border-bottom: 1px solid var(--rule);
}
.rating legend {
  float: left;
  padding: 0;
  font: 500 1.05rem/1.4 var(--heading);
}
.rating .hint {
  grid-column: 1;
  margin: 0;
}
.rating-scale {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  gap: 0.35rem;
}
.rating-scale label {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font: 600 0.9rem var(--heading);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.rating-scale input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  cursor: pointer;
}
.rating-scale label:has(input:checked) {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}
.rating-scale label:has(input:focus-visible) {
  outline: 2px solid var(--gold-ink);
  outline-offset: 2px;
}
.scale-key {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.choice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 2rem;
  align-items: center;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}
.choice-row legend {
  float: left;
  padding: 0;
  font: 500 1.05rem/1.4 var(--heading);
}
.choice-options {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  gap: 0.35rem;
}
.choice-options label {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 64px;
  height: 44px;
  padding: 0 0.8rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-size: 0.7rem;
  cursor: pointer;
}
.choice-options input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  cursor: pointer;
}
.choice-options label:has(input:checked) {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}
.choice-options label:has(input:focus-visible) {
  outline: 2px solid var(--gold-ink);
  outline-offset: 2px;
}
.tool-result {
  margin-top: 2rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--navy);
  color: var(--ivory);
}
.tool-result h3 {
  margin-bottom: 1rem;
}
.tool-result p {
  color: var(--muted);
}
.tool-result p strong {
  color: var(--ivory);
}
.result-bars {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.result-bars li {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) minmax(3.5rem, auto);
  gap: 1rem;
  align-items: center;
  font-size: 0.95rem;
}
.result-track {
  height: 6px;
  background: rgba(245, 242, 234, 0.16);
}
.result-fill {
  display: block;
  height: 100%;
  background: var(--gold);
}
.result-score {
  text-align: right;
  font: 600 0.9rem var(--heading);
}
.tool-privacy {
  margin-top: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.print-only {
  display: none;
}

/* Resources index: what the tools are and how they work. */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2.5rem;
}
.how-grid > div {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-strong);
}
.how-grid h3 {
  font-size: 1.2rem;
}
.how-grid p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Learning: problem-type diagnostic. */
.diagnostic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}
.diagnostic > div {
  padding: 1.75rem 1.5rem;
  background: var(--navy);
}
.diagnostic h3 {
  font-size: 1.2rem;
}
.diagnostic p {
  font-size: 0.95rem;
}
.diagnostic .eyebrow {
  margin-bottom: 1.5rem;
}

/* Footer. */
.site-footer {
  background: var(--deep);
  color: var(--ivory);
  padding: clamp(4rem, 7vw, 5.5rem) 0 2rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.footer-heading {
  margin: 0 0 1rem;
  color: var(--gold);
  font: 700 0.72rem var(--heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-copy {
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-address {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.7;
}
.footer-address strong {
  color: var(--ivory);
  font: 600 0.75rem var(--heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-address a {
  color: var(--gold);
}
.footer-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 1.5rem;
}
.footer-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-nav a:hover {
  color: var(--gold);
}
.footer-brief p {
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-brief .text-link {
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(245, 242, 234, 0.12);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-legal a {
  display: inline-block;
  padding: 0.2rem 0;
  color: var(--muted);
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--gold);
}

/* Reveal motion only applies once JavaScript has confirmed it can show the content. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive behaviour. */
@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    inset: 80px 0 0;
    background: var(--deep);
    padding: 2.5rem 1.5rem 3rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(100%);
    transition:
      transform 0.35s var(--ease),
      visibility 0s linear 0.35s;
  }
  .nav-menu.is-open {
    visibility: visible;
    transform: none;
    transition: transform 0.35s var(--ease);
  }
  .no-js .nav-menu {
    position: static;
    visibility: visible;
    transform: none;
    padding: 0 0 1.5rem;
    background: none;
  }
  .no-js .site-nav {
    flex-wrap: wrap;
  }
  .no-js .nav-toggle {
    display: none;
  }
  .nav-links {
    flex-direction: column;
    gap: 0.25rem;
  }
  .nav-links a {
    font-size: 1.05rem;
    padding: 0.7rem 0;
  }
  .nav-cta {
    align-self: flex-start;
  }
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .diagnostic {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 960px) {
  .intro,
  .split,
  .split-wide,
  .form-layout,
  .tool-intro,
  .article-end-grid,
  .profile-heading,
  .profile-layout,
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .doc-toc,
  .profile-portrait {
    position: static;
  }
  .profile-portrait {
    max-width: 420px;
  }
  .conversion-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }
  .article-grid,
  .footer-main,
  .process-list {
    grid-template-columns: 1fr 1fr;
  }
  .article-feature {
    grid-column: span 2;
  }
  .service-row {
    grid-template-columns: 4rem minmax(0, 1fr);
  }
  .service-detail {
    grid-column: 2;
  }
  .canvas-grid,
  .tool-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .canvas-wide {
    grid-column: span 2;
  }
}
@media (max-width: 640px) {
  .container,
  .site-nav {
    width: min(calc(100% - 2rem), var(--max));
  }
  body {
    font-size: 1rem;
  }
  .hero {
    min-height: 0;
    padding: 8.5rem 0 3.5rem;
  }
  .hero-home {
    min-height: 100svh;
    padding-bottom: 7rem;
  }
  .hero-slider-controls {
    left: 1rem;
    right: auto;
    bottom: 1.5rem;
  }
  .article-grid,
  .footer-main,
  .process-list,
  .capability-points,
  .practice-grid,
  .tool-grid,
  .tool-grid-3,
  .canvas-grid,
  .diagnostic {
    grid-template-columns: 1fr;
  }
  .article-feature,
  .canvas-wide {
    grid-column: auto;
  }
  .capability-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .service-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-detail {
    grid-column: auto;
  }
  .list li,
  .profile-meta li {
    flex-direction: column;
    gap: 0.35rem;
  }
  .list span,
  .profile-meta span {
    text-align: left;
  }
  .rating,
  .choice-row {
    grid-template-columns: 1fr;
  }
  .rating-scale,
  .choice-options {
    grid-column: 1;
    grid-row: auto;
  }
  .result-bars li {
    grid-template-columns: 1fr 3rem;
  }
  .result-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .facts dt {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .tool-toolbar {
    position: static;
  }
  .tool-status {
    margin-left: 0;
    flex-basis: 100%;
  }
  .footer-nav {
    columns: 2;
  }
  .large-number {
    font-size: 5rem;
  }
  .article-theme {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .hero-slide img {
    transform: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Print: worksheets, assessments, articles and policies print cleanly on A4/Letter. */
@media print {
  @page {
    margin: 16mm;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
  }
  .site-header,
  .site-footer,
  .skip-link,
  .tool-toolbar,
  .article-share,
  .article-end,
  .button,
  .button-row,
  .hero-slider-controls,
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block;
  }
  .hero {
    min-height: 0;
    padding: 0 0 1rem;
    background: none;
    color: #000;
  }
  .hero::before {
    display: none;
  }
  .hero p,
  .hero .eyebrow {
    color: #333;
  }
  .section {
    padding: 1rem 0;
  }
  .dark,
  .deep,
  .soft,
  .tool-result,
  .tool-facts {
    background: none !important;
    color: #000 !important;
  }
  .tool-result p,
  .tool-result p strong,
  .dark p {
    color: #000 !important;
  }
  .result-track {
    background: #ddd;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .result-fill {
    background: #555;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .container {
    width: 100%;
  }
  .tool-section,
  .rating,
  .canvas-cell,
  .tool-field {
    break-inside: avoid;
  }
  textarea,
  input {
    border: 1px solid #999 !important;
    background: #fff !important;
    overflow: visible;
  }
  .canvas-cell textarea {
    border: 0 !important;
  }
  .rating-scale label {
    border-color: #999;
  }
  .rating-scale label:has(input:checked),
  .choice-options label:has(input:checked) {
    background: #000 !important;
    color: #fff !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}

/* Inline text button inside status messages (e.g. "copy your message"). */
button.text-link {
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

/*
 * Resource worksheets: align fields row by row.
 * Each field spans three shared rows (label, hint, control) through subgrid, so
 * boxes in the same row start and end together even when one field has a hint
 * or a longer label. Browsers without subgrid fall back to the stacked layout.
 */
@supports (grid-template-rows: subgrid) {
  .tool-grid > .tool-field,
  .canvas-grid > .canvas-cell {
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0.4rem;
  }
  .canvas-grid > .canvas-cell {
    row-gap: 0.5rem;
  }
  .tool-field > label,
  .canvas-cell > label {
    grid-row: 1;
    align-self: end;
  }
  .tool-field > .hint,
  .canvas-cell > .hint {
    grid-row: 2;
  }
  .tool-field > textarea,
  .tool-field > input,
  .canvas-cell > textarea {
    grid-row: 3;
    align-self: stretch;
  }
}
.tool-field input {
  height: 46px;
  min-height: 46px;
}

/*
 * INTERACTIVE TIMELINE
 * Enhances every <ol class="steps"> once JavaScript runs (see initTimelines).
 * A progress line draws through the steps as the timeline enters view; hovering,
 * focusing or selecting a step moves the progress to it. Horizontal when there is
 * room, vertical in narrow containers. Without JavaScript the plain list remains.
 */
.timeline-wrap {
  position: relative;
  margin-top: 3rem;
  container-type: inline-size;
  --tl-line: var(--rule);
  --tl-accent: var(--gold-ink);
  --tl-dot: var(--ivory);
  --tl-dot-border: var(--rule-strong);
  --tl-halo: rgba(117, 97, 47, 0.18);
}
.dark .timeline-wrap,
.deep .timeline-wrap {
  --tl-line: rgba(245, 242, 234, 0.22);
  --tl-accent: var(--gold);
  --tl-dot: var(--navy);
  --tl-dot-border: rgba(245, 242, 234, 0.45);
  --tl-halo: rgba(214, 194, 154, 0.22);
}
.soft .timeline-wrap {
  --tl-dot: var(--soft);
}
.timeline-wrap > .steps.timeline {
  margin: 0;
  border-top: 0;
  grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
  gap: 0 1.25rem;
}
.steps.timeline li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.25rem;
  cursor: pointer;
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.steps.timeline li::after {
  display: none;
}
.steps.timeline li::before {
  order: 1;
  margin: 0.4rem 0 0.9rem;
  transition: color 0.3s var(--ease);
}
.steps.timeline strong {
  order: 2;
  transition: color 0.3s var(--ease);
}
.steps.timeline span {
  order: 3;
}
.timeline-track {
  position: absolute;
  z-index: 0;
  background: var(--tl-line);
  pointer-events: none;
}
.timeline-fill {
  position: absolute;
  inset: 0;
  background: var(--tl-accent);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  /* During the intro the line draws at a steady pace (--tl-speed); afterwards it eases. */
  transition: transform var(--tl-speed, 0.45s) var(--tl-easing, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.timeline-wrap[data-orientation="vertical"] .timeline-fill {
  transform-origin: center top;
  transform: scaleY(var(--p, 0));
}
.timeline-node {
  order: 0;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.timeline-node::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid var(--tl-dot-border);
  border-radius: 50%;
  background: var(--tl-dot);
  /* --d is set per step so a dot changes only when the travelling line reaches it. */
  transition:
    background 0.45s var(--ease) var(--d, 0ms),
    border-color 0.45s var(--ease) var(--d, 0ms),
    transform 0.55s var(--ease) var(--d, 0ms),
    box-shadow 0.55s var(--ease) var(--d, 0ms);
}
.timeline-node:focus-visible {
  outline-offset: 0;
}
.steps.timeline li.is-reached .timeline-node::before {
  border-color: var(--tl-accent);
  background: var(--tl-accent);
}
.steps.timeline li.is-current .timeline-node::before {
  transform: scale(1.3);
  box-shadow: 0 0 0 7px var(--tl-halo);
}
.steps.timeline li.is-current strong {
  color: var(--tl-accent);
}
/* Intro: step text rises into place as the line reaches it; the dots stay on the line. */
.steps.timeline li > :not(.timeline-node),
.steps.timeline li::before {
  transition:
    opacity 0.6s var(--ease) var(--d, 0ms),
    transform 0.6s var(--ease) var(--d, 0ms),
    color 0.45s var(--ease) var(--d, 0ms);
}
.timeline.is-armed:not(.is-played) li:not(.is-reached) > :not(.timeline-node),
.timeline.is-armed:not(.is-played) li:not(.is-reached)::before {
  opacity: 1;
  transform: translateY(10px);
}
/* While exploring, steps beyond the selected one recede. */
.timeline.is-exploring li:not(.is-reached) > :not(.timeline-node),
.timeline.is-exploring li:not(.is-reached)::before {
  opacity: 0.85;
}
.timeline-status {
  min-height: 1.5em;
  margin: 1.25rem 0 0;
  color: var(--ink-muted);
  font: 600 0.72rem var(--heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dark .timeline-status,
.deep .timeline-status {
  color: var(--muted);
}
/* Narrow containers: a vertical timeline with the line on the left. */
@container (max-width: 760px) {
  .timeline-wrap > .steps.timeline {
    grid-template-columns: 1fr;
  }
  .steps.timeline li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 0.9rem;
    padding: 0 0 1.6rem;
    text-align: left;
  }
  .steps.timeline li:last-child {
    padding-bottom: 0;
  }
  .timeline-node {
    grid-row: 1 / span 3;
    margin: -10px 0 0;
  }
  .steps.timeline li::before {
    grid-column: 2;
    margin: 0 0 0.35rem;
  }
  .steps.timeline strong,
  .steps.timeline span {
    grid-column: 2;
  }
  .timeline.is-armed:not(.is-played) li:not(.is-reached) > :not(.timeline-node),
  .timeline.is-armed:not(.is-played) li:not(.is-reached)::before {
    transform: translateX(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .timeline.is-armed:not(.is-played) li:not(.is-reached) > :not(.timeline-node),
  .timeline.is-armed:not(.is-played) li:not(.is-reached)::before {
    opacity: 1;
    transform: none;
  }
}
@media print {
  .timeline-track,
  .timeline-status {
    display: none;
  }
  .steps.timeline li,
  .steps.timeline li > *,
  .steps.timeline li::before {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Short gold rule after the large numeral on the home page (replaces a typed dash). */
.number-rule {
  display: inline-block;
  width: 1.4em;
  height: 1px;
  margin-left: 0.25em;
  opacity: 0.7;
  vertical-align: middle;
  background: currentColor;
}

/* Insights index: with twelve articles, the featured card takes two columns and
   two rows so every row of the three-column grid is full. On two columns it
   becomes an ordinary card for the same reason. */
.insights-page .article-feature {
  grid-row: span 2;
  padding-bottom: 0.5rem;
}
@media (max-width: 960px) {
  .insights-page .article-feature {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Logo artwork (stacked PE symbol and wordmark, ivory and gold on dark). */
.logo {
  display: inline-flex;
  align-items: center;
  padding-block: 0.4rem;
}
.logo img {
  display: block;
  width: auto;
  height: 64px;
}
.logo:hover img {
  opacity: 0.85;
}
.footer-logo img {
  height: 96px;
}
@media (max-width: 640px) {
  .logo img {
    height: 54px;
  }
}

/* Article cover image, with the series panel laid over its lower edge. */
.article-cover {
  margin: 0 0 3.5rem;
}
.article-cover-frame {
  position: relative;
}
.article-cover .article-theme {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  max-width: min(70%, 30rem);
  background: rgba(7, 17, 31, 0.9);
}
@media (max-width: 640px) {
  .article-cover .article-theme {
    position: static;
    max-width: none;
  }
}
/* Full-width image closing a text section. */
.section-figure {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* Small photo credit under an image (required by the image licence). */
.image-credit {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ink-muted);
  text-align: right;
}
.image-credit a {
  color: inherit;
  display: inline-block;
  padding-block: 0.3rem;
}
.image-credit a:hover {
  color: var(--gold-ink);
}

/* Clarifying note under the founder's institutional experience. */
.profile-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Closing band: the call to action above the footer sits on pale blue-grey, so
   the page does not end on two consecutive navy blocks. */
.closing {
  background: var(--soft);
  border-top: 1px solid var(--rule);
}
.closing .panel {
  border-color: var(--rule);
  background: var(--surface);
}
.closing .panel .eyebrow {
  color: var(--gold-ink);
}

/* Two consecutive white sections share one gap, with a hairline between them. */
main > .section:not(.dark, .deep, .soft, .closing, .hero) + .section:not(.dark, .deep, .soft, .closing, .hero) {
  padding-top: 0;
}
main > .section:not(.dark, .deep, .soft, .closing, .hero) + .section:not(.dark, .deep, .soft, .closing, .hero) > .container:first-child {
  padding-top: var(--section);
  border-top: 1px solid var(--rule);
}

/* The rule after the large "01" is the gold detail; the numeral itself is navy. */
.large-number .number-rule {
  background: var(--gold-ink);
  opacity: 1;
}

/* Service pages: long, structured content on the shared design system. */
.hero-service,
.hero-services {
  min-height: 0;
}
.hero-services h1 {
  max-width: 24ch;
  font-size: clamp(2.3rem, 4.8vw, 4.25rem);
}
.hero-service p {
  max-width: 48ch;
}
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.6;
}
.breadcrumb a {
  display: inline-block;
  padding-block: 0.15rem;
}
.status-badge {
  display: inline-block;
  margin: 0 0 0.75rem 0.75rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid currentColor;
  font: 700 0.68rem var(--heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.service-row .status-badge,
.closing .status-badge {
  margin-left: 0;
  color: var(--gold-ink);
}
.service-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.service-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0.85rem 0;
  list-style: none;
  font-size: 0.92rem;
}
.service-nav a {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--ink-muted);
  text-decoration: none;
}
.service-nav a:hover {
  color: var(--navy);
  text-decoration: underline;
}
.service-nav a[aria-current] {
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid var(--gold-ink);
}
.service-intro p {
  max-width: 60ch;
}
.service-overview-intro p {
  max-width: 68ch;
}
.service-row h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin-bottom: 0.9rem;
}
.service-row h3 a {
  text-decoration: none;
}
.service-row h3 a:hover {
  color: var(--gold-ink);
  text-decoration: underline;
}
.service-figure {
  margin: 0;
}
.outcome {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--dark-gold);
}
.h3-size {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}
.section-notice {
  padding-bottom: 0;
}
.section-notice .notice {
  max-width: none;
}
main > .section-notice + .section > .container:first-child {
  border-top: 0;
}

/* Coming Soon marker on the Home practice rows, About pillar and page heroes. */
.hero .status-badge,
.capability-row .status-badge,
.practice-pillar .status-badge {
  margin-left: 0;
}
.capability-row .status-badge {
  color: var(--gold);
}
.practice-pillar .status-badge {
  color: var(--gold-ink);
}
.hero .status-badge {
  display: table;
}
.pillar-note {
  margin: 0.5rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* Editorial service layout: numbered capability sections, grouped themes and outcome blocks. */
.capabilities {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule-strong);
}
.capability {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 4rem);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  border-bottom: 1px solid var(--rule);
}
.capability:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.capability-index {
  display: block;
  margin-bottom: 1rem;
  color: var(--gold-ink);
  font: 600 0.8rem var(--heading);
  letter-spacing: 0.14em;
}
.capability-head h3 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}
.capability-lead {
  margin-bottom: 1.25rem;
  font: 500 clamp(1.08rem, 1.45vw, 1.28rem)/1.45 var(--heading);
  letter-spacing: -0.01em;
}
.capability-text > :last-child,
.capability-outcome > :last-child {
  margin-bottom: 0;
}
.capability-themes {
  grid-column: 1 / -1;
}
.theme-label {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
}
.theme {
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-strong);
}
.theme h4 {
  margin: 0 0 0.6rem;
}
.theme p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}
.capability-outcome {
  grid-column: 2;
}
.capability-outcome .outcome {
  margin-top: 0;
}
.capability-outcome p + p {
  margin-top: 1.25rem;
}
.produces-intro {
  color: var(--ink-muted);
  font-size: 1.1rem;
}
.produces-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.produces {
  padding-top: 1.1rem;
  border-top: 1px solid var(--gold-ink);
}
.produces h3 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}
.produces p {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}
.produces-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--ink-muted);
}
@media (max-width: 960px) {
  .capability {
    grid-template-columns: 1fr;
  }
  .capability-head h3 {
    max-width: none;
  }
  .capability-outcome {
    grid-column: 1;
  }
  .theme-grid,
  .produces-grid {
    grid-template-columns: 1fr;
  }
}

/* Legal documents. */
.doc-toc {
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.doc-meta,
.doc-updated {
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.doc-updated {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.doc-address {
  margin: 0 0 1rem;
  font-style: normal;
}
@media (max-width: 960px) {
  .doc-toc {
    max-height: none;
    overflow-y: visible;
  }
}

/* Page heroes with a photograph: same layout as the plain hero, with the image behind a navy overlay. */
.hero-media {
  isolation: isolate;
}
.hero-media::before {
  background:
    linear-gradient(180deg, rgba(5, 12, 22, 0.55) 0, rgba(5, 12, 22, 0) 150px),
    linear-gradient(90deg, rgba(5, 12, 22, 0.88) 0%, rgba(5, 12, 22, 0.74) 42%, rgba(5, 12, 22, 0.34) 66%, rgba(5, 12, 22, 0) 86%),
    linear-gradient(0deg, rgba(5, 12, 22, 0.45), transparent 42%);
  z-index: 1;
}
/* A soft shadow under the words lets the photograph stay lighter. */
.hero-media .container {
  text-shadow: 0 0 2px rgba(5, 12, 22, 0.55), 0 2px 22px rgba(5, 12, 22, 0.6);
}
/* The two brightest photographs keep the heavier overlay. */
.hero-media:has(.page-hero-resources)::before,
.hero-media:has(.page-hero-service-learning)::before {
  background:
    linear-gradient(180deg, rgba(5, 12, 22, 0.78) 0, rgba(5, 12, 22, 0) 190px),
    linear-gradient(90deg, rgba(5, 12, 22, 0.94) 0%, rgba(5, 12, 22, 0.82) 50%, rgba(5, 12, 22, 0.18) 88%),
    linear-gradient(0deg, rgba(5, 12, 22, 0.65), transparent 55%);
}
.hero-media > .page-hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media > .container {
  z-index: 2;
}
@media (max-width: 960px) {
  .hero-media::before {
    background:
      linear-gradient(180deg, rgba(5, 12, 22, 0.68) 0, rgba(5, 12, 22, 0.68) 40%, rgba(5, 12, 22, 0.86) 100%);
  }
  .hero-media:has(.page-hero-resources)::before,
  .hero-media:has(.page-hero-service-learning)::before,
  .hero-media:has(.page-hero-projects)::before {
    background:
      linear-gradient(180deg, rgba(5, 12, 22, 0.8) 0, rgba(5, 12, 22, 0.8) 45%, rgba(5, 12, 22, 0.92) 100%);
  }
}
@media print {
  .page-hero-media {
    display: none;
  }
}

/* Accessibility: state changes that do not rely on a subtle colour shift. */
.filter:not([aria-pressed="true"]):hover {
  border-color: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.button-gold:hover,
.button-dark:hover,
.button-outline:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
a:hover {
  text-decoration-thickness: 2px;
}
.faq-question:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.button:active,
.filter:active,
.share-button:active,
.nav-cta:active,
.hero-slider-button:active,
.conversion-option:active,
.rating-scale label:active,
.choice-options label:active {
  transform: translateY(1px);
}
input[type="date"]:focus {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
}
/* Errors carry a mark as well as colour: the red reads as olive under deuteranopia. */
.field-error:not(:empty)::before {
  content: "!";
  content: "!" / "";
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  line-height: 1.3em;
  text-align: center;
}
/* Home hero on phones: full-width text needs the same even overlay as the page heroes. */
@media (max-width: 600px) {
  .hero-home::before {
    background: linear-gradient(180deg, rgba(5, 12, 22, 0.8) 0, rgba(5, 12, 22, 0.8) 45%, rgba(5, 12, 22, 0.92) 100%);
  }
}
/* Service heroes: keep each photograph's subject clear of the text. */
.page-hero-service-strategy img {
  object-position: 50% 60%;
}
.page-hero-service-brand img {
  object-position: 50% 60%;
}
.page-hero-service-marketing img {
  object-position: 100% 30%;
}
.page-hero-service-digital img {
  object-position: 50% 45%;
}
.page-hero-service-learning img {
  object-position: 100% 55%;
}
/* The longest service title is 2 px too wide on the smallest phones, and the hero would clip it. */
@media (max-width: 340px) {
  .hero-service h1 {
    font-size: 2.35rem;
  }
}

/* Insights index: the featured article shows its photograph above the text. */
.article-feature-media {
  display: block;
  margin-bottom: 1.25rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft);
}
.article-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.article-feature-media:hover img {
  transform: scale(1.02);
}

/* Projects hero: the team sits right of the headline. */
.page-hero-projects img {
  object-position: 75% 50%;
}
/* On wide screens the featured image takes whatever height the neighbouring
   cards need, so it no longer stretches them and their dates sit close to the text. */
@media (min-width: 961px) {
  .insights-page .article-feature .article-feature-media {
    flex: 1 1 0;
    min-height: 220px;
    aspect-ratio: auto;
  }
}
.article .meta:last-child {
  padding-top: 0.75rem;
}
