/* ==========================================================================
   FOLIO — strategy and growth consultancy
   Desktop base = 992px+, with 1280 / 1440 / 1920 up-steps and
   991 / 767 / 479 down-steps.

   Palette: cobalt accent, near-black navy, warm white, soft neutrals.
   ========================================================================== */

:root {
  /* colour */
  --c-page: #fbf9f5; /* warm white — the page */
  --c-dark: #0b1226; /* near-black navy — ink and dark sections */
  --c-ink: #0b1226;
  --c-white: #fff;
  --c-shade: #060b1a; /* the gradient the hero fades into */
  --c-accent: #1b3fd8; /* cobalt */
  --c-accent-soft: #9fb4ff; /* cobalt, two steps lighter */
  --c-starlight: #f4f2ec; /* warm white for type on navy */
  --c-shell: #efece6; /* card surface, one shade under the page */
  --c-shell-glass: #f6f4efcc;
  --c-cream: #fdfbf7;
  --c-muted: #b9c0d2; /* muted type on navy */
  --c-grey: #8c93a3;
  --c-charcoal: #131c33;
  --c-sand: #dfdcd4;
  --c-hover: #9fb4ff;
  --c-frost: #f2efe9e6; /* the header's frosted bar */
  --c-glass: #ffffff17;
  --c-case-glass: #fbf9f5d9;
  --c-tag: #0b122666;
  --c-tag-light: #ffffff3b;
  --c-card-dark: #ffffff0d;
  --c-icon-dark: #9fb4ff1f;
  --c-line: #00000026;
  --c-line-soft: #0000001a;
  --c-line-dark: #ffffff1a;
  --c-footer-text: #fdfbf7b3;

  /* type */
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-head: "Newsreader", Georgia, "Times New Roman", serif;
  --h1: 64px;
  --h2: 48px;
  --h3: 34px;
  --h4: 30px;
  --h5: 24px;
  --h6: 20px;
  --big: 128px;
  --ls-caps: 1.28px;
  --ls-btn: 1.6px;
  --ls-small: .32px;

  /* motion */
  --ease-out-quart: cubic-bezier(.25, 1, .5, 1);
  --ease-in-out: cubic-bezier(.42, 0, .58, 1);
  --ease-in-out-quad: cubic-bezier(.45, 0, .55, 1);
  --ease-link: cubic-bezier(.645, .045, .355, 1);
  --marquee-gap: 56px;

  /* rhythm */
  --section: 140px;
  --gutter: 20px;
}

/* ---------- base ---------- */

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--c-page);
  color: var(--c-dark);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 145%;
  font-weight: 400;
}

img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--c-dark);
  font-weight: 400;
}

h1 {
  font-family: var(--f-head);
  font-size: var(--h1);
  line-height: 110%;
  letter-spacing: -.32px;
}

h2 {
  font-family: var(--f-head);
  font-size: var(--h2);
  line-height: 105%;
  letter-spacing: -.48px;
}

p {
  margin: 0;
  color: var(--c-dark);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 145%;
  font-weight: 400;
  letter-spacing: 0;
}

button,
input {
  margin: 0;
  color: inherit;
  font: inherit;
}

video { display: block; }

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.container--hero { max-width: 1340px; }

.container--wide { max-width: 1810px; }

.container--footer { max-width: 1760px; }

/* ---------- eyebrow: a ruled small-caps label and an italic aside ---------- */

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 6px 16px;
  width: 100%;
}

.eyebrow--center { justify-content: center; }

.eyebrow__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-accent);
  font-family: var(--f-body);
  font-size: 11px;
  line-height: 134%;
  font-weight: 600;
  font-stretch: 87.5%;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow__tag::before {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
  background-color: currentColor;
}

.eyebrow__text {
  display: block;
  color: #4a5268;
  font-family: var(--f-head);
  font-size: 16px;
  line-height: 130%;
  font-style: italic;
  font-weight: 400;
}

.eyebrow__text--muted { color: var(--c-muted); }

/* on navy the rule and the caps take the lighter cobalt; over the film they stay cream, the only
   colour that holds its contrast on every cut */
.section--dark .eyebrow__tag { color: var(--c-accent-soft); }

.hero .eyebrow__tag,
.hero .eyebrow__text { color: var(--c-cream); }

/* ---------- button: square, sentence case, an arrow that leans forward ---------- */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .005em;
  white-space: nowrap;
  transition: background-color .3s var(--ease-link), color .3s var(--ease-link);
}

.button__arrow {
  flex: none;
  transition: transform .4s var(--ease-out-quart);
}

.button:hover .button__arrow,
.button:focus-visible .button__arrow { transform: translateX(4px); }

.button:focus-visible { border-radius: 2px; }

.button--accent {
  background-color: var(--c-accent);
  color: var(--c-cream);
}

.button--accent:hover { background-color: var(--c-dark); }

.button--cream {
  background-color: var(--c-cream);
  color: var(--c-dark);
}

.button--cream:hover { background-color: var(--c-accent-soft); }

.button--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

/* ---------- tags & small parts ---------- */

.tags {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}

