/* FYPM — shared styles
   Palette: deep/mid blue on white + ivory, navy/slate text. No decorative gradients, no red. */

:root {
  --navy: #0b1f3a;
  --navy-2: #13294b;
  --slate: #3d4b60;
  --slate-2: #6a7689;
  --blue: #1f4fd1;
  --blue-deep: #163a9e;
  --blue-soft: #e6ecfb;
  --ivory: #f6f3ec;
  --ivory-2: #ece7dc;
  --white: #ffffff;
  --line: #d9d4c8;
  --line-cool: #d5dbe6;
  --ochre: #a8741a;
  --ochre-soft: #f5ead3;

  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --display-weight: 400;
  --display-tracking: -0.02em;
  --display-leading: 1.02;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Shared background pattern: the Home hero's diagonal (3:7 rise, 1px stroke) with thin geometric fragments; tiles seamlessly */
  --pattern-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='840' height='360' viewBox='0 0 840 360' fill='none' stroke='%231f4fd1' stroke-width='1'%3E%3Cpath d='M0 360L840 0'/%3E%3Cpath d='M84 144L308 48M476 336L756 216'/%3E%3Cg stroke-opacity='.6'%3E%3Cpath d='M560 60L644 24V60Z'/%3E%3Cpath d='M180 236L264 200V236Z'/%3E%3Cpath d='M306 320L318 299.2H342L354 320M746 120L758 140.8H782L794 120'/%3E%3Cpath d='M50 60H70M60 50V70M420 190H440M430 180V200'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-ivory: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='840' height='360' viewBox='0 0 840 360' fill='none' stroke='%23f6f3ec' stroke-width='1'%3E%3Cpath d='M0 360L840 0'/%3E%3Cpath d='M84 144L308 48M476 336L756 216'/%3E%3Cg stroke-opacity='.6'%3E%3Cpath d='M560 60L644 24V60Z'/%3E%3Cpath d='M180 236L264 200V236Z'/%3E%3Cpath d='M306 320L318 299.2H342L354 320M746 120L758 140.8H782L794 120'/%3E%3Cpath d='M50 60H70M60 50V70M420 190H440M430 180V200'/%3E%3C/g%3E%3C/svg%3E");
}

/* Type treatments — compared live via the dev toggle (js/main.js) */
html[data-type="serif"] {
  --font-display: "Fraunces", Georgia, serif;
  --display-weight: 400;
  --display-tracking: -0.025em;
}
html[data-type="grotesk"] {
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.04em;
  --display-leading: 0.98;
}
html[data-type="geometric"] {
  --font-display: "Outfit", "Futura", "Century Gothic", sans-serif;
  --display-weight: 500;
  --display-tracking: -0.035em;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
}

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

/* Heading scale: H1 and H2 carry the structure on their own */
h1.display { font-size: clamp(2.75rem, 5.5vw, 4.5rem); line-height: 1.04; }
h2.display { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; }
h1.display + .lead, h2.display + .lead, h1.display + p, h2.display + p { margin-top: 24px; }

.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--slate); max-width: 40ch; }
.muted { color: var(--slate-2); }
.small { font-size: 14px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--blue); color: var(--white);
  border: 1px solid var(--blue);
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--light { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.btn--light:hover { background: var(--white); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-cool); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.wordmark {
  display: inline-flex; align-items: baseline; gap: 2px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: 28px; line-height: 1;
  margin-right: auto;
}
.wordmark .wm-mark { display: inline-block; background: var(--blue); }
html[data-type="serif"] .wordmark { font-weight: 500; font-size: 30px; }
html[data-type="serif"] .wordmark .wm-mark { width: 7px; height: 7px; border-radius: 50%; margin-left: 2px; }
html[data-type="grotesk"] .wordmark { font-weight: 800; font-size: 26px; letter-spacing: -0.05em; }
html[data-type="grotesk"] .wordmark .wm-mark { width: 9px; height: 18px; margin-left: 4px; transform: skewX(-18deg); align-self: center; }
html[data-type="geometric"] .wordmark .wm-text { text-transform: lowercase; }
html[data-type="geometric"] .wordmark { font-size: 32px; font-weight: 500; }
html[data-type="geometric"] .wordmark .wm-mark { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--blue); background: transparent; margin-left: 3px; }

