/*
  Kristofer Tsai Static Motorsport Engineering Portfolio
  --------------------------------------------------------
  Edit this file to adjust colours, spacing, typography, cards, and responsive layout.
  No frameworks, build tools, external fonts, or paid services are used.
*/

:root {
  --bg: #f5efe6;
  --bg-alt: #efe4d2;
  --surface: #fcfaf6;
  --surface-strong: #f2e9db;
  --border: rgba(41, 55, 71, 0.14);
  --text: #1f2a34;
  --muted: #5f6873;
  --muted-strong: #4a5560;
  --accent-blue: #45658f;
  --accent: var(--accent-blue);
  --accent-soft: rgba(79, 110, 154, 0.12);
  --accent-warm: #c6b08c;
  --danger-red: #9c4b44;
  --shadow: 0 10px 30px rgba(31, 42, 52, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1180px;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-section: 5rem;
  --space-section-mobile: 4rem;
  --space-card: 1.35rem;
  --gap-grid: 1.1rem;
  --type-section-title: clamp(2.4rem, 4.6vw, 3.6rem);
  --type-card-title: clamp(1.3rem, 1.8vw, 1.55rem);
  --type-body: 0.98rem;
  --type-small: 0.84rem;
  --type-label: 0.76rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 110, 154, 0.08), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(198, 176, 140, 0.16), transparent 22rem),
    linear-gradient(145deg, #f7f1e7 0%, #efe4d2 48%, #f5efe6 100%);
  line-height: 1.6;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(a, button, [role="link"]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

code {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 0.1rem 0.35rem;
  border-radius: 0.45rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #f8f3ea;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(41, 55, 71, 0.1);
  background: rgba(247, 241, 231, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #f8f2e8;
  background: linear-gradient(135deg, var(--accent), #536d92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.brand-text {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: var(--type-small);
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section,
.hero {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  padding: 6rem 0 4rem;
}

.section {
  padding: var(--space-section) 0;
}

.section-grid {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
}

.eyebrow,
.card-kicker {
  margin: 0 0 0.85rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  font-size: var(--type-label);
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3.8rem, 10vw, 7.8rem);
}

h2 {
  font-size: var(--type-section-title);
  max-width: 860px;
}

h3 {
  font-size: var(--type-card-title);
}

p {
  color: var(--muted-strong);
  font-size: var(--type-body);
}

.hero-subtitle {
  max-width: 780px;
  margin: 1.25rem 0 0;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 680px;
  margin: 1.25rem 0 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions,
.link-row,
.tag-row,
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button,
.link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: var(--type-small);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, color 170ms ease;
}

.button:hover,
.link-row a:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #f8f3ea;
  box-shadow: 0 8px 20px rgba(79, 110, 154, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.button-ghost {
  color: var(--muted-strong);
}

.button-ghost:hover,
.button-secondary:hover,
.link-row a:hover {
  border-color: rgba(79, 110, 154, 0.25);
  background: var(--accent-soft);
  color: var(--text);
}

.resume-download {
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(79, 110, 154, 0.18);
  transition: transform 170ms ease;
}

.resume-download:hover {
  transform: translateY(-2px);
}

.resume-download .button:hover {
  transform: none;
}

.resume-download .button-primary {
  box-shadow: none;
}

.resume-download-primary {
  gap: 0.55rem;
  border-right: 0;
  border-radius: 999px 0 0 999px;
}

.resume-download-format {
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  color: #f8f3ea;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.64rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.resume-download-options {
  position: static;
  display: flex;
  align-self: stretch;
}

.resume-download-toggle {
  width: 44px;
  height: 100%;
  padding: 0;
  border-left-color: rgba(255, 255, 255, 0.28);
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  list-style: none;
}

.resume-download-toggle::-webkit-details-marker {
  display: none;
}

.resume-download-toggle span {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transition: transform 170ms ease;
}

.resume-download-options[open] .resume-download-toggle span {
  transform: rotate(180deg);
}

.resume-download-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.resume-download-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  z-index: 20;
  width: min(260px, calc(100vw - 2.5rem));
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(252, 250, 246, 0.98);
  box-shadow: var(--shadow);
}

.resume-download-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background 160ms ease, color 160ms ease;
}

.resume-download-menu a:hover {
  background: var(--accent-soft);
}

.resume-download-menu strong,
.resume-download-menu small {
  display: block;
}

.resume-download-menu strong {
  font-size: var(--type-small);
}

.resume-download-menu small {
  margin-top: 0.05rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.resume-download-icon {
  color: var(--accent-blue);
  font-weight: 800;
}

.hero-portrait,
.card,
.project-card,
.skill-card,
.contact-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 243, 233, 0.82));
  box-shadow: var(--shadow);
}

.hero-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  justify-self: end;
  width: min(100%, 520px);
  max-height: 660px;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 45%;
}

.section-heading {
  margin-bottom: 1.75rem;
}

.section-heading p {
  max-width: 740px;
  margin-top: 0.85rem;
}

#about .section-heading {
  margin-bottom: 1.4rem;
}

#about .section-heading h2 {
  font-size: var(--type-section-title);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  align-items: start;
}

.about-bio {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}

.about-bio p {
  max-width: 560px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  line-height: 1.62;
}

.about-bio p + p {
  margin-top: 0.95rem;
}

.about-copy {
  border-left: 1px solid var(--border);
  min-width: 0;
  padding-left: 1.75rem;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--text);
  font-size: clamp(0.96rem, 1.45vw, 1.08rem);
}

.about-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.about-table tr {
  border-bottom: 1px solid var(--border);
}

.about-table tr:first-child {
  border-top: 1px solid var(--border);
}

.about-table th,
.about-table td {
  padding: 0.95rem 0;
  text-align: left;
  vertical-align: top;
}

.about-table th {
  width: 33%;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-table td {
  color: var(--text);
  font-weight: 700;
}

.about-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-list li {
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(79, 110, 154, 0.16);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  color: var(--muted-strong);
  background: rgba(79, 110, 154, 0.08);
  font-size: var(--type-label);
  font-weight: 700;
  line-height: 1.3;
}

.course-list li {
  border-radius: 0.75rem;
  overflow-wrap: anywhere;
}

.course-list span {
  color: var(--accent-blue);
  font-size: var(--type-label);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-row {
  margin-top: 1.4rem;
}

.tag-row span,
.tool-row span {
  border: 1px solid rgba(79, 110, 154, 0.16);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: var(--muted-strong);
  background: rgba(79, 110, 154, 0.08);
  font-size: var(--type-small);
}

.card-grid {
  display: grid;
  gap: var(--gap-grid);
}

.experience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.experience-tabs {
  display: grid;
  gap: var(--gap-grid);
}

.experience-tab-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(31, 42, 52, 0.06);
}

.experience-tab {
  min-height: 2.45rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted-strong);
  background: transparent;
  font: inherit;
  font-size: var(--type-small);
  font-weight: 850;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.experience-tab:hover,
.experience-tab:focus-visible {
  color: var(--text);
  background: rgba(79, 110, 154, 0.08);
}

.experience-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.experience-tab.active {
  color: #f8f3ea;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(79, 110, 154, 0.16);
}

.experience-panel[hidden] {
  display: none;
}

.experience-feature {
  grid-column: span 2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 243, 233, 0.88)),
    radial-gradient(circle at 92% 0%, rgba(79, 110, 154, 0.12), transparent 16rem);
  border-color: rgba(79, 110, 154, 0.22);
}

.experience-panel[data-panel="formula"] .experience-feature,
.experience-panel[data-panel="personal"] .experience-feature {
  grid-column: 1 / -1;
}

