/* ==========================================================================
   Pivotal Insight Clinical Services
   Ink on warm paper. Fraunces for voice, Karla for talking, Plex Mono for the record.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'Fraunces';
  src: url('./assets/fonts/fraunces-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('./assets/fonts/karla-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --paper: #fbf9f3;
  --paper-lit: #fffefb;
  --paper-dim: #f0ebdf;
  --ink: #15181e;
  --ink-panel: #1b2230;
  --ink-panel-2: #141a26;
  --muted: #5b5849;
  --muted-dark: #9fa8ba;
  --navy: #243b6b;
  --gold-text: #86590f;
  --gold-lit: #e7be72;
  --gold-muted: #8d7233;
  --rule: #dad4c4;
  --rule-strong: #c5b796;
  --rule-dark: #ffffff22;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text: 'Karla', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --gutter: 26px;
  --shell: 1240px;
  --rail: 0px;
  --band-pad: 76px;
}
@media (min-width: 760px) {
  :root { --gutter: 44px; --band-pad: 100px; }
}
@media (min-width: 1080px) {
  :root { --gutter: 60px; --rail: 168px; --band-pad: 124px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.62;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a, button, summary { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
  border-radius: 1px;
}
.band-tech :focus-visible,
.band-contact :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-lit); }

h1, h2 {
  font-family: var(--display);
  font-weight: 460;
  font-variation-settings: 'opsz' 144, 'SOFT' 55, 'WONK' 1;
  line-height: 0.95;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h1 em, h2 em { font-style: normal; color: var(--gold-text); }
.band-tech h2 em, .band-contact h2 em { color: var(--gold-lit); }

h3 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 40, 'SOFT' 40, 'WONK' 0;
  letter-spacing: -0.018em;
  line-height: 1.12;
}

p + p { margin-top: 1.05em; }

.shell {
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 18px;
  top: -120px;
  z-index: 90;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { top: 14px; }

/* --- Crisis access ---------------------------------------------------------
   Someone in a hard moment may land here. The lifeline is the first thing in
   the document after the skip link, it is repeated at the point where a person
   is about to send a message and wait, and the footer carries the full note. */
.crisis-bar {
  background: var(--paper-dim);
  border-bottom: 1px solid var(--rule);
  color: #3f3c33;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  padding: 9px var(--gutter);
}
.crisis-bar a {
  display: inline-block;
  padding: 10px 6px;
  margin: -10px -6px;
  font-weight: 700;
  color: #754b0e;
  text-underline-offset: 3px;
}
.crisis-bar a:hover { color: var(--ink); }

.contact-urgent {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--paper-lit);
  border-left: 2px solid var(--gold-lit);
  padding: 2px 0 2px 16px;
  margin-top: 26px;
}
.contact-urgent a {
  display: inline-block;
  padding: 10px 6px;
  margin: -10px -6px;
  font-weight: 700;
  color: var(--gold-lit);
  text-underline-offset: 3px;
}

/* --- The rail label: the recurring "case file" voice ----------------------- */
.rail-label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.rail-label.light { color: var(--gold-lit); }
.rail-label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.rail-label .sep {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}

/* --- Brand mark ------------------------------------------------------------
   The supplied banner is 1320x330 but the artwork occupies only x 528 to 794,
   y 27 to 303. Scaling that region up looks soft, so both marks crop to it and
   render it at or below its native size. Source region here: x 518 to 804,
   y 18 to 254, the lightbulb on its own. */
