/* Informd — remake. Light, editorial, collective. */
:root {
  --smoke: #f7f7f7;
  --white: #ffffff;
  --charcoal: #403c3b;
  --mute: #6f6a68;
  --line: #e4e2e0;
  --light: #eeeeee;

  --amber: #d9962e;
  --green: #4ca78d;
  --blue: #6b9cd1;
  --violet: #ae6fa9;
  --coral: #e68d7c;
  --indigo: #6167aa;
  --brown: #b4785e;

  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(24px, 3.9vw, 56px);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--smoke);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.c-amber { --c: var(--amber); } .c-green { --c: var(--green); } .c-blue { --c: var(--blue); }
.c-violet { --c: var(--violet); } .c-coral { --c: var(--coral); } .c-indigo { --c: var(--indigo); }
.c-brown { --c: var(--brown); }
.dot { color: var(--c, var(--amber)); }

/* ---------- Header ---------- */
.site-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  padding: 24px; pointer-events: none;
}
@media (min-width: 768px) { .site-head { padding: 28px 32px; } }
.brand { display: inline-block; text-decoration: none; pointer-events: auto; }
.brand svg { height: 32px; width: auto; }
.mark-bar { fill: var(--amber); }
.brand small { display: block; margin-top: 8px; font-size: 14px; line-height: 1.2; letter-spacing: .005em; }

.menu-btn {
  position: fixed; top: 10px; right: 10px; z-index: 110;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(247, 247, 247, .6);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  transition: background .3s var(--ease);
}
@media (min-width: 768px) { .menu-btn { top: 18px; right: 18px; } }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--charcoal); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.menu-btn i { display: grid; gap: 4px; }
.menu-open .menu-btn { background: transparent; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(64, 60, 59, .25);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.menu-open .menu-scrim { opacity: 1; visibility: visible; }
.menu {
  position: fixed; top: 0; right: 0; z-index: 100;
  height: 100%; width: 100%; background: var(--white);
  display: flex; flex-direction: column; padding: 96px 24px 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  transform: translateX(100%); visibility: hidden;
  transition: transform .6s var(--ease), visibility .6s;
  overflow-y: auto;
}
@media (min-width: 768px) { .menu { width: 392px; } }
.menu-open .menu { transform: none; visibility: visible; }
.menu-links { flex: 1 0 auto; display: grid; gap: .1em; align-content: start; }
.menu-links a {
  display: block; font-family: var(--serif); font-size: 48px; line-height: 1.25;
  text-decoration: none; transition: color .3s var(--ease);
}
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--c); }
.menu-links a .dot { transition: color .3s var(--ease); }
.menu-foot { margin-top: 32px; font-size: 14px; display: grid; gap: 14px; }
.menu-foot ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.u { text-decoration: underline; text-underline-offset: 2px; transition: opacity .3s var(--ease); }
.u:hover { opacity: .6; }

/* ---------- Page scaffolding ---------- */
.page { position: relative; padding: 159px var(--gutter) 0; max-width: 1440px; margin: 0 auto; width: 100%; }
.hero-d { position: absolute; top: 96px; right: var(--gutter); display: none; pointer-events: none; }
.hero-d img { display: block; height: clamp(260px, 29vw, 420px); width: auto; }
@media (min-width: 1000px) { .hero-d { display: block; } }

.tabs { display: flex; gap: 32px; margin: 0 calc(var(--gutter) * -1) 31px; padding: 0 var(--gutter); font-weight: 600; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { text-decoration: none; padding-bottom: 7px; border-bottom: 2px solid transparent; transition: border-color .3s; white-space: nowrap; }
.tabs a:hover, .tabs a.on { border-color: var(--c, var(--charcoal)); }

.title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 8.9vw, 128px); line-height: 1; letter-spacing: -.025em;
}
.lede { margin-top: clamp(13px, 1.8vw, 26px); max-width: 672px; font-size: clamp(20px, 1.67vw, 24px); line-height: 1.375; }
.lede + .lede { margin-top: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  font-size: 13px; font-weight: 600; padding: 5px 12px 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--amber)); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px; padding: 16px 24px; border-radius: 48px;
  background: var(--charcoal); color: var(--white);
  font-weight: 700; font-size: 14px; line-height: 20px; text-decoration: none;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: #1f1c1b; }
