:root {
  --bg: #ffffff;
  --surface: #f1f3f5;
  --surface-2: #e5e9ed;
  --ink: #0d1b2a;
  --ink-hover: #23364d;
  --muted: #536070;
  --line: #d3d9df;
  --on-dark: #ffffff;
  --on-dark-muted: #b8c2cd;

  --head: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --text: var(--head);
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1.03rem + 0.1vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.25rem, 0.6rem + 5.2vw, 5.75rem);

  --margin: clamp(16px, 2.6vw, 40px);
  --gutter: clamp(16px, 2vw, 28px);
  --section: clamp(96px, 11vw, 176px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: var(--step-body); line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, table { margin: 0; }
ul[role='list'] { list-style: none; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--on-dark); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

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

.head, .display { font-family: var(--head); font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; }
.head { font-size: var(--step-head); }
.head.light { font-weight: 300; }
.display { font-size: var(--step-display); line-height: 1; }
.note { font-size: var(--step-small); color: var(--muted); }

.link { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 0.22em; text-decoration-thickness: 0.06em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link-strong { font-family: var(--head); font-weight: 600; font-size: var(--step-body); }
.out { display: inline-block; transition: translate var(--t-ui) var(--ease-out); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  background: var(--ink); color: var(--on-dark); font-family: var(--head); font-weight: 600; font-size: var(--step-body); text-decoration: none; border: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active, .tab:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: transparent; }
  a:hover .out { translate: 2px -2px; }
  .button:hover { background: var(--ink-hover); }
  .facts a:hover { text-decoration-color: currentColor; }
  .tab[aria-selected='false']:hover { background: var(--surface-2); }
}

/* Header */
.bar { position: sticky; top: 0; z-index: 10; background: var(--bg); align-items: center; min-height: 76px; row-gap: 0; }
.brand { grid-column: 1 / span 3; display: inline-flex; align-items: center; gap: 12px; justify-self: start; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: var(--step-body); letter-spacing: -0.02em; }
.brand img { height: 40px; width: auto; }
.nav { grid-column: 6 / span 5; display: flex; gap: 8px 28px; flex-wrap: wrap; font-family: var(--head); font-size: var(--step-body); }
.nav .link { text-decoration-color: transparent; padding-block: 12px; }
.nav .link:hover { text-decoration-color: currentColor; }
.bar-action { grid-column: 11 / -1; justify-self: end; white-space: nowrap; padding: 0 20px; }
.menu-button { display: none; }

/* Masthead: one picture, then the title and the standfirst */
.hero-pic { height: clamp(300px, 52svh, 580px); overflow: hidden; background: var(--surface); }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.masthead-text { padding-top: clamp(40px, 5vw, 88px); padding-bottom: var(--section); align-items: center; }
.masthead-text .display { grid-column: 1 / span 7; grid-row: 1; }
.standfirst { grid-column: 9 / -1; grid-row: 1; font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; }
.display .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.display .line > span { display: inline-block; }
.actions { grid-column: 1 / span 7; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(28px, 3vw, 44px); }

/* One office: title, note, facts row */
.services { background: var(--surface); padding-block: clamp(64px, 7vw, 112px); row-gap: 40px; align-items: center; }
.services-intro { grid-column: 1 / span 5; display: grid; gap: 20px; }
.services-note { font-size: var(--step-body); max-width: 36ch; }
.facts { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 36px var(--gutter); }
.facts li { display: grid; gap: 6px; align-content: start; }
.facts a { font-family: var(--head); font-size: var(--step-lead); letter-spacing: -0.02em; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
.facts span { font-size: var(--step-small); color: var(--muted); }

/* Management: statement, table pushed right */
.management { padding-block: var(--section); row-gap: clamp(56px, 6vw, 96px); }
.management .head { grid-column: 1 / -1; }
.management-side { grid-column: 1 / span 5; display: grid; gap: 40px; align-content: space-between; }
.management-side p { max-width: 40ch; }
.pic { overflow: hidden; background: var(--surface); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.portrait { aspect-ratio: 4 / 3; width: min(100%, 30vw); min-width: 280px; }
.schedule { grid-column: 7 / -1; }
.schedule table { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.schedule thead th { padding: 0 16px 12px 0; border-bottom: 2px solid var(--ink); text-align: left; font-weight: 600; font-size: var(--step-small); }
.schedule thead th:last-child { text-align: right; padding-right: 0; }
.schedule tbody td, .schedule tbody th { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; font-weight: 400; }
.schedule tbody td:first-child { width: 22%; color: var(--muted); font-size: var(--step-small); }
.schedule tbody td:last-child { text-align: right; white-space: nowrap; padding-right: 0; font-variant-numeric: tabular-nums; }

/* Insurance: comparison set as text */
.insurance { background: var(--surface); padding-block: var(--section); }
.insurance-head { row-gap: 24px; align-items: end; margin-bottom: 72px; }
.insurance-head .head { grid-column: 1 / span 5; }
.insurance-head p { grid-column: 6 / span 5; max-width: 46ch; }
.covers-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: stretch; }
.covers-row:nth-child(even) { background: var(--surface-2); }
.covers-row > span { display: flex; align-items: center; min-height: 64px; padding: 12px 16px; font-size: var(--step-body); }
.covers-row > span:first-child { grid-column: 1 / 6; font-family: var(--head); font-weight: 600; font-size: var(--step-body); letter-spacing: -0.01em; }
.covers-row > .feature { grid-column: 6 / 10; background: var(--ink); color: var(--on-dark); }
.covers-row > span:last-child { grid-column: 10 / -1; font-family: var(--head); }
.covers-top { background: transparent !important; }
.covers-top > span { font-family: var(--head); font-weight: 600; font-size: var(--step-small); min-height: 48px; }
.covers-top > .feature { padding-top: 36px; margin-top: -24px; align-items: flex-end; }

/* What pays when */
.finder { padding-block: var(--section); row-gap: 40px; align-items: start; }
.finder-ask { grid-column: 1 / span 5; display: grid; gap: 20px; }
.finder-ask p { max-width: 34ch; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tabs[hidden] { display: none; }
.tab { appearance: none; border: 0; min-height: 44px; padding: 0 16px; background: var(--surface); color: var(--ink); font-family: var(--head); font-weight: 600; font-size: var(--step-body); cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.tab[aria-selected='true'] { background: var(--ink); color: var(--on-dark); }
.finder-answer { grid-column: 6 / -1; display: grid; gap: 24px; justify-items: start; }
.finder-panels { display: grid; gap: 40px; }
.panel { display: grid; gap: 16px; }
.panel[hidden] { display: none; }
.panel h3 { font-family: var(--head); font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
.panel p { font-size: var(--step-lead); line-height: 1.4; max-width: 38ch; }
.is-tabbed .panel:not([hidden]) { animation: rise 420ms var(--ease-out); }

/* Fuel: two figures compared, on the dark page */
.fuel { background: var(--ink); color: var(--on-dark); padding-block: var(--section); }
.fuel-head { row-gap: 24px; margin-bottom: clamp(56px, 8vh, 96px); }
.fuel-head .head { grid-column: 1 / span 5; }
.fuel-head p { grid-column: 6 / span 6; max-width: 52ch; color: var(--on-dark); }
.specimens { row-gap: 48px; }
.specimens figure { grid-column: span 6; display: grid; gap: 16px; }
.specimens figcaption { font-family: var(--head); font-size: var(--step-small); color: var(--on-dark-muted); }
.figure { font-variant-numeric: tabular-nums; }

/* Equipment: photographs and a flat tile, butted together */
.equipment { padding-top: 0; }
.equipment-head { row-gap: 24px; align-items: center; padding-block: clamp(72px, 8vw, 128px); }
.equipment-head .head { grid-column: 1 / span 5; }
.equipment-head p { grid-column: 6 / span 5; max-width: 46ch; }
.equipment-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); }
.equipment-mosaic li { display: flex; flex-direction: column; background: var(--surface); }
.equipment-mosaic img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; }
.caption { padding: 24px var(--gutter) 32px; display: grid; gap: 8px; }
.caption h3 { font-family: var(--head); font-weight: 600; font-size: var(--step-body); letter-spacing: -0.01em; }
.caption p { font-size: var(--step-body); }

/* Servicing band */
.servicing { background: var(--surface); padding-block: 56px; row-gap: 16px; align-items: baseline; }
.servicing-title { grid-column: 1 / span 5; font-family: var(--head); font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; }
.servicing p { grid-column: 6 / span 4; max-width: 44ch; }
.servicing .link { grid-column: 10 / -1; justify-self: end; }

/* Questions, answered as reading text */
.questions { padding-block: var(--section); row-gap: 32px; align-items: start; }
.questions .head { grid-column: 1 / span 4; }
.answers { grid-column: 5 / -1; columns: 2; column-gap: 56px; }
.answers p { break-inside: avoid; margin-bottom: 20px; }
.answers strong { font-weight: 600; }

/* Contact: sentence, picture, two links */
.contact { background: var(--surface); padding-block: clamp(96px, 10vw, 160px) clamp(80px, 8vw, 120px); row-gap: 40px; align-items: start; }
.contact-line { grid-column: 1 / span 6; font-family: var(--head); font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.25; max-width: 26ch; }
.contact-links { grid-column: 9 / -1; display: grid; gap: 10px; justify-items: start; }
.contact-ask { font-family: var(--head); font-weight: 600; margin-bottom: 10px; }
.contact-links .link { font-size: var(--step-body); padding-block: 4px; }
.contact-links .note { margin-top: 10px; }

/* Footer: name first */
.footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(80px, 9vw, 140px) 32px; row-gap: 48px; }
.footer-name { grid-column: 1 / -1; }
.footer-reach { grid-column: 1 / span 5; display: grid; gap: 12px; justify-items: start; font-family: var(--head); font-size: var(--step-lead); letter-spacing: -0.02em; }
.footer-links { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px var(--gutter); font-family: var(--head); font-size: var(--step-body); }
.footer-links ul { display: grid; gap: 4px; align-content: start; }
.footer-links a, .footer-reach a { display: inline-block; padding-block: 6px; }
.footer-legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; font-family: var(--head); font-size: var(--step-small); color: var(--on-dark-muted); }
.footer-legal .link { color: var(--on-dark); }

/* Picture credits page */
.credits-page { padding-block: 48px var(--section); row-gap: 32px; align-content: start; }
.credits-page > * { grid-column: 1 / -1; }
.lede { font-size: var(--step-lead); line-height: 1.4; }
.credits-back { justify-self: start; font-family: var(--head); font-weight: 600; }
.bar-back { grid-column: 9 / -1; justify-self: end; }
.credits-intro { max-width: 46ch; }
.credits-table { border-collapse: collapse; width: 100%; font-size: var(--step-body); }
.credits-table th, .credits-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.credits-table thead th { font-family: var(--head); font-size: var(--step-small); }
.credits-table tbody th { font-weight: 400; max-width: 40ch; }

@keyframes rise { from { opacity: 0; translate: 0 12px; } }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; translate: 0 12px; } }

