/* ==========================================================================
   drmandeepsinghmd.com

   Palette and type recovered from the original drmandeepsingh.ca (Elementor),
   Wayback snapshot 2025-03-25. Cyan was the signature accent there, used on
   icons, rules and buttons, never as a page-wide background. Kept that way.

   The one recurring ornament is the five growing dots taken from the Dr. S
   logo. It stands for the journey, so it heads every page and breaks the
   longer sections.
   ========================================================================== */

:root {
  --navy:      #041e42;  /* headings, body text, footer */
  --navy-700:  #0b3163;  /* the lighter end of the navy gradient */
  --blue:      #003594;  /* link hover, deep accent */
  --cyan:      #00bfff;  /* signature accent */
  --teal:      #3ecddb;  /* secondary accent, the dot motif */

  --ink:       #0d2340;  /* body copy */
  --ink-soft:  #3a5573;  /* secondary copy */
  --muted:     #6b7f96;  /* captions, labels */

  --white:     #ffffff;
  --mist:      #f0faff;  /* the friendly tinted band */
  --mist-2:    #e2f4fd;
  --grey-bg:   #f6f8fb;  /* the neutral tinted band */
  --line:      #e3e9f0;  /* hairlines */

  --measure: 36rem;                     /* reading width */
  --page:    74rem;                     /* outer container */
  --step:    clamp(3.5rem, 7vw, 6rem);  /* rhythm between sections */

  --display: "Montserrat", system-ui, sans-serif;
  --body:    "Roboto", system-ui, sans-serif;

  --radius:    16px;
  --radius-lg: 26px;
  --shadow:      0 2px 14px rgba(4, 30, 66, 0.07);
  --shadow-lift: 0 14px 38px rgba(4, 30, 66, 0.14);
  --shadow-art:  0 22px 60px rgba(4, 30, 66, 0.18);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;               /* lets full-bleed bands overhang safely */
  scroll-padding-top: 6rem;
}

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  z-index: 100;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* --- type ---------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.6vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.25rem); font-weight: 600; margin-top: 2.4em; }
h3 { font-size: 1.1875rem; font-weight: 600; margin-top: 2em; }

.prose > h2:first-child { margin-top: 0; }

p  { margin: 0 0 1.2em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); padding-left: 1.2em; }
li { margin-bottom: 0.5em; }
strong { color: var(--navy); font-weight: 500; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .18s ease;
}
a:hover { color: var(--cyan); }

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

.eyebrow {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.125rem, 1.9vw, 1.375rem);
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 34rem;
}

/* --- layout -------------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }

main { padding-bottom: calc(var(--step) * 1.1); }

/* A page that ends on a full-width band or call to action should run straight
   into the footer, with no strip of white between them. */
main:has(> .prose > .cta:last-child),
main:has(> .prose > .band:last-child) { padding-bottom: 0; }
main:has(> .prose > .cta:last-child) + .footer,
main:has(> .prose > .band:last-child) + .footer { margin-top: 0; }

/* Anything with this class breaks out of .wrap and spans the whole window,
   while its own contents stay lined up with the rest of the page. */
.band, .cta, .hero {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
}

/* --- the five growing dots ------------------------------------------------ */

.motif { display: flex; gap: 0.45rem; align-items: center; margin: 0 0 1.4rem; }
.motif i { display: block; border-radius: 50%; }
.motif i:nth-child(1) { width: 5px;  height: 5px;  background: var(--teal); }
.motif i:nth-child(2) { width: 7px;  height: 7px;  background: var(--cyan); }
.motif i:nth-child(3) { width: 9px;  height: 9px;  background: var(--cyan); }
.motif i:nth-child(4) { width: 12px; height: 12px; background: var(--blue); }
.motif i:nth-child(5) { width: 15px; height: 15px; background: var(--navy); }

.band--navy .motif i:nth-child(4) { background: var(--cyan); }
.band--navy .motif i:nth-child(5) { background: var(--white); }

