@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-variable.382475f38242c52d.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0020-00FF, U+2000-206F, U+20AC, U+2122, U+2192, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-variable-ext.d10ccbbd0dc4ebae.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-024F, U+0300-036F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2100-2121, U+2123-214F, U+2190-2191, U+2193-21FF;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-italic-variable.b4f56ddc9873487f.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0020-00FF, U+2000-206F, U+20AC, U+2122, U+2192, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-italic-variable-ext.14e38c2d6a4ea6ef.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-024F, U+0300-036F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2100-2121, U+2123-214F, U+2190-2191, U+2193-21FF;
}

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin-variable.7726a5cd6f3c0e87.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0020-00FF, U+2000-206F, U+20AC, U+2122, U+2192, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin-variable-ext.312ef2b80cefd8d6.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-024F, U+0300-036F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2100-2121, U+2123-214F, U+2190-2191, U+2193-21FF;
}

@font-face {
  font-family: "Opus Website Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400.bcaa6e9d65124a08.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020-00FF, U+2000-206F, U+20AC, U+2122, U+2192, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Opus Website Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400-ext.eb432f81e1928eed.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-024F, U+0300-036F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2100-2121, U+2123-214F, U+2190-2191, U+2193-21FF;
}


/* Tokens follow the business card (Round 16) and the tear sheet (A, Ivory).
   Card: Source Serif 4 600 names, Jost tracked caps, IBM Plex Mono "//" line.
   Tear sheet: tracked-caps heads, hairline tables, a navy masthead rule.
   Amber carries text only on navy (4.7:1); on ivory it is decoration. */
:root {
  --ivory: #f5f1e8;
  --ivory-text: #f4f1ea;
  --navy: #1c4159;
  --navy-deep: #15334a;
  --teal: #218aa0;
  --teal-ink: #1a6f81; /* card's #1F7A8F is 4.4:1 on ivory; this passes at small sizes */
  --teal-light: #5fc0d6; /* card back "//" line, 5.1:1 on navy */
  --sea: #267671;
  --amber: #e39d16;
  --orange: #e0741c;

  --bg: var(--ivory);
  --ink: #17232c;
  --ink-soft: #26323b;
  --ink-muted: #4e5962;
  --ink-card: #5e6a73;
  --rule: #d6cdbc;
  --rule-strong: #b9b0a0;
  --error: #9b2c1f;
  --focus: var(--teal-ink);

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --font-mono: "Opus Website Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
}

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

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

body {
  margin: 0;
  color: var(--ink-soft);
  background: var(--bg);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: var(--ivory);
  background: var(--navy);
  font-family: var(--font-sans);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Card descriptor: Jost tracked caps, as "EQUITIES · AI" on the card front */
.sec-label,
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

/* Card back signature */
.tagline-eye {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--teal-light);
}

.tagline-owner {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
  color: var(--amber);
}

/* Masthead: the tear sheet's header, Swirl plus tracked-caps name over an italic line */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1.5px solid var(--navy);
  background: rgba(245, 241, 232, 0.94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  transition: background 180ms ease;
}

.nav.scrolled,
.nav.menu-open {
  background: rgba(245, 241, 232, 0.98);
}

.nav-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 76px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
  color: var(--navy);
}

.brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}

.wordmark-name {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark-sub {
  margin-top: 0.12rem;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-muted);
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--rule);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 19px;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem 2rem;
  min-width: 0;
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links a {
  color: #3a444c;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links .portal-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1.1rem;
  border: 1px solid var(--navy);
  color: var(--navy);
}

.nav-links .portal-btn:hover {
  color: var(--ivory);
  background: var(--navy);
}

/* Hero: the card back. Navy field, the dark Swirl cropped off the right edge
   (card: 1.27 x the height, 43% past the edge, centred), name, "//" line, amber italic. */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--ivory-text);
  background: var(--navy);
}

.hero-mark {
  position: absolute;
  top: 50%;
  right: 0;
  width: auto;
  max-width: none;
  height: 127%;
  aspect-ratio: 1;
  transform: translate(42.6%, -50%);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 9vw, 7.25rem);
}

.hero h1 {
  color: var(--ivory-text);
  font-size: clamp(2.6rem, 5.4vw, 4.75rem);
  font-weight: 600;
  line-height: 1.02;
}

.h1-line {
  display: block;
}

