:root {
  --ink: #171719;
  --ink-soft: #4b4d52;
  --paper: #fcfbf9;
  --paper-warm: #f4f0eb;
  --red: #c81536;
  --red-dark: #9f102a;
  --rule: #ded9d2;
  --white: #ffffff;
  --shell: 74rem;
  --reading: 43rem;
  --shadow: 0 18px 54px rgba(23, 23, 25, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: Aptos, "Segoe UI Variable Text", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 0.3rem;
  background: var(--red);
  z-index: 80;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.shell {
  width: min(calc(100% - 3rem), var(--shell));
  margin-inline: auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(222, 217, 210, 0.86);
  background: rgba(252, 251, 249, 0.94);
  backdrop-filter: blur(14px);
}

.nav-inner {
  width: min(calc(100% - 3rem), var(--shell));
  min-height: 5rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  color: var(--red-dark);
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 2.7rem;
  height: 2.55rem;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a,
.nav-cta {
  font-size: 0.92rem;
  font-weight: 620;
  text-decoration: none;
}

.nav-links a {
  color: #5e6065;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--red);
}

.nav-cta {
  justify-self: end;
  border-bottom: 2px solid var(--red);
  color: var(--ink);
  padding: 0.35rem 0;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(90deg, transparent 0 76%, rgba(200, 21, 54, 0.045) 76% 100%),
    var(--paper);
}

.hero-grid {
  min-height: 43rem;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(17rem, 3fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(5rem, 9vw, 8rem);
}

.hero-copy {
  max-width: 56rem;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: Aptos, "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-weight: 760;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 57rem;
  margin-bottom: 1.7rem;
  font-size: clamp(3.25rem, 5.8vw, 5.8rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.35rem, 4vw, 4.1rem);
  line-height: 1.04;
}

.hero-lede {
  max-width: 45rem;
  margin: 0;
  color: #4c4d52;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.52;
}

.hero-lede strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-top: 2.6rem;
}

.button {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 760;
  text-decoration: none;
}

.button-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(200, 21, 54, 0.2);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.button-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 13px 28px rgba(159, 16, 42, 0.25);
  transform: translateY(-2px);
}

.text-link {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 0.35rem;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

.text-link span {
  color: var(--red);
}

.hero-note {
  position: relative;
  padding: 2.2rem 0 2.2rem 2.2rem;
  border-left: 2px solid var(--red);
}

.hero-note::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.4rem);
  left: -0.47rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--red);
  background: var(--paper);
  border-radius: 50%;
}

.hero-note p {
  margin: 0;
}

.hero-note .note-question {
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.32;
}

.credibility {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.credibility p {
  margin: 0;
  padding: 2rem 2.3rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
  line-height: 1.45;
}

.credibility p:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.credibility strong,
.credibility span {
  display: block;
}

.credibility strong {
  margin-bottom: 0.35rem;
  color: var(--white);
  font-size: 1.05rem;
}

.diagnostic {
  padding-block: clamp(5.5rem, 9vw, 9rem);
  background: var(--paper-warm);
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(4rem, 10vw, 10rem);
}

.diagnostic h2 {
  max-width: 27rem;
  margin-bottom: 0;
}

.symptom-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.symptom-list li {
  position: relative;
  padding: 1.25rem 0 1.25rem 2.75rem;
  border-top: 1px solid #d7d0c8;
  color: var(--ink);
  font-size: clamp(1.16rem, 1.7vw, 1.42rem);
  font-weight: 700;
  line-height: 1.35;
}

.symptom-list li:last-child {
  border-bottom: 1px solid #d7d0c8;
}

.symptom-list li::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 0;
  width: 1.35rem;
  height: 2px;
  background: var(--red);
}

.diagnostic-close {
  max-width: 40rem;
  margin: 2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.52;
}