.tags.tags--lg {
  left: 24px;
  bottom: 24px;
}

.tags__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.tag {
  display: block;
  padding: 4px 12px;
  border-radius: 6px;
  background-color: var(--c-tag);
  color: var(--c-starlight);
  font-size: 12px;
  line-height: 134%;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.tag--glass { background-color: var(--c-tag-light); }

.icon-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 2px 0 0 1px;
  border-radius: 50%;
}

.icon-link--accent {
  background-color: var(--c-accent);
  color: var(--c-cream);
}

.icon-link--soft {
  background-color: var(--c-accent-soft);
  color: var(--c-dark);
}

.icon-link svg { display: block; }

.icon {
  display: block;
  flex: none;
}

.icon--quote { opacity: .2; }

.person {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

.person--card { margin-top: 40px; }

.person__avatar {
  width: 100%;
  height: 100%;
  max-width: 56px;
  max-height: 56px;
  border-radius: 50%;
}

.person__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.person__name {
  font-size: 18px;
  line-height: 120%;
  font-weight: 500;
}

.person__role {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls-small);
  text-transform: uppercase;
}

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 111;
  padding: 0 20px;
}

.site-header__inner {
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
}

.nav {
  position: relative;
  z-index: 11;
  border-bottom: 1px solid rgb(253 251 247 / .22);
}

.nav__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__start { width: 25%; }

.nav__brand {
  position: relative;
  float: left;
  color: #333;
}

.nav__collapse { display: contents; }

.nav__menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 80%;
  max-width: 706px;
}

.nav__link {
  position: relative;
  display: inline-block;
  vertical-align: top;
  color: var(--c-cream);
  font-size: 14px;
  line-height: 134%;
  font-weight: 500;
  letter-spacing: .01em;
  text-align: left;
}

/* a hairline draws in under the link instead of a colour change */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out-quart);
}

.nav__menu > .nav__link:hover::after,
.nav__dropdown:hover .nav__link::after { transform: scaleX(1); }

.nav__dropdown {
  position: static;
  z-index: 900;
  display: inline-block;
  padding: 25px 0;
  text-align: left;
  font-size: 12px;
  line-height: 134%;
  font-weight: 500;
}

.nav__dropdown-toggle {
  display: inline-block;
  vertical-align: top;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  letter-spacing: var(--ls-caps);
  text-align: left;
  white-space: nowrap;
}

.nav__dropdown-toggle:focus { outline: 0; }

.nav__dropdown-toggle:focus-visible {
  outline: 2px solid var(--c-accent-soft);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav__dropdown-toggle .nav__link { display: block; }

.nav__toggle {
  position: relative;
  display: none;
  padding: 12px;
  border: 0;
  border-radius: 2px;
  background-color: var(--c-cream);
  color: var(--c-dark);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.nav__toggle:focus { outline: 0; }

.nav__toggle:focus-visible {
  outline: 2px solid var(--c-accent-soft);
  outline-offset: 3px;
}

.nav__toggle-icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.nav__end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
  width: 25%;
}

/* ---------- mega menu ---------- */

.mega {
  position: absolute;
  top: 47px;
  left: 0;
  right: 0;
  display: none;
  width: 856px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 22px;
  overflow: hidden;
  border-radius: 4px;
  background-color: transparent;
}

.mega.is-open {
  display: block;
  animation: mega-in .5s var(--ease-in-out) both;
}

@keyframes mega-in {
  from { opacity: 0;
  transform: scale(.6);
  }
  to { opacity: 1;
  transform: scale(1);
  };
}

.mega__panel {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  padding: 12px 40px 40px;
  border-radius: 4px;
  background-color: var(--c-frost);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 2px #ffffffb8;
}

.mega__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 50%;
}

.mega__col--feature { width: 100%; }

.mega__head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line-soft);
}

.mega__title {
  color: #0b122699;
  font-size: 11px;
  font-weight: 600;
  font-stretch: 87.5%;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mega__links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

.mega__link {
  position: relative;
  display: block;
  vertical-align: top;
  color: var(--c-dark);
  font-size: 15px;
  line-height: 134%;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.mini-case {
  position: relative;
  overflow: hidden;
  padding: 5px 5px 0;
  border-radius: 4px;
  background-color: var(--c-page);
}

.mini-case__media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.mini-case__img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.mini-case__link {
  position: absolute;
  right: 20px;
  bottom: 20px;
}

.mini-case__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}

.mini-case__panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 4px;
  border-radius: 2px;
  background-color: var(--c-page);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.mini-case__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-case__title {
  color: var(--c-dark);
  font-size: 16px;
  line-height: 120%;
  font-weight: 500;
}

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

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 815px;
}

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

.hero__wrap { padding: 0 20px; }

.hero__row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 100px;
}

.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.hero__title {
  max-width: 660px;
  color: var(--c-cream);
}

.hero__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.hero__index {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 250px;
}

.hero__index-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__index-list li { border-top: 1px solid rgb(253 251 247 / .22); }

.hero__index-list li:last-child { border-bottom: 1px solid rgb(253 251 247 / .22); }

