/* =================================================================
   Phaida Ventures
   Design system. Edit the tokens in :root to restyle the whole site.
   ================================================================= */

/* ---------- Fonts ------------------------------------------------ */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 700;
  font-display: swap;
  src: url("/assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 700;
  font-display: swap;
  src: url("/assets/fonts/newsreader-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ----------------------------------------------- */

:root {
  --ink: #12171c;
  --ink-2: #2c353d;
  --ink-3: #55616b;
  --muted: #7a848d;
  --paper: #fbfaf7;
  --paper-2: #f4f2ec;
  --paper-3: #eceae2;
  --line: #e2dfd6;
  --line-strong: #cfcbc0;
  --white: #ffffff;

  /* Brand blue, sampled from the logo, and the family built around it */
  --blue: #517da4;
  --blue-deep: #3a6188;
  --navy: #1e3a57;
  --navy-deep: #14293d;
  --navy-ink: #0e1a26;
  --sky: #8fb3d0;
  --mist: #dce7f0;
  --blue-tint: #edf2f7;

  /* One warm counterweight, used sparingly */
  --brass: #c0a177;
  --brass-deep: #9c7f57;

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --prose: 40rem;

  --step--1: clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
  --step-2: clamp(1.375rem, 1.28rem + 0.45vw, 1.625rem);
  --step-3: clamp(1.625rem, 1.45rem + 0.85vw, 2.125rem);
  --step-4: clamp(2rem, 1.65rem + 1.7vw, 3rem);
  --step-5: clamp(2.5rem, 1.9rem + 2.9vw, 4.25rem);

  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: clamp(4rem, 8vw, 7rem);
  --sp-7: clamp(5.5rem, 11vw, 10rem);

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- Reset ------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: #d8e3ee; color: var(--ink); }

/* ---------- Layout primitives ------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 62rem; }

.section { padding-block: var(--sp-6); }
.section--tight { padding-block: var(--sp-5); }
.section--flush-top { padding-top: 0; }

.section--paper2 { background: var(--paper-2); }

.section--ink {
  position: relative;
  overflow: hidden;
  background: linear-gradient(158deg, var(--navy-deep) 0%, var(--navy-ink) 58%, #0a1219 100%);
  color: #c3d0dc;
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink > * { position: relative; z-index: 1; }

.section--tint {
  background:
    radial-gradient(38rem 26rem at 12% 0%, rgba(81, 125, 164, 0.10), transparent 62%),
    radial-gradient(32rem 24rem at 92% 40%, rgba(30, 58, 87, 0.08), transparent 60%),
    var(--paper-2);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  font-size: var(--step--1);
}
.skip-link:focus { left: 0; }

/* ---------- Typographic atoms ------------------------------------ */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 var(--sp-3);
  display: block;
}
.section--ink .eyebrow { color: #92b0cb; }

.rule-label {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: var(--sp-4);
}
.rule-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section--ink .rule-label::after { background: #2b333a; }
.rule-label .eyebrow { margin: 0; }

.lede {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}

.display {
  font-size: var(--step-5);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.022em;
}

.h-page { font-size: var(--step-4); font-weight: 300; letter-spacing: -0.018em; }
.h-section { font-size: var(--step-3); font-weight: 400; }
.h-card { font-size: var(--step-2); font-weight: 400; line-height: 1.25; }

.meta {
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.01em;
}

.muted { color: var(--ink-3); }

.serif { font-family: var(--serif); }

/* ---------- Links and buttons ------------------------------------ */

.link {
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(81, 125, 164, 0.4);
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link:hover { text-decoration-color: var(--blue); color: var(--ink); }

.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.arrow-link .a { transition: transform 0.25s var(--ease); display: inline-block; }
.arrow-link:hover { border-color: var(--blue); color: var(--blue-deep); }
.arrow-link:hover .a { transform: translateX(4px); }
.section--ink .arrow-link { color: #fff; border-color: #3a444c; }
.section--ink .arrow-link:hover { color: #a8c4dc; border-color: #a8c4dc; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.75em;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; color: var(--blue-deep); border-color: var(--blue); }

.section--ink .btn { background: #fff; color: var(--ink); border-color: #fff; }
.section--ink .btn:hover { background: #a8c4dc; border-color: #a8c4dc; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid var(--line);
}
/* A hairline of brand blue under the header, brightest under the logo */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue) 0%, rgba(81, 125, 164, 0.35) 26%, transparent 60%);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 90px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.35s var(--ease);
}
.brand img { width: 214px; height: auto; }
.brand:hover { transform: translateY(-1px); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }

.nav a {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 450;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 0.35em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); border-color: var(--line-strong); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--blue); }

/* Mobile menu. Pure CSS, driven by a visually hidden checkbox so the
   site needs no JavaScript at all. */

.nav-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 0;
  user-select: none;
}
.nav-toggle__bars {
  display: inline-block;
  width: 18px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.nav-toggle__close { display: none; }
.nav-check:checked ~ .nav-toggle .nav-toggle__open { display: none; }
.nav-check:checked ~ .nav-toggle .nav-toggle__close { display: inline; }
.nav-check:focus-visible ~ .nav-toggle {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-1) var(--gutter) var(--sp-4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
  }
  .nav-check:checked ~ .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a {
    font-size: 1.0625rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
  }
  .brand img { width: 176px; }
}

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

.hero { padding-block: clamp(4rem, 11vw, 9rem) var(--sp-6); }

.hero__inner { max-width: 56rem; }

.hero__title {
  font-size: var(--step-5);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.024em;
}
.hero__title em { font-style: italic; color: var(--blue-deep); }

.hero__lede {
  margin-top: var(--sp-4);
  max-width: 44rem;
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.52;
  color: var(--ink-2);
}

.hero__actions {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

/* Page header for interior pages */
.page-header-wrap { position: relative; }
.page-header-wrap::before { opacity: 0.85; }
.page-header { position: relative; padding-block: clamp(3rem, 8vw, 6rem) var(--sp-5); }
.page-header__title { font-size: var(--step-4); font-weight: 300; letter-spacing: -0.02em; max-width: 22ch; }
.page-header__lede {
  margin-top: var(--sp-3);
  max-width: 42rem;
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- Grids and cards --------------------------------------- */

.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); }
.grid--rooms { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
  .grid--rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4) var(--sp-5);
}
@media (min-width: 860px) {
  .split { grid-template-columns: 15rem minmax(0, 1fr); }
  .split--wide-first { grid-template-columns: minmax(0, 1fr) 20rem; }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
.card__index {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--blue);
}
.card__title { font-size: var(--step-2); font-weight: 400; line-height: 1.22; }
.card__title a { text-decoration: none; background-image: linear-gradient(var(--blue), var(--blue)); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.3s var(--ease); padding-bottom: 2px; }
.card:hover .card__title a, .card__title a:hover { background-size: 100% 1px; }
.card__body { color: var(--ink-3); font-size: var(--step-0); }
.card__foot { margin-top: auto; padding-top: var(--sp-2); }

/* Practice index rows */
.practice-row {
  display: grid;
  gap: var(--sp-2) var(--sp-4);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 860px) {
  .practice-row { grid-template-columns: 8.5rem minmax(0, 21rem) minmax(0, 1fr); }
}
.practice-row:last-child { border-bottom: 1px solid var(--line); }
.practice-row__num {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--blue);
  padding-top: 0.6em;
}
.practice-row__title { font-size: var(--step-3); font-weight: 400; line-height: 1.16; }
.practice-row__title a { text-decoration: none; }
.practice-row__title a:hover { color: var(--blue-deep); }
.practice-row__body { color: var(--ink-3); }