.mark {
  --m: 42px;
  display: block;
  background: var(--paper);
  width: var(--m);
  height: calc(var(--m) * 0.8252);
  overflow: hidden;
  flex-shrink: 0;
}
.mark img {
  width: calc(var(--m) * 4.6154);
  max-width: none;
  height: auto;
  margin-left: calc(var(--m) * -1.8112);
  margin-top: calc(var(--m) * -0.0629);
}
/* Source region x 500 to 825, y 12 to 322 of the 1320x330 banner. */
.lockup {
  --m: 210px;
  display: block;
  background: var(--paper);
  width: var(--m);
  height: calc(var(--m) * 0.9538);
  overflow: hidden;
}
.lockup img {
  width: calc(var(--m) * 4.0615);
  max-width: none;
  height: auto;
  margin-left: calc(var(--m) * -1.5385);
  margin-top: calc(var(--m) * -0.0369);
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.is-stuck {
  box-shadow: 0 1px 0 var(--rule), 0 12px 28px #1518181a;
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex-shrink: 0;
  padding-block: 5px;
  min-height: 46px;
}
.wordmark-type { display: flex; flex-direction: column; line-height: 1; }
.wordmark-name {
  font-family: var(--display);
  font-variation-settings: 'opsz' 40, 'SOFT' 40, 'WONK' 0;
  font-weight: 520;
  font-size: 21px;
  letter-spacing: -0.015em;
}
.wordmark-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a {
  text-decoration: none;
  font-size: 15px;
  padding-block: 11px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-header nav a:not(.nav-cta):hover { border-bottom-color: var(--rule-strong); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rule-strong) !important;
  padding: 12px 16px !important;
  min-height: 44px;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink) !important; }
.nav-cta svg { transition: transform 0.2s ease; }
.nav-cta:hover svg { transform: translateX(3px); }

.menu-toggle { display: none; }

/* --- Buttons and links ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  min-height: 54px;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--navy); }
.btn-quiet {
  border-color: var(--rule-strong);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 14px;
}
.btn-quiet:hover { background: #ffffff5c; border-color: var(--ink); }

.item-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-text);
  border-bottom: 1px solid var(--rule);
  padding-block: 10px;
  min-height: 44px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.item-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.item-link svg { transition: transform 0.2s ease; }
.item-link:hover svg { transform: translateX(4px); }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding-block: clamp(46px, 7vw, 86px) 0; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}
.hero-label { margin-bottom: 4px; }

.hero h1 {
  font-size: clamp(3.05rem, 8.4vw, 7.1rem);
  max-width: 17ch;
  margin-block: 6px 0;
}

.hero-body { max-width: 56ch; }
.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
  line-height: 1.6;
  color: #33362f;
}
.lede-2 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 40, 'SOFT' 60, 'WONK' 1;
  font-size: 1.35rem;
  margin-top: 0.7em;
  color: var(--gold-text);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.hero-plate { display: none; }

/* --- Router: three audiences, three doors -----------------------------------
   His three kinds of visitor want very different things, and one of them may
   be in a bad moment. This lets each of them leave the hero for the right
   place instead of scrolling through the other two. */
.router {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #ffffff33;
  margin-top: clamp(44px, 6vw, 84px);
}
.router-list { display: grid; }
.router-list li + li { border-top: 1px solid var(--rule); }
.router-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  min-height: 84px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.router-text { display: flex; flex-direction: column; gap: 9px; }
.router-who {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.router-what {
  font-family: var(--display);
  font-variation-settings: 'opsz' 40, 'SOFT' 50, 'WONK' 1;
  font-weight: 470;
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.router-list svg { color: var(--gold-text); transition: transform 0.2s ease; }
.router-list a:hover .router-what { color: var(--gold-text); }
.router-list a:hover svg { transform: translateX(5px); }

/* --- Bands ---------------------------------------------------------------- */
.band { padding-block: var(--band-pad); }
.band-head { margin-bottom: clamp(34px, 4vw, 54px); }
.band-head h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.15rem);
  margin-top: 20px;
}
.band-intro {
  color: var(--muted);
  max-width: 54ch;
  margin-top: 24px;
  font-size: 1.02rem;
}

