/* Khalid's Computer Solutions: Direction A "Workbench Poster".
   Order: fonts, tokens, reset, layout, components, sections, breakpoints.
   Lime (--signal) is reserved for the wordmarks, the lead 96% stat, ::selection
   and focus rings on dark backgrounds. */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("assets/fonts/atkinson-hyperlegible-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("assets/fonts/atkinson-hyperlegible-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;

  --ink-deep: #0b1622;
  --ink: #102338;
  --ink-soft: #405367;
  --paper: #f4f1e7;
  --paper-light: #fffcf2;
  --signal: #d9e74f;
  --wa: #25d366;
  --blue: #194f7a;
  --orange: #ad4d30;
  --line: rgba(16, 35, 56, 0.18);
  --line-dark: rgba(255, 252, 242, 0.18);
  --text-on-dark: #e8e6dc;

  --font-body: "Atkinson Hyperlegible", Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  /* Mono role: Barlow 600 uppercase fallback until IBM Plex Mono lands (Phase 2). */
  --font-mono: "Barlow Condensed", "Arial Narrow", sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.11vw, 0.9375rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.11rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.44rem, 1.24rem + 0.98vw, 2rem);
  --step-3: clamp(1.73rem, 1.4rem + 1.65vw, 2.75rem);
  --step-4: clamp(2.07rem, 1.47rem + 3vw, 4rem);
  --step-5: clamp(2.5rem, 1.6rem + 4.5vw, 6rem);
  /* "KHALID'S" in Barlow Condensed 700 is 3.12em wide, so ~31.8% of its container
     makes it span the shell. cqi resolves against the nearest size container
     (.hero__inner); 26rem caps it at the 1320px shell. */
  --step-mark: clamp(3.5rem, 31.8cqi, 26rem);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 88px;
  --space-10: 120px;

  --r-sm: 4px;
  --r-md: 12px;
  --r-pill: 999px;

  --gutter: 16px;
  --shell: 1320px;
  --header-h: 64px;
  --bar-h: 72px;
  --section-pad: clamp(var(--space-7), 8vw, var(--space-9));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* Dark backgrounds: the blue ring falls below 3:1 on ink, lime clears it. */
.site-header :focus-visible,
.hero :focus-visible,
.reviews :focus-visible,
.quote-card :focus-visible,
.checklist :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--signal);
}

::selection {
  color: var(--ink-deep);
  background: var(--signal);
}

address {
  font-style: normal;
}

[hidden] {
  display: none;
}

/* ---------- Layout ---------- */

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

.section {
  padding-block: var(--section-pad);
}

.section-head {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.section-head__intro {
  max-width: 52ch;
  color: var(--ink-soft);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.05;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.label {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* Phone numbers: Atkinson's slashed zero reads as "Ø77", so numbers use Barlow. */
.tel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12em;
  letter-spacing: 0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Components ---------- */

.skip-link {
  position: fixed;
  z-index: 50;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-3) var(--space-4);
  transform: translateY(-200%);
  color: var(--ink-deep);
  background: var(--paper-light);
  border: 2px solid var(--ink-deep);
  border-radius: var(--r-sm);
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.button:hover {
  transform: translateY(-1px);
}

.button--wa {
  color: var(--ink-deep);
  background: var(--wa);
}

.button--ghost {
  color: var(--paper-light);
  border-color: var(--line-dark);
}

.button--ghost:hover {
  border-color: var(--paper-light);
}

.button--small {
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--step--1);
}

.text-link {
  color: var(--blue);
  font-weight: 700;
}

/* Brand */

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--paper-light);
}

.brand__wordmark {
  display: grid;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  text-transform: uppercase;
}

.brand__descriptor {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Header */

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  color: var(--paper-light);
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line-dark);
}

.site-header__inner {
  display: flex;
  height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-whatsapp {
  display: none;
}

.primary-nav {
  position: absolute;
  top: var(--header-h);
  right: 0;
  left: 0;
  display: none;
  padding: var(--space-3) var(--gutter) var(--space-5);
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line-dark);
}