/* Header wordmark with tagline underneath */
.wordmark--tagged { flex-direction: column; align-items: flex-start; gap: 0; }
.wordmark--tagged .wm-row { display: inline-flex; align-items: baseline; gap: 2px; }
.wm-tagline {
  display: block; margin-top: 3px;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 400; font-style: normal;
  line-height: 1.2; letter-spacing: 0.01em; text-transform: none;
  white-space: nowrap; color: var(--slate-2);
}
.home .site-header:not(.is-scrolled):not(.is-open) .wm-tagline { color: rgba(246, 243, 236, 0.78); }
@media (max-width: 560px) { .wm-tagline { font-size: 0.66rem; letter-spacing: 0; } }

.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 14px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  color: var(--slate);
  position: relative;
  transition: color 0.2s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover { color: var(--navy); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--navy); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-cool); padding: 8px 12px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}

/* Home: header floats over the hero until scrolled */
.home .site-header:not(.is-scrolled):not(.is-open) { background: transparent; backdrop-filter: none; color: var(--ivory); }
.home .site-header:not(.is-scrolled):not(.is-open) .site-nav a { color: rgba(246, 243, 236, 0.8); }
.home .site-header:not(.is-scrolled):not(.is-open) .site-nav a:hover,
.home .site-header:not(.is-scrolled):not(.is-open) .site-nav a[aria-current="page"] { color: var(--ivory); }
.home .site-header:not(.is-scrolled):not(.is-open) .wm-mark { background: #8fb0ff; }
html[data-type="geometric"] .home .site-header:not(.is-scrolled):not(.is-open) .wm-mark { background: transparent; border-color: #8fb0ff; }
.home .site-header:not(.is-scrolled):not(.is-open) .btn { background: var(--ivory); border-color: var(--ivory); color: var(--navy); }
.home .site-header:not(.is-scrolled):not(.is-open) .nav-toggle { border-color: rgba(246, 243, 236, 0.4); }
.home .site-header { position: fixed; left: 0; right: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--white); border-bottom: 1px solid var(--line-cool);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-header.is-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-header.is-open { background: var(--white); }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--line-cool); color: var(--navy); }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { display: block; margin-top: 16px; }
}
.site-nav .nav-cta { display: none; }
.site-nav .nav-cta a { display: inline-flex; padding: 14px 22px; font-size: 16px; color: var(--white); border-bottom: 0; }
.site-nav .nav-cta a::after { display: none; }
@media (max-width: 900px) { .site-nav .nav-cta { display: block; } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
.js .reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Shared background pattern ----------
   One page-height layer, painted above section backgrounds and below content (.wrap is lifted above it),
   so it runs unbroken across section edges. Strongest in the margins and page heads, faint behind text. */
body { position: relative; }
.wrap { position: relative; }
body::before, .home .hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--pattern-blue) center top / 840px 360px repeat;
}
body::before {
  z-index: 0; opacity: 0.1;
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.18) 24%, rgba(0, 0, 0, 0.18) 76%, #000), linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) 520px, transparent 760px);
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.18) 24%, rgba(0, 0, 0, 0.18) 76%, #000), linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) 520px, transparent 760px);
}
/* The Home hero paints over the page layer, so it carries the same tile (same origin: top of the page) in ivory */
.home .hero::after {
  background-image: var(--pattern-ivory); opacity: 0.08;
  -webkit-mask-image: linear-gradient(#000 40%, rgba(0, 0, 0, 0.3) 80%);
  mask-image: linear-gradient(#000 40%, rgba(0, 0, 0, 0.3) 80%);
}
@media (max-width: 1000px) { body::before { opacity: 0.07; } }
@media (max-width: 720px) { body::before, .home .hero::after { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.section-head { display: grid; grid-template-columns: 4fr 8fr; gap: 32px clamp(32px, 6vw, 96px); margin-bottom: clamp(40px, 6vw, 72px); align-items: end; }
.section-head .lead { max-width: 52ch; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* Interior page hero */
.page-hero { padding-block: clamp(64px, 9vw, 128px) clamp(48px, 6vw, 88px); background: var(--ivory); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px clamp(32px, 6vw, 96px); align-items: end; }
.page-hero .lead { max-width: 44ch; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------- HOME ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--navy); color: var(--ivory);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 26, 53, 0.72), rgba(8, 26, 53, 0.18) 70%); }
.js .hero-media img { animation: hero-in 2.2s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .hero-media img { animation: none; } }

.hero-content { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 40px) clamp(56px, 9vh, 112px); }
.eyebrow { margin-bottom: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #a9bdf2; }
/* Headline: one sentence in two stacked parts; part 1 white sans (serif when the display font is sans), part 2 light brand-blue tint in the display font */
.hero h1.hero-title { max-width: none; font-size: clamp(1.5rem, 3.3vw, 2.6rem); line-height: 1.15; }
.hero-title-lead, .hero-title-accent { display: block; margin: 0; white-space: nowrap; }
@media (max-width: 639.98px) {
  .hero h1.hero-title { font-size: clamp(1.35rem, 6vw, 1.75rem); }
  .hero-title-lead, .hero-title-accent { white-space: normal; text-wrap: balance; }
}
.hero-title-lead { font-family: var(--font-body); font-weight: 400; letter-spacing: normal; color: var(--white); }
html[data-type="grotesk"] .hero-title-lead, html[data-type="geometric"] .hero-title-lead { font-family: "Fraunces", Georgia, serif; }
.hero-title-accent { color: #a9bdf2; }
.hero-sub { margin-top: 28px; max-width: 46ch; font-size: clamp(1rem, 1.4vw, 1.125rem); font-weight: 400; line-height: 1.5; color: rgba(246, 243, 236, 0.82); }
.hero-meta { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: clamp(40px, 7vh, 80px); padding-top: 20px; border-top: 1px solid rgba(246, 243, 236, 0.22); font-size: 15px; color: rgba(246, 243, 236, 0.7); }
.hero-meta a { margin-left: auto; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.hero-meta a:hover { color: var(--ivory); }

/* Two-tile navigation */
.doors { display: grid; grid-template-columns: 7fr 5fr; min-height: 62vh; }
.door {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(32px, 5vw, 72px); min-height: 380px;
  text-decoration: none; overflow: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.door--firm { background: var(--ivory); color: var(--navy); }
.door--solutions { background: var(--blue); color: var(--white); }
.door--firm:hover { background: var(--navy); color: var(--ivory); }
.door--solutions:hover { background: var(--blue-deep); }
.door h2 { font-size: clamp(52px, 7.6vw, 124px); margin-top: auto; }
.door p { margin-top: 18px; font-size: clamp(17px, 1.4vw, 20px); max-width: 34ch; opacity: 0.85; }
.door-arrow {
  position: absolute; right: clamp(32px, 5vw, 72px); bottom: clamp(32px, 5vw, 72px);
  width: clamp(56px, 6vw, 84px); height: clamp(56px, 6vw, 84px);
  border: 1.5px solid currentColor; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform 0.45s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.door-arrow svg { width: 40%; height: 40%; }
.door:hover .door-arrow { transform: translateX(8px) rotate(-45deg); }
.door--firm:hover .door-arrow { background: var(--ivory); color: var(--navy); }
.door--solutions:hover .door-arrow { background: var(--white); color: var(--blue-deep); }
.door-body { padding-right: clamp(80px, 9vw, 120px); }
@media (max-width: 820px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 300px; }
}

/* ---------- FIRM ---------- */
.prose p + p { margin-top: 1.1em; }
.prose { color: var(--slate); font-size: 18px; max-width: 62ch; }
.prose strong { color: var(--navy); font-weight: 600; }

.bg-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 40px clamp(32px, 7vw, 120px); }
@media (max-width: 820px) { .bg-grid { grid-template-columns: 1fr; } }


.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(246, 243, 236, 0.22); }
.stat { padding: 32px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(246, 243, 236, 0.22); }
.stat-num { font-size: clamp(48px, 6vw, 88px); color: var(--white); }
.stat-num sup { font-size: 0.45em; vertical-align: top; position: relative; top: 0.25em; color: #a9bdf2; }
.stat-label { margin-top: 12px; font-size: 15px; color: rgba(246, 243, 236, 0.72); max-width: 20ch; }
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(246, 243, 236, 0.22); }
}

.approach { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(32px, 7vw, 120px); align-items: start; }
.approach-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.approach-list li:last-child { border-bottom: 1px solid var(--line); }
.approach-list .n { font-size: 14px; font-weight: 600; color: var(--blue); padding-top: 4px; }
.approach-list h3 { font-size: 20px; font-weight: 600; }
.approach-list p { margin-top: 6px; color: var(--slate); }
@media (max-width: 820px) { .approach { grid-template-columns: 1fr; } }

/* Compact rows: fixed-size 4:5 portrait on the left, name and role on the right */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; justify-items: start; }
.person { width: 100%; }
.person-btn { appearance: none; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center; }
.person-photo { display: block; width: 132px; aspect-ratio: 4 / 5; background: var(--ivory-2); overflow: hidden; position: relative; }
.person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(1) contrast(1.03); transition: filter 0.6s var(--ease), transform 0.8s var(--ease); }
.person-btn:hover .person-photo img, .person-btn:focus-visible .person-photo img { filter: grayscale(0); transform: scale(1.025); }
.person-text { display: block; min-width: 0; }
.person-name { display: block; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(21px, 1.8vw, 24px); line-height: 1.15; }
.person-role { display: block; margin-top: 6px; font-size: 14px; color: var(--slate-2); line-height: 1.4; }
.person-cue { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--blue); opacity: 0; transition: opacity 0.25s var(--ease); }
.person-btn:hover .person-cue, .person-btn:focus-visible .person-cue { opacity: 1; }
.person-btn:hover .person-name { color: var(--blue-deep); }
@media (hover: none) { .person-cue { opacity: 1; } }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; gap: 20px; }
  .person-btn { grid-template-columns: 120px 1fr; gap: 18px; }
  .person-photo { width: 120px; }
}