.section {
  padding-block: clamp(6rem, 9vw, 9rem);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-heading h2 {
  margin-bottom: 1.5rem;
}

.section-heading > p:last-child {
  max-width: 39rem;
  margin: 0;
  font-size: 1.15rem;
}

.results {
  background: var(--paper);
}

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

.case-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 4vw, 3.5rem);
  border-top: 4px solid var(--red);
  background: var(--paper-warm);
  box-shadow: var(--shadow);
}

.case-card-dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
}

.case-index {
  position: absolute;
  top: 0.5rem;
  right: 1.4rem;
  color: rgba(200, 21, 54, 0.12);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 9vw, 8rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.case-card-dark .case-index {
  color: rgba(255, 255, 255, 0.07);
}

.case-sector,
.fit-label {
  margin: 0 0 1.1rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-card h3 {
  position: relative;
  max-width: 26rem;
  margin-bottom: 2.3rem;
  font-size: clamp(1.75rem, 2.7vw, 2.55rem);
  line-height: 1.12;
}

.case-card-dark h3 {
  color: var(--white);
}

.case-details {
  position: relative;
  margin: 0;
}

.case-details div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  padding-block: 1.15rem;
  border-top: 1px solid rgba(23, 23, 25, 0.13);
}

.case-card-dark .case-details div {
  border-color: rgba(255, 255, 255, 0.15);
}

.case-details dt {
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-card-dark .case-details dt {
  color: var(--white);
}

.case-details dd {
  margin: 0;
}

.case-outcome {
  position: relative;
  margin: 1.6rem 0 0;
  padding: 1.4rem 0 0 1.3rem;
  border-top: 1px solid rgba(23, 23, 25, 0.13);
  border-left: 3px solid var(--red);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 740;
  line-height: 1.45;
}

.case-card-dark .case-outcome {
  border-top-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.case-outcome span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.process {
  background: var(--paper-warm);
}

.process-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 8rem);
}

.process-heading h2 {
  max-width: 47rem;
  margin-bottom: 0;
}

.process-heading > p:last-child {
  padding-left: 1.6rem;
  border-left: 2px solid var(--red);
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #cec7bf;
  list-style: none;
}

.process-step {
  border-bottom: 1px solid #cec7bf;
}

.process-step details {
  overflow: hidden;
}

.process-step summary {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) minmax(10rem, 13rem) 2rem;
  align-items: center;
  gap: 1.2rem;
  min-height: 7rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.process-step summary::-webkit-details-marker {
  display: none;
}

.step-number {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-style: italic;
}

.step-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 760;
  letter-spacing: -0.035em;
}

.step-time {
  justify-self: start;
  color: #6a6968;
  font-size: 0.83rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-mark {
  position: relative;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid #aba49d;
  border-radius: 50%;
}

.summary-mark::before,
.summary-mark::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: calc(50% - 0.3rem);
  width: 0.6rem;
  height: 2px;
  background: var(--red);
}

.summary-mark::after {
  transform: rotate(90deg);
  transition: transform 150ms ease;
}

details[open] .summary-mark::after {
  transform: rotate(0deg);
}