.experience-compact {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 243, 233, 0.72));
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.experience-meta span {
  border: 1px solid rgba(79, 110, 154, 0.16);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  color: var(--muted-strong);
  background: rgba(79, 110, 154, 0.08);
  font-size: var(--type-label);
  font-weight: 800;
  line-height: 1.3;
}

.experience-project-title,
.project-context {
  color: var(--accent-blue);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
}

.experience-project-title {
  margin: 0.8rem 0 0;
}

.experience-project-title + p {
  margin-top: 0.45rem;
}

.project-context {
  margin: 0.7rem 0 0.9rem;
}

.project-context + p {
  margin-top: 0;
}

.card,
.skill-card {
  border-radius: var(--radius-lg);
  padding: var(--space-card);
}

.card p,
.card li,
.skill-card p {
  font-size: var(--type-body);
}

.card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted-strong);
}

.card li + li {
  margin-top: 0.45rem;
}

.experience-link-row {
  margin-top: 1.1rem;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card[id] {
  scroll-margin-top: 96px;
}

.project-card::before {
  content: "";
  display: block;
  height: 0.4rem;
  background: linear-gradient(90deg, var(--accent-blue), rgba(198, 176, 140, 0.7));
}

.project-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -6px;
}

.project-card:hover,
a.contact-card:hover,
a.contact-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(79, 110, 154, 0.28);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--space-card);
}

.project-body p {
  font-size: var(--type-body);
}

.project-result {
  padding: 0.8rem;
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 0.75rem 0.75rem 0;
  background: rgba(83, 111, 157, 0.11);
}

.tool-row {
  margin: 1rem 0;
}

.project-body .link-row {
  margin-top: auto;
  padding-top: 0.25rem;
}

.project-card-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: var(--type-small);
  font-weight: 800;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, color 170ms ease;
}

.project-card:hover .project-card-cta,
.project-card:focus-visible .project-card-cta {
  transform: translateY(-2px);
  border-color: rgba(79, 110, 154, 0.25);
  color: var(--text);
  background: var(--accent-soft);
}

.link-row a {
  position: relative;
  min-height: 38px;
  padding: 0.55rem 0.75rem;
  color: var(--muted-strong);
  font-size: var(--type-small);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-grid);
}

.skill-card {
  min-height: 0;
}

.skill-tags {
  display: grid;
  gap: 0.48rem;
  list-style: none;
  margin: 1.05rem 0 0;
  padding: 0;
}

.skill-tags li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: baseline;
  color: var(--muted-strong);
  font-size: 0.96rem;
  line-height: 1.35;
}

.skill-tags li::before {
  content: "-";
  color: var(--accent-blue);
  font-weight: 900;
}

.outside-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 3fr);
  gap: 2rem;
  align-items: center;
}

.outside-card h3 {
  margin: 0;
}

.outside-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.outside-list li {
  border: 1px solid rgba(79, 110, 154, 0.16);
  border-radius: var(--radius-md);
  background: rgba(244, 241, 235, 0.55);
  padding: 0.85rem 0.95rem;
}

.outside-list span {
  display: block;
  color: var(--text);
  font-size: var(--type-small);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.outside-list p {
  margin: 0.45rem 0 0;
  color: var(--muted-strong);
  font-size: var(--type-small);
  line-height: 1.45;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-grid);
}

.contact-card {
  display: block;
  border-radius: var(--radius-lg);
  padding: var(--space-card);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-card span {
  display: block;
  color: var(--muted);
  font-size: var(--type-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.contact-card strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--text);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.site-footer {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--text);
  font-weight: 800;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1050px) {
  .section-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .experience-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-feature {
    grid-column: span 2;
  }

  .skills-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outside-card {
    grid-template-columns: 1fr;
  }

  .outside-list {
    grid-template-columns: 1fr;
  }

  .about-copy {
    border-left: 0;
    padding-left: 0;
  }

  .hero-portrait {
    justify-self: start;
    width: min(100%, 420px);
  }
}

@media print {
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 74px 1rem auto 1rem;
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(252, 250, 246, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-1rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
  }

  .section,
  .hero {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .hero,
  .section {
    padding: var(--space-section-mobile) 0;
  }

  .experience-grid,
  .project-grid,
  .skills-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .experience-tab-list {
    display: grid;
    width: 100%;
    border-radius: var(--radius-lg);
  }

  .experience-tab {
    width: 100%;
  }

  .experience-feature {
    grid-column: span 1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Technical report additions */
.technical-project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(79, 110, 154, 0.1), transparent 24rem),
    radial-gradient(circle at 85% 6%, rgba(198, 176, 140, 0.16), transparent 26rem),
    linear-gradient(145deg, #f7f1e7 0%, #efe4d2 48%, #f5efe6 100%);
}

.report-nav-links {
  display: flex;
}

.report-hero {
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.report-hero h1 {
  max-width: 1040px;
  font-size: clamp(2.7rem, 7vw, 6.1rem);
}

.report-meta {
  color: var(--accent-blue);
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--muted-strong);
  font-weight: 800;
}

.back-link:hover {
  color: var(--accent);
}

.report-tools {
  margin-top: 1.25rem;
}

.report-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding-top: 1rem;
}

.report-aside {
  position: sticky;
  top: 96px;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.report-aside p:last-child {
  margin-bottom: 0;
}

.report-document {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(252, 250, 246, 0.82);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 3rem);
}

.report-document h2,
.report-document h3,
.report-document h4 {
  max-width: 100%;
  letter-spacing: 0;
}

.report-document h2 {
  margin-top: 2rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.report-document h3 {
  margin-top: 1.75rem;
  color: var(--text);
  font-size: 1.35rem;
}

.report-document h4 {
  margin-top: 1.25rem;
  color: var(--accent-blue);
  font-size: 1.05rem;
}

.report-document p {
  margin: 1rem 0 0;
  color: var(--muted-strong);
}

.report-document > :first-child {
  margin-top: 0;
}

.report-byline {
  color: var(--text);
}

.report-document ul,
.report-document ol {
  margin: 0.85rem 0 0;
  padding-left: 1.35rem;
  color: var(--muted-strong);
}

.report-document li + li {
  margin-top: 0.35rem;
}

.report-caption {
  margin-top: 1.35rem;
  color: var(--text);
  font-weight: 850;
}

.report-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.sentiment-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 100%;
  margin: 1.25rem 0;
}

.word-cloud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.sentiment-chart-card,
.word-cloud-grid figure {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.sentiment-chart-card {
  display: flex;
  flex-direction: column;
}

.sentiment-chart-card h3,
.word-cloud-grid figcaption {
  margin: 0;
  padding: 0.55rem 0.8rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0;
  border-bottom: 1px solid var(--border);
}

.sentiment-chart-card h3 {
  flex: 0 0 auto;
}

.sentiment-chart-card figure,
.word-cloud-grid figure {
  margin: 0;
}

.sentiment-chart-card figure + figure {
  border-top: 1px solid var(--border);
}

.sentiment-chart-card img,
.word-cloud-grid img {
  width: 100%;
  max-height: none;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.report-document a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.report-document figure {
  display: grid;
  place-items: center;
  width: min(100%, 640px);
  margin: 1.35rem auto;
}

.report-document figure img {
  width: auto;
  max-width: 100%;
  max-height: 430px;
  padding: 0.8rem;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
}

.report-document > figure figcaption {
  width: 100%;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: var(--type-small);
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
}

.report-document .profile-breakdown-figure {
  width: min(100%, 620px);
  margin: 1.5rem auto;
}

.report-document .profile-breakdown-figure img {
  max-height: 410px;
}

.report-document .education-chart-figure img {
  max-height: 460px;
  padding: 1rem 1.5rem 3.5rem;
}

.report-document .sentiment-chart-card img,
.report-document .word-cloud-grid img {
  padding: 0;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.report-document .word-cloud-grid figure {
  width: 100%;
  margin: 0;
}

.report-document .sentiment-chart-card figure {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  padding: 0.35rem;
  background: #fff;
}

.report-document .sentiment-chart-card img {
  width: 100%;
  max-width: 100%;
  max-height: 190px;
}

.table-wrap {
  max-width: 100%;
  margin: 1.4rem 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.46);
}

.table-wrap:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.report-document table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.report-document td,
.report-document th {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0.7rem;
  color: var(--muted-strong);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.report-document caption {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: var(--accent-soft);
  font-size: var(--type-small);
  font-weight: 850;
  line-height: 1.4;
  text-align: left;
}

.report-document thead th {
  color: var(--text);
  background: rgba(79, 110, 154, 0.08);
  font-weight: 850;
  text-align: left;
}

.report-document tbody th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.42);
  font-weight: 800;
  text-align: left;
}

.report-document tr:last-child > * {
  border-bottom: 0;
}

.report-document td:last-child,
.report-document th:last-child {
  border-right: 0;
}

.report-correction {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(198, 176, 140, 0.4);
  border-left: 4px solid var(--accent-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(198, 176, 140, 0.14);
}

.raw-data-block {
  max-width: 100%;
  margin: 1rem 0 1.4rem;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.raw-data-block code {
  display: block;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 0.84rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 1050px) {
  .technical-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-shell {
    grid-template-columns: 1fr;
  }

  .word-cloud-grid {
    grid-template-columns: 1fr;
  }

  .report-aside {
    position: static;
  }
}

@media (max-width: 820px) {
  .sentiment-chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .technical-project-grid {
    grid-template-columns: 1fr;
  }

  .report-nav-links {
    position: static;
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .report-nav-links li:not(:first-child) {
    display: none;
  }

  .report-document table {
    min-width: 420px;
  }
}

/* Independent F1 strategy studies */
.f1-strategy-section {
  position: relative;
  padding-top: var(--space-section);
  scroll-margin-top: 88px;
}

.f1-strategy-shell {
  --f1-line: rgba(79, 110, 154, 0.2);
  --f1-copy: var(--muted-strong);
  --f1-muted: var(--muted);
  --f1-signal: var(--accent-blue);
  color: var(--text);
}

.f1-strategy-shell::before {
  content: none;
}

.f1-strategy-shell > * {
  position: static;
}

.f1-strategy-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.5rem;
  align-items: end;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--f1-line);
}

.f1-strategy-intro .eyebrow,
.f1-study-eyebrow {
  color: var(--f1-signal);
}

.f1-strategy-intro h2 {
  max-width: 760px;
  color: var(--text);
  font-size: var(--type-section-title);
  letter-spacing: 0;
}

.f1-strategy-intro > div > p:last-child {
  max-width: 840px;
  margin: 1rem 0 0;
  color: var(--f1-copy);
}

.f1-strategy-disclaimer {
  margin: 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--f1-signal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--f1-muted);
  background: rgba(79, 110, 154, 0.07);
  font-size: var(--type-small);
  font-weight: 750;
  line-height: 1.55;
}

.f1-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-grid);
  margin-top: 1.5rem;
}

.f1-study-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: var(--space-card);
  border: 1px solid var(--f1-line);
  border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.9), rgba(248, 243, 233, 0.82));
  box-shadow:
    inset 0 3px 0 rgba(79, 110, 154, 0.62),
    0 8px 22px rgba(41, 55, 71, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.f1-study-card:hover,
.f1-study-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(79, 110, 154, 0.42);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(232, 237, 244, 0.78));
  box-shadow:
    inset 0 3px 0 rgba(79, 110, 154, 0.78),
    0 12px 28px rgba(41, 55, 71, 0.1);
}