.hero__index-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  color: var(--c-cream);
  font-size: 14px;
  line-height: 130%;
  font-weight: 500;
  transition: color .3s var(--ease-link);
}

.hero__index-list a::after {
  content: "\2192";
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s var(--ease-link), transform .4s var(--ease-out-quart);
}

.hero__index-list a:hover { color: var(--c-accent-soft); }

.hero__index-list a:hover::after {
  opacity: 1;
  transform: none;
}

.hero__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 225px;
  background-image: linear-gradient(180deg, transparent, var(--c-shade));
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

@keyframes marquee {
  to { transform: translate3d(calc(-100% - var(--marquee-gap)), 0, 0);
  };
}

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

.footer {
  display: flex;
  flex-direction: column;
  padding: 88px 50px 70px;
  background-color: var(--c-dark);
}

.footer__main { padding-top: 0; }

.footer__rows {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.footer__top {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.footer__cols {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  width: 100%;
}

.footer__col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
}

.footer__col--contact { gap: 65px; }

.footer__label {
  color: var(--c-grey);
  opacity: .7;
  font-size: 12px;
  line-height: 134%;
  font-weight: 500;
  letter-spacing: var(--ls-small);
  text-transform: uppercase;
}

.footer__label--narrow { max-width: 130px; }

.footer__links {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

.footer__link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  color: var(--c-page);
  font-size: 12px;
  line-height: 134%;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  transition: all .5s var(--ease-link);
}

.footer__link:hover { color: var(--c-hover); }

.footer__group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer__contact-link {
  color: var(--c-sand);
  font-size: 16px;
  line-height: 125%;
  font-weight: 400;
  transition: all .5s var(--ease-link);
}

.footer__contact-link--email { color: var(--c-accent-soft); }

.footer__address {
  max-width: 202px;
  color: var(--c-sand);
}

.footer__aside {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 40px;
  width: 90%;
}

.footer__group--newsletter {
  justify-content: flex-start;
  max-width: 345px;
}

.newsletter {
  width: 100%;
  max-width: 350px;
}

.newsletter__form { position: relative; }

.newsletter__input {
  display: block;
  width: 100%;
  height: 55px;
  padding: 20px 25px;
  border: 1px solid var(--c-line-dark);
  border-radius: 12px;
  background-color: var(--c-charcoal);
  color: var(--c-starlight);
  font-size: 14px;
  line-height: 145%;
  font-weight: 400;
  vertical-align: middle;
}

.newsletter__input::placeholder {
  color: var(--c-starlight);
  opacity: 1;
}

.newsletter__input:focus {
  outline: 0;
  border-color: #3898ec;
  background-color: #ffffff12;
}

.newsletter__submit {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  padding: 5px 20px;
  border: 1px solid var(--c-line-dark);
  border-radius: 8px;
  background-color: var(--c-page);
  color: var(--c-dark);
  font-size: 12px;
  line-height: 125%;
  font-weight: 700;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: button;
  appearance: button;
}

.newsletter__done,
.newsletter__fail { border-radius: 5px; }

.newsletter__done {
  padding: 20px;
  background-color: var(--c-accent);
  color: var(--c-cream);
  text-align: center;
}

.newsletter__fail {
  margin-top: 10px;
  padding: 10px;
  background-color: var(--c-accent-soft);
  color: var(--c-dark);
}

.newsletter [hidden] { display: none; }

.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding: 25px 0;
  border-top: 1px solid var(--c-line-dark);
  border-bottom: 1px solid var(--c-line-dark);
  overflow: hidden;
}

.footer__bar.footer__bar--note {
  margin-top: 0;
  padding: 0;
  border: 0;
}

.footer__copy,
.footer__note {
  font-size: 14px;
  font-weight: 400;
}

.footer__copy { color: var(--c-footer-text); }

.footer__brand span {
  color: var(--c-cream);
  font-weight: 600;
}

.footer__social {
  display: flex;
  gap: 20px;
}

.footer__social-link {
  display: inline-block;
  max-width: 100%;
  color: var(--c-sand);
  opacity: .7;
  transition: opacity .5s var(--ease-link), color .5s var(--ease-link);
}

.footer__social-link:hover {
  color: var(--c-accent-soft);
  opacity: 1;
}

.footer__note {
  max-width: 748px;
  color: var(--c-grey);
}

/* ==========================================================================
   Carousel — the template swaps grids for sliders on phones (≤479px)
   ========================================================================== */

