/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --navy: #092A3D;
  --slate: #7C92AD;
  --slate-dark: #64778E;
  --blue: #164A83;
  --white: #FFFFFF;

  --font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
  --font-display: 'minion-pro', Georgia, 'Times New Roman', serif;
  --font-sans: 'Open Sans', Arial, Helvetica, sans-serif;
  --font-condensed: 'korolev-condensed', 'Arial Narrow', Arial, sans-serif;

  --container: 1350px;
  --inset: 120px;
  --radius-block: 22px;
  --radius-header: 34px;
  --radius-pill: 999px;
}

/* ==========================================================================
   Reset and base
   ========================================================================== */

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

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 16px;
}

img,
video {
  display: block;
  max-width: 100%;
}

/* Images carry width and height attributes, so their aspect ratio is known
   before they load; the CSS sets their display size. */
img {
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Sections may set --inset-left / --inset-right on themselves; otherwise
   the container uses the page inset. */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--inset-left, var(--inset)) var(--inset-right, var(--inset));
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-fill: transparent;
  --btn-interactive: color-mix(in srgb, var(--btn-fill) 42%, #245e91);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 32px;
  border: 1.5px solid var(--white);
  border-radius: var(--radius-pill);
  background-color: var(--btn-fill);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn:is(:hover, :focus-visible) {
  background-color: var(--btn-interactive);
}

.btn:active {
  background-color: color-mix(in srgb, var(--btn-interactive) 65%, var(--navy));
}

.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.btn--slate {
  --btn-fill: var(--slate);
}

.btn--navy {
  --btn-fill: var(--navy);
}

.btn--wide {
  --btn-fill: var(--slate-dark);
  min-width: 365px;
  border: 0;
}

/* Sits on the white page, so a white ring would be invisible. */
.btn--wide:focus-visible {
  outline-color: var(--slate-dark);
}

/* The buttons the new PDF adds are set in RF Rufo; Korolev Condensed Light
   stands in at 0.89 of the RF Rufo size, which matches its set width within
   5% and its x-height within about 1px (Korolev is the wider face, so
   matching its caps would run long). "Read more case studies" is RF Rufo
   33.33px in a 55px pill: 29.7px here, and the 35px line with the .btn
   padding gives the 55px. Combine with --slate, --navy or --wide. */
.btn--condensed {
  font-family: var(--font-condensed);
  font-size: 29.7px;
  font-weight: 300;
  line-height: 35px;
}

/* ==========================================================================
   Header
   ========================================================================== */

/* Header content sits inside the page inset in the PDF: logo at x=167,
   contact block ending near x=1196 on the 1350px canvas.
   The PDF tracks its Open Sans text about 0.02em (InDesign tracking 20);
   the header, nav and footer text carry that letter-spacing. */
.site-header {
  --inset-left: 167px;
  --inset-right: 154px;
  position: relative;
  z-index: 2;
  height: 165px;
  border-radius: 0 0 var(--radius-header) var(--radius-header);
  background: var(--navy) url(../assets/texture-header.png) center / cover;
  box-shadow: 0 5px 10px rgb(0 0 0 / 0.75);
  color: var(--white);
  letter-spacing: 0.02em;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding-top: 10px;
}

.site-header__logo img {
  width: auto;
  height: 80px;
}

.site-header__contact {
  display: grid;
  justify-items: end;
  gap: 24px;
}

.site-header__contact p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  word-spacing: 0.3em; /* widens the spaces around the | separator */
}

.site-header__contact p a {
  text-decoration: none;
}

.site-header__contact p a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Nav bar
   ========================================================================== */

/* Pulled up under the header so the slate fills the rounded corners. */
.site-nav {
  margin-top: calc(-1 * var(--radius-header));
  padding-top: var(--radius-header);
  background: var(--slate);
  color: var(--white);
}

.site-nav__toggle {
  display: none;
}

.site-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  height: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list li + li::before {
  content: '•';
  margin-right: 22px;
}

.site-nav .site-nav__link {
  --nav-link-highlight: rgb(9 42 61 / 0.64);
  position: relative;
  isolation: isolate;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav .site-nav__link::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -4px -8px;
  border-radius: 8px;
  background-color: var(--nav-link-highlight);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18);
  clip-path: inset(0 50% round 8px);
  pointer-events: none;
}

.site-nav .site-nav__link:is(:hover, :focus-visible)::after {
  clip-path: inset(0 round 8px);
}

