/* MFH Service — IRIS EXECUTION SPEC FINAL. Self-hosted SIL OFL fonts. */

:root {
  --ink: #16233A;
  --ink-deep: #0F1826;
  --paper: #F7F5F1;
  --white: #FFFFFF;
  --text: #333D4D;
  --muted: #66707F;
  --line: #E2DED6;
  --brass: #8A6B28;
  --mfh-red: #E03A2E;
  --mfh-blue: #154287;
  --mfh-green: #1B4A44;
  --navy: #001D35;
  --gray-soft: #F4F6F9;
  --ink-08: rgba(22, 35, 58, 0.08);
  --ink-04: rgba(22, 35, 58, 0.04);
  --text-inverse: #C9D2DE;
  --error: #A8432F;
  --success: #2E6B4F;
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --w-max: 1140px;
  --gutter: 32px;
  --sect-y: 112px;
  --gap: 24px;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 160ms ease;
}

a:hover {
  text-decoration-color: var(--brass);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  z-index: 40;
  font-family: var(--font-sans);
  font-size: 15px;
}

.skip:focus {
  top: 0.75rem;
}

.preview-chip {
  background: var(--ink-deep);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.45rem 1rem;
}

.wrap {
  width: min(var(--w-max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--gap);
}

/* ——— Header / nav ——— */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header.is-stuck {
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .site-header.is-stuck {
    background: var(--paper);
  }
}

.header-inner {
  width: min(var(--w-max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 120px;
  padding: 0.35rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img,
.logo svg {
  height: 96px;
  width: auto;
  max-width: 520px;
  display: block;
  object-fit: contain;
  background: transparent;
}

.header-cta-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  min-width: 44px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font-sans);
  margin-left: auto;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease;
}

.nav a:not(.btn):hover::after,
.nav a:not(.btn)[aria-current="page"]::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  padding: 0 32px;
  height: 52px;
  min-height: 52px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  background: var(--ink-deep);
  color: var(--white);
  border-color: var(--ink-deep);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-compact {
  height: 44px;
  min-height: 44px;
  padding: 0 24px;
}

.nav a.btn,
.nav a.btn:visited,
.nav a.btn:hover,
.nav a.btn:focus {
  color: var(--white);
  background: var(--ink);
  font-weight: 600;
}

.nav a.btn::after {
  display: none;
}

.nav a.btn:hover,
.nav a.btn:focus {
  background: var(--ink-deep);
  color: var(--white);
}

.btn-invert {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn-invert:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.link-arrow {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.link-arrow:hover {
  border-bottom-color: var(--brass);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 700;
}

h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 14ch;
  font-weight: 700;
}

h2 {
  font-size: 40px;
  line-height: 1.10;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  font-weight: 700;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.30;
  margin: 0 0 0.6rem;
}

.lead {
  font-size: 21px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 0 20px;
  font-weight: 400;
}

.microline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.section {
  padding: var(--sect-y) 0;
}

.ground-paper { background: var(--paper); }
.ground-white { background: var(--white); }
.ground-ink {
  background: var(--ink);
  color: var(--text-inverse);
}
.ground-ink h2,
.ground-ink h1 {
  color: var(--white);
}
.ground-ink a {
  color: var(--white);
}
.ground-ink a:hover {
  text-decoration-color: var(--brass);
}

/* Hero Home S1 */
.hero {
  background: var(--paper);
  padding: 96px 0 112px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
}

.hero-text {
  grid-column: 1 / 9;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

/* Chairman homepage hero v2 */
.hero-home {
  background: var(--white);
  padding: 96px 0 80px;
}

.hero-grid-v2 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
}

.hero-home .hero-text {
  grid-column: 1 / 7;
}

.hero-home h1 {
  color: var(--navy);
  max-width: 12ch;
}

.hero-home .lead {
  color: var(--text);
  max-width: 42ch;
}

.hero-visual {
  grid-column: 8 / 13;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: #021528;
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-outline:hover {
  background: var(--gray-soft);
  color: var(--navy);
}

.process-strip {
  background: var(--gray-soft);
  padding: 72px 0;
  border-top: 1px solid #E8ECF1;
  border-bottom: 1px solid #E8ECF1;
}

.process-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.process-strip-item h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--navy);
  margin: 12px 0 10px;
}

.process-strip-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  max-width: 28ch;
}

.ps-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.ps-red { color: var(--mfh-red); }
.ps-blue { color: var(--mfh-blue); }
.ps-green { color: var(--mfh-green); }
.ps-navy { color: var(--navy); }

.delivery-index {
  grid-column: 10 / 13;
  max-width: 200px;
  margin-left: auto;
  width: 100%;
}

.delivery-index-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.delivery-index-item:first-child {
  padding-top: 0;
}

.delivery-index-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.di-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brass);
  flex-shrink: 0;
}