.step-body {
  max-width: 53rem;
  margin-left: 5.6rem;
  padding: 0 0 3.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(15rem, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.step-body p {
  margin: 0;
}

.step-output {
  padding-left: 1.2rem;
  border-left: 2px solid var(--red);
  color: var(--ink);
  font-weight: 650;
}

.step-output span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.question-band {
  background: var(--ink);
  color: var(--white);
}

.question-grid {
  min-height: 22rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: 4rem;
}

.question-grid > p {
  max-width: 43rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.04;
}

.question-grid > div {
  padding-left: 2rem;
  border-left: 2px solid var(--red);
}

.question-grid span {
  display: block;
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.72);
}

.button-light {
  background: var(--white);
  color: var(--red-dark);
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.button-light:hover {
  background: var(--paper-warm);
  color: var(--ink);
  transform: translateY(-2px);
}

.fit {
  background: var(--paper);
}

.fit-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  gap: 1.5rem;
}

.fit-panel {
  padding: clamp(2.3rem, 4vw, 3.8rem);
  border: 1px solid var(--rule);
  background: var(--white);
}

.fit-panel-good {
  border-color: var(--ink);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.fit-panel h3 {
  margin-bottom: 1.7rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.16;
}

.fit-panel-good h3 {
  color: var(--white);
}

.fit-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-panel li {
  position: relative;
  padding: 0.95rem 0 0.95rem 1.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.fit-panel li::before {
  content: "";
  position: absolute;
  top: 1.7rem;
  left: 0;
  width: 0.8rem;
  height: 2px;
  background: var(--red);
}

.fit-panel > p:last-child {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.engagement {
  background: var(--paper-warm);
}

.engagement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.85fr);
  align-items: start;
  gap: clamp(4rem, 9vw, 9rem);
}

.engagement-copy h2 {
  max-width: 40rem;
  margin-bottom: 1.8rem;
}

.engagement-copy > p:not(.eyebrow) {
  max-width: 39rem;
  font-size: 1.13rem;
}

.terms-card {
  padding: clamp(2.2rem, 4vw, 3.4rem);
  border-top: 4px solid var(--red);
  background: var(--white);
  box-shadow: var(--shadow);
}

.terms-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.85rem;
}

.terms-intro {
  margin: 0 0 1.8rem;
}

.terms-list {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.terms-list div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--rule);
}

.terms-list dt {
  color: var(--ink);
  font-weight: 760;
}

.terms-list dd {
  margin: 0;
}

.access-note {
  margin-top: 2.2rem;
  padding: 1.4rem;
  background: var(--paper-warm);
}

.access-note p:last-child {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
}

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(20rem, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(4rem, 10vw, 10rem);
}

.portrait-frame {
  position: relative;
  margin: 0;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -1.1rem;
  bottom: 2.2rem;
  width: 72%;
  height: 72%;
  background: var(--red);
}

.portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 19 / 23;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.03);
}

.portrait-frame figcaption {
  margin-top: 0.8rem;
  color: #77726d;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-copy h2 {
  margin-bottom: 1.7rem;
}

.founder-line {
  margin: 0 0 1.35rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 780;
  letter-spacing: 0.01em;
}

.founder-line span {
  display: block;
  margin-top: 0.2rem;
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about-lede {
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  font-weight: 720;
  line-height: 1.4;
}

.career-list {
  margin: 2.4rem 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.career-list li {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 1.4rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule);
}

.career-list strong {
  color: var(--ink);
}

.origin {
  overflow: hidden;
  padding-block: clamp(5rem, 8vw, 8rem);
  background: var(--paper-warm);
}

.origin-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 9rem);
}

.origin-mark {
  min-height: 20rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(200, 21, 54, 0.95), rgba(159, 16, 42, 0.98)),
    var(--red);
  transform: rotate(-2deg);
}

.origin-mark img {
  width: min(47%, 10.5rem);
  height: auto;
  filter: drop-shadow(0 15px 18px rgba(0, 0, 0, 0.2));
  transform: rotate(2deg);
}

.origin h2 {
  margin-bottom: 1.4rem;
}

.origin p:not(.eyebrow) {
  max-width: 42rem;
}

.origin blockquote {
  margin: 2.2rem 0 0;
  color: var(--red-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.45;
}

.contact {
  padding-block: clamp(6rem, 10vw, 10rem);
  background: var(--red-dark);
  color: rgba(255, 255, 255, 0.78);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  align-items: start;
  gap: clamp(4rem, 10vw, 10rem);
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.contact h2 {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--white);
}

.contact-copy {
  padding-left: 2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.35);
}

.contact-copy > p:first-child {
  margin-top: 0;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 720;
}

.contact-actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.contact-email {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  text-underline-offset: 0.3rem;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.52);
}

.footer-inner {
  min-height: 7rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  font-size: 0.82rem;
}

.footer-inner p,
.footer-inner a {
  margin: 0;
}

.footer-inner p:nth-child(2) {
  text-align: center;
}

.footer-inner a {
  justify-self: end;
  color: var(--white);
  font-weight: 700;
  text-underline-offset: 0.25rem;
}