.btn svg { width: 14px; height: 14px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.down:hover svg { transform: translateY(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.btn.ghost { background: transparent; color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--charcoal); }
.btn.ghost:hover { background: var(--charcoal); color: var(--white); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; text-underline-offset: 3px; }
.link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(3px); }

.section { margin-top: clamp(72px, 10vw, 136px); scroll-margin-top: 40px; }
.section > .h2, .split .h2, .h2 { font-family: var(--serif); font-weight: 400; font-size: 60px; line-height: 1.25; letter-spacing: -.025em; }
.split .h2, .aside-grid .h2 { font-size: clamp(48px, 4.2vw, 60px); }
.tool .h2 { font-size: clamp(32px, 3.4vw, 48px); }
.body { margin-top: 24px; max-width: 433px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.375; }
.small { margin-top: 24px; max-width: 433px; font-size: 16px; line-height: 1.5; }
@media (min-width: 768px) { .inset { padding-left: clamp(40px, 6.1vw, 88px); } }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); }
  .split.flip > :first-child { order: 2; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { background: var(--white); padding: 22px 22px 24px; border-left: 2px solid var(--c, var(--amber)); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.stat span { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; }
.stat em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--mute); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; margin: clamp(56px, 8vw, 96px) calc(var(--gutter) * -1) 0; border-block: 1px solid var(--line); padding: 16px 0; }
.marquee div { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; font-size: 15px; white-space: nowrap; }
.marquee span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 44px 24px; margin-top: 44px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px clamp(24px, 2.8vw, 40px); } }
.card { display: block; text-decoration: none; }
.card .art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c); }
.card .art svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.card:hover .art svg { transform: scale(1.04); }
.tag {
  position: absolute; top: 0; left: 0; z-index: 2;
  padding: 4px 8px; background: color-mix(in srgb, var(--c) 88%, #000); color: var(--white);
  font-size: 16px; font-weight: 700; line-height: 1.5;
}
.word {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; padding: 0 16px;
  color: var(--white); font-weight: 300; text-transform: uppercase;
  font-size: clamp(20px, 3.2vw, 40px); letter-spacing: .14em; line-height: 1.15;
}
.card .cap { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-top: 20px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.35vw, 48px); line-height: 1.25; letter-spacing: -.025em; max-width: 13em; }
.card .cap > svg { width: 22px; height: 22px; flex: none; margin-top: .5em; transition: transform .3s var(--ease); }
.card:hover .cap > svg { transform: translateX(5px); }
.card p { margin-top: 12px; max-width: 35em; font-size: 16px; line-height: 1.5; }
.card .meta { margin-top: 10px; font-size: 13px; font-weight: 600; }
.card.wide { grid-column: 1 / -1; }
@media (min-width: 760px) { .card.wide .art { aspect-ratio: 21 / 9; } .card.wide .word { font-size: clamp(32px, 5vw, 64px); } }

/* ---------- Practice detail ---------- */
.practice { display: grid; gap: 28px; padding-top: 36px; border-top: 1px solid var(--line); scroll-margin-top: 40px; }
.practice + .practice { margin-top: clamp(56px, 7vw, 96px); }
@media (min-width: 900px) { .practice { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); } }
.practice .num { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.practice .num::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.practice h3 { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.35vw, 48px); line-height: 1.25; letter-spacing: -.025em; }
.practice .copy { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.42; max-width: 36em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border: 1px solid rgba(64, 60, 59, .2); border-radius: 999px; font-size: 16px; line-height: 1.5; background: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--amber)); flex: none; transition: background .3s; }
button.pill:hover { border-color: var(--charcoal); }
button.pill[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--white); }
button.pill[aria-pressed="true"]::before { background: var(--white); }