.di-label {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.page-hero {
  background: var(--paper);
  padding: 96px 0 80px;
}

.page-hero.page-hero-contact {
  padding: 96px 0 64px;
}

.page-hero .lead,
.page-hero p {
  max-width: 52ch;
}

.page-hero h1 {
  max-width: 18ch;
}

/* Home S2 */
.s2-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.s2-head h2 {
  margin: 0;
}

.s2-head .link-arrow {
  flex-shrink: 0;
  margin-bottom: 6px;
}

.services-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.services-cols > * {
  padding: 0 32px;
  border-left: 1px solid var(--ink-08);
}

.services-cols > *:first-child {
  padding-left: 0;
  border-left: 0;
}

.services-cols > *:last-child {
  padding-right: 0;
}

.svc-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brass);
  margin: 0 0 12px;
}

.services-cols h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.30;
  margin: 0 0 16px;
  color: var(--ink);
}

.services-cols p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  max-width: 34ch;
}

/* Home S3 process */
.process-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}

.process-rail {
  grid-column: 1 / 5;
}

.process-rail h2 {
  margin-bottom: 0;
}

.process-grid {
  grid-column: 5 / 13;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 56px;
}

.process-item .num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--brass);
  font-weight: 500;
}

.process-item h3 {
  display: inline;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.process-item p {
  margin: 12px 0 0;
  font-size: 17px;
  max-width: 36ch;
}

/* Founder / photo */
.founder-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
}

.founder-photo {
  position: relative;
  width: 100%;
}

.founder-layout-home .founder-photo {
  grid-column: 1 / 6;
  max-width: 440px;
}

.founder-layout-home .founder-text {
  grid-column: 7 / 13;
}

.founder-layout-about .founder-text {
  grid-column: 1 / 7;
}

.founder-layout-about .founder-photo {
  grid-column: 8 / 13;
  max-width: 480px;
  margin-left: auto;
}

.founder-frame {
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  border: 1px solid var(--line);
  background: var(--ink-04);
  z-index: 0;
  pointer-events: none;
}

.founder-placeholder {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  width: 100%;
  background: var(--ink-04);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.founder-placeholder span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}

.founder-text .caption {
  margin: 16px 0 0;
}

.founder-text .link-arrow {
  display: inline-block;
  margin-top: 24px;
}

.caption {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

/* Principle band */
.principle {
  text-align: center;
  padding: 96px 0;
  background: var(--paper);
}

.principle-arc {
  display: block;
  width: 56px;
  height: 8px;
  margin: 0 auto 24px;
}

.principle p {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.015em;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--text-inverse);
  padding: var(--sect-y) 0;
  text-align: center;
}

.cta-band-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-band p {
  margin: 0 auto 32px;
  max-width: 52ch;
  color: var(--text-inverse);
}

.cta-band .cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
}

.cta-band .cta-email {
  font-size: 15px;
  margin-top: 16px;
}

.cta-band a:not(.btn) {
  color: var(--text-inverse);
}

.cta-band-short .cta-row {
  margin-top: 0;
}

.cta-band-short p {
  margin-bottom: 0;
}

/* Services page rows */
.service-rows {
  background: var(--white);
}

.service-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 72px 0;
  border-bottom: 1px solid var(--ink-08);
}

.service-row:last-of-type {
  border-bottom: 0;
}