/* --- The range: eight rooms ----------------------------------------------- */
.band-range { border-top: 1px solid var(--rule); }
.rooms { border-top: 1px solid var(--rule); }
.rooms li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas: 'n name' '. note' '. when';
  gap: 6px 14px;
  padding-block: 24px;
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.25s ease;
}
.room-n {
  grid-area: n;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold-text);
  padding-top: 7px;
  letter-spacing: 0.06em;
}
.room-name {
  grid-area: name;
  font-family: var(--display);
  font-variation-settings: 'opsz' 60, 'SOFT' 50, 'WONK' 1;
  font-weight: 480;
  font-size: clamp(1.5rem, 3.3vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.room-note { grid-area: note; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.room-when {
  grid-area: when;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.rooms-close {
  font-family: var(--display);
  font-variation-settings: 'opsz' 60, 'SOFT' 60, 'WONK' 1;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 26ch;
  margin-top: 40px;
}

/* --- The work ------------------------------------------------------------- */
.band-work { border-top: 1px solid var(--rule); }
.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-block: 40px;
  border-top: 1px solid var(--rule);
}
.work-item:last-child { border-bottom: 1px solid var(--rule); }
.work-n {
  font-family: var(--display);
  font-variation-settings: 'opsz' 90, 'SOFT' 40, 'WONK' 1;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-muted);
}
.work-body h3 { font-size: clamp(1.85rem, 3.6vw, 2.5rem); }
.work-for {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-top: 12px;
}
.work-body > p:not(.work-for) {
  color: var(--muted);
  max-width: 62ch;
  margin-top: 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.tags li {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  color: #45463c;
  background: #ffffff38;
}
.tags-wide { margin-top: 18px; }

.work-body .item-link { margin-top: 30px; }

/* --- Approach ------------------------------------------------------------- */
.band-approach {
  border-top: 1px solid var(--rule);
  background: linear-gradient(180deg, #f6f2eb 0%, var(--paper-dim) 100%);
}
.approach-grid { display: grid; gap: 44px; }
.approach-intro h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin-block: 20px 22px;
  max-width: 17ch;
}
.approach-intro p:not(.rail-label) { color: var(--muted); max-width: 46ch; }

.steps { border-top: 1px solid var(--rule-strong); }
.steps li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule-strong);
}
.step-n {
  font-family: var(--display);
  font-variation-settings: 'opsz' 60, 'SOFT' 40, 'WONK' 1;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--gold-text);
}
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.97rem; }

/* --- Technology: the one dark room ---------------------------------------- */
.band-tech {
  background: var(--ink-panel);
  background-image: radial-gradient(90% 120% at 12% 0%, #26304200 0%, #10151f 100%);
  color: var(--paper);
}
.tech-grid { display: grid; gap: 44px; }
.tech-copy h2 {
  font-size: clamp(2.1rem, 4.3vw, 3.3rem);
  margin-block: 20px 24px;
  max-width: 19ch;
}
.tech-copy p { color: #c3c9d4; max-width: 54ch; }

.tech-quote {
  border-left: 1px solid var(--gold-lit);
  padding: 4px 0 4px 28px;
  align-self: center;
}
.tech-quote p {
  font-family: var(--display);
  font-variation-settings: 'opsz' 90, 'SOFT' 70, 'WONK' 1;
  font-weight: 420;
  font-size: clamp(1.5rem, 2.9vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--paper-lit);
}
.tech-quote footer { margin-top: 24px; display: flex; flex-direction: column; gap: 5px; }
.quote-name {
  font-family: var(--display);
  font-variation-settings: 'opsz' 40, 'SOFT' 60, 'WONK' 1;
  font-size: 1.15rem;
  color: var(--gold-lit);
}
.quote-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* --- About ---------------------------------------------------------------- */
.about-grid { display: grid; gap: 48px; }
.about-copy h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  margin-block: 20px 24px;
  max-width: 15ch;
}
.about-copy p { color: var(--muted); max-width: 58ch; }
.about-copy .item-link { margin-top: 30px; }

.creds { border-top: 1px solid var(--rule); margin-bottom: 34px; }
.creds > div { padding-block: 16px; border-bottom: 1px solid var(--rule); }
.creds dt { font-size: 1.02rem; font-weight: 600; }
.creds dd {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* --- FAQ ------------------------------------------------------------------ */
.band-faq { border-top: 1px solid var(--rule); }
.faq-grid { display: grid; gap: 30px; }
.band-faq h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }

.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  min-height: 64px;
  font-size: 1.08rem;
  font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--gold-text); }
.plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.plus::before, .plus::after { content: ''; position: absolute; background: var(--gold-text); transition: transform 0.2s ease; }
.plus::before { left: 0; right: 0; top: 6.5px; height: 1px; }
.plus::after { top: 0; bottom: 0; left: 6.5px; width: 1px; }
details[open] .plus::after { transform: scaleY(0); }
.faq-list details > p {
  color: var(--muted);
  padding: 0 40px 26px 0;
  max-width: 64ch;
}

/* --- Contact -------------------------------------------------------------- */
.band-contact {
  background: var(--ink-panel-2);
  background-image: radial-gradient(80% 130% at 85% 10%, #223052 0%, #111722 62%);
  color: var(--paper);
}
.contact-grid { display: grid; gap: 44px; }
.contact-copy h2 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin-block: 20px 24px; }
.contact-copy p { color: #bcc4d1; max-width: 44ch; }

.contact-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
  border-bottom: 1px solid var(--rule-dark);
  text-decoration: none;
  transition: padding-inline 0.2s ease;
}
.contact-option:first-child { border-top: 1px solid var(--rule-dark); }
.contact-option small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-lit);
  margin-bottom: 8px;
}
.contact-option strong {
  font-family: var(--display);
  font-variation-settings: 'opsz' 40, 'SOFT' 50, 'WONK' 1;
  font-weight: 440;
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.contact-option svg { color: var(--gold-lit); transition: transform 0.2s ease; }
.contact-option:hover strong { color: var(--gold-lit); }
.contact-option:hover svg { transform: translateX(5px); }
.contact-note {
  font-size: 0.86rem;
  line-height: 1.7;
  color: #a9b2c1;
  margin-top: 14px;
  max-width: 52ch;
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--ink-panel-2);
  color: #b9c1cf;
  padding-block: 40px 30px;
  border-top: 1px solid var(--rule-dark);
}
.crisis-note {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #d8dde5;
  border: 1px solid #e7be7259;
  border-left-width: 3px;
  padding: 16px 20px;
  max-width: 78ch;
}
.crisis-note strong { color: var(--gold-lit); font-weight: 600; }
.crisis-note a {
  display: inline-block;
  padding: 7px 5px;
  margin: -7px -5px;
  text-underline-offset: 3px;
  color: var(--gold-lit);
  font-weight: 600;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--rule-dark);
}
.site-footer .wordmark-sub { color: var(--muted-dark); }
.site-footer .mark { box-shadow: 0 0 0 1px #ffffff2e; }
.footer-line { font-size: 0.9rem; color: #a9b2c1; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-block: 14px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-links a:hover { color: var(--gold-lit); border-bottom-color: var(--gold-lit); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 26px;
}
.footer-legal {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8b95a6;
}
.mu-works-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 12px;
  color: inherit;
  text-underline-offset: 4px;
}
.mu-works-credit svg { flex-shrink: 0; }
.mu-works-credit:hover { text-decoration: underline; }
.site-footer .mu-works-credit:hover { color: var(--gold-lit); }
.privacy-footer { padding-block: 20px; border-top: 1px solid var(--rule); }
.privacy-footer .shell { max-width: 760px; }

/* --- Privacy page --------------------------------------------------------- */
.privacy-page { padding-block: 60px 96px; }
.privacy-page .shell { max-width: 760px; }
.privacy-page h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 26px; }
.privacy-page h2 {
  font-family: var(--text);
  font-variation-settings: normal;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  margin-top: 36px;
  margin-bottom: 12px;
}
.privacy-page p { color: var(--muted); }
.privacy-page .back-link { margin-top: 44px; }