/* ---------- Columns with a coloured rule ---------- */
.rules { display: grid; gap: 28px 24px; }
@media (min-width: 640px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rules.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rules.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rule { border-left: 2px solid var(--c, var(--amber)); padding: 2px 0 6px 16px; }
.rule .k { font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--c) 68%, #000); }
.rule h3, .rule h4 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.rule .k + h3, .rule .k + h4 { margin-top: 6px; }
.rule p { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.rule .fine { font-size: 13px; color: var(--mute); }
.rule.big h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; }

.aside-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .aside-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); } }

/* ---------- Quote ---------- */
.quote { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 60px); line-height: 1.25; letter-spacing: -.025em; max-width: 18em; }
.quote em { font-style: italic; color: var(--c, var(--amber)); }
.prose { display: grid; gap: 16px; max-width: 34em; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.42; }

/* ---------- Name list ---------- */
.names { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 24px; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.25; }
.names li::after { content: "."; margin-right: .35em; color: var(--c); }

/* ---------- Checks ---------- */
.checks { display: grid; gap: 10px; margin-top: 16px; font-size: 16px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: baseline; }
.checks li::before { content: "✓"; color: var(--c, var(--green)); font-weight: 700; }
.checks.no li::before { content: "✕"; }

/* ---------- Flow ---------- */
.flow { display: grid; gap: 0; counter-reset: f; max-width: 620px; }
.flow li { position: relative; background: var(--white); padding: 18px 20px 18px 58px; counter-increment: f; }
.flow li + li { margin-top: 26px; }
.flow li + li::after { content: "↓"; position: absolute; top: -27px; left: 22px; font-size: 16px; line-height: 26px; color: var(--mute); }
.flow li::before { content: counter(f); position: absolute; left: 20px; top: 18px; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.flow b { display: block; font-size: 16px; }
.flow span { display: block; margin-top: 4px; font-size: 14px; color: var(--mute); }

/* ---------- Report mock ---------- */
.panel { background: var(--white); padding: 22px; }
.panel .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.live { display: inline-flex; align-items: center; gap: 6px; color: color-mix(in srgb, var(--green) 68%, #000); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows li span { font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--c, #6f6a68) 68%, #000); text-align: right; }
.note { margin-top: 16px; padding: 16px; background: var(--smoke); border-left: 2px solid var(--c, var(--amber)); font-size: 14px; }
.note b { display: block; font-size: 15px; margin-bottom: 4px; }
.note .link { margin-top: 10px; }
.stack { display: grid; gap: 12px; }

/* ---------- Team ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(60px, 5.5vw, 80px); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; margin-top: 24px; }
@media (min-width: 700px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.human {
  position: relative; aspect-ratio: 1; overflow: hidden; text-align: left;
  background: #e9e7e5; color: var(--charcoal);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
  transition: background .4s var(--ease), color .4s var(--ease), opacity .4s var(--ease);
}
/* Size = leadership (large tiles). Colour = discipline, and only ever appears on interaction:
   every portrait is black and white at rest, and tints on hover, focus, or when a filter picks it. */
.human.feature { grid-column: span 2; grid-row: span 2; padding: 18px; }
.human .ini {
  position: absolute; top: 2px; right: 12px; font-family: var(--serif); font-size: clamp(54px, 9vw, 104px); line-height: 1.1;
  opacity: .16; letter-spacing: -.03em; transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.human.feature .ini { font-size: clamp(120px, 20vw, 260px); opacity: .28; right: 20px; }
.human .arch { position: absolute; top: 12px; left: 14px; font-size: 12px; font-weight: 600; display: none; }
.human.feature .arch { display: block; top: 16px; left: 18px; font-size: 15px; }
.human b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.human span.role { display: block; margin-top: 3px; font-size: 12px; line-height: 1.3; opacity: .85; }
.human.feature b { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; }
.human.feature span.role { font-size: 15px; margin-top: 6px; }
.human.lit { --c: var(--fc); }
.human:hover, .human:focus-visible, .human.lit { background: var(--c); color: var(--white); }
.human.lit .ini { opacity: .34; }
.human:hover .ini { opacity: .34; transform: translateY(4px); }
.js .team .human.dim, .team .human.dim { opacity: .18; }
.human[hidden] { display: none; }
.count { margin-top: 20px; font-size: 14px; line-height: 20px; color: var(--mute); }
.human-cta { aspect-ratio: 1; background: var(--charcoal); color: var(--white); padding: 14px; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; transition: background .4s var(--ease); }
.human-cta:hover { background: #1f1c1b; }
.human-cta b { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 28px); line-height: 1.15; }
.human-cta span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.human-cta svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.human-cta:hover svg { transform: translateX(4px); }
.human .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s var(--ease), transform .8s var(--ease); }
.human.has-photo { color: var(--white); background: #d9d6d4; }
.human.has-photo .ini { display: none; }
.human.has-photo::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(to top, rgba(30, 27, 26, .82), rgba(30, 27, 26, 0)); pointer-events: none; }
.human.has-photo b, .human.has-photo .role { position: relative; z-index: 2; }
.human.has-photo .arch { z-index: 2; }
.human.has-photo:hover, .human.has-photo:focus-visible, .human.has-photo.lit { background: var(--c); }
.human.has-photo:hover .ph, .human.has-photo:focus-visible .ph, .human.has-photo.lit .ph { mix-blend-mode: multiply; filter: grayscale(1) brightness(1.45) contrast(.92); }
.human.has-photo:hover .ph { transform: scale(1.03); }
.sheet .portrait { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin-bottom: 24px; }
.sheet .portrait[hidden], .sheet .bio[hidden], .sheet .pills[hidden] { display: none; }

/* ---------- Dialog ---------- */
dialog.sheet {
  border: 0; padding: 0; margin: 0 0 0 auto; background: var(--white); color: var(--charcoal);
  width: min(560px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}
dialog.sheet::backdrop { background: rgba(64, 60, 59, .3); }
dialog.sheet[open] { animation: sheet-in .5s var(--ease); }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
.sheet-in { padding: 88px 28px 40px; }
@media (min-width: 640px) { .sheet-in { padding: 96px 44px 48px; } }
.sheet .x { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; display: grid; place-items: center; font-size: 22px; }
.sheet .band { height: 6px; background: var(--c, var(--amber)); position: absolute; top: 0; left: 0; right: 0; }
.sheet h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 48px); line-height: 1.2; letter-spacing: -.025em; }
.sheet .role { margin-top: 10px; font-size: 17px; font-weight: 600; }
.sheet .bio { margin-top: 26px; display: grid; gap: 14px; font-size: 17px; line-height: 1.5; }
.sheet .pills { margin-top: 20px; }
.sheet .pill { font-size: 14px; padding: 5px 12px; }
.sheet ol.principles { margin-top: 28px; display: grid; gap: 22px; }

/* ---------- Calculator ---------- */
.tool { margin-top: 56px; background: var(--white); padding: clamp(24px, 3.9vw, 56px); max-width: 1040px; }
.steps { display: flex; gap: 6px; margin-bottom: 28px; }
.steps li { width: 40px; height: 4px; background: var(--light); transition: background .4s var(--ease); }
.steps li.done { background: var(--charcoal); } .steps li.on { background: var(--indigo); }
.steps[hidden], .screen[hidden] { display: none; }
.screen h2:focus { outline: none; }
.q { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.q::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--indigo)); }
.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.opts .pill { font-size: 16px; padding: 12px 20px 12px 16px; min-height: 48px; background: var(--white); }
.nav-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 36px; }
.nav-row .btn { margin-top: 0; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--charcoal); } .btn[disabled]:hover svg { transform: none; }
.score { display: grid; gap: 28px; align-items: center; margin-top: 28px; }
@media (min-width: 700px) { .score { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; } }
.ring { position: relative; width: 220px; max-width: 100%; }
.ring svg { width: 100%; height: auto; }
#score-arc { transition: stroke-dashoffset 1.4s var(--ease), stroke .4s; }
.ring .num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .num b { font-family: var(--serif); font-weight: 400; font-size: 72px; line-height: 1; letter-spacing: -.025em; }
.ring .num span { margin-top: 6px; font-size: 13px; color: var(--mute); }
.badge { display: inline-block; padding: 6px 14px; border-radius: 48px; background: var(--amber); color: var(--charcoal); font-size: 14px; font-weight: 700; }
.tool .stat { background: var(--smoke); }
.gate { margin-top: 56px; padding: clamp(20px, 3vw, 40px); background: var(--smoke); }
.gate p { margin-top: 14px; max-width: 34em; }
.gate .field { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.input { flex: 1 1 240px; max-width: 360px; min-height: 52px; padding: 14px 22px; border: 1px solid #c9c5c2; border-radius: 48px; background: var(--white); color: var(--charcoal); font: inherit; }
.input::placeholder { color: #8a8583; }
.input[aria-invalid="true"] { border-color: #c2452f; }
.gate .error { margin-top: 10px; min-height: 1.5em; font-size: 14px; font-weight: 600; color: #b03a26; }
.gate .fine, .fine { font-size: 13px; color: var(--mute); }
button.link { cursor: pointer; }

/* ---------- Long-form document ---------- */
.doc { display: grid; gap: 20px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; min-width: 0; }
.doc > p { max-width: 44em; }
.cite { margin: 6px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--c, var(--amber)); max-width: 40em; }
.cite p { font-family: var(--serif); font-size: clamp(21px, 2vw, 28px); line-height: 1.3; letter-spacing: -.01em; }
.cite footer { margin-top: 12px; font-size: 13px; color: var(--mute); }
.table-wrap { overflow-x: auto; background: var(--white); margin: 6px 0; }
.t { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 15px; line-height: 1.45; text-align: left; }
.t th, .t td { padding: 14px 16px; vertical-align: top; border-top: 1px solid var(--line); }
.t thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.t tbody th { font-weight: 600; min-width: 150px; }
.toc { counter-reset: t; display: grid; gap: 2px; }
.toc li { counter-increment: t; display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.35; letter-spacing: -.015em; }
.toc li::before { content: "0" counter(t); font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--mute); }
.toc a { text-decoration: none; transition: color .3s var(--ease); width: fit-content; }
.toc a:hover { color: var(--indigo); }
.limits { display: grid; gap: 16px; max-width: 44em; }
.limits li { padding-left: 16px; border-left: 2px solid var(--c, var(--brown)); }
.refs { counter-reset: r; display: grid; gap: 14px; max-width: 46em; font-size: 15px; }
.refs li { counter-increment: r; display: block; padding-left: 2.6em; position: relative; }
.refs li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: .1em; font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--c, #6b9cd1) 68%, #000); }

/* ---------- Informl ---------- */
/* page-flip 2.0.7 base styles (MIT, from its src/Style/stPageFlip.css; the library does not inject them).
   touch-action: pan-y lets sideways drags turn pages while vertical swipes still scroll. */
.stf__parent {
  position: relative;
  display: block;
  box-sizing: border-box;
  transform: translateZ(0);

  -ms-touch-action: pan-y;
  touch-action: pan-y;
}

.sft__wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.stf__parent canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.stf__block {
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  perspective: 2000px;
}

.stf__item {
  display: none;
  position: absolute;
  transform-style: preserve-3d;
}

.stf__outerShadow {
  position: absolute;
  left: 0;
  top: 0;
}

.stf__innerShadow {
  position: absolute;
  left: 0;
  top: 0;
}

.stf__hardShadow {
  position: absolute;
  left: 0;
  top: 0;
}

.stf__hardInnerShadow {
  position: absolute;
  left: 0;
  top: 0;
}

/* Brand treatment: in "Informl" only the final l is bold and underlined. */
.nl { font-weight: 700; text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .14em; text-decoration-skip-ink: none; }
/* Top padding keeps the reader bar (and its download icon) clear of the floating menu button. */
.reader { min-height: 100vh; min-height: 100svh; padding: 112px var(--gutter) 24px; background: #e9e6e3; }
.reader-frame { margin: 0 auto; width: 100%; }
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; margin-bottom: 14px; }
.reader-bar h1 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.reader-dl, .rc { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--charcoal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12); transition: background .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease); }
.reader-dl:hover, .reader-dl:focus-visible, .rc:hover:not([disabled]), .rc:focus-visible { background: var(--charcoal); color: var(--white); }
.reader-dl svg { width: 20px; height: 20px; }
.rc svg { width: 18px; height: 18px; }
.rc[disabled] { opacity: .35; cursor: default; box-shadow: none; }
.book-stage { position: relative; }
.book { min-width: 0 !important; max-width: none !important; margin: 0 auto; outline-offset: 6px; }
.book .pg { background: #fff; overflow: hidden; }
.book .pg img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.book.static .pg { display: none; max-width: 520px; margin: 0 auto; }
.book.static .pg:first-child { display: block; }
.reader-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: 18px; }
.rc-now { min-width: 168px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .reader-controls { gap: 8px 6px; }
  .reader-dl, .rc { width: 40px; height: 40px; }
  .rc-now { min-width: 116px; font-size: 14px; }
}
.rc-range { flex: 1 0 100%; width: 100%; max-width: 640px; margin: 8px auto 0; height: 24px; accent-color: var(--charcoal); cursor: pointer; }
/* Wide screens: one toolbar row above the book (title | page controls | download), so the book gets the rest of the screen. */
@media (min-width: 900px) {
  .reader { padding-top: 96px; padding-bottom: 18px; }
  .reader-frame { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "title ctl dl" "book book book"; align-items: center; column-gap: 20px; row-gap: 12px; }
  .reader-bar { display: contents; }
  .reader-bar h1 { grid-area: title; white-space: nowrap; }
  .reader-dl { grid-area: dl; }
  .reader-controls { grid-area: ctl; margin-top: 0; flex-wrap: nowrap; justify-content: center; }
  .book-stage { grid-area: book; }
  .rc-range { flex: 1 1 auto; min-width: 90px; max-width: 340px; margin: 0 0 0 10px; }
}
@media (max-width: 520px) { .reader { padding-left: 12px; padding-right: 12px; } }

/* ---------- CTA card ---------- */
.cta { margin: clamp(88px, 11vw, 150px) 0 0; scroll-margin-top: 60px; }
@media (min-width: 768px) { .cta { padding-left: 48px; } }
.cta-card { background: rgba(255, 255, 255, .8); padding: clamp(32px, 3.9vw, 56px); max-width: 672px; }
.cta-card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.2vw, 60px); line-height: 1.25; letter-spacing: -.025em; }
.cta-card p { margin-top: 18px; max-width: 30em; font-size: 16px; }
.cta-card .k { font-size: 13px; font-weight: 600; margin-bottom: 14px; display: inline-flex; gap: 8px; align-items: center; }
.cta-card .k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--amber)); }