.service-row-meta {
  grid-column: 1 / 5;
}

.service-row-copy {
  grid-column: 5 / 12;
}

.service-row .svc-index {
  font-size: 15px;
  margin-bottom: 12px;
}

.service-row h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: none;
}

.service-row p {
  margin: 0 0 1rem;
  font-size: 17px;
  max-width: 62ch;
}

.service-row p:last-child {
  margin-bottom: 0;
}

.partner-block {
  background: var(--white);
  padding: 0 0 var(--sect-y);
}

.specialist-note {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.specialist-note-inner {
  grid-column: 5 / 12;
  padding: 24px 0 24px 24px;
  border-left: 2px solid var(--brass);
}

.specialist-note .eyebrow {
  margin-bottom: 8px;
}

.specialist-note p:not(.eyebrow) {
  margin: 0;
}

/* About */
.about-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.about-intro-inner {
  grid-column: 3 / 11;
  font-size: 19px;
  line-height: 1.6;
}

.about-intro-inner h2 {
  margin: 0 0 1.5rem;
}

.about-intro-inner p {
  margin: 0 0 1.25rem;
  max-width: none;
}

.about-intro-inner p:last-child {
  margin-bottom: 0;
}

.commitments {
  margin: 0;
  padding: 0;
}

.commitment {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 40px 0;
  border-bottom: 1px solid var(--ink-08);
  margin: 0;
}

.commitment:first-of-type {
  border-top: 1px solid var(--ink-08);
}

.commitment dt {
  grid-column: 1 / 5;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin: 0;
}

.commitment dd {
  grid-column: 5 / 12;
  margin: 0;
  font-size: 17px;
  max-width: 62ch;
}

.facts-block {
  max-width: 62ch;
}

.facts-block h2 {
  margin-bottom: 16px;
}

.facts-block p {
  margin: 0 0 1rem;
  font-size: 15px;
}

.mono-inline {
  font-family: var(--font-mono);
  font-size: 13px;
}

.facts-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  margin: 0 0 1rem;
}

.section-compact {
  padding: 64px 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}

.contact-form-col {
  grid-column: 1 / 8;
  max-width: 640px;
  width: 100%;
}

.side-notes {
  grid-column: 9 / 13;
  font-size: 15px;
  color: var(--text);
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.side-notes p {
  margin: 0 0 1rem;
}

.side-notes .side-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

form.enquiry {
  display: grid;
  gap: 24px;
  max-width: 640px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field .req {
  color: var(--muted);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
textarea {
  font: inherit;
  font-family: var(--font-serif);
  padding: 0 0.85rem;
  height: 52px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--text);
  width: 100%;
  transition: border-color 160ms ease, outline-color 160ms ease;
}

textarea {
  height: auto;
  min-height: 160px;
  padding: 0.85rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-color: var(--ink);
}

.field-error {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--error);
  margin: 0;
}

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

.consent {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.consent.hint {
  font-style: italic;
}

.consent a {
  color: var(--ink);
}

.form-fail {
  background: #f8ece9;
  border: 1px solid var(--error);
  color: var(--ink);
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 15px;
}

.form-fail[hidden],
.form-ok[hidden] {
  display: none !important;
}

.form-ok {
  background: #e8f2ec;
  border: 1px solid var(--success);
  color: var(--ink);
  padding: 1.5rem;
}

.form-ok h2 {
  font-size: 22px;
  margin: 0 0 0.75rem;
}

.form-ok p {
  margin: 0 0 0.5rem;
}

button.btn {
  width: 100%;
}

/* Privacy sheet */
.privacy-sheet {
  background: var(--white);
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 40px 64px;
}

.privacy-sheet h1 {
  max-width: none;
}

.privacy-sheet .updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 2rem;
}

.privacy-sheet h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.privacy-sheet p {
  margin: 0 0 1rem;
}

.privacy-wrap {
  background: var(--paper);
  padding: 56px 0 96px;
}

/* Footer */
.site-footer {
  background: var(--ink-deep);
  color: var(--text-inverse);
  padding: 40px 0;
  font-family: var(--font-sans);
  font-size: 13px;
}

.footer-inner {
  width: min(var(--w-max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--text-inverse);
}

.site-footer a:hover {
  text-decoration-color: var(--brass);
}

.not-found {
  padding: var(--sect-y) 0;
  background: var(--paper);
}

.not-found h1 {
  max-width: none;
}

.not-found .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-sans);
}