/* Team profile pop-up */
html.is-locked, html.is-locked body { overflow: hidden; }
.profile-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(11, 31, 58, 0.5); }
.profile-modal { position: fixed; z-index: 201; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 100vw - 32px); max-height: calc(100vh - 48px); overflow-y: auto; background: var(--ivory); color: var(--navy); border-top: 2px solid var(--blue); box-shadow: 0 12px 32px -20px rgba(11, 31, 58, 0.35); padding: clamp(24px, 4vw, 40px); }
.profile-overlay[hidden], .profile-modal[hidden] { display: none; }
.profile-overlay.is-open, .profile-modal.is-open { animation: profile-fade 0.2s ease-out; }
@keyframes profile-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .profile-overlay.is-open, .profile-modal.is-open { animation: none; } }
.profile-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer; }
.profile-close:hover { background: var(--white); }
.profile-head { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: end; padding-right: 40px; }
.profile-photo { width: 120px; aspect-ratio: 4 / 5; background: var(--ivory-2); overflow: hidden; }
.profile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.profile-name { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(24px, 3vw, 30px); line-height: 1.12; }
.profile-role { margin-top: 6px; font-size: 14px; color: var(--slate-2); line-height: 1.4; }
.profile-body { margin-top: 24px; font-size: 16px; line-height: 1.65; color: var(--slate); }
.profile-body { text-align: left; text-wrap: balance; text-wrap: pretty; hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; word-break: normal; }
@media (max-width: 640px) {
  .profile-modal { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 88vh; padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); }
  .profile-head { grid-template-columns: 96px 1fr; gap: 16px; }
  .profile-photo { width: 96px; }
}