@media (max-width: 860px) {
  .shell,
  .nav-inner {
    width: min(calc(100% - 2.5rem), var(--shell));
  }

  .nav-inner {
    min-height: 4.15rem;
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .nav-links {
    display: none;
  }

  .brand {
    gap: 0.55rem;
    font-size: 0.76rem;
    letter-spacing: 0.11em;
  }

  .brand img {
    width: 2.25rem;
    height: 2.15rem;
  }

  .nav-cta {
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--red);
    color: var(--red-dark);
  }

  .hero {
    background: var(--paper);
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-block: 4.5rem 5rem;
  }

  .hero-note {
    max-width: 24rem;
  }

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

  .credibility p,
  .credibility p:last-child {
    padding: 1.35rem 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .credibility p:last-child {
    border-bottom: 0;
  }

  .diagnostic-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .case-grid,
  .fit-grid,
  .engagement-grid,
  .about-grid,
  .origin-grid,
  .contact-grid,
  .question-grid,
  .process-heading {
    grid-template-columns: 1fr;
  }

  .case-grid {
    gap: 1.25rem;
  }

  .process-heading {
    gap: 2rem;
  }

  .process-heading > p:last-child {
    max-width: 42rem;
  }

  .process-step summary {
    grid-template-columns: 3rem minmax(0, 1fr) auto 2rem;
  }

  .step-body {
    margin-left: 4.2rem;
  }

  .question-grid {
    min-height: auto;
    gap: 2.7rem;
    padding-block: 5rem;
  }

  .question-grid > div {
    max-width: 30rem;
  }

  .fit-grid {
    gap: 1rem;
  }

  .engagement-grid,
  .about-grid,
  .origin-grid,
  .contact-grid {
    gap: 3.5rem;
  }

  .terms-card {
    max-width: 38rem;
  }

  .portrait-frame {
    max-width: 34rem;
  }

  .origin-mark {
    width: min(100%, 34rem);
  }

  .contact-copy {
    max-width: 36rem;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 1rem;
  }

  .shell,
  .nav-inner {
    width: min(calc(100% - 2.25rem), var(--shell));
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 3.65rem);
  }

  h2 {
    font-size: 2.5rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.4rem;
  }

  .button {
    width: 100%;
  }

  .hero-note {
    padding: 1.5rem 0 1.5rem 1.5rem;
  }

  .diagnostic {
    padding-block: 5rem;
  }

  .section {
    padding-block: 5.5rem;
  }

  .section-heading {
    margin-bottom: 3rem;
  }

  .section-heading > p:last-child {
    font-size: 1.02rem;
  }

  .case-card,
  .fit-panel,
  .terms-card {
    padding: 2rem 1.35rem;
  }

  .case-details div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .process-step summary {
    grid-template-columns: 2.4rem minmax(0, 1fr) 1.8rem;
    gap: 0.65rem;
    min-height: 6rem;
  }

  .step-time {
    grid-column: 2;
    margin-top: -0.7rem;
  }

  .summary-mark {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .step-body {
    margin-left: 3rem;
    padding-bottom: 2.6rem;
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .question-grid > div,
  .contact-copy {
    padding-left: 1.35rem;
  }

  .terms-list div,
  .career-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .portrait-frame {
    width: calc(100% - 1rem);
  }

  .origin-mark {
    min-height: 16rem;
  }

  .contact .button {
    width: 100%;
    text-align: center;
  }

  .contact-email {
    overflow-wrap: anywhere;
  }

  .footer-inner {
    min-height: 8rem;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-block: 2rem;
  }

  .footer-inner a {
    justify-self: start;
  }
}

@media (max-width: 350px) {
  .nav-inner {
    width: calc(100% - 1.5rem);
  }

  .brand {
    font-size: 0.69rem;
    letter-spacing: 0.075em;
  }

  .brand img {
    width: 2rem;
    height: 1.9rem;
  }

  .nav-cta {
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