.f1-study-card:focus-visible {
  outline: 3px solid var(--f1-signal);
  outline-offset: 4px;
}

.f1-study-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.f1-study-eyebrow,
.f1-study-index {
  font-size: var(--type-label);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.f1-study-eyebrow {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--f1-line);
  border-radius: 999px;
  background: rgba(79, 110, 154, 0.08);
  white-space: nowrap;
}

.f1-study-index {
  margin-left: auto;
  color: var(--f1-muted);
  text-align: right;
}

.f1-study-body {
  display: block;
  margin: 1.4rem 0 1.5rem;
}

.f1-study-body h3 {
  color: var(--text);
  font-size: var(--type-card-title);
  letter-spacing: 0;
  line-height: 1.16;
}

.f1-study-body p {
  margin: 0.85rem 0 0;
  color: var(--f1-copy);
  font-size: var(--type-body);
}

.f1-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.f1-study-tags li {
  padding: 0.38rem 0.62rem;
  border: 1px solid var(--f1-line);
  border-radius: 999px;
  color: var(--f1-copy);
  background: rgba(79, 110, 154, 0.08);
  font-size: var(--type-label);
  font-weight: 800;
  line-height: 1.25;
}

.f1-study-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: auto;
  padding: 0.75rem 1rem;
  border: 1px solid var(--f1-line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(79, 110, 154, 0.08);
  font-size: var(--type-small);
  font-weight: 900;
  transition: border-color 170ms ease, background 170ms ease;
}

.f1-study-cta span {
  color: var(--f1-signal);
  font-size: 1.2rem;
  transition: transform 170ms ease;
}

.f1-study-card:hover .f1-study-cta span,
.f1-study-card:focus-visible .f1-study-cta span {
  transform: translateX(0.25rem);
}

.f1-study-card:hover .f1-study-cta,
.f1-study-card:focus-visible .f1-study-cta {
  border-color: rgba(79, 110, 154, 0.34);
  background: var(--accent-soft);
}

@media (max-width: 1050px) {
  .f1-study-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f1-study-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .f1-strategy-intro {
    grid-template-columns: 1fr;
  }

  .f1-strategy-disclaimer {
    max-width: 440px;
  }
}

@media (max-width: 760px) {
  .f1-strategy-section {
    width: min(100% - 1.25rem, var(--max-width));
    padding-top: var(--space-section-mobile);
  }

  .f1-study-card {
    min-height: 0;
    border-radius: 14px;
  }

  .f1-study-grid {
    grid-template-columns: 1fr;
  }

  .f1-study-card:first-child {
    grid-column: auto;
  }
}

/* Bruin Formula Racing section */
.bfr-section {
  position: relative;
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.bfr-section::before {
  content: none;
}

.bfr-section > * {
  position: relative;
  z-index: 1;
}

.bfr-section .eyebrow,
.bfr-section .card-kicker {
  color: var(--accent-blue);
}

.bfr-section h2,
.bfr-section h3 {
  color: var(--text);
}

.bfr-section p {
  color: var(--muted-strong);
}

.bfr-intro-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border);
}

.bfr-intro-card h2 {
  font-size: var(--type-section-title);
  letter-spacing: 0;
}

.bfr-intro-card p {
  max-width: 840px;
  margin: 1rem 0 0;
}

.bfr-intro-subtitle {
  margin: 0.65rem 0 0;
  color: var(--accent-blue);
  font-size: 1.08rem;
  font-weight: 850;
}