@media (prefers-reduced-motion: no-preference) {
  .js .display .line > span { animation: line-up 900ms var(--ease-expo) both; }
  .js .display .line + .line > span { animation-delay: 110ms; }
  .js .standfirst, .js .actions { animation: fade-up 700ms var(--ease-out) 380ms both; }
}
/* On phones content is simply there; entrances are for wider screens. */
@media (prefers-reduced-motion: no-preference) and (min-width: 641px) {
  .js [data-reveal] { opacity: 0; translate: 0 24px; transition: opacity 700ms var(--ease-out) var(--d, 0ms), translate 900ms var(--ease-out) var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  .is-tabbed .panel:not([hidden]) { animation: none; }
}

/* Finger-sized targets wherever the pointer is a finger. */
@media (pointer: coarse), (max-width: 640px) {
  .brand { min-height: 48px; }
  .link-strong, .servicing .link, .contact-links .link { display: inline-block; padding-block: 10px; }
  .footer-legal .link { display: inline-block; padding-block: 12px; }
  .facts a { display: inline-block; padding-block: 8px; }
  .footer-links a { padding-block: 10px; min-width: 44px; }
  .footer-reach a { padding-block: 8px; }
  .footer-links ul { gap: 0; }
  .contact-links { gap: 0; }
}

@media (max-width: 1000px) {
  .brand { grid-column: 1 / span 6; }
  .menu-button {
    display: inline-flex; align-items: center; grid-column: 9 / -1; justify-self: end; min-height: 44px; padding: 0 4px;
    background: none; border: 0; color: var(--ink); font-family: var(--head); font-weight: 600; font-size: var(--step-body); cursor: pointer;
  }
  .bar-action { display: none; }
  .nav { grid-column: 1 / -1; display: none; flex-direction: column; gap: 0; padding-bottom: 16px; font-size: var(--step-body); }
  .nav.is-open { display: flex; }
  .masthead-text .display, .actions { grid-column: 1 / span 7; }
  .standfirst { grid-column: 8 / -1; }
  .services-intro, .facts { grid-column: 1 / -1; }
  .management-side, .schedule { grid-column: 1 / -1; }
  .management-side { grid-template-columns: 1fr 1fr; align-items: end; }
  .portrait { width: 100%; min-width: 0; }
  .insurance-head .head, .insurance-head p { grid-column: 1 / -1; }
  .finder-ask, .finder-answer { grid-column: 1 / -1; }
  .fuel-head .head, .fuel-head p { grid-column: 1 / -1; }
  .equipment-head .head, .equipment-head p { grid-column: 1 / -1; }
  .equipment-mosaic { grid-template-columns: 1fr 1fr; }
  .servicing-title { grid-column: 1 / -1; }
  .servicing p { grid-column: 1 / span 8; max-width: none; }
  .servicing .link { grid-column: 9 / -1; justify-self: end; }
  .questions .head, .answers { grid-column: 1 / -1; }
  .contact-line { grid-column: 1 / -1; max-width: 30ch; }
  .contact-links { grid-column: 1 / -1; }
  .footer-reach, .footer-links { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .bar { min-height: 64px; }
  .brand img { height: 36px; }
  .hero-pic { height: 38svh; min-height: 240px; }
  .masthead-text .display, .actions, .standfirst { grid-column: 1 / -1; }
  .actions { grid-row: 2; }
  .standfirst { grid-row: 3; margin-top: 28px; }
  .figure { font-size: 18vw; }
  .display { font-size: 10vw; }
  .servicing p, .servicing .link { grid-column: 1 / -1; justify-self: start; }
  .actions .button { flex: 1 1 100%; }
  .management-side { grid-template-columns: 1fr; }
  .schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .schedule tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--line); }
  .schedule tbody td, .schedule tbody th { padding: 0; border: 0; }
  .schedule tbody td:first-child { width: auto; grid-row: 1; grid-column: 1; }
  .schedule tbody td:last-child { grid-row: 1; grid-column: 2; }
  .schedule tbody th { grid-row: 2; grid-column: 1 / -1; }
  .covers-top { display: none !important; }
  .covers-row { display: block; padding: 20px 0; background: transparent !important; }
  .covers-row > span { display: block; min-height: 0; padding: 0; }
  .covers-row > span:first-child { font-size: var(--step-body); margin-bottom: 8px; }
  .covers-row > .feature { padding: 10px 12px; margin-bottom: 6px; }
  .covers-row > .feature::before { content: 'Pays: '; font-family: var(--head); font-weight: 600; }
  .covers-row > span:last-child::before { content: 'Runs: '; font-weight: 600; }
  .specimens figure { grid-column: 1 / -1; }
  .equipment-mosaic { grid-template-columns: 1fr; }
  .equipment-mosaic img { aspect-ratio: 3 / 2; }
  .answers { columns: 1; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-legal { margin-top: 24px; }
}

/* A phone held sideways: keep the headline and its action on the first screen. */
@media (max-height: 520px) and (orientation: landscape) {
  html { scroll-padding-top: 64px; }
  .bar { min-height: 56px; }
  .brand img { height: 32px; }
  .hero-pic { height: 36svh; min-height: 0; }
  .masthead-text { padding-top: 20px; }
  .display { font-size: 2.5rem; }
  .actions { margin-top: 16px; }
}