/* Definition style lists */
.deflist { display: grid; gap: 0; margin: 0; }
.deflist__row {
  display: grid;
  gap: 0.25rem var(--sp-4);
  padding-block: var(--sp-3);
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .deflist__row { grid-template-columns: 16rem minmax(0, 1fr); }
}
.deflist__row:last-child { border-bottom: 1px solid var(--line); }
.deflist__term { font-family: var(--sans); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em; }
.deflist__desc { color: var(--ink-3); }

/* Simple tick list */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--blue);
}

/* Stat / fact row */
.facts { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.fact { border-top: 1px solid var(--line); padding-top: var(--sp-2); }
.section--ink .fact { border-color: #2b333a; }
.fact__value { font-family: var(--serif); font-size: var(--step-3); font-weight: 300; line-height: 1.1; }
.fact__label { font-size: var(--step--1); color: var(--muted); margin-top: 0.4rem; }

/* Pull quote */
.pullquote {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-style: italic;
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-left: 2px solid var(--blue);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  margin: 0;
  max-width: 34rem;
}
.pullquote cite { display: block; margin-top: var(--sp-2); font-style: normal; font-family: var(--sans); font-size: var(--step--1); color: var(--muted); letter-spacing: 0.02em; }

/* Portrait */
.portrait {
  width: 100%;
  max-width: 20rem;
  background: var(--paper-3);
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.5s var(--ease);
}
.portrait:hover { filter: grayscale(0.15) contrast(1); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-0);
  min-width: 34rem;
}
th, td {
  text-align: left;
  padding: 0.95rem 1.25rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line-strong);
  white-space: nowrap;
}
td { color: var(--ink-2); }