.carousel {
  position: relative;
  display: none;
  clear: both;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.carousel__mask {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  touch-action: pan-y;
  font-size: 0;
  /* kills the whitespace gap between the inline-block slides */;
}

.carousel__slide {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 100%;
  white-space: normal;
  text-align: left;
  font-size: 16px;
  /* restores the inherited body size inside the slide */;
}

.carousel.is-ready .carousel__slide { transition: transform .5s ease; }

.carousel .carousel__slide.is-snapping { transition: none; }

/* ==========================================================================
   Scroll reveal — "slide in bottom": 100px → 0, 1000ms outQuart
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 100px, 0);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity 1s var(--ease-out-quart) var(--reveal-delay, 0ms),
    transform 1s var(--ease-out-quart) var(--reveal-delay, 0ms);
}

/* ==========================================================================
   Up-steps
   ========================================================================== */

@media screen and (min-width: 1440px) {
  .hero__row {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .hero__wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .newsletter__input { background-color: #ffffff12; }
}

@media screen and (min-width: 1920px) {
  .container--hero { max-width: 1810px; }

  .hero { height: 980px; }

  .footer__aside {
    justify-content: flex-end;
    width: 80%;
  }

  .footer__cols {
    gap: 100px;
    justify-content: flex-start;
  }

  .newsletter__form {
    border-radius: 12px;
    background-color: transparent;
  }

  .newsletter__input { background-color: var(--c-charcoal); }
}

/* ==========================================================================
   Down-steps
   ========================================================================== */

@media screen and (max-width: 991px) {
  :root {
    --h1: 54px;
    --h2: 38px;
    --h3: 30px;
    --h4: 25px;
    --h5: 22px;
    --h6: 20px;
    --big: 100px;
  }

  /* header → collapsible menu */

  .nav {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav__start { width: 100%; }

  .nav__end {
    width: 50%;
    display: none;
  }

  .nav__dropdown { display: none; }

  .nav__toggle { display: block; }

  .nav__collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    width: 100%;
    overflow: hidden;
  }

  .nav__collapse.is-open { display: block; }

  .nav__menu {
    display: block;
    float: right;
    width: 100%;
    min-width: 200px;
    margin-top: 10px;
    padding: 20px;
    border-radius: 4px;
    background-color: var(--c-white);
    box-shadow: 10px 10px 40px #07006c12;
    text-align: center;
    transition: transform .4s ease;
  }

  .nav__menu .nav__link {
    display: block;
    padding: 10px 0;
    color: var(--c-ink);
    background-color: transparent;
  }

  /* hero */

  .hero { height: 700px; }

  .hero__row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding-bottom: 60px;
  }

  .hero__left {
    justify-content: center;
    align-items: center;
  }

  .hero__title { text-align: center; }

  .hero__right { width: 65%; }

  .hero__index {
    align-items: center;
    width: 100%;
  }

  .hero__index .eyebrow__tag { display: none; }

  .hero__index-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 18px;
  }

  .hero__index-list li,
  .hero__index-list li:last-child { border: 0; }

  .hero__index-list a {
    padding: 3px 0;
    font-size: 13px;
  }

  .hero__index-list a::after { content: none; }

  .hero__shade { height: 400px; }

  /* footer */

  .footer {
    padding-top: 72px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer__rows { gap: 70px; }

  .footer__top {
    flex-direction: column;
    column-gap: 40px;
    row-gap: 70px;
  }

  .footer__col {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .footer__col--contact { gap: 40px; }

  .footer__aside {
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
  }

  .footer__bar {
    flex-direction: row;
    gap: 16px;
    margin-top: 0;
  }

  .footer__social {
    justify-content: flex-end;
    align-items: center;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --h1: 44px;
    --h2: 28px;
    --h3: 25px;
    --h4: 22px;
    --h5: 20px;
    --h6: 18px;
    --big: 80px;
    --marquee-gap: 30px;
  }

  /* header */

  .nav__start {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .nav__brand { display: block; }

  /* hero */

  .hero__row {
    gap: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .hero__title { max-width: 400px; }

  .hero__right {
    justify-content: flex-start;
    align-items: center;
  }

  .hero__shade { height: 300px; }

  /* footer */

  .footer {
    padding-top: 64px;
    padding-bottom: 60px;
  }

  .footer__rows { gap: 40px; }

  .footer__top { row-gap: 40px; }

  .footer__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    gap: 50px;
  }

  .footer__col { gap: 40px; }

  .footer__col--contact { width: 100%; }

  .footer__aside { flex-direction: column; }

  .footer__bar {
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
  }

  .footer__copy,
  .footer__note { text-align: center; }
}

@media screen and (max-width: 479px) {
  :root {
    --h1: 34px;
    --h2: 25px;
    --h3: 22px;
    --h4: 20px;
    --h5: 18px;
    --h6: 18px;
    --big: 60px;
    --marquee-gap: 20px;
  }

  /* header */

  .site-header { padding: 0 16px; }

  .nav__start { width: 100%; }

  /* hero */

  .hero { height: 600px; }

  .hero__wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero__row { padding-bottom: 40px; }

  .hero__right { width: 100%; }

  .hero__shade { height: 400px; }

  .mini-case__panel { padding: 15px 4px; }

  /* the new heads are left-aligned, so the eyebrow follows them */
  .eyebrow {
    flex-direction: column;
    align-items: flex-start;
  }

  .eyebrow__text { text-align: left; }

  .hero .eyebrow { align-items: center; }

  .hero .eyebrow__text { text-align: center; }

  .tags {
    left: 10px;
    bottom: 10px;
  }

  .icon-link--accent { display: none; }

  .tags__row {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .icon-link--soft { display: none; }

  /* footer */

  .footer {
    padding: 56px 10px 30px;
  }

  .footer__main {
    padding-top: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .footer__rows { gap: 30px; }

  .footer__top { gap: 30px; }

  .footer__cols {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .footer__col {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__col--contact { gap: 30px; }

  .footer__aside {
    gap: 30px;
    width: 100%;
  }

  .footer__bar { gap: 15px; }

  .footer__link {
    font-size: 12px;
    letter-spacing: 0;
  }

  /* phone sliders */

  .carousel {
    display: block;
    width: 100%;
  }
}

/* ==========================================================================
   Reduced motion — everything lands in its final state
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .carousel.is-ready .carousel__slide { transition: none; }

  .button__arrow,
  .nav__link::after,
  .hero__index-list a::after,
  .footer__link,
  .footer__contact-link { transition-duration: .01ms; }

  .mega.is-open { animation-duration: .01ms; }
}

/* ==========================================================================
   Page sections — the editorial layer
   Rhythm: hero (dark) · positioning · services · method (dark) · profiles ·
   situations (shell) · voices · journal · CTA (cobalt) · footer (dark)
   ========================================================================== */

.section { padding: var(--section) var(--gutter); }

.section--dark {
  background-color: var(--c-dark);
  color: var(--c-starlight);
}

.section--shell { background-color: var(--c-shell); }

.section--rule > .container {
  padding-top: calc(var(--section) * .72);
  border-top: 1px solid var(--c-line);
}

.section--rule { padding-top: 0; }

/* ---------- section heads ---------- */

.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 100px;
}

.head__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 660px;
}

.head__right {
  max-width: 420px;
  padding-bottom: 8px;
}

.head__title {
  font-family: var(--f-head);
  font-size: var(--h2);
  line-height: 105%;
  letter-spacing: -.48px;
  color: var(--c-dark);
}

.section--dark .head__title { color: var(--c-cream); }

.head__lede { color: var(--c-dark); }

.section--dark .head__lede { color: var(--c-muted); }

.head__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-accent);
  white-space: nowrap;
  transition: gap .4s var(--ease-link);
}

.head__link:hover { gap: 16px; }

/* ---------- 01 · positioning ---------- */

/* the client rail already closes the block, so it needs less air beneath it */
.positioning { padding-bottom: calc(var(--section) * .55); }

.positioning__row {
  display: flex;
  align-items: flex-start;
  gap: 120px;
}

.positioning__left {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 44%;
}

.positioning__statement {
  font-family: var(--f-head);
  font-size: var(--h3);
  line-height: 130%;
}

.positioning__note {
  max-width: 400px;
  opacity: .62;
}

.positioning__defs {
  display: flex;
  flex-direction: column;
  width: 56%;
}

.def {
  display: flex;
  align-items: baseline;
  gap: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--c-line);
}

.def:last-child { border-bottom: 1px solid var(--c-line); }

.def__label {
  flex: none;
  width: 150px;
  font-size: 12px;
  line-height: 134%;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-accent);
}

.def__text {
  max-width: 520px;
  font-size: 18px;
  line-height: 150%;
}

/* the wide figure that closes the positioning block */

.figure {
  position: relative;
  margin-top: 80px;
  padding: 8px;
  border-radius: 12px;
  background-color: var(--c-shell);
}

.figure__img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 8px;
}

.figure__stats {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.figure__stat {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  border-radius: 8px;
  background-color: var(--c-shell-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.figure__num {
  font-family: var(--f-head);
  font-size: 44px;
  line-height: 110%;
  letter-spacing: -.32px;
}

.figure__label {
  max-width: 120px;
  font-size: 12px;
  line-height: 134%;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.figure__caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 8px;
  background-color: var(--c-shell-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--c-accent);
}

.figure__caption span {
  font-size: var(--h6);
  line-height: 120%;
  font-weight: 500;
  color: var(--c-dark);
}

/* ---------- client rail ---------- */

.partners {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--c-line);
}

.partners__label {
  flex: none;
  width: 200px;
  font-size: 12px;
  line-height: 134%;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  opacity: .64;
}

.marquee {
  position: relative;
  flex: 1;
  display: flex;
  gap: var(--marquee-gap);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  flex-flow: row;
  justify-content: flex-start;
  align-items: center;
  gap: var(--marquee-gap);
  min-width: 118%;
}

.marquee__item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.marquee.is-running .marquee__track { animation: marquee 22s linear infinite; }

/* ---------- 02 · services ---------- */

.services__row {
  display: flex;
  align-items: flex-start;
  gap: 90px;
  margin-top: 80px;
}

.services__intro {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 30%;
}

.services__note {
  max-width: 360px;
  opacity: .62;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 24px 20px;
  width: 70%;
}

/* the right column drops half a card — the stagger the page is built on */
.services__grid > :nth-child(even) { margin-top: 80px; }

.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background-color: var(--c-shell);
}

.service-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.service-card__img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 18px;
  border-radius: 8px;
  background-color: var(--c-page);
}

.service-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.service-card__index {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-accent);
}