.hero .tagline {
  display: grid;
  gap: 0.5rem;
  margin-top: clamp(1.4rem, 2.6vw, 2.1rem);
}

.hero .tagline-eye {
  font-size: clamp(1rem, 1.6vw, 1.38rem);
  line-height: 1.2;
}

.hero .tagline-owner {
  font-size: clamp(1.55rem, 2.75vw, 2.4rem);
}

.hero-mandate {
  max-width: 31ch;
  margin-top: clamp(1.6rem, 3vw, 2.25rem);
  color: rgba(244, 241, 234, 0.84);
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.25rem;
}

.action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1px solid var(--navy);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.action-primary {
  color: var(--ivory);
  background: var(--navy);
}

.action-primary:hover {
  background: var(--navy-deep);
}

.action-secondary {
  color: var(--navy);
}

.action-secondary:hover {
  color: var(--ivory);
  background: var(--navy);
}

.hero .action-primary {
  border-color: var(--ivory-text);
  color: var(--navy);
  background: var(--ivory-text);
}

.hero .action-primary:hover {
  border-color: #ffffff;
  background: #ffffff;
}

.hero .action-secondary {
  border-color: rgba(244, 241, 234, 0.6);
  color: var(--ivory-text);
}

.hero .action-secondary:hover {
  border-color: var(--ivory-text);
  color: var(--navy);
  background: var(--ivory-text);
}

.hero :focus-visible {
  outline-color: var(--teal-light);
}

/* Fact row: the tear sheet's KPI strip, without any figures */

.facts {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.factsheet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: lining-nums tabular-nums;
}

.factsheet div {
  padding: 0.85rem 1.25rem 0.95rem 0;
}

.factsheet div + div {
  padding-left: 1.25rem;
  border-left: 1px solid var(--rule);
}

.factsheet dt {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.factsheet dd {
  margin: 0.2rem 0 0;
  color: var(--navy);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.25;
}

/* Sections */

section {
  padding: var(--section) 0;
}

section + section {
  border-top: 1px solid var(--rule);
}

.sec-head {
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.sec-title {
  max-width: 22ch;
  margin-top: 0.8rem;
  color: var(--navy);
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.12;
}

.sec-role {
  margin-top: 0.55rem;
  color: var(--ink-card);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.approach-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
}

.lede {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.45;
}

.approach-bridge {
  color: var(--ink-soft);
}

/* Pillars: the tear sheet's three statistics columns, caps head over a navy rule */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.pillar h3 {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--navy);
  color: var(--navy);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pillar p {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.conviction {
  position: relative;
  max-width: 34ch;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.25rem;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}

.conviction::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 1.5px;
  background: var(--navy);
}

.founder-body {
  display: grid;
  gap: 1.1rem;
  max-width: 64ch;
  color: var(--ink-soft);
}

.founder-body p:first-child {
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.45;
}

/* Contact form */

.contact-shell {
  max-width: 720px;
}

.contact-intro {
  color: var(--ink-soft);
}

.form {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-bottom-color: var(--teal-ink);
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-bottom-color: var(--error);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field-error {
  min-height: 1.15em;
  color: var(--error);
  font-size: 0.82rem;
  line-height: 1.35;
}

.field-error:empty {
  display: none;
  min-height: 0;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit {
  justify-self: start;
  min-width: 160px;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 0;
  color: var(--ivory);
  background: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.submit:hover {
  background: var(--navy-deep);
}

.submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--teal-ink);
  border-bottom: 1px solid var(--teal-ink);
  color: var(--ink);
  background: rgba(33, 138, 160, 0.07);
  font-size: 0.95rem;
}

/* Live regions stay in the accessibility tree before their first announcement. */
.form-status:not(.active) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 0;
  border: 0;
}

.form-status.active {
  display: block;
}

.form-status.error {
  border-color: var(--error);
  color: var(--error);
  background: rgba(155, 44, 31, 0.06);
}

.form-note,
.privacy-note {
  max-width: 76ch;
  color: var(--ink-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.privacy-note a,
.privacy-copy a {
  color: var(--teal-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Footer: back to the card back's navy */

footer {
  color: rgba(244, 241, 234, 0.78);
  background: var(--navy);
}

footer .wrap {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 2rem;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(244, 241, 234, 0.18);
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ivory-text);
}

.foot-brand img {
  width: 44px;
  height: 44px;
}

.foot-brand .wordmark-sub {
  color: rgba(244, 241, 234, 0.72);
}

.disclaimer {
  max-width: 82ch;
  padding: 2rem 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.74);
}

.disclaimer-head {
  margin-bottom: 0.9rem;
  color: var(--ivory-text);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.disclaimer p + p {
  margin-top: 0.9rem;
}

.copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 241, 234, 0.18);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.foot-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.foot-links a:hover {
  color: var(--ivory-text);
}

footer :focus-visible {
  outline-color: var(--teal-light);
}

/* Privacy and 404 */

.privacy-hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}

.privacy-hero h1 {
  margin-top: 1rem;
  color: var(--navy);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
}

.privacy-hero .lede {
  max-width: 48ch;
  margin-top: 1.2rem;
  color: var(--ink-soft);
}

.privacy-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.privacy-copy {
  max-width: 70ch;
}

.privacy-copy h2 {
  margin: 2.5rem 0 0.75rem;
  color: var(--navy);
  font-size: 1.45rem;
}

.privacy-copy h2:first-child {
  margin-top: 0;
}

.privacy-copy p,
.privacy-copy li {
  color: var(--ink-soft);
}

.privacy-copy p + p {
  margin-top: 0.9rem;
}

.privacy-copy ul {
  padding-left: 1.2rem;
}

.privacy-effective {
  margin-top: 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Reveal */

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.reveal-pending.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (min-width: 861px) {
  #founder .wrap,
  #contact .wrap {
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.55fr);
    column-gap: clamp(4rem, 8vw, 7rem);
    align-items: start;
  }

  #founder .sec-head,
  #contact .sec-head {
    margin-bottom: 0;
  }

  .disclaimer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 2rem;
    max-width: none;
  }

  .disclaimer-head {
    grid-column: 1 / -1;
  }

  .disclaimer p + p {
    margin: 0;
  }
}