.site-header.is-open .primary-nav {
  display: grid;
}

.primary-nav a {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 6px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms var(--ease-out);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.review-notes {
  padding-block: var(--space-3);
  color: var(--ink-deep);
  background: var(--paper-light);
  border-bottom: 2px solid var(--ink-deep);
  font-size: var(--step--1);
}

/* Proof bar: static strip between the hero and the reviews band. */

.proof-bar {
  color: var(--ink);
  background: var(--paper-light);
  border-bottom: 1px solid var(--line);
}

.proof-bar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--space-5);
  row-gap: var(--space-1);
  padding-block: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-bar__list li {
  color: var(--ink-soft);
}

.proof-bar__lead {
  flex-basis: 100%;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.proof-bar .proof-bar__lead {
  color: var(--ink-deep);
}

/* How it works: numbered rail */

.rail {
  position: relative;
  display: grid;
  gap: var(--space-5);
  counter-reset: none;
}

/* Rule joining each number to the next one (vertical on mobile). */
.rail__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  bottom: calc(-50% - var(--space-5));
  left: 21px;
  width: 2px;
  background: var(--ink);
  z-index: 0;
}

.rail__step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
}

.rail__num {
  position: relative;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--paper-light);
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1;
}

.rail__text {
  font-weight: 700;
}

/* Form */

.quote-form__fields {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field label {
  font-weight: 700;
}

.field__optional {
  color: var(--ink-soft);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid var(--ink-soft);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: var(--step-0);
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-soft);
}

.field :user-invalid {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.quote-form__button {
  width: 100%;
}

.quote-form__note,
.quote-form__status {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.quote-form__status:empty {
  display: none;
}

.quote-form__status {
  color: var(--ink);
  font-weight: 700;
}

.quote-form__fallback:not([hidden]) {
  display: inline-block;
  margin-top: var(--space-2);
  color: var(--blue);
  font-weight: 700;
}

/* Mobile action bar: WhatsApp is the only filled button. */

.mobile-actions {
  position: fixed;
  z-index: 45;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  height: calc(var(--bar-h) + env(safe-area-inset-bottom));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom));
  background: var(--paper-light);
  border-top: 1px solid var(--line);
}

.mobile-actions__item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-inline: var(--space-2);
  color: var(--ink);
  border: 1px solid var(--ink-soft);
  border-radius: var(--r-pill);
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-actions__item--wa {
  background: var(--wa);
  border-color: transparent;
  color: var(--ink-deep);
}

.mobile-actions__item--primary {
  background: transparent;
}

/* ---------- Sections ---------- */

/* Hero */

.hero {
  position: relative;
  color: var(--paper-light);
  background-color: var(--ink-deep);
}

.hero__inner {
  container-type: inline-size;
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-5);
}

.hero__eyebrow {
  color: var(--text-on-dark);
  font-size: var(--step--1);
}

.hero__title {
  display: grid;
  gap: var(--space-2);
}

.hero__mark {
  color: var(--signal);
  font-family: var(--font-display);
  font-size: var(--step-mark);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1;
}

.hero__foot {
  display: grid;
  gap: var(--space-4);
}

.hero__subline {
  max-width: 54ch;
  color: var(--text-on-dark);
}

.hero__actions {
  display: grid;
  gap: var(--space-3);
}

/* Reviews: full-bleed ink band */

.reviews {
  color: var(--paper-light);
  background: var(--ink-deep);
}

.reviews__inner {
  container-type: inline-size;
  display: grid;
  gap: var(--space-6);
}

.reviews__lead {
  display: grid;
  gap: var(--space-3);
}