.site-nav .site-nav__link[aria-current="page"] {
  --current-ink: var(--navy);
  color: var(--current-ink);
  font-weight: 700;
}

.site-nav .site-nav__link[aria-current="page"]:is(:hover, :focus-visible) {
  --current-ink: #d3ebff;
}

:is(.site-nav, .site-footer__nav) .site-nav__link[aria-current="page"]::before {
  content: '';
  position: absolute;
  inset: 10px 0;
  border-inline: 2px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) left top / 6px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 6px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 6px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 6px 2px no-repeat;
  pointer-events: none;
}

.site-masthead.is-compact .site-nav__link[aria-current="page"] {
  --current-ink: #d3ebff;
}

.site-masthead.is-compact .site-nav__link[aria-current="page"]::before {
  inset-block: 7px;
}

.site-nav .site-nav__link:active::after {
  background-color: var(--blue);
}

.site-masthead.is-compact .site-nav__link {
  --nav-link-highlight: #245377;
}

@media (min-width: 760px) {
  .site-nav__list > li {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .site-nav .site-nav__link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    margin-inline: -9px;
    padding-inline: 9px;
  }

  .site-nav .site-nav__link::after {
    inset: 6px 0;
  }

  .site-masthead.is-compact .site-nav__link::after {
    inset-block: 3px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* Square corners: the PDF's footer runs edge to edge without rounding. */
.site-footer {
  --inset-left: 94px;
  --inset-right: 88px;
  padding: 75px 0 56px;
  background: var(--navy) url(../assets/texture-footer.png) center / cover;
  color: var(--white);
}

/* Three columns: logo + LinkedIn, nav + address, ELFA + legal. The nav and
   the legal lines span the last two columns, as they run past the address
   column in the PDF.
   The footer in the PDF is 466px tall at 1350px (335 + 75 + 56 padding);
   the flexible third row holds that height and pushes ELFA and the legal
   lines to the bottom. */
.site-footer__inner {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 62px;
  min-height: 335px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__logo {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
}

.site-footer__logo img {
  width: 140px;
  height: auto;
}

.site-footer__social {
  grid-column: 1;
  grid-row: 3 / 5;
  align-self: start;
  justify-self: start;
  margin-top: 57px;
}

.site-footer__social svg {
  display: block;
  width: 50px;
  height: 50px;
}

.site-footer__social:hover {
  opacity: 0.8;
}

.site-footer__nav {
  grid-column: 2 / 4;
  grid-row: 1;
}

/* PDF: RF Rufo 29.17px. Korolev Condensed Light at 0.89 of that (26px)
   sets the six links 3% wider than the PDF and its x-height 1px short;
   at the 28.6px that would match the caps the links overflow the column
   at the PDF's spacing. The 24px line keeps the shipped row height, so
   the address below does not move. */
.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-condensed);
  font-size: 26px;
  font-weight: 300;
  line-height: 24px;
}

.site-footer__nav .site-nav__link[aria-current="page"] {
  position: relative;
  color: #d3ebff;
  font-weight: 700;
}

.site-footer__nav .site-nav__link[aria-current="page"]::before {
  inset: 3px -7px;
}

/* The PDF's separator is a 3px dot 9px above the baseline. Korolev's
   bullet is an 8px disc at this size; Open Sans's middle dot is the 3px
   dot. Line height 0 stops Open Sans's taller line metrics from growing
   the 24px row. */
.site-footer__nav li + li::before {
  content: '·';
  margin-right: 18px;
  font-family: var(--font-sans);
  line-height: 0;
}

.site-footer__address {
  grid-column: 2;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 54px;
  font-size: 18px;
  font-style: normal;
  line-height: 39.4px; /* PDF baseline pitch; px so the 20px lines keep it */
  letter-spacing: 0.02em;
}

.site-footer__address a {
  font-size: 20px;
}

.site-footer__elfa {
  grid-column: 3;
  grid-row: 1 / 4;
  align-self: end;
  justify-self: end;
  width: 150px;
  margin-right: 8px;
}

.site-footer__legal {
  grid-column: 2 / 4;
  grid-row: 4;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.02em;
  text-align: right;
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* The PDF's hero frame is 748px tall at 1350px (55.4vw) and shows the poster
   bottom-aligned (its top is cropped), so the video and the poster fallback
   both anchor to the bottom. */
.hero {
  position: relative;
  overflow: hidden;
  height: clamp(420px, 55.4vw, 748px);
  background: var(--navy) url(../assets/hero-poster.jpg) center bottom / cover no-repeat;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* js/main.js sets hidden when the browser refuses to autoplay (iOS Low
   Power Mode, for one), so the .hero poster background shows instead. The
   img, video rule above would otherwise override the hidden attribute. */
.hero__video[hidden] {
  display: none;
}

/* iOS Safari draws a large play button over a video it will not autoplay.
   The hero has no controls to offer, so the button goes. This is the one
   !important in the file: WebKit's own media-controls styles otherwise
   win over an author rule on this vendor pseudo-element. */
.hero__video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

/* Frosted panel: the overlay PNG carries the 80% white, the knocked-out logo
   and the rounded right corners. Its square left edge sits on the viewport
   edge. Top edge and width follow the PDF (y 136 of the hero, 1252px wide);
   the height follows the PNG's own proportions so the logo is not distorted.
   The hero stops growing at 748px, so above 1350px the panel holds the
   PDF's 1252px, still left-anchored, and stays inside the hero. */
.hero__panel {
  position: absolute;
  top: 18.1%;
  left: 0;
  width: min(92.7%, 1252px);
  aspect-ratio: 2691 / 963;
  /* Interchangeable here: hero-overlay-pdf-proportions.png (with aspect-ratio: 1252 / 429). */
  background: url(../assets/hero-overlay.png) left top / 100% 100% no-repeat;
}

/* The mobile layout shows the knockout logo here, under the text. */
.hero__logo {
  display: none;
}

/* The headline size lives on the h1 so labelled slides can scale their
   headline with em. PDF: 57.5px PT Serif Bold, baselines 78px apart. */
.hero__slides {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--inset);
  width: 52%;
  margin: 0;
  color: var(--blue);
  font-size: clamp(28px, 4.26vw, 57.5px);
  font-weight: 700;
  line-height: 1.36;
}

/* Slides stack in one place and crossfade; js/main.js moves .is-active. */
.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero__slide.is-active {
  opacity: 1;
}

/* Under reduced motion js/main.js does not rotate the slides; should a
   slide change anyway, it switches without the fade. */
@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}

.hero__label {
  margin-bottom: 0.3em;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.6vw, 22px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero__headline {
  font-family: var(--font-serif);
}

.hero__label + .hero__headline {
  font-size: 0.85em;
}

/* ==========================================================================
   Band
   ========================================================================== */

/* A 6px white rule separates the hero from the band in the PDF. Content
   edges: text at x=162, button ending at x=1193. */
.band {
  --inset-left: 162px;
  --inset-right: 157px;
  padding: 45px 0 55px;
  border-top: 6px solid var(--white);
  background: var(--slate-dark);
  color: var(--white);
}

.band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

/* PDF: Minion Pro Regular 31.78px on 37.56px baselines, the size and
   leading the old PDF gave PT Serif, so only the face changes. */
.band__text {
  max-width: 560px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.35vw, 32px);
  font-weight: 400;
  line-height: 1.185;
}

/* PDF: 21px text in a 425 x 55 pill. */
.band .btn {
  flex-shrink: 0;
  padding: 13px 53px;
  font-size: 21px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Inspired Financing
   ========================================================================== */

/* Image right edge at x=1248 in the PDF; the rule sits on the 120px inset. */
.inspired {
  --inset-right: 102px;
  padding: 90px 0 120px;
  background: var(--white);
}

.inspired__inner {
  display: grid;
  grid-template-columns: 1fr 331px;
  column-gap: 75px;
}

.inspired__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.copy-rule {
  position: relative;
}

.copy-rule::before {
  content: '';
  position: absolute;
  top: var(--copy-rule-top, 0px);
  left: 0;
  bottom: var(--copy-rule-bottom, 0px);
  width: 2px;
  background: var(--slate);
  transform-origin: top;
  pointer-events: none;
}

.copy-rule--inspired {
  --copy-rule-top: clamp(3.6px, 0.4vw, 5.4px);
}

.inspired__title,
.inspired__body {
  margin: 0;
  padding-left: 42px;
}

/* PDF: Minion Pro Bold 41.67px, the size the old PDF gave Open Sans Bold.
   Minion's shorter ascent sits its baseline 2px higher in the same line
   box; the 2px top padding (taken from the bottom, so the box and the
   body below do not move) puts it back 49px above the body's first
   baseline, as in the PDF. */
.inspired__title {
  padding-top: 2px;
  padding-bottom: 12px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 41.5px;
  font-weight: 700;
  line-height: 1;
}

/* 680px of text plus the rule and its 40px gap. */
.inspired__body {
  max-width: 722px;
  color: var(--slate-dark);
  font-size: 27px;
  line-height: 1.46;
  letter-spacing: 0.012em;
}

/* "Learn more", right-aligned under the body. The dotted line runs in from
   the viewport's left edge to an arrowhead 20px short of the button. The
   line is 50vw wide and hangs off to the left, which never scrolls. */
.inspired__cta {
  position: relative;
  align-self: flex-end;
  margin-top: 58px;
  padding-block: 12.5px;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.inspired__cta::before,
.inspired__cta::after {
  content: '';
  position: absolute;
  top: 50%;
}

.inspired__cta::before {
  right: calc(100% + 40px);
  width: 50vw;
  height: 5px;
  margin-top: -2.5px;
  --arrow-mask: radial-gradient(circle, #000 1.8px, transparent 2.3px) right center / 8.33px 5px repeat-x;
  background: radial-gradient(circle, var(--slate-dark) 1.8px, transparent 2.3px) right center / 8.33px 5px repeat-x;
}

.inspired__cta::after {
  right: calc(100% + 20px);
  width: 20px;
  height: 16px;
  margin-top: -8px;
  background: var(--slate-dark);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 15% 50%);
}

.inspired__image {
  align-self: end;
  width: 331px;
  aspect-ratio: 331 / 394;
  object-fit: cover;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Fluid sizes. Each clamp() reaches its PDF value at 1350px and holds it
   above, so the desktop layout is unchanged at 1350px and wider. The vw
   factor is the PDF px value divided by 13.5, rounded up. */

:root {
  --inset: clamp(20px, 8.9vw, 120px);
}

.site-header {
  --inset-left: clamp(20px, 12.38vw, 167px);
  --inset-right: clamp(20px, 11.41vw, 154px);
  height: clamp(120px, 12.23vw, 165px);
}

.site-header__logo img {
  height: clamp(64px, 5.93vw, 80px);
}

.site-header__contact {
  gap: clamp(14px, 1.78vw, 24px);
}

/* The 15px floor and the shrinking gaps keep the six links on one row
   down to 760px (723px of nav at 760px). The 20px cap is the
   PDF-measured nav size (Task 3 ruling). */
.site-nav__list {
  gap: clamp(12px, 1.63vw, 22px);
}

.site-nav__list li + li::before {
  margin-right: clamp(12px, 1.63vw, 22px);
}

.site-nav .site-nav__link {
  font-size: clamp(15px, 1.49vw, 20px);
}

.band {
  --inset-left: clamp(20px, 12vw, 162px);
  --inset-right: clamp(20px, 11.63vw, 157px);
}

.band__inner {
  gap: clamp(24px, 2.97vw, 40px);
}

.band .btn {
  padding-inline: clamp(24px, 3.93vw, 53px);
  font-size: clamp(16px, 1.56vw, 21px);
}

.inspired {
  --inset-right: clamp(20px, 7.56vw, 102px);
  padding: clamp(56px, 6.67vw, 90px) 0 clamp(64px, 8.89vw, 120px);
}

.inspired__inner {
  column-gap: clamp(32px, 5.56vw, 75px);
}

.inspired__title,
.inspired__body {
  padding-left: clamp(24px, 3.12vw, 42px);
}

.inspired__title {
  font-size: clamp(30px, 3.08vw, 41.5px);
}

.inspired__body {
  font-size: clamp(19px, 2vw, 27px);
}

.inspired__cta {
  margin-top: clamp(36px, 4.3vw, 58px);
  font-size: clamp(20px, 1.78vw, 24px);
}

/* Never wider than the column it sits in. */
.btn--wide {
  min-width: min(365px, 100%);
}

.btn--condensed {
  font-size: clamp(20px, 2.2vw, 29.7px);
}

.site-footer {
  --inset-left: clamp(20px, 6.97vw, 94px);
  --inset-right: clamp(20px, 6.52vw, 88px);
}

.site-footer__inner {
  grid-template-columns: clamp(100px, 10.38vw, 140px) 1fr auto;
  column-gap: clamp(24px, 4.6vw, 62px);
}

.site-footer__logo img {
  width: clamp(100px, 10.38vw, 140px);
}

.site-footer__nav ul {
  gap: clamp(10px, 1.34vw, 18px);
  font-size: clamp(18px, 1.93vw, 26px);
  line-height: clamp(18px, 1.78vw, 24px);
}

.site-footer__nav li + li::before {
  margin-right: clamp(10px, 1.34vw, 18px);
}

.site-footer__address {
  font-size: clamp(16px, 1.34vw, 18px);
  line-height: clamp(28px, 2.92vw, 39.4px);
}

.site-footer__address a {
  font-size: clamp(16px, 1.49vw, 20px);
}

.site-footer__elfa {
  width: clamp(110px, 11.12vw, 150px);
}

.site-footer__legal {
  font-size: clamp(16px, 1.34vw, 18px);
}

/* Narrow desktop and tablet. */
@media (max-width: 1100px) {
  /* The button drops under the text once the text column would fall
     below 340px (about 900px wide), instead of squeezing it. */
  .band__inner {
    flex-wrap: wrap;
  }

  .band__text {
    flex: 1 1 340px;
  }

  /* A smaller image column leaves the Inspired copy a readable measure. */
  .inspired__inner {
    grid-template-columns: 1fr 280px;
  }

  .inspired__image {
    width: 280px;
  }

  /* The footer nav wraps below about 870px. A wrapped row would start
     with a separator, so the links space out with a gap instead. */
  .site-footer__nav ul {
    gap: 12px 28px;
  }

  .site-footer__nav li + li::before {
    content: none;
  }

  /* The address column narrows enough to wrap; pretty keeps "07960"
     from ending up alone on a line. */
  .site-footer__address {
    text-wrap: pretty;
  }
}

/* Nav collapse. Kept apart from the mobile block so this breakpoint can
   move on its own; the row still fits at 760px, so both sit at 760px. */
@media (max-width: 759.98px) {
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 0;
    padding-top: 0;
    background: var(--navy);
  }

  .nav-open .site-header {
    border-radius: 0;
    box-shadow: none;
  }

  /* A 44px square hamburger. The three white lines are borders, which
     survive forced-colors mode. The word "Menu" stays in the button as
     its accessible name and is pushed out of the clipped box. */
  .site-nav__toggle {
    position: absolute;
    top: 20px;
    right: 0;
    z-index: 3;
    display: block;
    width: 44px;
    height: 44px;
    margin: 4px calc(var(--inset) - 10px) 4px 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: none;
    color: var(--white);
    text-indent: 100%;
    white-space: nowrap;
    cursor: pointer;
  }

  .site-nav__toggle::before,
  .site-nav__toggle::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
  }

  /* Top and bottom lines. */
  .site-nav__toggle::before {
    top: 13px;
    height: 18px;
    border-block: 2px solid;
  }

  /* Middle line. */
  .site-nav__toggle::after {
    top: 21px;
    border-top: 2px solid;
  }

  /* Open: the lines cross into a close mark. */
  .site-nav__toggle[aria-expanded="true"]::before {
    top: 21px;
    height: 0;
    border-bottom: 0;
    transform: rotate(45deg);
  }

  .site-nav__toggle[aria-expanded="true"]::after {
    transform: rotate(-45deg);
  }

  .site-nav__toggle:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 0;
  }

  .site-nav__list {
    display: none;
    flex-basis: 100%;
  }

  .nav-open .site-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 0;
    border-top: 1px solid rgb(255 255 255 / 0.35);
  }

  .site-nav__list li + li {
    border-top: 1px solid rgb(255 255 255 / 0.35);
  }

  .site-nav__list li + li::before {
    content: none;
  }

  /* Whole-pixel rows (16 + 24 + 16) keep the hero below on whole pixels
     while the menu is open. */
  .site-nav .site-nav__link {
    display: block;
    padding: 16px var(--inset);
    font-size: 18px;
    line-height: 24px;
  }

  .site-nav .site-nav__link::after {
    inset: 6px 9px;
  }

  .site-nav .site-nav__link[aria-current="page"] {
    --current-ink: #d3ebff;
  }

  .site-nav .site-nav__link[aria-current="page"]::before {
    inset: 10px;
  }

  .site-nav .site-nav__link:focus-visible {
    outline-offset: -4px;
  }
}