@media (min-width: 721px) and (max-width: 860px) {
  .hero-mark {
    height: 100%;
    transform: translate(45%, -50%);
  }
}

@media (max-width: 720px) {
  /* Phones: the Swirl rises from the bottom-right corner below the copy */
  .hero-inner {
    padding-bottom: calc(clamp(3rem, 8vw, 4rem) + min(56vw, 330px));
  }

  .hero-mark {
    top: auto;
    right: 0;
    bottom: 0;
    width: min(84vw, 500px);
    height: auto;
    transform: translate(30%, 30%);
  }
}

@media (max-width: 860px) {
  .factsheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factsheet div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .factsheet div:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .approach-copy,
  .pillars {
    grid-template-columns: 1fr;
  }

  .pillars {
    gap: 1.75rem;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: calc(var(--nav-height, 76px) + 4px);
  }

  body {
    font-size: 17px;
  }

  .nav:not(.nav-enhanced) {
    position: relative;
  }

  .nav:not(.nav-enhanced) .nav-inner {
    padding-block: 1rem;
    gap: 0.75rem;
  }

  .nav:not(.nav-enhanced) .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-left: 0;
  }

  .nav-enhanced .nav-links {
    display: none;
  }

  .nav-enhanced .nav-inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .nav-enhanced .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .nav-links.open {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100vh - var(--nav-height, 76px));
    max-height: calc(100dvh - var(--nav-height, 76px));
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    border-bottom: 1.5px solid var(--navy);
    background: var(--bg);
    box-shadow: 0 12px 24px rgba(19, 45, 62, 0.08);
  }

  .nav-links.open a {
    flex-shrink: 0;
    padding: 0.9rem 0;
    font-size: 0.98rem;
    border-bottom: 1px solid var(--rule);
  }

  .nav-links.open a:last-child {
    border-bottom: 0;
  }

  .nav-links.open .portal-btn {
    min-height: 44px;
    justify-content: center;
    margin-top: 0.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9.4vw, 3.2rem);
  }
}

@media (max-width: 380px) {
  .wordmark-name {
    font-size: 0.94rem;
    letter-spacing: 0.1em;
  }

  .wordmark-sub {
    display: none;
  }

  .factsheet {
    grid-template-columns: 1fr;
  }

  .factsheet div,
  .factsheet div + div {
    padding-left: 0;
    border-left: 0;
  }

  .factsheet div + div {
    border-top: 1px solid var(--rule);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal.reveal-pending {
    opacity: 1;
    transform: none;
  }
}