/* --- header --------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.7rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand__name em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 0.15rem;
}

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}
.nav li { margin: 0; }
.nav a {
  display: block;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--blue); border-bottom-color: var(--teal); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--cyan); }

.navtoggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.55rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
}
.navtoggle__bars,
.navtoggle__bars::before,
.navtoggle__bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.navtoggle__bars { position: relative; }
.navtoggle__bars::before,
.navtoggle__bars::after { content: ""; position: absolute; left: 0; }
.navtoggle__bars::before { top: -5px; }
.navtoggle__bars::after  { top:  5px; }
.navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(5px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars::after  { transform: translateY(-5px) rotate(-45deg); }

/* --- homepage hero -------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(74vh, 40rem);
  padding-block: clamp(3.5rem, 9vw, 7rem);
  overflow: hidden;
  background: linear-gradient(105deg, #f4fbff 0%, #ffffff 55%, #eef7fc 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: 78% center;
  opacity: 0.95;
}

/* a soft wash so the headline always sits on quiet ground */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.94) 38%,
    rgba(255, 255, 255, 0.55) 58%,
    rgba(255, 255, 255, 0) 76%
  );
}

/* the cyan glow, borrowed from the logo's accent arc */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -14rem;
  bottom: -18rem;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.16), rgba(0, 191, 255, 0) 68%);
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 40rem; }
.hero h1 { max-width: 13ch; font-size: clamp(2.75rem, 7vw, 4.5rem); }
.hero .lede { margin-top: 1.35rem; max-width: 30rem; }
.hero .btns { margin-top: 2rem; }

/* --- page header (every page but the homepage) ---------------------------- */

.pagehead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(2rem, 4vw, 3.25rem);
}
.pagehead--plain { display: block; max-width: 46rem; }
.pagehead h1 { margin-bottom: 0.35em; }

.pagehead__media { position: relative; justify-self: end; width: 100%; max-width: 24rem; }
.pagehead__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-art);
  display: block;
}
/* a soft tinted plate behind the photograph */
.pagehead__media::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--mist-2), rgba(62, 205, 219, 0.25));
  z-index: -1;
}

/* --- buttons -------------------------------------------------------------- */

.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: none; margin: 1.6rem 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #0aa6e0);
  color: var(--white);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.015em;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 138, 199, 0.28);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover {
  background: linear-gradient(135deg, #0aa6e0, var(--blue));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(0, 53, 148, 0.3);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid #cfe0ee;
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--mist);
  color: var(--blue);
  border-color: var(--cyan);
  box-shadow: none;
}

.band--navy .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.band--navy .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

/* --- tinted bands --------------------------------------------------------- */

