/* ==========================================================================
   Stravion Consultancy — house style
   --------------------------------------------------------------------------
   Colours are measured from the client's design round
   (docs/Stravion_website_klantfeedback.pdf): a deep navy ground with warm
   gold as the only accent. The 1280px composition is the default and the
   design of record; the responsive section near the end of this file adapts
   it down to 375px.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  /* Brand — sampled from the client's design screens */
  --ink: #02141f;         /* deepest ground: hero, insights and contact bands */
  --navy: #041c2c;        /* standard section ground */
  --navy-panel: #0a2234;  /* cards and the panels behind headlines */
  --gold: #e8c88a;        /* accent text, icons, hairlines */
  --gold-bright: #f4d399; /* hover state on gold surfaces */
  --gold-cta: #e7c284;    /* filled call-to-action */

  --white: #ffffff;
  --text: rgba(255, 255, 255, 0.78);
  --text-dim: rgba(255, 255, 255, 0.62);
  --rule: rgba(232, 200, 138, 0.3);
  --rule-soft: rgba(255, 255, 255, 0.12);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: 40px;
  --header-h: 88px;
  --header-h-compact: 72px;
  --section-y: 112px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* ------------------------------------------------------------- helpers -- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
  scroll-margin-top: var(--header-h);
}

.section--ink {
  background: var(--ink);
}

/* Eyebrow — the letterspaced gold label that opens every section in the
   client's design. No leading rule: the design sets these as plain text. */
.eyebrow {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Two-tone headline: first line white, the `<span>` line gold. Used by every
   section head and by the hero. */
.headline {
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.headline span {
  display: block;
  color: var(--gold);
}

/* Solid navy slab sitting behind a headline on top of photography, so the
   type keeps its contrast wherever the image is light. */
.panel {
  display: inline-block;
  padding: 30px 40px 34px;
  background: var(--navy-panel);
}

/* Hairline-framed box holding a letterspaced gold statement. */
.quote-box {
  padding: 32px 36px;
  border: 1px solid var(--rule);
}

.quote-box__label {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.quote-box p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--white);
}

/* Letterspaced uppercase statement, used as a section sign-off. */
.strapline {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}

.strapline span {
  display: block;
  color: var(--gold);
}

.section-head {
  margin-bottom: 56px;
}

.section-head .lead {
  margin-top: 22px;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.7;
}

/* Head with the copy parked in a right-hand column, as in the design. */
.section-head--split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: end;
}

.section-head--split > .lead {
  margin-top: 0;
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 32px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn__arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Solid gold — the primary call to action everywhere in the design. */
.btn--gold {
  background: var(--gold-cta);
  border-color: var(--gold-cta);
  color: var(--ink);
}

.btn--gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* The smaller header variant of the same button. */
.btn--compact {
  padding: 13px 22px;
  font-size: 11px;
}

/* --------------------------------------------------------------- header -- */
/* Transparent over the hero, solid once the page scrolls. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: height 0.3s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

body.is-scrolled .site-header {
  height: var(--header-h-compact);
  background: var(--ink);
  border-bottom-color: var(--rule-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
}

/* `logo-white.png` is the supplied mark with its navy recoloured to white for
   this ground; the client's gold is untouched. The same file serves the
   footer, so the dark theme carries one logo rather than two treatments. */
.site-logo {
  display: block;
  flex: none;
}

.site-logo img {
  width: 196px;
  height: auto;
  transition: width 0.3s var(--ease);
}

body.is-scrolled .site-logo img {
  width: 168px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--gold);
}

/* The call to action duplicated inside the collapsed nav panel; the header's
   own button is what it replaces, and only one of the two is ever visible. */
.nav-cta {
  display: none;
}

/* Shown only once the nav collapses — see the responsive section below. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* The bars are 24px of ink; the box around them is what the thumb has to
     hit, so it gets a target of its own. */
  min-width: 44px;
  min-height: 44px;
  padding: 10px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 24px;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  height: 2px;
  background: var(--gold);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

/* Open: the two outer bars cross and the middle one goes. */
body.nav-open .nav-toggle__bars {
  background: transparent;
}

body.nav-open .nav-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 820px;
  height: 100vh;
  max-height: 980px;
  padding: var(--header-h) 0 40px;
  overflow: hidden;
  background: var(--ink);
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center 45%;
}