/* ---------- Insights index ---------------------------------------- */

.insight-row {
  display: grid;
  gap: var(--sp-2) var(--sp-4);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--line);
}
@media (min-width: 860px) {
  .insight-row { grid-template-columns: 10rem minmax(0, 1fr); }
}
.insight-row:last-child { border-bottom: 1px solid var(--line); }
.insight-row__date { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); padding-top: 0.45em; }
.insight-row__title { font-size: var(--step-3); font-weight: 400; line-height: 1.18; letter-spacing: -0.012em; }
.insight-row__title a {
  text-decoration: none;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease);
  padding-bottom: 3px;
}
.insight-row__title a:hover { background-size: 100% 1px; }
.insight-row__excerpt { margin-top: var(--sp-2); color: var(--ink-3); max-width: 44rem; }
.insight-row__meta { margin-top: var(--sp-2); display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }

.tag {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--blue-tint);
  padding: 0.35em 0.7em;
  border-radius: 999px;
  text-decoration: none;
}

/* ---------- Essay reading layout ---------------------------------- */

.essay { padding-block: clamp(3rem, 7vw, 5.5rem) var(--sp-6); }

.essay__header { max-width: var(--prose); margin-inline: auto; }
.essay__kicker { margin-bottom: var(--sp-3); }
.essay__title {
  font-size: var(--step-4);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.essay__standfirst {
  margin-top: var(--sp-3);
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-3);
}
.essay__byline {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.25rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--muted);
}
.essay__byline strong { font-weight: 500; color: var(--ink-2); }

.prose {
  max-width: var(--prose);
  margin-inline: auto;
  margin-top: var(--sp-5);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.72;
  color: var(--ink-2);
  letter-spacing: -0.001em;
}
.prose > p:first-child { font-size: 1.28rem; line-height: 1.62; color: var(--ink); }

.prose h2 {
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.24;
  color: var(--ink);
  margin: 2.6em 0 0.7em;
  letter-spacing: -0.008em;
}
.prose h3 {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  margin: 2em 0 0.55em;
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(81, 125, 164, 0.55);
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
.prose a:hover { color: var(--blue-deep); text-decoration-color: var(--blue); }

.prose blockquote {
  margin: 2em 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--blue);
  font-style: italic;
  color: var(--ink);
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--blue); }

.prose hr { margin: 2.6em 0; }

.prose img { margin: 2em 0; }

.prose strong { font-weight: 600; color: var(--ink); }