.reviews__figure {
  color: var(--signal);
  font-family: var(--font-display);
  font-size: clamp(6rem, 34cqi, 17rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.01em;
}

.reviews__lead-text {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
}

.reviews__lead .stat__caption {
  color: var(--paper-light);
  font-size: var(--step-1);
}

.reviews__grid {
  display: grid;
  gap: var(--space-5);
}

.stat {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 2px solid var(--line-dark);
}

.stat__figure {
  color: var(--paper-light);
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 0.9;
}

.stat__caption {
  color: var(--text-on-dark);
  font-size: var(--step--1);
}

.stat__link {
  color: var(--paper-light);
  font-weight: 700;
}

.quote-card {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding: var(--space-5);
  color: var(--paper-light);
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
}

.quote-card blockquote {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.1;
}

.quote-card figcaption {
  font-size: var(--step--1);
}

/* Services */

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms var(--ease-out);
}

.service-row:hover,
.service-row:focus-within {
  background: var(--paper-light);
}

.service-row__name {
  text-transform: uppercase;
}

.service-row__text {
  max-width: 56ch;
  color: var(--ink-soft);
}

.service-row__action {
  justify-self: start;
  padding-block: var(--space-2);
  color: var(--blue);
  font-weight: 700;
}

.service-row__arrow {
  display: inline-block;
  transition: transform 160ms var(--ease-out);
}

.service-row:hover .service-row__arrow,
.service-row:focus-within .service-row__arrow {
  transform: translateX(4px);
}

/* How it works */

.steps {
  background: var(--paper-light);
  border-block: 1px solid var(--line);
}

/* Checklist (inside #quote) */

.checklist {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding: var(--space-5);
  color: var(--paper-light);
  background: var(--ink-deep);
  border-radius: var(--r-md);
}

.checklist ul {
  display: grid;
  gap: var(--space-2);
}

.checklist li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.checklist li::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--paper-light);
}

/* About */

.about__inner {
  display: grid;
  gap: var(--space-5);
}

.about__portrait {
  width: min(240px, 70%);
}

.about__portrait img {
  width: 100%;
  border-radius: var(--r-md);
}

.about__copy {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  max-width: 60ch;
}

.about__lead {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
}

/* Quote */

.quote {
  position: relative;
}

.anchor-alias {
  position: absolute;
  top: 0;
}

.quote__inner {
  display: grid;
  gap: var(--space-7);
}

.quote__aside {
  display: grid;
  align-content: start;
  gap: var(--space-5);
}

.contact-card {
  display: grid;
  align-content: start;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.contact-card__group {
  display: grid;
  justify-items: start;
  gap: var(--space-1);
}

.contact-card__group a {
  padding-block: var(--space-1);
  color: var(--blue);
  font-weight: 700;
}

.contact-card__hours {
  margin-top: var(--space-1);
  font-weight: 700;
}

.contact-card__big {
  font-size: var(--step-3);
  line-height: 1;
}

/* Footer */

.site-footer {
  padding-block: var(--space-8) calc(var(--space-5) + var(--bar-h));
  color: var(--text-on-dark);
  background: var(--ink-deep);
  overflow: hidden;
}

.site-footer__inner {
  container-type: inline-size;
  display: grid;
  gap: var(--space-7);
}

.site-footer__cols {
  display: grid;
  gap: var(--space-6);
}

.footer-col {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--space-2);
}

.footer-col__title {
  margin-bottom: var(--space-1);
  color: var(--text-on-dark);
  font-size: var(--step--1);
  opacity: 0.8;
}