/* Reveal — visible by default; hide only when .js is on <html> */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 450ms ease-out, transform 450ms ease-out;
}

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

/* Responsive ≤900 */
@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }

  .delivery-index {
    display: none;
  }

  .hero-text {
    grid-column: 1 / -1;
  }

  .hero-grid-v2 {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .hero-home .hero-text,
  .hero-visual {
    grid-column: 1 / -1;
  }

  .hero-visual {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-home .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-home .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .process-strip-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .process-strip-item p {
    max-width: none;
  }

  .hero-grid,
  .process-layout,
  .founder-layout,
  .service-row,
  .specialist-note,
  .about-intro,
  .commitment,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-rail,
  .process-grid,
  .founder-layout-home .founder-photo,
  .founder-layout-home .founder-text,
  .founder-layout-about .founder-photo,
  .founder-layout-about .founder-text,
  .service-row-meta,
  .service-row-copy,
  .specialist-note-inner,
  .about-intro-inner,
  .commitment dt,
  .commitment dd,
  .contact-form-col,
  .side-notes {
    grid-column: 1 / -1;
  }

  .services-cols {
    grid-template-columns: 1fr;
  }

  .services-cols > * {
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--ink-08);
  }

  .services-cols > *:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .services-cols > *:last-child {
    padding-bottom: 0;
  }

  .process-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
    margin-top: 40px;
  }

  .s2-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .founder-layout-about .founder-photo {
    margin-left: 0;
    max-width: none;
  }

  .founder-layout-home .founder-photo {
    max-width: none;
  }

  .side-notes {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 32px;
    margin-top: 16px;
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
  }
}

/* Mobile ≤640 */
@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --sect-y: 64px;
  }

  .hero-home {
    padding: 64px 0 48px;
  }

  .process-strip {
    padding: 48px 0;
  }

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    z-index: 35;
  }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 32px;
    z-index: 25;
    margin-left: 0;
    opacity: 0;
    transition: opacity 160ms ease;
  }

  .nav.is-open {
    display: flex;
    opacity: 1;
  }

  .nav a {
    font-size: 28px;
    font-weight: 600;
    color: var(--ink);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav a.btn {
    display: none;
  }

  body {
    font-size: 16px;
  }

  h2 {
    font-size: 28px;
  }

  h3,
  .services-cols h3 {
    font-size: 20px;
  }

  .lead {
    font-size: 18px;
  }

  .principle p {
    font-size: 28px;
  }

  .hero {
    padding: 64px 0;
  }

  .page-hero,
  .page-hero.page-hero-contact {
    padding: 64px 0 48px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-ctas .btn,
  .cta-band .btn {
    width: 100%;
  }

  .btn {
    height: 48px;
    min-height: 48px;
  }

  .founder-frame {
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
  }

  .founder-placeholder {
    max-height: 440px;
  }

  .founder-layout {
    row-gap: 32px;
  }

  .founder-layout-about {
    display: flex;
    flex-direction: column;
  }

  .founder-layout-about .founder-photo {
    order: -1;
  }

  .service-row {
    padding: 48px 0;
  }

  .service-row-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
  }

  .service-row .svc-index {
    margin-bottom: 0;
  }

  .service-row h2 {
    font-size: 20px;
  }

  .commitment {
    display: block;
    padding: 32px 0;
  }

  .commitment dt {
    margin-bottom: 12px;
  }

  .privacy-sheet {
    padding: 32px 20px 48px;
  }

  .site-footer {
    font-size: 12px;
  }

  .nav-toggle.is-open-slot {
    position: relative;
  }
}

@media (max-width: 360px) {
  .wrap,
  .header-inner,
  .footer-inner {
    width: calc(100% - 1.5rem);
  }
}