.prose figure { margin: 2.4em 0; }
.prose figcaption { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); margin-top: 0.75rem; }

.heading-anchor {
  margin-left: 0.4em;
  color: var(--line-strong);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  font-family: var(--sans);
  font-weight: 400;
}
.prose h2:hover .heading-anchor, .prose h3:hover .heading-anchor { opacity: 1; }
.heading-anchor:focus-visible { opacity: 1; }

/* Footnotes */
.prose sup.footnote-ref a {
  font-family: var(--sans);
  font-size: 0.68em;
  font-weight: 500;
  text-decoration: none;
  color: var(--blue-deep);
  padding: 0 0.12em;
}
.prose sup.footnote-ref a:hover { color: var(--ink); }

.footnotes-sep { margin-top: 3.5em; }
.footnotes { font-family: var(--sans); font-size: var(--step--1); line-height: 1.7; color: var(--ink-3); }
.footnotes-title {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--sp-3);
}
.footnotes-list { padding-left: 1.2em; }
.footnotes-list li { margin-bottom: 0.75em; }
.footnotes-list li:target { background: var(--blue-tint); }
.footnote-backref { text-decoration: none; color: var(--blue); margin-left: 0.35em; }

/* Essay footer */
.essay__footer {
  max-width: var(--prose);
  margin: var(--sp-6) auto 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.author-card { display: flex; gap: var(--sp-3); align-items: flex-start; }
.author-card img { width: 84px; flex: none; filter: grayscale(1); }
.author-card__name { font-family: var(--serif); font-size: var(--step-1); }
.author-card__bio { font-size: var(--step--1); color: var(--ink-3); margin-top: 0.4rem; }

/* ---------- Callout ------------------------------------------------ */

.callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--blue);
  background: var(--white);
  padding: var(--sp-3) var(--sp-4);
}
.callout__label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.75rem;
  display: block;
}

/* ---------- CTA band ------------------------------------------------ */

.cta-band { padding-block: var(--sp-6); }
.cta-band__inner {
  display: grid;
  gap: var(--sp-4);
  align-items: end;
}
@media (min-width: 860px) {
  .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; }
}
.cta-band__title { font-size: var(--step-3); font-weight: 300; max-width: 24ch; }
.cta-band__mark { width: 4.25rem; height: auto; margin-bottom: var(--sp-3); opacity: 0.9; }

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

.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(162deg, var(--navy-deep) 0%, var(--navy-ink) 55%, #0a1219 100%);
  color: #a4b3c1;
  padding-block: var(--sp-6) var(--sp-4);
  font-size: var(--step--1);
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer .corner-mark { right: -5rem; top: auto; bottom: -7rem; opacity: 0.06; }
.site-footer a { color: #d5dbe0; text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  gap: var(--sp-4) var(--sp-5);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer__logo { width: 214px; margin-bottom: var(--sp-3); }
.footer__note { max-width: 26rem; color: #8f99a1; font-family: var(--serif); font-size: 1rem; line-height: 1.6; }
.footer__heading {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6f7981;
  margin-bottom: var(--sp-2);
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 0.55rem; }

.footer-bottom {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid #262e35;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  color: #6f7981;
}

/* ---------- Utilities ------------------------------------------------ */

.stack > * + * { margin-top: var(--sp-3); }
.stack-lg > * + * { margin-top: var(--sp-4); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.measure { max-width: 42rem; }
.measure-sm { max-width: 34rem; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =================================================================
   VISUAL LAYER
   Artwork, colour washes, media cards and motion.
   All of it is CSS or self contained SVG. There is no JavaScript.
   ================================================================= */

/* ---------- Decorative artwork -------------------------------------- */

/* Any element carrying .art is decoration: it never takes pointer events
   and should always be marked aria-hidden="true" in the markup. */
.art {
  pointer-events: none;
  user-select: none;
  display: block;
}

.art-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Soft colour wash, used instead of a photograph on light sections */
.aurora { position: relative; overflow: hidden; }
.aurora::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(52rem 40rem at 86% 22%, rgba(81, 125, 164, 0.34), transparent 62%),
    radial-gradient(36rem 30rem at 70% 96%, rgba(30, 58, 87, 0.20), transparent 62%),
    radial-gradient(30rem 26rem at 99% 88%, rgba(192, 161, 119, 0.24), transparent 62%),
    radial-gradient(38rem 34rem at 2% 2%, rgba(143, 179, 208, 0.28), transparent 66%);
  animation: drift 30s ease-in-out infinite alternate;
}
.aurora > * { position: relative; z-index: 1; }

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.06); }
}

/* ---------- Hero with artwork ---------------------------------------- */

.hero { position: relative; overflow: hidden; }


/* ---------- Section ornaments ---------------------------------------- */

/* Wide artwork bled into a dark band */
.band-art {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  opacity: 0.55;
  mix-blend-mode: screen;
}
.band-art--top { inset: 0 0 auto 0; }

.corner-mark {
  position: absolute;
  right: -6rem;
  top: -8rem;
  width: 26rem;
  opacity: 0.05;
  z-index: 0;
}
@media (max-width: 760px) { .corner-mark { width: 16rem; right: -4rem; top: -4rem; } }

.gradient-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--blue), rgba(81, 125, 164, 0.25) 42%, transparent);
  margin: 0;
}