.portfolio-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case { grid-column: span 4; background: var(--white); padding: 28px; display: flex; flex-direction: column; min-height: 260px; transition: background-color 0.3s var(--ease); }
.case:hover { background: var(--ivory); }
.case--wide { grid-column: span 8; }
.case h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(30px, 2.8vw, 40px); line-height: 1.05; }
.case p { margin-top: 12px; color: var(--slate); font-size: 16px; }
.case-tags { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 9px; border: 1px solid var(--line-cool); color: var(--slate); background: var(--white); }
.tag--blue { background: var(--blue-soft); border-color: transparent; color: var(--blue-deep); }
@media (max-width: 1000px) { .case, .case--wide { grid-column: span 6; } }
@media (max-width: 640px) { .case, .case--wide { grid-column: span 12; min-height: 0; } }


/* ---------- SOLUTIONS ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--white); border-bottom: 1px solid var(--line-cool); }
.subnav ol { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.subnav ol::-webkit-scrollbar { display: none; }
.subnav a { display: flex; gap: 10px; align-items: baseline; padding: 16px 24px 16px 0; margin-right: 24px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--slate); white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.subnav a b { font-weight: 700; color: var(--blue); }
.subnav a:hover, .subnav a.is-active { color: var(--navy); border-bottom-color: var(--blue); }

.modes { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; margin-top: clamp(48px, 6vw, 72px); border: 1px solid var(--line); background: var(--white); }
.mode { padding: 28px; }
.mode h3 { font-size: 20px; font-weight: 600; }
.mode h3 .mode-label { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--blue); }
.mode h3 .mode-name { display: block; }
.mode p { margin-top: 6px; color: var(--slate); font-size: 16px; }
.mode-link { display: grid; place-items: center; padding: 0 12px; color: var(--blue); border-inline: 1px solid var(--line); background: var(--ivory); }
.mode-link svg { width: 40px; }
@media (max-width: 720px) { .modes { grid-template-columns: 1fr; grid-template-rows: 1fr auto 1fr; } .mode-link { border-inline: 0; border-block: 1px solid var(--line); padding: 10px; } .mode-link svg { transform: rotate(90deg); width: 28px; } }

/* Numbered accordion */
.services { border-top: 1px solid var(--navy); }
.service { border-bottom: 1px solid var(--line); }
.service summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 120px 1fr 1fr 48px; gap: 24px; align-items: center; padding: 32px 0; transition: background-color 0.3s var(--ease); }
.service summary::-webkit-details-marker { display: none; }
.service-n { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(40px, 4.4vw, 64px); color: var(--blue); line-height: 1; }
.service-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.service-hook { color: var(--slate); font-size: 17px; }
.service-icon { width: 40px; height: 40px; border: 1.5px solid var(--navy); border-radius: 50%; position: relative; justify-self: end; transition: background-color 0.25s, transform 0.4s var(--ease); }
.service-icon::before, .service-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--navy); transform: translate(-50%, -50%); transition: transform 0.4s var(--ease), background-color 0.25s; }
.service-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.service[open] .service-icon { background: var(--navy); }
.service[open] .service-icon::before, .service[open] .service-icon::after { background: var(--white); }
.service[open] .service-icon::after { transform: translate(-50%, -50%) rotate(0); }
.service summary:hover .service-title { color: var(--blue); }
.service-body { display: grid; grid-template-columns: 120px 1fr 1fr 48px; gap: 24px; padding-bottom: 40px; }
.service-body > p { grid-column: 2; color: var(--slate); }
.service-body ul { grid-column: 3; }
.service-body li { padding: 10px 0 10px 22px; border-top: 1px solid var(--line); position: relative; font-size: 16px; }
.service-body li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1.5px; background: var(--blue); }
@media (max-width: 900px) {
  .service summary { grid-template-columns: 64px 1fr 40px; gap: 16px; }
  .service-hook { display: none; }
  .service-body { grid-template-columns: 64px 1fr; }
  .service-body > p, .service-body ul { grid-column: 2; }
}