.service-card__title {
  font-family: var(--f-head);
  font-size: var(--h4);
  line-height: 120%;
  color: var(--c-dark);
}

.service-card__text { max-width: 420px; }

.service-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line-soft);
}

.service-card__meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  opacity: .7;
}

/* ---------- 03 · method ---------- */

.method__steps {
  margin-top: 80px;
  border-top: 1px solid var(--c-line-dark);
}

.step {
  display: flex;
  align-items: baseline;
  gap: 56px;
  padding: 36px 0;
  border-bottom: 1px solid var(--c-line-dark);
}

.step__num {
  flex: none;
  width: 70px;
  font-family: var(--f-head);
  font-size: var(--h5);
  color: var(--c-accent-soft);
}

.step__title {
  flex: none;
  width: 300px;
  font-family: var(--f-head);
  font-size: var(--h4);
  line-height: 120%;
  color: var(--c-cream);
}

.step__text {
  max-width: 560px;
  color: var(--c-muted);
}

.step__meta {
  flex: none;
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-accent-soft);
  opacity: .8;
}

/* ---------- 04 · profiles ---------- */

.profiles__row {
  display: flex;
  align-items: stretch;
  gap: 100px;
}

.profiles__media {
  position: relative;
  width: 46%;
  padding: 8px;
  border-radius: 12px;
  background-color: var(--c-shell);
}