.footer-col a {
  color: var(--paper-light);
  font-weight: 700;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-col__hours {
  color: var(--paper-light);
  font-weight: 700;
}

.footer-col__big {
  font-size: var(--step-3);
  line-height: 1;
}

.small-print {
  display: grid;
  gap: var(--space-2);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
  font-size: var(--step--1);
}

.footer-mark {
  display: block;
  padding-top: var(--space-2);
  font-family: var(--font-display);
  font-size: calc(100cqi / 3.16);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-mark__a {
  color: var(--paper-light);
}

.footer-mark__b {
  color: var(--signal);
}

/* ---------- Motion ---------- */

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

  .button,
  .service-row,
  .service-row__arrow {
    transition: none;
  }

  .service-row:hover .service-row__arrow,
  .service-row:focus-within .service-row__arrow {
    transform: none;
  }
}

/* ---------- Breakpoints ---------- */

/* Small phones (320–359px): tighter hero so the 96% line clears the action bar. */
@media (max-width: 359px) {
  .hero__inner {
    gap: var(--space-2);
    padding-block: var(--space-3);
  }

  .hero__title {
    gap: var(--space-1);
  }

  .hero__foot {
    gap: var(--space-3);
  }

  .hero__subline {
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .hero__actions {
    gap: var(--space-2);
  }

  .hero__actions .button {
    min-height: 48px;
    padding-block: var(--space-2);
  }

  .proof-bar__list {
    padding-block: var(--space-2);
  }

  .mobile-actions {
    gap: var(--space-1);
    padding-inline: var(--space-2);
  }

  .mobile-actions__icon {
    display: none;
  }
}

@media (min-width: 760px) {
  :root {
    --gutter: 24px;
  }

  .hero__actions {
    grid-template-columns: repeat(2, max-content);
  }

  .proof-bar__list {
    flex-wrap: nowrap;
    align-items: center;
    padding-block: var(--space-4);
  }

  .proof-bar__lead {
    flex-basis: auto;
    margin-right: auto;
    font-size: var(--step-2);
  }

  .proof-bar__list li:not(.proof-bar__lead) {
    padding-left: var(--space-5);
    border-left: 1px solid var(--line);
  }

  .reviews__lead {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: end;
    gap: var(--space-6);
  }

  .reviews__lead-text {
    padding-bottom: var(--space-3);
  }

  .reviews__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--space-6);
  }

  .service-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) max-content;
    align-items: baseline;
    gap: var(--space-5);
    padding-inline: var(--space-4);
  }

  .about__inner {
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      "portrait ."
      "portrait title"
      "portrait copy"
      "portrait .";
    column-gap: var(--space-7);
    row-gap: var(--space-5);
  }

  .about__title {
    grid-area: title;
  }

  .about__portrait {
    grid-area: portrait;
    width: 100%;
  }

  .about__copy {
    grid-area: copy;
  }

  .quote-form__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--full {
    grid-column: 1 / -1;
  }

  .quote-form__button {
    width: auto;
  }

  .site-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  :root {
    --gutter: 40px;
    --header-h: 72px;
  }

  .brand__mark {
    width: 44px;
    height: 44px;
  }

  .primary-nav {
    position: static;
    display: flex;
    gap: var(--space-5);
    padding: 0;
    background: none;
    border: 0;
  }

  .primary-nav a {
    padding: var(--space-2) 0;
    border: 0;
    font-family: var(--font-body);
    font-size: var(--step--1);
    text-transform: none;
  }

  .primary-nav a:hover {
    text-decoration: underline;
  }

  .header-whatsapp {
    display: inline-flex;
  }

  .menu-toggle,
  .mobile-actions {
    display: none;
  }

  .hero__inner {
    gap: var(--space-6);
    padding-block: var(--space-7) var(--space-6);
  }

  .hero__foot {
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: end;
    gap: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line-dark);
  }

  /* Desktop: one horizontal rail, numbers joined by a rule. */
  .rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .rail__step:not(:last-child)::after {
    top: 27px;
    bottom: auto;
    left: 56px;
    right: calc(var(--space-6) * -1);
    width: auto;
    height: 2px;
  }

  .rail__step {
    grid-template-columns: none;
    align-content: start;
    align-items: start;
    gap: var(--space-4);
  }

  .rail__num {
    width: 56px;
    height: 56px;
    font-size: var(--step-2);
    box-shadow: 0 0 0 8px var(--paper-light);
  }

  .rail__text {
    max-width: 24ch;
    font-size: var(--step-1);
    line-height: 1.3;
  }

  .about__inner {
    grid-template-columns: 280px minmax(0, 1fr);
    column-gap: var(--space-8);
  }

  .about__lead {
    font-size: var(--step-4);
  }

  .quote__inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    align-items: start;
    column-gap: var(--space-8);
  }

  .site-footer {
    padding-bottom: var(--space-5);
  }

  .site-footer__cols {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}