.bfr-intro-metrics {
  display: grid;
  gap: 0.3rem;
  justify-items: start;
  padding: 1rem;
  border-left: 3px solid var(--accent-blue);
  background: rgba(79, 110, 154, 0.08);
}

.bfr-intro-metrics span {
  color: var(--muted);
  font-size: var(--type-label);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bfr-intro-metrics strong {
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.1;
}

.bfr-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-grid);
}

.bfr-panel {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: var(--space-card);
  border: 1px solid rgba(41, 55, 71, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(248, 243, 233, 0.88)),
    rgba(252, 250, 246, 0.78);
  box-shadow: 0 10px 26px rgba(31, 42, 52, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.bfr-panel-link {
  cursor: pointer;
}

.bfr-panel-link:hover,
.bfr-panel-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(79, 110, 154, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 233, 219, 0.94)),
    rgba(252, 250, 246, 0.92);
}

.bfr-panel:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: -6px;
}

.bfr-panel-feature {
  border-color: rgba(79, 110, 154, 0.28);
}

.bfr-panel-topline,
.bfr-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.bfr-panel-topline {
  justify-content: space-between;
}

.bfr-signal-row {
  justify-content: flex-start;
}

.bfr-panel-index {
  color: var(--muted);
  font-size: var(--type-label);
  font-weight: 900;
  letter-spacing: 0.16em;
}

.bfr-panel h3 {
  margin-top: 1.4rem;
  font-size: var(--type-card-title);
  letter-spacing: 0;
}

.bfr-panel-subtitle {
  margin: 0.7rem 0 0;
  color: var(--accent-blue);
  font-size: 1rem;
  font-weight: 800;
}

.bfr-panel p:not(.bfr-panel-subtitle) {
  margin-top: 1rem;
  font-size: var(--type-body);
}

.bfr-panel .link-row {
  margin-top: auto;
  padding-top: 1rem;
}

.bfr-panel .link-row a {
  color: var(--text);
  border-color: rgba(79, 110, 154, 0.22);
  background: rgba(79, 110, 154, 0.08);
}

.bfr-panel .bfr-panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(79, 110, 154, 0.22);
  border-radius: 999px;
  color: var(--text);
  background: rgba(79, 110, 154, 0.08);
  font-size: var(--type-small);
  font-weight: 800;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.bfr-panel-link:hover .bfr-panel-cta,
.bfr-panel-link:focus-visible .bfr-panel-cta {
  transform: translateY(-2px);
  border-color: rgba(79, 110, 154, 0.34);
  background: var(--accent-soft);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(41, 55, 71, 0.14);
  border-radius: 999px;
  font-size: var(--type-label);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-usable {
  color: #2f6b4a;
  border-color: rgba(62, 126, 88, 0.25);
  background: rgba(62, 126, 88, 0.1);
}

.status-complete {
  color: #2f6b4a;
  border-color: rgba(62, 126, 88, 0.25);
  background: rgba(62, 126, 88, 0.1);
}

.status-caution,
.status-progress {
  color: #7a5a21;
  border-color: rgba(152, 112, 43, 0.24);
  background: rgba(198, 176, 140, 0.18);
}

.status-excluded {
  color: #8f443d;
  border-color: rgba(156, 75, 68, 0.24);
  background: rgba(156, 75, 68, 0.09);
}

/* BFR case study page */
.bfr-case-page {
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(79, 110, 154, 0.1), transparent 24rem),
    radial-gradient(circle at 85% 6%, rgba(198, 176, 140, 0.16), transparent 26rem),
    linear-gradient(145deg, #f7f1e7 0%, #efe4d2 48%, #f5efe6 100%);
}

.bfr-case-page .site-header {
  border-bottom-color: rgba(41, 55, 71, 0.1);
  background: rgba(247, 241, 231, 0.9);
}

.bfr-case-page .brand-text,
.bfr-case-page .nav-links a,
.bfr-case-page .site-footer,
.bfr-case-page .site-footer a {
  color: var(--text);
}

.bfr-case-page .nav-links a:hover,
.bfr-case-page .nav-links a.active {
  background: rgba(79, 110, 154, 0.1);
}

.bfr-case-hero h1 {
  color: var(--text);
  letter-spacing: 0;
}

.bfr-case-hero .hero-subtitle,
.bfr-case-page .report-document h2,
.bfr-case-page .report-document h3,
.bfr-case-page .report-document h4 {
  color: var(--text);
}

.case-hero-copy {
  max-width: 980px;
  margin-top: 1.25rem;
  color: var(--muted-strong);
  font-size: 1.05rem;
}

.bfr-case-page .back-link,
.bfr-case-page .eyebrow,
.bfr-case-page .report-meta {
  color: var(--accent-blue);
}

.bfr-case-page .tool-row span {
  color: var(--muted-strong);
  border-color: rgba(79, 110, 154, 0.16);
  background: rgba(79, 110, 154, 0.08);
}

.bfr-case-page .report-aside {
  border-left-color: var(--accent-blue);
}

.bfr-case-page .report-aside p,
.bfr-case-page .report-document p,
.bfr-case-page .report-document td,
.bfr-case-page .report-document th {
  color: var(--muted-strong);
}

.bfr-case-document {
  border-color: rgba(41, 55, 71, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 243, 233, 0.88)),
    rgba(252, 250, 246, 0.82);
  box-shadow: var(--shadow);
}