/* ---------- Glyphs ---------------------------------------------------- */

.glyph { width: 4.5rem; height: 4.5rem; flex: none; }
.glyph--lg { width: 11rem; height: 11rem; }

.practice-row__num {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* ---------- Portrait treatments --------------------------------------- */

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 21rem;
}
.portrait-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: grayscale(1) contrast(1.03);
  transition: filter 0.6s var(--ease);
}
.portrait-frame:hover img { filter: grayscale(0.1) contrast(1); }
.portrait-frame::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  right: -1.25rem;
  bottom: -1.25rem;
  border: 1px solid var(--blue);
  opacity: 0.55;
  z-index: 0;
}

.portrait-duo {
  width: 100%;
  max-width: 22rem;
  border-top: 2px solid var(--sky);
}

/* ---------- Media cards ----------------------------------------------- */

.media-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.media-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(20, 41, 61, 0.55);
}
.media-card__thumb {
  display: block;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--navy-ink);
}
.media-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.media-card:hover .media-card__thumb img { transform: scale(1.03); }
.media-card__body { padding: var(--sp-3) var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: 0.85rem; flex: 1; }
.media-card__kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.media-card__title { font-size: var(--step-2); font-weight: 400; line-height: 1.22; }
.media-card__title a { text-decoration: none; }
.media-card__text { color: var(--ink-3); font-size: var(--step-0); }
.media-card__foot { margin-top: auto; padding-top: 0.5rem; }

/* Thumbnail on the insights index rows */
.insight-row { align-items: start; }
@media (min-width: 980px) {
  .insight-row { grid-template-columns: 10rem minmax(0, 1fr) 15rem; }
}
.insight-row__thumb {
  display: block;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--navy-ink);
  transition: border-color 0.3s var(--ease);
}
.insight-row__thumb img { width: 100%; transition: transform 0.6s var(--ease); }
.insight-row:hover .insight-row__thumb { border-color: var(--blue); }
.insight-row:hover .insight-row__thumb img { transform: scale(1.04); }
@media (max-width: 979px) { .insight-row__thumb { max-width: 22rem; margin-top: var(--sp-2); } }

/* ---------- Accents --------------------------------------------------- */

.card__index, .practice-row__num, .media-card__kicker { color: var(--blue); }

.fact { position: relative; border-top: 2px solid var(--blue); }
.fact--brass { border-top-color: var(--brass); }
.section--ink .fact { border-top-color: var(--sky); }