/* Left-weighted navy wash: keeps the headline readable while the warm sky on
   the right stays visible. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(2, 20, 31, 0.95) 0%,
      rgba(2, 20, 31, 0.86) 34%,
      rgba(2, 20, 31, 0.5) 66%,
      rgba(2, 20, 31, 0.28) 100%
    ),
    linear-gradient(to top, rgba(2, 20, 31, 0.88), transparent 42%);
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__inner {
  max-width: 760px;
}

.hero h1 {
  font-size: 58px;
}

.hero__lead {
  max-width: 520px;
  margin: 34px 0 40px;
  font-size: 19px;
  line-height: 1.75;
  color: var(--text);
}

/* Three promises under the hero copy, divided by hairlines. */
.hero__promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 64px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--rule-soft);
}

.promise {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 38px;
  border-left: 1px solid var(--rule-soft);
}

.promise:first-child {
  padding-left: 0;
  border-left: 0;
}

.promise__icon {
  flex: none;
  width: 38px;
  height: 38px;
  color: var(--gold);
}

.promise__title {
  margin-bottom: 4px;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.promise p {
  font-size: 16px;
  color: var(--text);
}

/* Rule — text — rule, closing the hero. */
.hero__sign-off {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
}

.hero__sign-off::before,
.hero__sign-off::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.hero__sign-off span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------------------------------------------------------- what we do -- */
.what-we-do .section-head--split {
  align-items: start;
}

.what-we-do .quote-box {
  justify-self: end;
  max-width: 400px;
}

.what-we-do .quote-box p {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  display: flex;
  flex-direction: column;
  background: var(--navy-panel);
  border: 1px solid var(--rule-soft);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

/* The design highlights the third card; hovering promotes any of them. */
.step--featured,
.step:hover {
  border-color: var(--gold);
}

.step:hover {
  transform: translateY(-4px);
}

.step__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.step:hover .step__media img {
  transform: scale(1.04);
}

.step__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 28px 30px;
}

.step__num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
}

.step h3 {
  margin-bottom: 14px;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.step p {
  font-size: 16px;
  line-height: 1.65;
}

.step__link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: 26px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.step__link:hover {
  background: var(--gold);
  color: var(--ink);
}

.step__link svg {
  width: 17px;
  height: 17px;
}

/* -------------------------------------------------------- capabilities -- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

.capability__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.capability__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.capability:hover .capability__media img {
  transform: scale(1.05);
}

.capability__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 20, 31, 0.55), transparent 55%);
}

.capability h3 {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Second line of the label turns gold on hover, as the design shows. */
.capability h3 span {
  display: block;
  transition: color 0.25s var(--ease);
}

.capability:hover h3 span {
  color: var(--gold);
}

.capability__note {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* -------------------------------------------------------- who we serve -- */
.sectors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.sector__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink);
}

.sector__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.sector:hover .sector__media img {
  transform: scale(1.05);
}

.sector__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 20, 31, 0.5), transparent 50%);
}

.sector h3 span {
  display: block;
}

.sector h3 {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sectors-sign-off {
  margin-top: 64px;
  text-align: right;
}

/* ------------------------------------------------------- global network -- */
.network__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.network__rule {
  width: 72px;
  height: 2px;
  margin: 30px 0 28px;
  background: var(--gold);
}

.network__lead {
  max-width: 440px;
  font-size: 19px;
  line-height: 1.75;
}

.network__list {
  margin-top: 44px;
}

.network__list li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.network__list li:first-child {
  border-top: 1px solid var(--rule-soft);
}

.network__list svg {
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--gold);
}

.network__list span {
  font-size: 17px;
  color: var(--white);
}

.network__visual {
  position: relative;
}

.network__visual svg {
  display: block;
  width: 100%;
  height: auto;
}

/* The callout overlaps the lower-right of the network graphic. */
.network__visual .quote-box {
  position: absolute;
  right: 0;
  bottom: -28px;
  width: 340px;
  background: var(--ink);
}

/* ---------------------------------------------------------- who we are -- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding-left: max(
    var(--gutter),
    calc((100vw - var(--container)) / 2 + var(--gutter))
  );
}

.about__body p {
  margin-top: 24px;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.8;
}

.about__traits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--rule-soft);
}

.about__traits svg {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: var(--gold);
}

.about__traits h3 {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* The portrait bleeds off the right edge of the viewport, as in the design. */
.about__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 20, 31, 0.65), transparent 40%),
    linear-gradient(to top, rgba(2, 20, 31, 0.78), transparent 52%);
}

.about__media .strapline {
  position: absolute;
  z-index: 1;
  right: 48px;
  bottom: 40px;
  padding-left: 26px;
  border-left: 1px solid var(--rule);
  text-align: left;
}