/* --- Reveal on scroll ----------------------------------------------------- */
.header-sentinel { height: 1px; margin-bottom: -1px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
/* Stagger members of a group without touching inline styles. */
.rooms li:nth-child(2), .steps li:nth-child(2), .work-item:nth-child(2) { transition-delay: 70ms; }
.rooms li:nth-child(3), .steps li:nth-child(3), .work-item:nth-child(3) { transition-delay: 140ms; }
.rooms li:nth-child(4) { transition-delay: 210ms; }
.rooms li:nth-child(n+5) { transition-delay: 260ms; }

/* ==========================================================================
   Wider viewports
   ========================================================================== */
@media (min-width: 620px) {
  .rooms li {
    grid-template-columns: 54px minmax(0, 1fr) 128px;
    grid-template-areas: 'n name when' '. note note';
    align-items: baseline;
  }
  .room-when { text-align: right; margin-top: 0; }
  .room-note { margin-top: 8px; max-width: 62ch; }
  .work-item { grid-template-columns: 86px minmax(0, 1fr); gap: 28px; }
  .creds dt { font-size: 1.06rem; }
}

@media (min-width: 900px) {
  .router-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .router-list li + li { border-top: 0; border-left: 1px solid var(--rule); }
  .router-list a { padding: 26px 26px; min-height: 104px; }
  .router-list li:first-child a { padding-left: 0; }
  .router-list li:last-child a { padding-right: 0; }
  .approach-grid { grid-template-columns: 0.95fr 1.05fr; gap: 72px; align-items: start; }
  .tech-grid { grid-template-columns: 1.15fr 0.85fr; gap: 72px; }
  .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 56px;
    align-items: end;
  }
  .hero-label, .hero h1 { grid-column: 1 / -1; }
  .hero-body { grid-column: 1; }
  .hero-plate { grid-column: 2; display: block; align-self: end; justify-self: end; }
  .lockup {
    border: 1px solid var(--rule-strong);
    box-shadow: 10px 10px 0 #c5b79633;
  }
}

@media (min-width: 1080px) {
  .band-head {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: 40px;
    align-items: start;
  }
  .band-head .rail-label { grid-column: 1; padding-top: 16px; }
  .band-head h2 { grid-column: 2; margin-top: 0; }
  .band-head .band-intro { grid-column: 2; }

  .rooms li { grid-template-columns: var(--rail) minmax(0, 1.05fr) minmax(0, 1.25fr) 132px; grid-template-areas: 'n name note when'; column-gap: 40px; align-items: baseline; padding-block: 28px; }
  .room-n { padding-top: 10px; }
  .room-note { margin-top: 0; }
  .rooms li:hover { background: #ffffff40; }
  .rooms-close { margin-left: calc(var(--rail) + 40px); }

  .work-item { grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: 40px; padding-block: 52px; }
  .work-n { font-size: 3rem; }

  .approach-intro, .tech-copy, .about-copy, .contact-copy { position: relative; }
  .faq-list { margin-left: calc(var(--rail) + 40px); }

}

@media (min-width: 1400px) {
  .hero h1 { font-size: 7.4rem; }
  .lockup { --m: 240px; }
}

/* ==========================================================================
   Narrow viewports
   ========================================================================== */
@media (max-width: 760px) {
  body { font-size: 16.5px; }

  /* Keep navigation available if scripting is unavailable. */
  html:not(.js-nav) .header-inner { flex-wrap: wrap; padding-block: 14px; }
  html:not(.js-nav) .menu-toggle { display: none; }
  html:not(.js-nav) .site-header nav { display: flex; position: static; width: 100%; box-shadow: none; padding-inline: 0; }

  .header-inner { min-height: 72px; position: relative; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    background: none;
    border: 1px solid var(--rule-strong);
    padding: 11px 14px;
    min-height: 44px;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .menu-lines {
    width: 17px;
    height: 9px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 22px;
    background: var(--paper-lit);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule-strong);
    box-shadow: 0 18px 30px #15181814;
    z-index: 30;
  }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { font-size: 17px; padding-block: 13px; min-height: 48px; display: flex; align-items: center; }
  .nav-cta { margin-top: 12px; justify-content: space-between; }

  .hero h1 { max-width: none; }
  .hero-actions { gap: 12px; }
  .btn { width: 100%; justify-content: space-between; }

  .tech-quote { border-left: 0; border-top: 1px solid var(--gold-lit); padding: 26px 0 0; }
  .faq-list summary { font-size: 1.02rem; }
  .faq-list details > p { padding-right: 8px; }
  .contact-option { padding-block: 20px; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-line { max-width: none; }
  .rooms-close { font-size: 1.25rem; }
  .hero-label .sep { display: none; }
}

@media (max-width: 380px) {
  .wordmark-name { font-size: 18px; }
  .menu-label { display: none; }
  .tags li { font-size: 11px; }
}

/* --- Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}