.tag {
  border: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.tag:hover { border-color: var(--blue); background: transparent; }

.callout { position: relative; overflow: hidden; }
.callout::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(81, 125, 164, 0.12), transparent 70%);
}

/* Quote block on dark sections */
.section--ink .pullquote { border-left-color: var(--sky); color: #eaf1f7; }
.section--ink .muted, .section--ink .meta { color: #93a2b0; }
.section--ink .deflist__row { border-color: #22323f; }
.section--ink .deflist__desc { color: #a7b6c3; }
.section--ink .link { color: var(--sky); }

/* ---------- Motion ----------------------------------------------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* Above the fold: play once on load */
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: rise 0.85s var(--ease) both; }
  .enter-1 { animation-delay: 0.05s; }
  .enter-2 { animation-delay: 0.16s; }
  .enter-3 { animation-delay: 0.27s; }
  .enter-4 { animation-delay: 0.38s; }
}

/* Further down the page: scroll driven, still no JavaScript.
   Browsers without animation-timeline simply show the content. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

@media print {
  .site-header, .site-footer, .cta-band, .art, .art-layer, .band-art, .corner-mark { display: none; }
  body { background: #fff; }
}

/* ── Section list for long pages ───────────────────────────────────────── */
.section-nav {
  position: sticky;
  top: 91px;
  z-index: 40;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.section-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-block: 0.75rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.section-nav__inner::-webkit-scrollbar { display: none; }
.section-nav a {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--blue);
}
/* keep anchors clear of the header (91px) and the section list (50px) */
[id^="s-"] { scroll-margin-top: 160px; }

/* On narrow screens the section list scrolls sideways; fade the right edge so
   it reads as scrollable rather than cut off. */
@media (max-width: 900px) {
  .section-nav__inner {
    -webkit-mask-image: linear-gradient(to right, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, #000 86%, transparent 100%);
    padding-right: var(--sp-4);
  }
}

/* ── Seats: the governance question, and the sides it is seen from ─────── */
.seats { margin-top: var(--sp-5); }


.seats__grid {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.seat {
  position: relative;
  padding: var(--sp-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  border-radius: 2px;
  margin: 0;
}
.seat__label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 0.6rem;
}
.seat__text {
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}

@media (min-width: 640px) {
  .seats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  /* six tracks so a card spans two: three on top, the last two centred beneath */
  .seats__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .seat { grid-column: span 2; }
  .seat:nth-child(4) { grid-column: 2 / span 2; }
  .seat:nth-child(5) { grid-column: 4 / span 2; }
}

/* Seats: question as a statement, no connectors */
.seats__question {
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1.25;
  color: var(--ink);
  max-width: 34rem;
  margin: 0 0 var(--sp-5);
  text-wrap: balance;
}

/* Stakeholders */
.stakes {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-strong);
}
.stakes__label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 var(--sp-2);
}
.stakes__lead {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--ink);
  max-width: 34rem;
  margin: 0 0 var(--sp-3);
  text-wrap: balance;
}
.stakes__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
}
.stakes__list li {
  margin: 0;
  padding: 0.55rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 2px solid var(--sky);
  border-radius: 2px;
  font-size: var(--step--1);
  line-height: 1.4;
  color: var(--ink-2);
}
@media (min-width: 620px) {
  .stakes__list { grid-template-columns: repeat(2, minmax(0, 17rem)); justify-content: center; }
}
@media (min-width: 980px) {
  .stakes__list { grid-template-columns: repeat(4, minmax(0, 15rem)); justify-content: center; }
}
.stakes__close {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink);
  max-width: 44rem;
  margin: 0;
  padding-left: var(--sp-3);
  border-left: 3px solid var(--blue);
}
.stakes__close strong { font-weight: 500; }

/* Topics, as a centred panel */
.topicbox {
  max-width: 52rem;
  margin-inline: auto;
  padding: var(--sp-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  border-radius: 2px;
}
.topicbox .ticks { margin-bottom: 0; }

.section--flush-bottom { padding-bottom: 0; }