.profiles__img {
  width: 100%;
  height: 100%;
  max-height: 720px;
  object-fit: cover;
  border-radius: 8px;
}

.profiles__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  width: 54%;
}

.profiles__list {
  display: flex;
  flex-direction: column;
}

/* the CTA keeps its own width instead of stretching with the column */
.profiles__cta { align-self: flex-start; }

.profile {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--c-line);
}

.profile:last-child { border-bottom: 1px solid var(--c-line); }

.profile__icon {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1b3fd812;
  color: var(--c-accent);
  transform: translateY(8px);
}

.profile__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile__title {
  font-size: var(--h6);
  line-height: 120%;
  font-weight: 500;
}

.profile__text {
  max-width: 460px;
  opacity: .72;
}

/* ---------- 05 · situations ---------- */

.situations__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 90px;
  margin-top: 72px;
}

.situation {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 0;
  border-top: 1px solid var(--c-line);
}

.situation__num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-accent);
}

.situation__title {
  max-width: 460px;
  font-family: var(--f-head);
  font-size: var(--h4);
  line-height: 122%;
}

.situation__text {
  max-width: 460px;
  opacity: .72;
}

.situations__foot {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-top: 72px;
}

.quote-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  width: 38%;
  padding: 40px;
  border-radius: 12px;
  background-color: var(--c-accent);
}

.quote-card__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.quote-card__quote {
  max-width: 340px;
  font-family: var(--f-head);
  font-size: var(--h4);
  line-height: 125%;
  color: var(--c-cream);
}

.quote-card__lede {
  max-width: 330px;
  color: var(--c-cream);
  opacity: .82;
}

.quote-card .person__name,
.quote-card .person__role { color: var(--c-cream); }

.quote-card .person__role { opacity: .7; }

.quote-card__shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 222px;
  height: 298px;
}

.case-card {
  position: relative;
  overflow: hidden;
  width: 62%;
  border-radius: 12px;
}

.case-card__img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.case-card__panel {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border-radius: 8px;
  background-color: var(--c-case-glass);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.case-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-card__title {
  font-size: var(--h6);
  line-height: 120%;
  font-weight: 500;
}

.case-card__meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  opacity: .7;
}

/* ---------- 06 · voices ---------- */

.voices__row {
  display: flex;
  align-items: flex-start;
  gap: 90px;
}

.voices__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 30%;
}

.voices__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 70%;
}

.voice {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 52px 56px;
  border-radius: 12px;
  background-color: var(--c-shell);
}

.voice__quote {
  max-width: 760px;
  font-family: var(--f-head);
  font-size: var(--h3);
  line-height: 132%;
}

.voices__pair {
  display: flex;
  gap: 20px;
}

.voices__pair .voice {
  flex: 1;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--c-line);
  background-color: transparent;
}

.voices__pair .voice__quote {
  font-family: var(--f-body);
  font-size: var(--h6);
  line-height: 140%;
}

.voice__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: auto;
}

.voice__date {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls-small);
  opacity: .68;
}

/* ---------- 07 · journal ---------- */

.journal__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  margin-top: 72px;
}

.article {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article__media {
  overflow: hidden;
  border-radius: 12px;
}

.article__img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-quart);
}

.article:hover .article__img { transform: scale(1.03); }

.article--text {
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-accent);
}

.article__meta span {
  color: var(--c-dark);
  opacity: .6;
}

.article__title {
  max-width: 420px;
  font-family: var(--f-head);
  font-size: var(--h4);
  line-height: 122%;
  transition: color .4s var(--ease-link);
}

.article:hover .article__title { color: var(--c-accent); }

.article__text {
  max-width: 420px;
  opacity: .72;
}

.article__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-accent);
  transition: gap .4s var(--ease-link);
}

.article:hover .article__more { gap: 16px; }

/* ---------- 08 · closing CTA ---------- */

.cta {
  padding: calc(var(--section) * .9) var(--gutter);
  background-color: var(--c-accent);
  color: var(--c-cream);
}