/* Mobile: sections stack. The page inset drops to 20px so the copy lines
   up with the hero text, which sits 20px in. */
@media (max-width: 759.98px) {
  :root {
    --inset: 20px;
  }

  .site-header,
  .band,
  .inspired,
  .site-footer {
    --inset-left: var(--inset);
    --inset-right: var(--inset);
  }

  /* The expanded mobile header stacks the logo, contact line and CTA.
     The menu toggle sits at the top right of the logo row. */
  .site-header {
    height: auto;
  }

  .site-header__inner {
    grid-template-columns: 1fr;
    row-gap: 12px;
    padding-block: 20px 24px;
  }

  .site-header__logo {
    justify-self: start;
  }

  .site-header__logo img {
    height: 64px;
  }

  .site-header__contact {
    justify-items: stretch;
    gap: 8px;
  }

  /* 44px tap targets: a 24px line plus 10px above and below. */
  .site-header__contact p {
    line-height: 24px;
  }

  .site-header__contact p a {
    display: inline-block;
    padding-block: 10px;
  }

  .site-header__contact .btn {
    min-height: 48px;
    padding-inline: 20px;
    text-align: center;
  }

  /* Hero: the panel becomes a full-width frosted column, text above the
     knockout logo, with the video still covering behind it. The panel
     centers vertically when the 560px minimum is taller than it (narrow
     phones). */
  .hero {
    display: grid;
    align-content: center;
    height: auto;
    min-height: 560px;
  }

  .hero__panel {
    position: relative;
    top: auto;
    width: 100%;
    aspect-ratio: auto;
    margin-block: 40px;
    background: none;
  }

  /* In flow, but positioned so the slides can stack inside it. The box
     holds five headline lines plus padding, so it keeps one height as
     the slides change. The height is rounded to whole pixels so its
     edge meets the logo strip without a hairline seam between the two
     translucent backgrounds; browsers without round() keep the calc(). */
  .hero__slides {
    position: relative;
    inset: auto;
    width: auto;
    min-height: calc(5 * 1.36em + 2 * 28px);
    min-height: round(up, 5 * 1.36em + 2 * 28px, 1px);
    padding: 28px 20px;
    background: rgb(255 255 255 / 0.8);
    font-size: clamp(26px, 7.5vw, 34px);
  }

  .hero__slide {
    inset: 28px 20px;
  }

  .hero__label {
    font-size: 16px;
  }

  .hero__label + .hero__headline {
    font-size: max(26px, 0.85em);
  }

  /* The overlay PNG's knockout logo: about 60% of the viewport wide and
     near-centered; the PNG's rounded right corners fall outside the box.
     Its 80% white matches the text box above. */
  .hero__logo {
    display: block;
    height: 54vw;
    background: url(../assets/hero-overlay.png) right center / 207% auto no-repeat;
  }

  /* Band: text, then a full-width button. */
  .band {
    padding: 36px 0 40px;
  }

  .band__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .band__text {
    flex: none;
    max-width: none;
    font-size: 22px;
  }

  .band .btn {
    padding: 13px 20px;
    font-size: 18px;
    text-align: center;
  }

  /* Inspired: image first at full width, then the copy. The dotted line
     runs from the content's left edge (100cqw of .inspired__content) to
     the arrowhead; 100% is the button's own width. */
  .inspired {
    padding: 48px 0 64px;
  }

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

  .inspired__image {
    order: -1;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-position: center 60%;
  }

  .inspired__content {
    container-type: inline-size;
  }

  .inspired__title {
    font-size: 28px;
  }

  .inspired__body {
    font-size: 19px;
  }

  .inspired__cta {
    min-width: 0;
    margin-top: 40px;
    padding-inline: 40px;
    font-size: 20px;
  }

  .inspired__cta::before {
    width: calc(100cqw - 100% - 40px);
  }

  /* Footer: one column. Logo with the LinkedIn icon beside it, then the
     nav, address, ELFA and legal lines, all left-aligned. */
  .site-footer {
    padding: 48px 0 40px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: none;
    column-gap: 24px;
    row-gap: 32px;
    min-height: 0;
  }

  .site-footer__logo {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .site-footer__logo img {
    width: 120px;
  }

  .site-footer__social {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin-top: 0;
  }

  .site-footer__nav,
  .site-footer__address,
  .site-footer__elfa,
  .site-footer__legal {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  /* Gap-separated as under 1100px; each link is a 44px tap target, so
     the rows need no gap of their own. */
  .site-footer__nav ul {
    gap: 0 20px;
    font-size: 18px;
  }

  .site-footer__nav .site-nav__link {
    display: block;
    padding-block: 13px;
  }

  .site-footer__address {
    margin-top: 0;
    font-size: 16px;
    line-height: 1.6;
  }

  .site-footer__address a {
    padding-block: 8px;
    font-size: 18px;
  }

  .site-footer__elfa {
    justify-self: start;
    align-self: start;
    width: 120px;
    margin-right: 0;
  }

  .site-footer__legal {
    justify-self: start;
    align-items: flex-start;
    margin: 0;
    font-size: 16px;
    text-align: left;
  }

  .site-footer__legal a {
    display: inline-block;
    padding-block: 10px;
  }

  /* One legal item per line and no bullets, as the footer nav drops its
     separators once it wraps. */
  .site-footer__legal-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__sep {
    display: none;
  }
}

/* The phone | email line is about 330px of text: it fits the 335px column
   at 375px. Narrower phones (360, 320) stack the two links instead of
   wrapping after the separator; a zero font size and line height hide
   the bare "|" text, and the links set their own. */
@media (max-width: 374.98px) {
  .site-header__contact p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0;
    line-height: 0;
  }

  .site-header__contact p a {
    font-size: 16px;
    line-height: 24px;
  }
}

/* The sticky wrapper retains the expanded footprint while its visible
   contents compact. Its empty area lets clicks pass through to the page. */
.site-masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  pointer-events: none;
}