.case-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.case-summary-card,
.case-step {
  border: 1px solid rgba(41, 55, 71, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.case-summary-card {
  min-height: 118px;
  padding: 1rem;
}

.case-summary-card strong {
  display: block;
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1.05;
}

.case-summary-card span {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
}

.workflow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.workflow-strip span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(79, 110, 154, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(79, 110, 154, 0.08);
  font-size: 0.84rem;
  font-weight: 850;
}

.case-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.case-step {
  padding: 1rem;
}

.case-step h3 {
  margin-top: 0.85rem;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.technical-table-wrap {
  border-color: rgba(41, 55, 71, 0.14);
  background: rgba(255, 255, 255, 0.46);
}

.bfr-case-page .report-document table {
  min-width: 680px;
}

.bfr-case-page .report-document th {
  color: var(--text);
  background: rgba(79, 110, 154, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bfr-case-page .report-document tbody th {
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: none;
}

.bfr-case-page .report-document td,
.bfr-case-page .report-document th {
  border-color: rgba(41, 55, 71, 0.12);
}

.bfr-case-page code {
  color: var(--accent-blue);
  border-color: rgba(79, 110, 154, 0.18);
  background: rgba(79, 110, 154, 0.08);
}

.formula-block {
  margin: 1.2rem 0 0;
  overflow-x: auto;
  border: 1px solid rgba(79, 110, 154, 0.2);
  border-radius: 14px;
  background: rgba(79, 110, 154, 0.08);
}

.formula-block code {
  display: block;
  padding: 1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.engineering-takeaway {
  margin-top: 2rem;
  padding: var(--space-card);
  border: 1px solid rgba(79, 110, 154, 0.18);
  border-left: 4px solid var(--accent-blue);
  border-radius: 14px;
  background: rgba(79, 110, 154, 0.08);
}

.engineering-takeaway h2 {
  margin-top: 0;
}

@media (max-width: 1050px) {
  .bfr-intro-card,
  .case-step-grid {
    grid-template-columns: 1fr;
  }

  .bfr-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bfr-panel-feature {
    grid-column: 1 / -1;
  }

  .case-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .bfr-section {
    width: min(100% - 1.25rem, var(--max-width));
    padding-top: var(--space-section-mobile);
    padding-bottom: var(--space-section-mobile);
  }

  .bfr-panel {
    border-radius: 14px;
  }

  .bfr-panel-grid {
    grid-template-columns: 1fr;
  }

  .bfr-panel-feature {
    grid-column: auto;
  }

  .bfr-intro-metrics {
    border-left: 0;
    border-top: 3px solid var(--accent-blue);
  }

  .case-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Motor torque response case study */
.motor-case-page {
  overflow-x: clip;
}

.motor-case-page a:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 4px;
  border-radius: 0.35rem;
}

.motor-case-hero {
  padding-bottom: 2.5rem;
}

.motor-case-hero h1 {
  max-width: 1080px;
  font-size: clamp(2.7rem, 6.6vw, 5.9rem);
}

.motor-case-hero .hero-subtitle {
  max-width: 940px;
}

.motor-case-hero-copy {
  max-width: 900px;
  margin: 1.25rem 0 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
}

.motor-case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.motor-case-meta-item {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(79, 110, 154, 0.16);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(79, 110, 154, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.motor-case-content {
  display: grid;
  gap: 1.25rem;
  padding-top: 0;
}

.motor-case-panel {
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  border: 1px solid rgba(41, 55, 71, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 243, 233, 0.9)),
    rgba(252, 250, 246, 0.84);
  box-shadow: var(--shadow);
}

.motor-case-panel h2,
.motor-case-panel h3 {
  max-width: 100%;
  color: var(--text);
  letter-spacing: 0;
}

.motor-case-panel h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.motor-case-panel p {
  color: var(--muted-strong);
}

.motor-case-metrics > h2 {
  margin-bottom: 1.25rem;
}

.motor-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.motor-metric-card {
  display: flex;
  min-width: 0;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(41, 55, 71, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.motor-metric-card--priority {
  border-color: rgba(79, 110, 154, 0.34);
  background: linear-gradient(145deg, rgba(79, 110, 154, 0.16), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 3px 0 rgba(79, 110, 154, 0.72);
}

.motor-metric-label {
  color: var(--muted-strong);
  font-size: var(--type-label);
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.motor-metric-value {
  margin: 0.75rem 0 0;
  color: var(--text);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.motor-metric-card--priority .motor-metric-value {
  color: var(--accent-blue);
  font-size: clamp(1.95rem, 3vw, 2.55rem);
}

.motor-case-question {
  border-left: 4px solid var(--accent-blue);
}

.motor-case-question p {
  max-width: 880px;
  margin: 1rem 0 0;
  font-size: 1.08rem;
}

.motor-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.motor-method-step {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(41, 55, 71, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.motor-method-number {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-blue);
  background: rgba(79, 110, 154, 0.11);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.motor-method-copy h3 {
  margin: 0;
  font-size: 1.1rem;
}

.motor-method-copy p {
  margin: 0.55rem 0 0;
  font-size: 0.93rem;
}

.motor-channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.motor-channel-list code {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-color: rgba(79, 110, 154, 0.18);
  background: rgba(79, 110, 154, 0.08);
}

.motor-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.motor-result--reverse .motor-result-figure {
  order: 2;
}

.motor-result--reverse .motor-result-copy {
  order: 1;
}

.motor-result-figure {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(41, 55, 71, 0.14);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 42, 52, 0.06);
}

.motor-result-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #fff;
}

.motor-result-caption {
  display: block;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid rgba(41, 55, 71, 0.12);
  color: var(--muted);
  background: rgba(252, 250, 246, 0.92);
  font-size: 0.78rem;
  line-height: 1.45;
}

.motor-result-kicker {
  margin: 0 0 0.65rem;
  color: var(--accent-blue);
  font-size: var(--type-label);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.motor-result-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.motor-result-copy > p:not(.motor-result-kicker) {
  margin: 1rem 0 0;
}

.motor-result-highlight {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(79, 110, 154, 0.2);
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text);
  background: rgba(79, 110, 154, 0.09);
  font-weight: 850;
}

.motor-result-highlight strong {
  margin-left: 0.2rem;
  color: var(--accent-blue);
}

.motor-result-supporting {
  padding-top: 0.15rem;
  color: var(--text) !important;
  font-weight: 750;
}

.motor-distribution-list {
  margin: 1.15rem 0 0;
  overflow: hidden;
  border: 1px solid rgba(41, 55, 71, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
}

.motor-distribution-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(41, 55, 71, 0.1);
}

.motor-distribution-row:last-child {
  border-bottom: 0;
}

.motor-distribution-row dt,
.motor-distribution-row dd {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.motor-distribution-row dd {
  color: var(--text);
  font-weight: 900;
}

.motor-interpretation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.motor-interpretation-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(41, 55, 71, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.motor-interpretation-card h3 {
  font-size: 1.12rem;
}

.motor-interpretation-card p {
  margin: 0.7rem 0 0;
}

.motor-case-takeaway {
  position: relative;
  overflow: hidden;
  border-color: rgba(79, 110, 154, 0.28);
  border-left: 5px solid var(--accent-blue);
  background:
    radial-gradient(circle at 90% 0%, rgba(198, 176, 140, 0.28), transparent 18rem),
    linear-gradient(135deg, rgba(79, 110, 154, 0.15), rgba(255, 255, 255, 0.76));
}

.motor-case-takeaway p {
  max-width: 920px;
  margin: 1rem 0 0;
  color: var(--text);
  font-size: 1.08rem;
}

.motor-case-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 0;
}

.motor-case-footer-nav > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(79, 110, 154, 0.2);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
  font-size: var(--type-small);
  font-weight: 850;
  margin: 0;
}

.motor-case-footer-nav > a:hover {
  border-color: rgba(79, 110, 154, 0.36);
  background: var(--accent-soft);
}

.motor-next-project {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  text-align: right;
}

.motor-next-project span {
  color: var(--muted);
  font-size: var(--type-label);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.motor-next-project strong {
  color: var(--text);
  font-size: 0.95rem;
}

@media (max-width: 1050px) {
  .motor-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .motor-result-grid {
    grid-template-columns: 1fr;
  }

  .motor-result--reverse .motor-result-figure,
  .motor-result--reverse .motor-result-copy {
    order: initial;
  }

  .motor-result-figure {
    max-width: 760px;
  }

  .motor-interpretation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .motor-case-hero {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
  }

  .motor-case-content {
    gap: 0.9rem;
  }

  .motor-case-panel {
    border-radius: 16px;
  }

  .motor-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .motor-metric-card {
    min-height: 116px;
    padding: 0.85rem;
  }

  .motor-metric-card:last-child {
    grid-column: 1 / -1;
  }

  .motor-method-list {
    grid-template-columns: 1fr;
  }

  .motor-result {
    padding: 0.75rem;
  }

  .motor-result-copy {
    padding: 0.25rem;
  }

  .motor-case-footer-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .motor-next-project {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .motor-metrics-grid {
    grid-template-columns: 1fr;
  }

  .motor-metric-card:last-child {
    grid-column: auto;
  }

  .motor-case-meta {
    display: grid;
  }

  .motor-case-meta-item {
    justify-content: center;
  }

  .motor-method-step {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.85rem;
  }

  .motor-method-number {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Thermal response case study */
.thermal-case-hero h1 {
  max-width: 1120px;
}

.thermal-hero-navigation {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.thermal-hero-navigation .back-link {
  min-height: 44px;
  align-items: center;
  margin: 0;
}

.thermal-previous-link {
  max-width: 430px;
  justify-content: flex-end;
  text-align: right;
}

.thermal-context-intro {
  max-width: 940px;
  margin: 1rem 0 0;
  font-size: 1.04rem;
}

.thermal-energy-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.thermal-energy-flow li {
  position: relative;
  display: grid;
  min-height: 72px;
  place-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(79, 110, 154, 0.22);
  border-radius: var(--radius-md);
  color: var(--text);
  background: linear-gradient(145deg, rgba(79, 110, 154, 0.12), rgba(255, 255, 255, 0.7));
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
}

.thermal-energy-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -1.06rem;
  color: var(--accent-blue);
  font-size: 1.2rem;
  font-weight: 900;
}

.thermal-component-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.thermal-component-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(41, 55, 71, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.thermal-component-card--wide {
  grid-column: span 2;
}

.thermal-component-card dt {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
}

.thermal-component-card dd {
  margin: 0.65rem 0 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.thermal-method-step--final {
  grid-column: 1 / -1;
}

.thermal-result-stack {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.thermal-result-figure {
  width: 100%;
  max-width: none;
}

.thermal-plot-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fff;
}

.thermal-plot-zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(79, 110, 154, 0.24);
  border-radius: 999px;
  color: var(--text);
  background: rgba(252, 250, 246, 0.94);
  box-shadow: 0 4px 14px rgba(31, 42, 52, 0.12);
  font-size: 0.74rem;
  font-weight: 850;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.thermal-plot-link:hover .thermal-plot-zoom,
.thermal-plot-link:focus-visible .thermal-plot-zoom {
  opacity: 1;
  transform: translateY(0);
}

.thermal-result-caption {
  color: var(--muted-strong);
}

.thermal-result-details {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.thermal-result--reverse .thermal-result-copy {
  order: 2;
}

.thermal-result--reverse .thermal-data-block {
  order: 1;
}

.thermal-data-block {
  min-width: 0;
}

.thermal-data-block > h3 {
  margin: 0 0 0.8rem;
  font-size: 1.12rem;
}

.thermal-stat-list {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(41, 55, 71, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
}

.thermal-stat-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(41, 55, 71, 0.1);
}

.thermal-stat-row:last-child {
  border-bottom: 0;
}

.thermal-stat-row--priority {
  background: rgba(79, 110, 154, 0.08);
}

.thermal-stat-row dt {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.3;
}

.thermal-stat-row dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0;
}

.thermal-stat-row dd span {
  display: inline-flex;
  gap: 0.28rem;
  color: var(--muted-strong);
  font-size: 0.78rem;
  white-space: nowrap;
}

.thermal-stat-row dd strong {
  color: var(--text);
}

.thermal-table-wrap {
  overflow: hidden;
  border: 1px solid rgba(41, 55, 71, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.54);
}

.thermal-result-table {
  width: 100%;
  border-collapse: collapse;
}

.thermal-result-table caption {
  padding: 0.8rem;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 900;
  text-align: left;
}

.thermal-result-table th,
.thermal-result-table td {
  padding: 0.58rem 0.8rem;
  border-top: 1px solid rgba(41, 55, 71, 0.1);
  color: var(--muted-strong);
  font-size: 0.86rem;
  text-align: left;
}

.thermal-result-table thead th {
  color: var(--text);
  background: rgba(79, 110, 154, 0.08);
  font-size: var(--type-label);
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.thermal-result-table tbody th {
  font-weight: 750;
}

.thermal-result-table td:last-child {
  color: var(--text);
  font-weight: 900;
  white-space: nowrap;
}

.thermal-table-priority {
  background: rgba(79, 110, 154, 0.07);
}

.thermal-observation-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thermal-observation-list li {
  position: relative;
  padding: 0.72rem 0.8rem 0.72rem 2.15rem;
  border: 1px solid rgba(41, 55, 71, 0.12);
  border-radius: 0.75rem;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.thermal-observation-list li::before {
  content: "";
  position: absolute;
  top: 1.02rem;
  left: 0.88rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--accent-blue);
}

.thermal-caution {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(79, 110, 154, 0.18);
  border-left: 4px solid var(--accent-warm);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--muted-strong);
  background: rgba(198, 176, 140, 0.12);
  font-size: 0.9rem;
}

.thermal-interpretation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thermal-scope p:last-child {
  max-width: 940px;
  margin: 1rem 0 0;
  font-size: 1.04rem;
}

.thermal-footer-previous {
  max-width: 520px;
  margin-left: auto !important;
  text-align: right;
}

@media (max-width: 900px) {
  .thermal-component-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thermal-result-details {
    grid-template-columns: 1fr;
  }

  .thermal-result--reverse .thermal-result-copy,
  .thermal-result--reverse .thermal-data-block {
    order: initial;
  }

  .thermal-interpretation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .thermal-hero-navigation {
    align-items: flex-start;
    flex-direction: column;
  }

  .thermal-previous-link {
    max-width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .thermal-energy-flow,
  .thermal-component-grid {
    grid-template-columns: 1fr;
  }

  .thermal-energy-flow {
    gap: 1.25rem;
  }

  .thermal-energy-flow li:not(:last-child)::after {
    right: auto;
    bottom: -1.12rem;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  .thermal-component-card--wide,
  .thermal-method-step--final {
    grid-column: auto;
  }

  .thermal-result-figure {
    max-width: none;
  }

  .thermal-footer-previous {
    max-width: 100%;
    margin-left: 0 !important;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .thermal-interpretation-grid {
    grid-template-columns: 1fr;
  }

  .thermal-stat-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .thermal-plot-zoom {
    right: 0.5rem;
    bottom: 0.5rem;
  }
}

/* F1 strategy case study */
.f1-case-page {
  --strategy-accent: var(--accent-blue);
  --strategy-accent-strong: #35577f;
  --strategy-warm: #755c3c;
  --strategy-ink: var(--text);
  --strategy-line: rgba(79, 110, 154, 0.18);
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0%, rgba(79, 110, 154, 0.11), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(198, 176, 140, 0.16), transparent 28rem),
    linear-gradient(145deg, #f7f1e7 0%, #efe4d2 48%, #f5efe6 100%);
}

.f1-case-page .site-header {
  border-bottom-color: rgba(45, 67, 79, 0.12);
  background: rgba(247, 241, 231, 0.92);
}

.f1-case-page a:focus-visible {
  outline: 3px solid var(--strategy-accent);
  outline-offset: 4px;
  border-radius: 0.35rem;
}

.strategy-hero {
  padding-top: 4.5rem;
  padding-bottom: 2.75rem;
}

.strategy-hero h1 {
  max-width: 1120px;
  color: var(--strategy-ink);
  font-size: clamp(2.65rem, 6.4vw, 5.7rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.strategy-hero .eyebrow,
.strategy-section-heading .eyebrow,
.strategy-panel > .eyebrow,
.strategy-driver-label,
.strategy-pair-summary .eyebrow,
.strategy-caveat .eyebrow {
  color: var(--strategy-accent-strong);
}

.strategy-back-link {
  color: var(--strategy-accent-strong);
}

.strategy-back-link:hover {
  color: var(--strategy-warm);
}

.strategy-hero-subtitle {
  max-width: 920px;
  margin-top: 1.35rem;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}

.strategy-disclaimer {
  width: fit-content;
  max-width: 720px;
  margin: 1.35rem 0 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(79, 110, 154, 0.22);
  border-left: 4px solid var(--strategy-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--muted-strong);
  background: rgba(79, 110, 154, 0.08);
  font-size: var(--type-small);
  font-weight: 780;
}

.strategy-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.strategy-topic-list li {
  display: inline-flex;
  min-height: 2.1rem;
  align-items: center;
  padding: 0.38rem 0.68rem;
  border: 1px solid var(--strategy-line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.46);
  font-size: var(--type-label);
  font-weight: 850;
}

.strategy-content {
  display: grid;
  gap: 1.25rem;
  padding-top: 0;
}

.strategy-panel {
  min-width: 0;
  padding: clamp(1.25rem, 3.5vw, 2.65rem);
  border: 1px solid var(--strategy-line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 243, 233, 0.91)),
    rgba(252, 250, 246, 0.84);
  box-shadow: var(--shadow);
}

.strategy-panel h2,
.strategy-panel h3 {
  max-width: 100%;
  color: var(--strategy-ink);
  letter-spacing: 0;
}

.strategy-panel h2 {
  font-size: clamp(1.8rem, 3.3vw, 2.75rem);
  line-height: 1.08;
}

.strategy-panel h3 {
  font-size: 1.15rem;
}

.strategy-panel p,
.strategy-panel li,
.strategy-panel dt {
  color: var(--muted-strong);
}

.strategy-panel a:not(.strategy-figure-link) {
  color: var(--strategy-accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.strategy-section-heading {
  max-width: 900px;
}

.strategy-lead {
  max-width: 920px;
  margin: 1rem 0 0;
  font-size: 1.04rem;
}

.strategy-decision-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.strategy-decision-list li {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--strategy-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
}

.strategy-step-number {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  color: var(--strategy-accent-strong);
  background: rgba(79, 110, 154, 0.1);
  font-size: var(--type-label);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.strategy-decision-list h3 {
  margin-top: 0.85rem;
  font-size: 1.02rem;
  line-height: 1.3;
}

.strategy-decision-list p {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.strategy-figure {
  width: 100%;
  margin: clamp(1.5rem, 4vw, 2.35rem) 0 0;
  overflow: hidden;
  border: 1px solid rgba(45, 67, 79, 0.2);
  border-radius: var(--radius-md);
  background: #050607;
  box-shadow: 0 10px 24px rgba(31, 42, 52, 0.1);
}

.strategy-figure-link {
  display: block;
  min-width: 0;
  background: #050607;
  cursor: zoom-in;
}

.strategy-figure-link:focus-visible {
  outline: 3px solid var(--strategy-accent);
  outline-offset: -4px;
  border-radius: var(--radius-md);
}

.strategy-figure-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  background: #050607;
}

.strategy-figure-action {
  display: flex;
  min-height: 2.6rem;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid rgba(171, 197, 210, 0.18);
  color: #dce5e9;
  background: #101920;
  font-size: var(--type-label);
  font-weight: 850;
  letter-spacing: 0.04em;
}

.strategy-figure-link:hover .strategy-figure-action,
.strategy-figure-link:focus-visible .strategy-figure-action {
  color: #fff;
  background: #172631;
}

.strategy-figure-caption {
  display: block;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--strategy-line);
  color: var(--muted-strong);
  background: rgba(252, 250, 246, 0.98);
  font-size: 0.79rem;
  line-height: 1.5;
}

.strategy-driver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.strategy-driver-card {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border: 1px solid var(--strategy-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.strategy-driver-label {
  margin: 0 0 0.4rem;
  font-size: var(--type-label);
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.strategy-driver-card h3 {
  min-height: 2.7em;
  margin: 0;
  font-size: 1.15rem;
}

.strategy-metric-list {
  margin: 1.1rem 0 0;
  overflow: hidden;
  border: 1px solid var(--strategy-line);
  border-radius: 12px;
  background: rgba(247, 241, 231, 0.58);
}

.strategy-metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.7fr);
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid rgba(45, 67, 79, 0.11);
}

.strategy-metric-row:last-child {
  border-bottom: 0;
}

.strategy-metric-row dt,
.strategy-metric-row dd {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.35;
}

.strategy-metric-row dd {
  color: var(--strategy-ink);
  font-weight: 900;
  text-align: right;
}

.strategy-metric-row--priority {
  background: rgba(79, 110, 154, 0.09);
}

.strategy-metric-row--priority dd {
  color: var(--strategy-accent-strong);
}

.strategy-pair-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(79, 110, 154, 0.24);
  border-radius: var(--radius-md);
  background: rgba(79, 110, 154, 0.08);
}

.strategy-pair-summary h3 {
  margin: 0;
}

.strategy-pair-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.strategy-pair-metrics > div {
  padding: 0.8rem;
  border: 1px solid var(--strategy-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.strategy-pair-metrics dt,
.strategy-pair-metrics dd {
  margin: 0;
}

.strategy-pair-metrics dt {
  font-size: var(--type-label);
  font-weight: 820;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.strategy-pair-metrics dd {
  margin-top: 0.55rem;
  color: var(--strategy-ink);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
}

.strategy-caveat {
  margin-top: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(198, 176, 140, 0.38);
  border-left: 4px solid var(--accent-warm);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(198, 176, 140, 0.13);
}

.strategy-caveat h3,
.strategy-caveat p {
  max-width: 900px;
}

.strategy-caveat h3 {
  margin: 0;
}

.strategy-caveat p:last-child {
  margin: 0.65rem 0 0;
}

.strategy-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
  margin-top: 1rem;
}

.strategy-copy-grid p {
  max-width: 760px;
  margin: 0;
}

.strategy-copy-grid p + p {
  margin-top: 1rem;
}

.strategy-findings {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strategy-findings li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--strategy-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.strategy-findings strong {
  color: var(--strategy-accent-strong);
  font-size: 0.86rem;
  white-space: nowrap;
}

.strategy-findings span {
  font-size: 0.84rem;
  line-height: 1.35;
}

.strategy-pull-quote {
  margin: 1.3rem 0 0;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid rgba(79, 110, 154, 0.22);
  border-left: 5px solid var(--strategy-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background:
    radial-gradient(circle at 92% 0%, rgba(198, 176, 140, 0.14), transparent 17rem),
    rgba(79, 110, 154, 0.08);
}

.strategy-pull-quote p {
  max-width: 920px;
  margin: 0;
  color: var(--strategy-ink);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  font-weight: 780;
  line-height: 1.55;
}

.strategy-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.4rem 0 0;
}

.strategy-evidence-card {
  min-width: 0;
  min-height: 130px;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--strategy-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
}

.strategy-evidence-card--wide {
  grid-column: span 2;
}

.strategy-evidence-card dt {
  font-size: var(--type-label);
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.strategy-evidence-card dd {
  margin: 0.75rem 0 0;
  color: var(--strategy-ink);
  font-size: clamp(1.02rem, 1.7vw, 1.25rem);
  font-weight: 900;
  line-height: 1.3;
}

.strategy-drs-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.strategy-drs-notes p {
  margin: 0;
  padding: 1rem;
  border-top: 3px solid rgba(79, 110, 154, 0.48);
  background: rgba(79, 110, 154, 0.06);
  font-size: 0.91rem;
  line-height: 1.58;
}

.strategy-verdict {
  position: relative;
  overflow: hidden;
  border-color: rgba(79, 110, 154, 0.28);
  border-left: 6px solid var(--accent-blue);
  color: var(--text);
  background:
    radial-gradient(circle at 94% 0%, rgba(79, 110, 154, 0.14), transparent 19rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 237, 244, 0.88));
  box-shadow: var(--shadow);
}

.strategy-verdict > .eyebrow {
  color: var(--strategy-accent-strong);
}

.strategy-verdict h2 {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.strategy-verdict p,
.strategy-verdict .strategy-verdict-lead {
  max-width: 940px;
  color: var(--muted-strong);
}

.strategy-verdict-lead {
  margin: 1rem 0 0;
  font-size: 1.08rem;
  font-weight: 780;
}

.strategy-verdict p:last-child {
  margin: 0.85rem 0 0;
}

.strategy-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.strategy-method-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--strategy-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
}

.strategy-method-card--wide {
  grid-column: 1 / -1;
}

.strategy-method-card h3 {
  margin: 0;
}

.strategy-method-card p,
.strategy-method-card ul {
  margin-top: 0.75rem;
}

.strategy-method-card ul {
  padding-left: 1.2rem;
}

.strategy-method-card li {
  font-size: 0.91rem;
  line-height: 1.55;
}

.strategy-method-card li + li {
  margin-top: 0.45rem;
}

.strategy-lap-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.85rem 0 0;
}

.strategy-lap-counts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem;
  border: 1px solid var(--strategy-line);
  border-radius: 10px;
  background: rgba(247, 241, 231, 0.64);
}

.strategy-lap-counts dt,
.strategy-lap-counts dd {
  margin: 0;
}

.strategy-lap-counts dd {
  color: var(--strategy-accent-strong);
  font-size: 1.12rem;
  font-weight: 900;
}

.strategy-source-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.strategy-source-list a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--strategy-line);
  border-radius: 12px;
  color: var(--strategy-ink) !important;
  background: rgba(255, 255, 255, 0.54);
  font-weight: 850;
  text-decoration: none !important;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.strategy-source-list a:hover,
.strategy-source-list a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(79, 110, 154, 0.34);
  background: rgba(79, 110, 154, 0.08);
}

.strategy-source-list a span:last-child {
  color: var(--strategy-accent-strong);
  font-size: var(--type-label);
  white-space: nowrap;
}

.strategy-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0 0;
}

.strategy-footer-nav .strategy-back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--strategy-line);
  border-radius: 999px;
  color: var(--strategy-ink);
  background: rgba(255, 255, 255, 0.48);
  font-size: var(--type-small);
  font-weight: 850;
}

.strategy-footer-nav a:hover {
  border-color: rgba(79, 110, 154, 0.34);
  background: rgba(79, 110, 154, 0.08);
}

/* Brazil 2024 strategy case */
.strategy-research-question {
  max-width: 920px;
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(79, 110, 154, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.46);
}

.strategy-research-question .eyebrow {
  margin-bottom: 0.4rem;
}

.strategy-research-question p:last-child {
  margin: 0;
  color: var(--strategy-ink);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 780;
  line-height: 1.45;
}

.strategy-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.strategy-summary-card {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--strategy-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.strategy-summary-card--qualified {
  border-left: 4px solid var(--accent-warm);
  background: rgba(198, 176, 140, 0.11);
}

.strategy-summary-card dt {
  font-size: var(--type-label);
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
}

.strategy-summary-card dd {
  margin: 0.65rem 0 0;
  color: var(--strategy-accent-strong);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.strategy-summary-card dd > span {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

.strategy-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.strategy-event-grid li {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--strategy-line);
  border-top: 3px solid rgba(79, 110, 154, 0.48);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
}

.strategy-event-grid strong {
  color: var(--strategy-accent-strong);
  font-size: var(--type-label);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-event-grid span {
  color: var(--strategy-ink);
  font-size: 0.92rem;
  font-weight: 820;
}

.strategy-phase-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.strategy-caveat--key {
  border-color: rgba(79, 110, 154, 0.3);
  border-left-color: var(--strategy-accent);
  background: rgba(79, 110, 154, 0.09);
}

.strategy-counterfactual-results {
  margin-top: 1.4rem;
}

.strategy-counterfactual-results .strategy-evidence-card {
  min-height: 0;
}

.strategy-counterfactual-results dd {
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  overflow-wrap: anywhere;
}

.strategy-driver-note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.strategy-subheading {
  margin-top: 1.6rem;
  font-size: 1.15rem;
}

.strategy-pace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.strategy-pace-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--strategy-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
}

.strategy-pace-card h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--strategy-accent-strong);
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1.08;
}

.strategy-pace-card dl {
  margin: 0.8rem 0 0;
}

.strategy-pace-card dl > div {
  padding: 0.65rem 0;
  border-top: 1px solid var(--strategy-line);
}

.strategy-pace-card dt,
.strategy-pace-card dd {
  margin: 0;
}

.strategy-pace-card dt {
  font-size: var(--type-label);
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.strategy-pace-card dd {
  margin-top: 0.25rem;
  color: var(--strategy-ink);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.35;
}

.strategy-verdict-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strategy-verdict-takeaway {
  margin-top: 1rem !important;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(79, 110, 154, 0.24);
  border-left: 4px solid var(--strategy-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(255, 255, 255, 0.58);
  color: var(--strategy-ink) !important;
  font-weight: 780;
}

.strategy-footer-case-link {
  margin-left: auto !important;
  text-align: right;
}

.strategy-footer-case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-left: auto;
}

.strategy-footer-case-links .strategy-footer-case-link {
  margin-left: 0 !important;
}

.strategy-assessment-list {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
}

.strategy-assessment-list li {
  font-size: 0.91rem;
  line-height: 1.55;
}

.strategy-assessment-list li + li {
  margin-top: 0.45rem;
}

@media (max-width: 1050px) {
  .strategy-decision-list,
  .strategy-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-method-card--wide {
    grid-column: 1 / -1;
  }

  .strategy-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-summary-grid,
  .strategy-pace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-counterfactual-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .strategy-driver-grid,
  .strategy-pair-summary,
  .strategy-copy-grid,
  .strategy-drs-notes {
    grid-template-columns: 1fr;
  }

  .strategy-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-driver-card h3 {
    min-height: 0;
  }

  .strategy-figure-link {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--strategy-accent) #101920;
  }

  .strategy-figure-image {
    width: 900px;
    min-width: 900px;
  }

  .strategy-figure-action {
    position: sticky;
    left: 0;
    width: min(100vw, 900px);
    justify-content: flex-start;
  }

  .strategy-figure-action::before {
    content: "Swipe chart ·";
    color: #9aabb4;
  }

  .france-case-page .strategy-figure-link {
    overflow-x: hidden;
  }

  .france-case-page .strategy-figure-image {
    width: 100%;
    min-width: 0;
  }

  .france-case-page .strategy-figure-action {
    position: static;
    width: 100%;
  }

  .france-case-page .strategy-figure-action::before {
    content: none;
  }
}

@media (max-width: 760px) {
  .strategy-hero {
    padding-top: 3.25rem;
    padding-bottom: 2rem;
  }

  .strategy-content {
    gap: 0.9rem;
  }

  .strategy-panel {
    border-radius: 16px;
  }

  .strategy-decision-list,
  .strategy-pair-metrics,
  .strategy-evidence-grid,
  .strategy-method-grid,
  .strategy-summary-grid,
  .strategy-event-grid,
  .strategy-pace-grid {
    grid-template-columns: 1fr;
  }

  .strategy-evidence-card--wide,
  .strategy-method-card--wide {
    grid-column: auto;
  }

  .strategy-metric-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .strategy-metric-row dd {
    text-align: left;
  }

  .strategy-source-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .strategy-footer-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .strategy-footer-case-link {
    margin-left: 0 !important;
    text-align: left;
  }

  .strategy-footer-case-links {
    display: grid;
    width: 100%;
    justify-content: start;
    justify-items: start;
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .strategy-topic-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-topic-list li {
    justify-content: center;
    text-align: center;
  }

  .strategy-findings li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .strategy-lap-counts {
    grid-template-columns: 1fr;
  }
}