/* ---------- Footer ---------- */
.site-foot {
  margin-top: clamp(96px, 12vw, 200px);
  padding: 0 24px 24px; font-size: 14px;
  display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 5;
}
@media (min-width: 768px) { .site-foot { padding-inline: 32px; flex-direction: row; justify-content: space-between; align-items: center; } }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-foot p a { margin-left: 6px; }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Home ---------- */
body.home { position: relative; }
.home .site-foot { margin-top: 0; position: absolute; left: 0; right: 0; bottom: 0; }
.home .site-head .brand { opacity: 0; transition: opacity .6s var(--ease), color .6s var(--ease); }
.home .site-head { position: fixed; }
.home[data-step="1"] .brand, .home[data-step="2"] .brand, .home[data-step="3"] .brand, .home[data-step="4"] .brand { opacity: 1; }
.home[data-step="1"] .brand, .home[data-step="2"] .brand, .home[data-step="3"] .brand { color: var(--white); }
.home[data-step="1"] .menu-btn:not(.x), .home[data-step="2"] .menu-btn, .home[data-step="3"] .menu-btn { background: rgba(255, 255, 255, .7); }

/* Five screens, one viewport of scroll each; site.js moves one screen per gesture. */
.scroller { position: relative; height: 500vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s; }
.home[data-step="0"] .layer[data-layer="0"],
.home[data-step="1"] .layer[data-layer="1"],
.home[data-step="2"] .layer[data-layer="2"],
.home[data-step="3"] .layer[data-layer="3"],
.home[data-step="4"] .layer[data-layer="4"] { opacity: 1; visibility: visible; }