.band {
  padding-block: var(--step);
  margin-top: var(--step);
  background:
    radial-gradient(60rem 30rem at 88% -10%, rgba(62, 205, 219, 0.16), transparent 70%),
    linear-gradient(180deg, var(--mist) 0%, #ffffff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band + .band { margin-top: 0; border-top: 0; }
.band__inner > :first-child { margin-top: 0; }
.band__inner > :last-child { margin-bottom: 0; }
.band h2 { margin-top: 0; }

.band--navy {
  background:
    radial-gradient(50rem 26rem at 12% 0%, rgba(0, 191, 255, 0.22), transparent 68%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
  border-color: transparent;
  color: #cddced;
}
.band--navy h2, .band--navy h3 { color: var(--white); }
.band--navy .eyebrow { color: var(--teal); }
.band--navy .lede { color: #b9cde3; }
.band--navy a { color: var(--teal); }
.band--navy .card { background: rgba(255, 255, 255, 0.055); border-color: rgba(255, 255, 255, 0.14); }
.band--navy .card h3 { color: var(--white); }
.band--navy .card p { color: #b9cde3; }
.band--navy .card__ico { background: rgba(0, 191, 255, 0.16); color: var(--teal); }

/* --- text and picture side by side ---------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin: var(--step) 0;
}
.split--flip .split__media { order: 2; }

/* A tall, portrait-shaped photograph. Left to fill half the page it gets
   upscaled past its own resolution and goes soft, so it is held back. */
.split--narrow { grid-template-columns: minmax(0, 21rem) minmax(0, 1.15fr); }
.split--narrow.split--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 21rem); }
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  display: block;
}
.split__text > :first-child { margin-top: 0; }
.split__text > :last-child { margin-bottom: 0; }
.split__text h2 { margin-top: 0; }
.split__text h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 0; }
.band .split:first-child { margin-top: 0; }
.band .split:last-child { margin-bottom: 0; }

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

.cards {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

/* [[CARDS:5]] and friends: hold a fixed number across on wide screens, so a
   set that means something as a set (the five elements) reads as one row. */
@media (min-width: 68rem) {
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .cards--5 { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .cards--5 .card { padding: 1.5rem 1.25rem; }
  .cards--5 .card p { font-size: 0.875rem; }
}
@media (min-width: 45rem) and (max-width: 68rem) {
  .cards--5 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.7rem 1.6rem;
  margin: 0;
  transition: box-shadow .24s ease, transform .24s ease, border-color .24s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); border-color: #d3e6f4; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin: 0 0 0.45rem; font-size: 1.0625rem; }
.card p { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); max-width: none; }

.card__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--mist-2), #d6eefb);
  color: var(--blue);
  transition: background .24s ease, color .24s ease;
}
.card__ico .ico { width: 1.5rem; height: 1.5rem; }
.card:hover .card__ico { background: linear-gradient(140deg, var(--cyan), #0aa6e0); color: var(--white); }

/* --- pills ---------------------------------------------------------------- */

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 1.75rem 0 0;
  max-width: none;
}
.tags li {
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #d7e6f2;
  background: var(--mist);
  color: var(--blue);
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* --- the 543 stage numerals ----------------------------------------------- */

.stage {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 3rem 0 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.stage__num {
  font-family: var(--display);
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(150deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stage__label {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- figures -------------------------------------------------------------- */

.fig { margin: 2.5rem 0; max-width: 100%; }
.fig img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  display: block;
}
.fig--wide img { border-radius: var(--radius-lg); }
.fig figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.75rem;
  max-width: 40rem;
}
.band--navy .fig figcaption { color: #93aac6; }

/* --- pull quote ----------------------------------------------------------- */

blockquote {
  position: relative;
  margin: 2.5rem 0;
  padding: 0.35rem 0 0.35rem 2rem;
  border-left: 3px solid var(--cyan);
  max-width: 42rem;
}
blockquote p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.125rem, 2.1vw, 1.375rem);
  line-height: 1.5;
  color: var(--navy);
  max-width: none;
}
blockquote p:last-child { margin-bottom: 0; }
.band--navy blockquote p { color: var(--white); }
.band--navy blockquote { border-left-color: var(--teal); }

/* A navy band holding nothing but a quotation is a full-width pull quote,
   so it is centred and given room rather than hugging the left rule. */
.band--navy .band__inner > blockquote:only-child {
  border-left: 0;
  padding: 0;
  margin-inline: auto;
  max-width: 46rem;
  text-align: center;
}
.band--navy .band__inner > blockquote:only-child::before {
  content: "\201C";
  display: block;
  font-family: var(--display);
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.band--navy .band__inner > blockquote:only-child p {
  font-size: clamp(1.3rem, 2.9vw, 1.9rem);
  line-height: 1.45;
}

/* --- read next ------------------------------------------------------------ */

.nextup { margin-top: var(--step); }
.nextup__h {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.nextup ul {
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  padding: 0;
  margin: 0;
  max-width: none;
}
.nextcard { margin: 0; }
.nextcard a {
  display: grid;
  gap: 0.3rem;
  height: 100%;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--white);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.nextcard a:hover { background: var(--mist); border-color: #cfe6f6; transform: translateY(-3px); }
.nextcard__t { font-family: var(--display); font-weight: 600; color: var(--navy); }
.nextcard__b { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.5; }
.nextcard__go {
  font-size: 1.05rem;
  color: var(--cyan);
  transition: transform .2s ease;
  justify-self: start;
}
.nextcard a:hover .nextcard__go { transform: translateX(5px); }

/* --- closing call to action ----------------------------------------------- */

.cta {
  position: relative;
  isolation: isolate;
  margin-top: var(--step);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(4, 30, 66, 0.92), rgba(0, 53, 148, 0.78));
}
.cta__inner { max-width: 42rem; margin-inline: auto; }
.cta h2 { color: var(--white); margin-top: 0; }
.cta p { color: #cddced; margin-inline: auto; max-width: 34rem; }
.cta .btn { margin-top: 0.75rem; }

/* --- footer --------------------------------------------------------------- */

.footer {
  background:
    radial-gradient(45rem 22rem at 85% 0%, rgba(0, 191, 255, 0.14), transparent 70%),
    linear-gradient(170deg, var(--navy) 0%, #02152e 100%);
  color: #b9cde3;
  margin-top: var(--step);
  padding-block: 3.5rem 2rem;
  font-size: 0.9375rem;
}
.cta + .footer, .band:last-child + .footer { margin-top: 0; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { color: var(--teal); text-decoration: underline; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
}
.footer__brand img { width: 72px; height: 72px; margin-bottom: 1rem; }
.footer h2 { font-size: 1.3rem; color: var(--white); margin: 0 0 0.3rem; font-weight: 600; }
.footer h3 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.footer li { margin-bottom: 0.5rem; break-inside: avoid; }
.footer__tag {
  color: var(--teal);
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}
.footer__blurb { color: #90a8c4; font-size: 0.875rem; max-width: 26rem; }
.footer__legal {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.8125rem;
  color: #7f97b5;
}
.footer__legal p { max-width: 48rem; }
.footer__legal a { color: #b9cde3; text-decoration: underline; }

/* --- disclaimer page ------------------------------------------------------ */

.legal p, .legal li { font-size: 0.9375rem; color: var(--ink-soft); max-width: 44rem; }
.legal h2 { font-size: 1.3rem; }
.legal ul { max-width: 44rem; }

/* --- reveal on scroll ----------------------------------------------------- */

.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.will-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .will-reveal { opacity: 1; transform: none; }
}

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 62rem) {
  .navtoggle { display: inline-flex; }
  .nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    margin-left: 0;
    padding-block: 0.75rem 0.5rem;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: block; max-height: 70vh; overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border-bottom: 0; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav a[aria-current="page"] { color: var(--blue); }
  .masthead__inner { flex-wrap: wrap; }
}

@media (max-width: 56rem) {
  .pagehead { grid-template-columns: 1fr; }
  .pagehead__media { justify-self: start; max-width: 20rem; margin-top: 0.5rem; }
  .pagehead__media::before { inset: 1rem -1rem -1rem 1rem; }
  .split,
  .split--narrow,
  .split--narrow.split--flip { grid-template-columns: 1fr; gap: 1.75rem; }
  .split--flip .split__media { order: 0; }
  .split--narrow .split__media { max-width: 21rem; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  /* The banner is a wide desktop crop. On a narrow screen it can only show as
     a faint ghost behind the words, which reads as a mistake, so it goes. */
  .hero { min-height: 0; }
  .hero__bg { display: none; }
  .hero::before { background: none; }
  .hero::after { left: -10rem; bottom: -22rem; width: 34rem; height: 34rem; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 0.9375rem; }
  .card { padding: 1.4rem 1.3rem; }
  .footer ul { columns: 1; }
  .stage { gap: 0.75rem; }
  blockquote { padding-left: 1.25rem; }
}

@media print {
  .masthead, .navtoggle, .nextup, .cta, .footer__nav { display: none; }
  .will-reveal { opacity: 1; transform: none; }
  body { font-size: 11pt; }
}