/* Visual break */
.band { background: var(--blue); color: var(--white); padding-block: clamp(80px, 12vw, 168px); overflow: hidden; position: relative; }
.band-line { position: absolute; left: -5%; right: -5%; top: 50%; height: 1px; background: rgba(255, 255, 255, 0.3); transform: rotate(-8deg); }
.band p { position: relative; font-size: clamp(40px, 6.4vw, 104px); max-width: 15ch; }
.band p span { display: block; color: #c8d5fb; }
.band p span:last-child { color: var(--white); padding-left: clamp(0px, 12vw, 200px); }

/* Foresight */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--navy); }
.problem { padding: 28px 28px 8px 0; }
.problem + .problem { padding-left: 28px; border-left: 1px solid var(--line); }
.problem h4 { font-size: 20px; font-weight: 600; }
.problem p { margin-top: 8px; color: var(--slate); font-size: 16px; }
@media (max-width: 820px) { .problems { grid-template-columns: 1fr; } .problem + .problem { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

.subhead { font-size: clamp(28px, 3vw, 40px); }
.block + .block { margin-top: clamp(72px, 9vw, 120px); }

.what-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .what-grid { grid-template-columns: 1fr; } }

.verdicts { margin-top: 28px; display: grid; gap: 10px; }
.verdict-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.verdict-row p { font-size: 15px; color: var(--slate); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--go { background: var(--blue); color: var(--white); }
.pill--go::before { background: var(--white); }
.pill--cond { background: var(--ochre-soft); color: #7a520f; }
.pill--hold { background: #e3e6ec; color: var(--slate); }

.posture { margin-top: 36px; }
.posture-label { font-size: 18px; font-weight: 600; line-height: 1.3; }
.dial { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--navy); }
.dial input { position: absolute; opacity: 0; pointer-events: none; }
.dial label { padding: 12px 10px; text-align: center; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.dial label:not(:first-of-type) { border-left: 1px solid var(--navy); }
.dial input:checked + label { background: var(--navy); color: var(--white); }
.dial input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: -4px; }
.posture-note { margin-top: 12px; font-size: 15px; color: var(--slate); min-height: 3em; }

/* Sample report mockup */
.report { background: var(--white); border: 1px solid var(--line-cool); box-shadow: 0 1px 0 var(--line-cool), 0 24px 48px -32px rgba(11, 31, 58, 0.35); font-size: 15px; }
.report-flag { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--navy); color: var(--ivory); padding: 10px 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.report-flag span:last-child { opacity: 0.7; letter-spacing: 0.06em; text-transform: none; font-weight: 500; }
.report-head { padding: 22px 22px 18px; border-bottom: 1px solid var(--line-cool); }
.report-q { font-size: 14px; color: var(--slate-2); font-weight: 600; }
.report-deal { margin-top: 6px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.report-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.report-verdict .pill { font-size: 15px; padding: 8px 14px; transition: background-color 0.3s, color 0.3s; }
.report-verdict small { color: var(--slate); font-size: 14px; }
.report-summary { padding: 16px 22px; background: var(--ivory); border-bottom: 1px solid var(--line-cool); color: var(--slate); }
.report-dims { padding: 6px 22px 10px; }
.report-dims li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef0f4; }
.report-dims li:last-child { border-bottom: 0; }
.dim-score { display: inline-flex; gap: 3px; }
.dim-score i { width: 14px; height: 6px; background: #e3e6ec; }
.dim-score i.on { background: var(--blue); }
.dim-score.cond i.on { background: var(--ochre); }
.report-foot { padding: 14px 22px; border-top: 1px solid var(--line-cool); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--slate-2); }
.report-col { min-width: 0; }
.report-caption { margin-top: 12px; font-size: 0.8rem; line-height: 1.5; color: var(--slate-2); text-align: left; }
@media (max-width: 560px) { .report-foot { flex-direction: column; gap: 4px; } }
@media (max-width: 560px) { .report-dims li { grid-template-columns: 1fr auto; } .report-dims .src { grid-column: 1 / -1; justify-self: start; } }

/* Evidence tags */
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 8px; border: 1px solid; white-space: nowrap; }
.src--official { color: var(--navy); border-color: var(--navy); }
.src--reported { color: var(--slate); border-color: #b9c1cf; }
.src--desk { color: var(--blue); border-color: var(--blue); border-style: dashed; }
.src--verified { color: var(--white); background: var(--blue); border-color: var(--blue); }
.src--field { color: #7a520f; background: var(--ochre-soft); border-color: #e3c98e; }

/* Pipeline */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; position: relative; margin-top: 40px; }
.pipeline::before { content: ""; position: absolute; top: 21px; left: 0; right: 0; height: 1.5px; background: var(--navy); }
.step { position: relative; padding-right: 24px; }
.step-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--navy); font-weight: 700; font-size: 15px; position: relative; }
.step:last-child .step-dot { background: var(--blue); color: var(--white); border-color: var(--blue); }
.step h4 { margin-top: 20px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.step p { margin-top: 8px; font-size: 15px; color: var(--slate); }
.step-where { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--slate-2); }
.step:last-child .step-where { color: var(--blue); }
@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr; gap: 0; }
  .pipeline::before { top: 0; bottom: 0; left: 21px; right: auto; width: 1.5px; height: auto; }
  .step { display: grid; grid-template-columns: 44px 1fr; gap: 0 20px; padding: 0 0 28px; }
  .step-dot { grid-row: span 3; }
  .step h4 { margin-top: 8px; }
}