.splash { display: grid; place-items: center; text-align: center; }
.splash-in { display: grid; justify-items: center; text-align: center; padding-bottom: 4svh; }

/* Concentric rings draw in, converge on the bowl and resolve into the Informd d. Without
   script or with reduced motion, only the finished d is shown. */
.d-anim { height: clamp(170px, 28svh, 250px); width: auto; overflow: visible; display: block; margin: 0 auto; }
.d-anim .r { fill: none; stroke: var(--charcoal); stroke-width: 1.25px; vector-effect: non-scaling-stroke; stroke-dasharray: 1; opacity: 0;
  rotate: var(--rot); transform-box: fill-box; transform-origin: center; }
.d-anim .bowl { fill: none; stroke: var(--charcoal); stroke-width: 36.5; }
.d-anim .stem, .d-anim .final { fill: var(--charcoal); }
.d-anim .bar { fill: var(--amber); transform-box: fill-box; transform-origin: left center; }
.d-anim .build { opacity: 0; }
.d-anim .halo { transform-box: fill-box; transform-origin: center; }
.d-anim .halo circle { fill: none; stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.d-anim .halo .halo-ring { stroke: var(--charcoal); stroke-width: 1px; opacity: .14; }

.splash-anim .d-anim .r { animation: ring-draw .9s cubic-bezier(.3, .6, .3, 1) calc(.1s + var(--i) * .1s) both, ring-conv .9s cubic-bezier(.7, 0, .3, 1) 1.5s forwards, ring-out .4s linear 2.25s forwards; }
.splash-anim .d-anim .build { opacity: 1; animation: build-out .25s linear 3.45s forwards; }
.splash-anim .d-anim .bowl { animation: bowl-in .6s cubic-bezier(.3, .7, .2, 1) 2.2s both; }
.splash-anim .d-anim .stem { transform-box: fill-box; transform-origin: 50% 100%; animation: grow-y .55s cubic-bezier(.2, .8, .2, 1) 2.7s both; }
.splash-anim .d-anim .bar { animation: grow-x .5s cubic-bezier(.2, .8, .2, 1) 3s both; }
.splash-anim .d-anim .final { opacity: 0; animation: fade-in .3s linear 3.35s forwards; }
.splash-anim .d-anim .halo { opacity: 0; animation: fade-in .8s ease 3.5s forwards, spin 16s linear 3.5s infinite; }
.splash-anim .splash .hint { animation: fade-in .5s linear 3.8s both; }
@keyframes ring-draw { from { stroke-dashoffset: 1; opacity: var(--o); } to { stroke-dashoffset: 0; opacity: var(--o); } }
@keyframes ring-conv { to { transform: scale(var(--k)); } }
@keyframes ring-out { to { opacity: 0; } }
@keyframes bowl-in { from { stroke-width: 1.25; opacity: 0; } 20% { opacity: 1; } to { stroke-width: 36.5; opacity: 1; } }
@keyframes build-out { to { opacity: 0; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hint { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); width: 20px; }
.hint .wheel { animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(5px); opacity: 0; } 100% { opacity: 0; } }

.wordlayer { background: var(--c); color: var(--white); display: grid; place-items: center; }
.wordlayer svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wordlayer .in { position: relative; width: 100%; max-width: 1440px; padding: 84px var(--gutter) 32px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.wordlayer .dmask { order: -1; height: min(36svh, 320px); width: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .16)); }
.wordlayer .big { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 14vw, 88px); line-height: 1; letter-spacing: -.025em; }
.wordlayer .big .dot { color: var(--charcoal); }
.wordlayer p { margin: 20px auto 0; max-width: 30em; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.4; }
@media (min-width: 900px) {
  .wordlayer .in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); padding: 0 var(--gutter); text-align: left; justify-items: start; align-items: center; }
  .wordlayer .dmask { order: 0; justify-self: center; height: min(82svh, 780px); }
  .wordlayer .big { font-size: clamp(60px, 9.4vw, 150px); }
  .wordlayer p { margin: 28px 0 0; }
}