.cta__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 100px;
}

.cta__left {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 660px;
}

.cta__title {
  font-family: var(--f-head);
  font-size: var(--h1);
  line-height: 108%;
  letter-spacing: -.32px;
  color: var(--c-cream);
}

.cta__text {
  max-width: 460px;
  color: var(--c-cream);
  opacity: .82;
}

.cta__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
}

.cta__aside {
  max-width: 220px;
  font-size: 12px;
  line-height: 134%;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-cream);
  opacity: .72;
}

.cta__steps {
  width: 38%;
  max-width: 420px;
  border-top: 1px solid #ffffff3d;
}

.cta__step {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #ffffff3d;
}

.cta__step span {
  flex: none;
  width: 28px;
  font-family: var(--f-head);
  font-size: 18px;
  color: var(--c-cream);
  opacity: .7;
}

.cta__step p {
  color: var(--c-cream);
  opacity: .9;
}

/* ==========================================================================
   Page sections — responsive
   ========================================================================== */

@media screen and (min-width: 1920px) {
  .services__intro { width: 28%; }
  .services__grid { width: 72%; }
  .service-card__img { height: 340px; }
  .figure__img { height: 620px; }
  .step__title { width: 360px; }
  .step__text { max-width: 640px; }
  .case-card__img { height: 600px; }
  .article__img { height: 320px; }
}

@media screen and (max-width: 1279px) {
  .positioning__row { gap: 72px; }
  .services__row { gap: 60px; }
  .services__intro { width: 34%; }
  .services__grid { width: 66%; }
  .step { gap: 36px; }
  .step__title { width: 240px; }
  .profiles__row { gap: 64px; }
  .situations__grid { gap: 0 60px; }
  .voices__row { gap: 60px; }
  .voice--featured { padding: 44px; }
  .cta__row { gap: 64px; }
}

@media screen and (max-width: 991px) {
  .head {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .head__right { padding-bottom: 0; }

  .positioning__row {
    flex-direction: column;
    gap: 56px;
  }

  .positioning__left,
  .positioning__defs { width: 100%; }

  .figure { margin-top: 56px; }
  .figure__img { height: 420px; }

  .partners {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-top: 56px;
  }

  .partners__label { width: 100%; }
  .marquee { width: 100%; }

  .services__row {
    flex-direction: column;
    gap: 48px;
    margin-top: 56px;
  }

  .services__intro,
  .services__grid { width: 100%; }

  .services__intro { position: static; }
  .services__grid > :nth-child(even) { margin-top: 0; }

  .method__steps { margin-top: 56px; }

  .step {
    flex-wrap: wrap;
    gap: 12px 32px;
    padding: 28px 0;
  }

  .step__num { width: 48px; }
  .step__title { width: calc(100% - 140px); }

  .step__text {
    width: 100%;
    max-width: none;
    padding-left: 80px;
  }

  .step__meta { margin-left: 0; }

  .profiles__row {
    flex-direction: column;
    gap: 40px;
  }

  .profiles__media,
  .profiles__body { width: 100%; }

  .profiles__img { max-height: 420px; }

  .situations__grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 48px;
  }

  .situations__foot {
    flex-direction: column;
    margin-top: 48px;
  }

  .quote-card,
  .case-card { width: 100%; }

  .case-card__img { height: 360px; }

  .voices__row {
    flex-direction: column;
    gap: 40px;
  }

  .voices__head,
  .voices__body { width: 100%; }

  .voice { padding: 36px; }

  .journal__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
    margin-top: 48px;
  }

  .article--lead { grid-column: span 2; }
  .article__img { height: 320px; }

  .cta__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
  }

  .cta__steps { width: 100%; }
}

@media screen and (max-width: 767px) {
  .positioning__row { gap: 40px; }

  .def {
    flex-direction: column;
    gap: 10px;
    padding: 24px 0;
  }

  .def__label { width: auto; }
  .def__text { font-size: 17px; }

  .figure__img { height: 340px; }

  .figure__stats {
    left: 16px;
    right: 16px;
    bottom: 16px;
    flex-direction: column;
  }

  .figure__stat { padding: 12px 18px; }
  .figure__num { font-size: 34px; }
  .figure__caption { display: none; }

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

  .step__title { width: calc(100% - 100px); }
  .step__text { padding-left: 0; }

  .voice { padding: 28px; }
  .voices__pair { flex-direction: column; }

  .journal__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .article--lead { grid-column: auto; }
  .article__img { height: 260px; }
}