/* Eight dimensions */
.dims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1px; background: var(--line-cool); border: 1px solid var(--line-cool); margin-top: 40px; }
.dim { background: var(--white); padding: 24px; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; text-align: left; transition: background-color 0.3s; }
.dim:hover { background: var(--blue-soft); }
/* Title area reserves two lines so every description starts at the same height */
.dim h4 { margin: 0; font-family: var(--font-body); font-size: 18px; font-weight: 600; line-height: 1.3; min-height: 2.6em; color: var(--navy); text-align: left; overflow-wrap: break-word; }
.dim p { margin: 8px 0 0; font-family: var(--font-body); font-size: 14.5px; font-weight: 400; line-height: 1.55; color: var(--slate); text-align: left; overflow-wrap: break-word; }
@media (max-width: 1100px) { .dims { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dims { grid-template-columns: minmax(0, 1fr); } .dim h4 { min-height: 0; } }

.evidence { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(32px, 6vw, 96px); }
.evidence-list li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.evidence-list li:last-child { border-bottom: 1px solid var(--line); }
.evidence-list p { font-size: 15.5px; color: var(--slate); }
.evidence-list .src { justify-self: start; margin-top: 2px; }
@media (max-width: 960px) { .evidence { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .evidence-list li { grid-template-columns: 1fr; gap: 8px; } }

/* Ways to engage: four equal cards, order shown by a filling progress line */
.engage { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 16px; margin-top: 40px; }
.engage-card { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-cool); border-radius: 0; padding: 32px 24px 24px; }
.engage-track { position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: var(--blue-soft); }
.engage-track span { display: block; width: var(--fill); height: 100%; background: var(--blue); }
.engage-label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.engage-name { margin-top: 10px; font-size: 21px; font-weight: 600; line-height: 1.2; min-height: 2.4em; }
.engage-purpose { margin-top: 10px; font-size: 15px; color: var(--slate); min-height: 4.8em; }
.engage-points { margin-top: 18px; border-top: 1px solid var(--line-cool); }
.engage-points li { position: relative; padding: 10px 0 10px 20px; border-bottom: 1px solid #eef0f4; font-size: 15px; line-height: 1.45; }
.engage-points li::before { content: ""; position: absolute; left: 0; top: 20px; width: 10px; height: 1.5px; background: var(--blue); }
.engage-cta { margin-top: 40px; }
@media (max-width: 1100px) { .engage { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .engage { grid-template-columns: 1fr; }
  .engage-card { padding: 24px 22px 22px 28px; }
  .engage-track { top: -1px; bottom: -1px; left: -1px; right: auto; width: 3px; height: auto; }
  .engage-track span { width: 100%; height: var(--fill); }
  .engage-name, .engage-purpose { min-height: 0; }
}

/* Connective tissue */
.bridge { display: grid; grid-template-columns: 6fr 6fr; gap: 48px clamp(32px, 6vw, 96px); align-items: center; }
.bridge .prose { color: rgba(246, 243, 236, 0.8); margin-top: 24px; }
.bridge .prose strong { color: var(--white); }
.flow { border: 1px solid rgba(246, 243, 236, 0.2); }
.flow li { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid rgba(246, 243, 236, 0.14); }
.flow li:last-child { border-bottom: 0; background: var(--blue); }
.flow .i { font-size: 13px; font-weight: 700; color: #a9bdf2; }
.flow li:last-child .i { color: var(--white); }
.flow b { font-weight: 600; display: block; }
.flow span.d { font-size: 14px; color: rgba(246, 243, 236, 0.65); }
.flow li:last-child span.d { color: rgba(255, 255, 255, 0.85); }
.flow .who { font-size: 13.5px; font-weight: 600; color: rgba(246, 243, 236, 0.6); }
.bridge-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .bridge { grid-template-columns: 1fr; } .flow li { grid-template-columns: 32px 1fr; } .flow .who { grid-column: 2; } }

/* ---------- PERSPECTIVE ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { padding: 9px 16px; border: 1px solid var(--line-cool); background: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }

.feature { display: grid; grid-template-columns: 7fr 5fr; border: 1px solid var(--line-cool); margin-bottom: 24px; text-decoration: none; background: var(--white); cursor: pointer; text-align: left; padding: 0; width: 100%; }
.feature-art { background: var(--navy); min-height: 360px; position: relative; overflow: hidden; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 1s var(--ease); }
.feature:hover .feature-art img { transform: scale(1.03); }
.feature-body { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; }
.feature-body h2 { font-size: clamp(30px, 3.2vw, 46px); margin-top: 18px; }
.feature-body p { margin-top: 16px; color: var(--slate); }
.feature-body .meta { margin-top: auto; padding-top: 28px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-art { min-height: 220px; } }

.articles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 24px; }
.articles > li { height: 100%; }
.article { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line-cool); background: var(--white); text-decoration: none; transition: border-color 0.25s, transform 0.4s var(--ease); text-align: left; padding: 0; cursor: pointer; width: 100%; }
.article:hover { border-color: var(--navy); }
.article[hidden] { display: none; }
.article-art { aspect-ratio: 16 / 9; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 18px; }
.article-art .glyph { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: 64px; line-height: 0.9; position: relative; }
.art--telecom { background: var(--blue); color: rgba(255, 255, 255, 0.92); }
.art--macro { background: var(--navy); color: #a9bdf2; }
.art--sectors { background: var(--ivory-2); color: var(--navy); }
.art--fypm { background: var(--blue-soft); color: var(--blue-deep); }
.article-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 28px 28px; opacity: 0.08; }
.art--cover { background: var(--navy); }
.art--cover::before { display: none; }
.art--cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.article:hover .art--cover img { transform: scale(1.03); }
.pdf-badge { position: relative; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 8px; background: var(--white); color: var(--navy); }
.article-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.article-body h3 { font-size: 21px; font-weight: 600; line-height: 1.28; letter-spacing: -0.005em; margin-top: 12px; }
.article:hover h3 { color: var(--blue); }
.article-body p { margin-top: 10px; font-size: 15px; color: var(--slate); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--slate-2); }
.article-body .meta { margin-top: auto; padding-top: 20px; }
.legacy { font-size: 12px; font-style: italic; color: var(--slate-2); }
/* Empty placeholder the width of the "originally published" note, so a card without the note keeps its date on the same line as its neighbours, even where the note wraps */
.meta-spacer { display: inline-block; width: 182px; height: 1em; font-size: 12px; }
.brand-new { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
@media (max-width: 1000px) { .articles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .articles { grid-template-columns: 1fr; } }

.archive-note { margin-top: 40px; font-size: 14px; color: var(--slate-2); }
.archive-note a { color: var(--blue); }

/* Reading dialog for FYPM pieces */
.reader { border: 0; padding: 0; width: min(760px, 100vw - 32px); max-height: calc(100vh - 48px); background: var(--white); color: var(--navy); box-shadow: 0 40px 80px -40px rgba(11, 31, 58, 0.5); }
.reader::backdrop { background: rgba(11, 31, 58, 0.55); }
.reader[open] { animation: reader-in 0.35s var(--ease); }
@keyframes reader-in { from { opacity: 0; transform: translateY(12px); } }
.reader-inner { padding: clamp(28px, 5vw, 56px); }
.reader h2 { font-size: clamp(30px, 4vw, 48px); margin-top: 14px; }
.reader .prose { margin-top: 24px; }
.reader .prose h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin-top: 1.6em; }
.reader-close { position: sticky; top: 0; float: right; margin: 16px 16px 0 0; background: var(--white); border: 1px solid var(--line-cool); width: 40px; height: 40px; cursor: pointer; font-size: 20px; line-height: 1; }

/* ---------- CONTACT + FOOTER ---------- */
.contact { background: var(--navy); color: var(--ivory); padding-block: clamp(72px, 9vw, 128px); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(32px, 7vw, 120px); }
.contact-intro p.lead { color: rgba(246, 243, 236, 0.75); margin-top: 24px; }
.contact-meta { margin-top: 32px; font-size: 14px; color: rgba(246, 243, 236, 0.6); display: grid; gap: 4px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; align-content: start; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(246, 243, 236, 0.7); }
.field input, .field textarea {
  width: 100%; padding: 14px 0; background: transparent; color: var(--ivory);
  border: 0; border-bottom: 1px solid rgba(246, 243, 236, 0.35); border-radius: 0;
  font-size: 18px; transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: #8fb0ff; box-shadow: 0 1px 0 #8fb0ff; }
.field input::placeholder, .field textarea::placeholder { color: rgba(246, 243, 236, 0.35); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.form-status { font-size: 15px; color: #c8d5fb; }
.form-status.is-error { color: #f2d48f; }
.contact-form.is-sent .field, .contact-form.is-sent .btn { opacity: 0.4; pointer-events: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }

.site-footer { background: var(--navy); color: rgba(246, 243, 236, 0.6); border-top: 1px solid rgba(246, 243, 236, 0.14); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding-block: 28px; }
.footer-inner nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ivory); }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand .wordmark { color: var(--ivory); font-size: 22px; margin: 0; }
html[data-type="serif"] .footer-brand .wordmark { font-size: 24px; }

/* ---------- Dev-only type toggle ---------- */
.type-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 90;
  background: var(--white); color: var(--navy); border: 1px solid var(--navy);
  font-size: 12px; box-shadow: 0 12px 32px -16px rgba(11, 31, 58, 0.5);
}
.type-toggle[hidden] { display: none; }
.type-toggle p { padding: 8px 10px 6px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); font-size: 10.5px; display: flex; justify-content: space-between; gap: 8px; }
.type-toggle p button { background: none; border: 0; cursor: pointer; color: var(--slate-2); font-size: 14px; line-height: 1; padding: 0; }
.type-toggle .opts { display: flex; border-top: 1px solid var(--line-cool); }
.type-toggle .opts button { background: none; border: 0; padding: 8px 12px; cursor: pointer; font-weight: 600; }
.type-toggle .opts button + button { border-left: 1px solid var(--line-cool); }
.type-toggle .opts button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

/* Thanks page */
.thanks { min-height: 70vh; display: grid; align-items: center; background: var(--ivory); }
.thanks p.lead { margin-top: 20px; }
.thanks .btn { margin-top: 36px; }

/* Spacing rhythm */
.subhead + .prose, .subhead + .problems { margin-top: 18px; }
.subhead + .problems { margin-top: 28px; }
.section-head--compact { margin-bottom: 40px; }
.section-head--flush { margin-bottom: 0; }
.section--navy .lead { color: rgba(246, 243, 236, 0.75); }
.what-grid .prose, .evidence .prose { font-size: 17px; }