.quads { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; padding: 84px 0 132px; }
@media (min-width: 900px) { .quads { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; padding: 0; } }
.quad {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 10px 24px; text-decoration: none; overflow: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
.quad:hover, .quad:focus-visible { background: var(--c); color: var(--white); }
.quad h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.4vw, 96px); line-height: 1.05; letter-spacing: -.025em; }
.quad:hover .dot, .quad:focus-visible .dot { color: var(--charcoal); }
.quad p { margin-top: 8px; font-size: clamp(15px, 1.5vw, 20px); line-height: 1.35; max-width: 20em; }
.quad .go { margin-top: 14px; width: 24px; height: 24px; transition: transform .4s var(--ease); display: none; }
.quad:hover .go { transform: translateX(8px); }
@media (min-width: 900px) {
  .quad { padding: 48px clamp(40px, 6vw, 96px); }
  .quad .go { display: block; }
  .quad:nth-child(1) { justify-content: flex-start; padding-top: 120px; }
  .quad:nth-child(2) { justify-content: flex-start; padding-top: 120px; align-items: flex-end; text-align: right; }
  .quad:nth-child(3) { justify-content: flex-end; padding-bottom: 96px; }
  .quad:nth-child(4) { justify-content: flex-end; padding-bottom: 96px; align-items: flex-end; text-align: right; }
  .quads::before { content: ""; position: absolute; left: 50%; top: 50%; --disc: clamp(225px, 19.5vw, 300px); width: var(--disc); height: var(--disc); margin: calc(var(--disc) / -2) 0 0 calc(var(--disc) / -2); border-radius: 50%; background: var(--smoke); z-index: 2; pointer-events: none; }
}
.center-mark { display: none; }
@media (min-width: 900px) { .center-mark { display: block; position: absolute; left: 50%; top: 50%; width: clamp(150px, 13vw, 200px); transform: translate(-50%, -50%); z-index: 3; pointer-events: none; } }
.center-mark .ring { fill: none; stroke: var(--charcoal); stroke-width: 3; stroke-linecap: round; }
.center-mark .bar { fill: var(--amber); }

/* No-JS / stacked fallback for home */
html:not(.js) .scroller { height: auto; }
html:not(.js) .stage { position: static; height: auto; overflow: visible; }
html:not(.js) .layer { position: relative; opacity: 1; visibility: visible; min-height: 100vh; }
html:not(.js) .home .site-head .brand { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee div { animation: none; flex-wrap: wrap; width: auto; gap: 8px 0; }
  .d-anim .halo { animation: none; }
  .marquee span[aria-hidden="true"] { display: none; }
  .js .rv { opacity: 1; transform: none; }
}