/* ------------------------------------------------------------ insights -- */
/* A band of photography carrying only a headline and one call to action. */
.band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: 96px 0;
  overflow: hidden;
  background: var(--ink);
  scroll-margin-top: var(--header-h);
}

.band__media,
.band__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.band__media img {
  object-fit: cover;
}

.band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(2, 20, 31, 0.94) 0%,
    rgba(2, 20, 31, 0.82) 38%,
    rgba(2, 20, 31, 0.4) 100%
  );
}

.band .container {
  position: relative;
  z-index: 1;
}

.band__inner {
  max-width: 620px;
}

.band__lead {
  margin: 28px 0 40px;
  font-size: 19px;
  line-height: 1.75;
}

/* ------------------------------------------------------------- contact -- */
.contact__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 72px;
  align-items: center;
}

.contact .strapline {
  padding-left: 32px;
  border-left: 1px solid var(--rule);
}

.contact__details {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}

.contact__details a {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact__details a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.contact__sep {
  width: 1px;
  height: 24px;
  background: var(--rule-soft);
}

/* -------------------------------------------------------------- footer -- */
.site-footer {
  padding: 72px 0 0;
  background: var(--ink);
  border-top: 1px solid var(--rule-soft);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 24px;
}

.footer__logo img {
  width: 196px;
}

.footer__tagline {
  max-width: 320px;
  font-size: 15.5px;
  line-height: 1.7;
}

.site-footer h4 {
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__list li + li {
  margin-top: 11px;
}

.footer__list a,
.footer__list span {
  font-size: 15.5px;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.footer__list a:hover {
  color: var(--gold);
}

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 14px;
}

.footer__bar span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ------------------------------------------------------------ responsive -- */
/* The composition above is the 1280px design the client approved, so the
   adaptations are max-width overrides: the desktop layout stays the default
   and every change below is visible as a deliberate step down. The narrowest
   supported width is 375px. */

/* -- large tablets and small laptops -------------------------------------- */
@media (max-width: 1180px) {
  :root {
    --gutter: 32px;
    --section-y: 96px;
  }

  .headline {
    font-size: 42px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .site-nav {
    gap: 22px;
  }

  .capabilities {
    gap: 24px 20px;
  }

  .sectors {
    gap: 18px;
  }

  .network__grid,
  .about__grid,
  .contact__grid {
    gap: 48px;
  }

  .about__media .strapline {
    right: 28px;
    bottom: 28px;
  }
}

/* -- tablets: the nav collapses and the two-column splits stack ------------ */
@media (max-width: 980px) {
  :root {
    --header-h: 72px;
    --header-h-compact: 64px;
    --section-y: 80px;
  }

  .site-logo img,
  body.is-scrolled .site-logo img {
    width: 172px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    margin-left: auto;
  }

  /* With JavaScript the nav is a panel hanging off the header. `top: 100%`
     tracks the header's own height, so it stays attached when the header
     shrinks on scroll. */
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 4px var(--gutter) 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--rule-soft);
  }

  .js body.nav-open .site-nav {
    display: flex;
  }

  /* The header is transparent over the hero; the open panel needs a ground. */
  body.nav-open .site-header {
    background: var(--ink);
  }

  .js .site-nav a {
    padding: 15px 0;
    font-size: 13px;
  }

  .js .site-nav a + a {
    border-top: 1px solid var(--rule-soft);
  }

  /* The underline hover belongs to the horizontal nav only. */
  .js .site-nav a::after {
    display: none;
  }

  .js .site-nav .nav-cta {
    justify-content: center;
    margin-top: 18px;
    border-top: 0;
  }

  /* Without JavaScript the panel cannot be opened, so the nav stays a plain
     wrapped list and the header gives up being fixed to make room for it. */
  html:not(.js) .nav-toggle {
    display: none;
  }

  html:not(.js) .site-header {
    position: static;
    height: auto;
    padding: 14px 0;
    background: var(--ink);
    border-bottom-color: var(--rule-soft);
  }

  html:not(.js) .site-header .container {
    flex-wrap: wrap;
    gap: 16px;
    height: auto;
  }

  html:not(.js) .site-nav {
    flex-wrap: wrap;
    gap: 14px 22px;
    width: 100%;
    margin-left: 0;
  }

  html:not(.js) .hero {
    padding-top: 56px;
  }

  .headline {
    font-size: 34px;
  }

  .hero h1 {
    font-size: 38px;
  }

  /* No fixed viewport height: the hero is as tall as its content, which also
     sidesteps the mobile browser chrome moving `100vh` around. */
  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: calc(var(--header-h) + 56px) 0 48px;
  }

  /* The copy now spans the full width, so the wash has to be vertical rather
     than weighted to the left. */
  .hero__media::after {
    background: linear-gradient(
      180deg,
      rgba(2, 20, 31, 0.88) 0%,
      rgba(2, 20, 31, 0.8) 40%,
      rgba(2, 20, 31, 0.95) 100%
    );
  }

  .hero__inner {
    max-width: none;
  }

  .promise {
    padding: 0 20px;
    gap: 14px;
  }

  .section-head--split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-head--split > .lead {
    padding-left: 0;
    border-left: 0;
    max-width: none;
  }

  .what-we-do .quote-box {
    justify-self: start;
    max-width: none;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .capabilities {
    grid-template-columns: repeat(3, 1fr);
  }

  .sectors {
    grid-template-columns: repeat(3, 1fr);
  }

  .network__grid,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Stacked, the callout can no longer overlap the graphic above it. */
  .network__visual .quote-box {
    position: static;
    width: auto;
    margin-top: 24px;
  }

  /* The portrait stops bleeding off the edge once it is on its own row. */
  .about__grid {
    padding: 0 var(--gutter);
  }

  .about__media {
    aspect-ratio: 16 / 10;
  }

  .about__media::after {
    background: linear-gradient(to top, rgba(2, 20, 31, 0.85), transparent 55%);
  }

  .band {
    min-height: 0;
    padding: 80px 0;
  }

  .band__media::after {
    background: linear-gradient(
      180deg,
      rgba(2, 20, 31, 0.88),
      rgba(2, 20, 31, 0.93)
    );
  }

  .band__inner {
    max-width: none;
  }

  .contact .strapline {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* -- phones, down to 375px ------------------------------------------------ */
@media (max-width: 620px) {
  :root {
    --gutter: 20px;
    --section-y: 64px;
  }

  .headline {
    font-size: 28px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .site-logo img,
  body.is-scrolled .site-logo img {
    width: 150px;
  }

  .footer__logo img {
    width: 168px;
  }

  /* The header keeps the logo and the toggle; the button moves into the
     panel, where it has room for its full label. */
  .header-cta {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle__label {
    display: none;
  }

  .btn {
    padding: 15px 24px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .panel {
    padding: 20px 22px 24px;
  }

  .quote-box {
    padding: 22px 24px;
  }

  .hero {
    padding: calc(var(--header-h) + 40px) 0 40px;
  }

  .hero__lead,
  .section-head .lead,
  .network__lead,
  .band__lead {
    font-size: 17px;
  }

  .hero__promises {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 44px;
    padding-top: 28px;
  }

  .promise {
    padding: 0;
    border-left: 0;
  }

  .promise + .promise {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--rule-soft);
  }

  .hero__sign-off {
    gap: 16px;
    margin-top: 36px;
  }

  .hero__sign-off span {
    font-size: 10px;
    letter-spacing: 0.26em;
  }

  .what-we-do .quote-box p {
    font-size: 17px;
    letter-spacing: 0.1em;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step__body {
    padding: 24px 22px 26px;
  }

  /* Two columns rather than one: these are image tiles with short labels, and
     a single column would make the section eight screens long. */
  .capabilities {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 16px;
  }

  .capability h3 {
    margin-top: 14px;
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .capability__note {
    font-size: 12px;
  }

  .sectors {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .sector h3 {
    margin-top: 14px;
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .sectors-sign-off {
    margin-top: 40px;
    text-align: left;
  }

  .strapline {
    font-size: 15px;
    letter-spacing: 0.12em;
  }

  .network__list svg {
    width: 28px;
    height: 28px;
  }

  .network__list span {
    font-size: 16px;
  }

  .about__body p {
    font-size: 17px;
  }

  /* Icon beside the label instead of above it: three stacked blocks read as
     a list here, and the row keeps the section compact. */
  .about__traits {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 36px;
    padding-top: 28px;
  }

  .about__traits > div {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .about__traits svg {
    flex: none;
    width: 30px;
    height: 30px;
    margin-bottom: 0;
  }

  .about__media .strapline {
    right: 20px;
    bottom: 20px;
  }

  .band {
    padding: 64px 0;
  }

  .contact__details {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 32px;
  }

  .contact__sep {
    display: none;
  }

  .footer__grid {
    gap: 32px;
    padding-bottom: 44px;
  }

  /* The brand column keeps the full width above the two link columns. */
  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ---------------------------------------------------- reveal on scroll -- */
/* Only active when JS is available, so the page is fully readable
   without JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