@media screen and (max-width: 479px) {
  .section--rule > .container { padding-top: var(--section); }
  .positioning__statement { line-height: 128%; }
  .figure { margin-top: 40px; }
  .figure__img { height: 280px; }
  .partners { margin-top: 40px; }
  .services__row { margin-top: 40px; }
  .services__grid { display: none; }
  .services .carousel { display: block; width: 100%; }
  .method__steps { margin-top: 40px; }
  .step { gap: 10px 20px; }
  .step__num { width: 40px; }
  .step__title { width: calc(100% - 60px); }
  .step__meta { padding-left: 60px; }
  .profiles__img { max-height: 320px; }
  .situations__grid { margin-top: 36px; }
  .situations__foot { margin-top: 36px; }
  .case-card__img { height: 280px; }
  .voice { padding: 24px; }
  .voice__quote { font-size: var(--h4); }
  .journal__grid { margin-top: 36px; }
  .cta__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media screen and (max-width: 1279px) { :root { --section: 116px; } }
@media screen and (max-width: 991px) { :root { --section: 96px; } }
@media screen and (max-width: 767px) { :root { --section: 76px; } }
@media screen and (max-width: 479px) { :root { --section: 56px; --gutter: 10px; } }

@media screen and (min-width: 768px) and (max-width: 991px) {
  /* the caption sits at the top so it never meets the numbers */
  .figure__caption {
    top: 24px;
    bottom: auto;
  }
}

/* ==========================================================================
   Finish — selection, focus, anchor scrolling and the hover layer
   ========================================================================== */

::selection {
  background-color: var(--c-accent);
  color: var(--c-cream);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

section[id],
footer[id] { scroll-margin-top: 32px; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--c-accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* photography answers the cursor the same way everywhere */
.service-card__img,
.case-card__img,
.profiles__img,
.figure__img { transition: transform 1.2s var(--ease-out-quart); }

.service-card:hover .service-card__img,
.case-card:hover .case-card__img { transform: scale(1.03); }

.service-card__title { transition: color .4s var(--ease-link); }

.service-card:hover .service-card__title { color: var(--c-accent); }

/* the method rows lift their numerals rather than filling with colour */
.step__num,
.step__meta { transition: color .5s var(--ease-link), opacity .5s var(--ease-link); }

.step:hover .step__num { color: var(--c-cream); }

.step:hover .step__meta { opacity: 1; }

/* the client rail dissolves at both edges instead of cutting */
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}

/* the newsletter field focuses in brand, not in the browser default */
.newsletter__input:focus {
  border-color: var(--c-accent-soft);
  background-color: #ffffff14;
}

@media (prefers-reduced-motion: reduce) {
  .service-card__img,
  .case-card__img,
  .article__img { transition: none; }

  .service-card:hover .service-card__img,
  .case-card:hover .case-card__img,
  .article:hover .article__img { transform: none; }
}

/* ---------- positioning figure: the still, then the film once it can play ---------- */

.figure__media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.figure__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out-quart);
}

.figure__video.is-playing { opacity: 1; }

/* ---------- hero film: the poster is the ground, a scrim keeps the type legible on every cut ---------- */

.hero {
  background: var(--c-shade) url("../assets/video/hero-poster.jpg") 50% 50% / cover no-repeat;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(6 11 26 / .7) 0, rgb(6 11 26 / .52) 80px, rgb(6 11 26 / .18) 160px, rgb(6 11 26 / 0) 250px),
    radial-gradient(55% 75% at 100% 100%, rgb(6 11 26 / .74) 0%, rgb(6 11 26 / .5) 45%, rgb(6 11 26 / 0) 80%),
    radial-gradient(125% 105% at 0% 100%, rgb(6 11 26 / .78) 0%, rgb(6 11 26 / .52) 50%, rgb(6 11 26 / 0) 80%);
}

.hero__toggle {
  position: absolute;
  right: 0;
  bottom: 28px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgb(253 251 247 / .22);
  border-radius: 50%;
  background-color: var(--c-glass);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  color: var(--c-cream);
  cursor: pointer;
  opacity: .8;
  transition: opacity .3s, border-color .3s;
}

.hero__toggle:hover {
  opacity: 1;
  border-color: rgb(253 251 247 / .5);
}

/* the global focus ring would square the circle off */
.hero__toggle:focus-visible {
  border-radius: 50%;
  opacity: 1;
}

.hero__toggle[hidden],
.hero__toggle-play,
.hero__toggle[aria-pressed="true"] .hero__toggle-pause { display: none; }

.hero__toggle[aria-pressed="true"] .hero__toggle-play { display: block; }

@media (max-width: 991px) {
  .hero__scrim {
    background:
      linear-gradient(180deg, rgb(6 11 26 / .55) 0, rgb(6 11 26 / 0) 160px),
      linear-gradient(0deg, rgb(6 11 26 / .66) 0%, rgb(6 11 26 / .38) 45%, rgb(6 11 26 / 0) 74%);
  }

  .hero .eyebrow { justify-content: center; }

  .hero__toggle { bottom: 16px; }
}

@media (max-width: 479px) {
  .hero { background-image: url("../assets/video/hero-poster-portrait.jpg"); }

  /* the centred practice list reaches the right edge on narrow phones: keep it clear of the toggle */
  .hero__row { padding-bottom: 56px; }

  .hero__toggle { bottom: 12px; }
}

/* ---------- type finish: balanced heads, lining figures ---------- */

h1,
h2,
h3,
[class*="__title"] { text-wrap: balance; }

p { text-wrap: pretty; }

/* two-line method notes: even lines instead of a stranded pair of words */
.step__text { text-wrap: balance; }

body { font-variant-numeric: lining-nums; }