.site-masthead > * {
  pointer-events: auto;
}

.site-masthead.is-compact {
  height: var(--masthead-expanded);
}

.site-masthead.is-measured:not(.is-compact) .site-header {
  height: var(--masthead-header-height);
}

.site-masthead.is-compact .site-header {
  height: 68px;
  --inset-left: var(--inset);
  --inset-right: var(--inset);
  border-radius: 0;
  box-shadow: none;
}

.site-masthead.is-compact .site-header__inner {
  padding-block: 0;
}

.site-masthead.is-compact .site-header__logo img {
  height: 44px;
}

.site-masthead.is-compact .site-header__contact {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

.site-masthead.is-compact .site-header__contact p {
  font-size: 13px;
}

.site-masthead.is-compact .site-header__contact .btn {
  padding: 7px 16px;
  font-size: 13px;
}

html {
  scroll-padding-top: 110px;
}

@media (prefers-reduced-motion: no-preference) {
  .site-masthead:not(.is-measuring) .site-header,
  .site-masthead:not(.is-measuring) .site-header__logo img {
    transition: height 280ms var(--motion-out), border-radius 280ms var(--motion-out);
  }

  .site-masthead:not(.is-measuring) .site-nav {
    transition: margin-top 280ms var(--motion-out), padding-top 280ms var(--motion-out);
  }
}

@media (max-width: 759.98px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-masthead.is-compact .site-header {
    height: 64px;
  }

  .site-masthead.is-compact .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding-right: calc(var(--inset) + 48px);
  }

  .site-masthead.is-compact .site-header__contact {
    justify-content: end;
  }

  .site-masthead.is-compact .site-header__contact p {
    display: none;
  }

  .site-masthead.is-compact .site-header__contact .btn {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .site-masthead.is-compact .site-nav__toggle {
    top: 6px;
  }

  .site-masthead.is-compact .site-nav__list {
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
  }
}

/* In the compact state the navigation becomes the masthead's lower row. */
.site-masthead.is-compact .site-nav {
  margin-top: 0;
  padding-top: 0;
  background: var(--navy);
}

@media (min-width: 760px) {
  .site-masthead.is-compact .site-nav {
    border-radius: 0 0 14px 14px;
    box-shadow: 0 3px 8px rgb(0 0 0 / 0.35);
  }

  .site-masthead.is-compact .site-nav__list {
    height: 36px;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16);
  }

  .site-masthead.is-compact .site-nav__link {
    font-size: clamp(14px, 1.22vw, 17px);
  }
}

@media (min-width: 760px) and (prefers-reduced-motion: no-preference) {
  .site-masthead:not(.is-measuring) .site-nav__list {
    transition: height 280ms var(--motion-out);
  }
}

@media (max-width: 759.98px) {
  .nav-open .site-masthead.is-compact .site-nav {
    border-radius: 0 0 14px 14px;
    box-shadow: 0 3px 8px rgb(0 0 0 / 0.35);
  }
}
