/* ==========================================================================
   Sephira Investments Ltd — main stylesheet
   1.  Fonts
   2.  Tokens
   3.  Reset & base
   4.  Layout primitives
   5.  Typography
   6.  Buttons & links
   7.  Header & navigation
   8.  Hero (home)
   9.  Page heroes (inner pages)
   10. Editorial sections
   11. Forms
   12. Footer
   13. Motion
   14. Responsive
   ========================================================================== */

/* 1. Fonts ================================================================ */

@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens =============================================================== */

:root {
  /* palette */
  --ink: #16181b;
  --ink-deep: #0d0f11;
  --ink-soft: #22252a;
  --paper: #f6f4f0;
  --paper-warm: #efebe4;
  --paper-dim: #e5e0d7;
  --stone: #c7beb0;
  --stone-deep: #8d857a;
  --olive: #6e7a45;
  --olive-deep: #5b6539;
  --olive-pale: #a8ad82;

  /* semantic — light surfaces */
  --text: #1c1e21;
  --text-muted: #5c5f64;
  --text-faint: #8a8d92;
  --line: rgba(28, 30, 33, 0.14);
  --line-strong: rgba(28, 30, 33, 0.28);

  /* semantic — dark surfaces */
  --text-on-dark: #f2efe9;
  --text-on-dark-muted: rgba(242, 239, 233, 0.72);
  --text-on-dark-faint: rgba(242, 239, 233, 0.48);
  --line-on-dark: rgba(242, 239, 233, 0.18);

  /* type */
  --font-display: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-eyebrow: 0.6875rem;
  --fs-micro: 0.625rem;
  --fs-small: 0.8125rem;
  --fs-body: 0.9375rem;
  --fs-body-lg: 1rem;
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.42vw, 1.3125rem);
  --fs-display-s: clamp(1.375rem, 1.24rem + 0.66vw, 1.75rem);
  --fs-display-m: clamp(1.875rem, 1.53rem + 1.72vw, 3rem);
  --fs-display-l: clamp(2.25rem, 1.68rem + 2.86vw, 3.875rem);
  --fs-display-xl: clamp(2.375rem, 1.32rem + 4.2vw, 4.25rem);

  /* space */
  --gutter: clamp(1.25rem, 4.4vw, 4.5rem);
  --section-y: clamp(4.5rem, 9vw, 9.5rem);
  --shell-max: 1560px;

  /* misc */
  --header-h: 6.5rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.55s;
}

/* 3. Reset & base ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

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

img {
  height: auto;
  background-color: var(--paper-dim);
}

address {
  font-style: normal;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--olive);
  color: #fff;
}

/* visible focus everywhere, including browsers without :focus-visible support */
:focus {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 1px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 1px;
}

.on-dark :focus,
.on-dark :focus-visible,
.site-header :focus,
.site-header :focus-visible,
.nav-panel :focus,
.nav-panel :focus-visible {
  outline-color: var(--olive-pale);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--text-on-dark);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* 4. Layout primitives ==================================================== */

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(3.25rem, 6vw, 6rem);
}

.section--dark {
  background: var(--ink);
  color: var(--text-on-dark);
}

.section--warm {
  background: var(--paper-warm);
}

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

.section--dark.section--line-top {
  border-top-color: var(--line-on-dark);
}

.grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4.5rem);
}

.grid--split {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}

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

.grid--media-split {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: stretch;
}

.grid--aside {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

.on-dark .rule,
.section--dark .rule {
  background: var(--line-on-dark);
}

.stack > * + * {
  margin-top: var(--stack-gap, 1.35rem);
}

.measure {
  max-width: 34rem;
}

.measure-wide {
  max-width: 46rem;
}

.measure-narrow {
  max-width: 27rem;
}

/* 5. Typography =========================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow::before {
  content: '';
  width: clamp(1.5rem, 3vw, 2.5rem);
  height: 1px;
  flex: none;
  background: var(--line-strong);
}

.on-dark .eyebrow,
.section--dark .eyebrow {
  color: var(--text-on-dark-muted);
}

.on-dark .eyebrow::before,
.section--dark .eyebrow::before {
  background: var(--line-on-dark);
}

.eyebrow--plain::before {
  display: none;
}

.display-xl,
.display-l,
.display-m,
.display-s {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

.display-xl {
  font-size: var(--fs-display-xl);
  line-height: 1.045;
  letter-spacing: -0.02em;
}

.display-l {
  font-size: var(--fs-display-l);
  line-height: 1.07;
  letter-spacing: -0.018em;
}

.display-m {
  font-size: var(--fs-display-m);
  line-height: 1.12;
}

.display-s {
  font-size: var(--fs-display-s);
  line-height: 1.24;
  letter-spacing: -0.008em;
}

.subhead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.125rem, 0.96rem + 0.82vw, 1.625rem);
  line-height: 1.34;
  letter-spacing: -0.006em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--text-muted);
  letter-spacing: -0.002em;
}

.on-dark .lead,
.section--dark .lead {
  color: var(--text-on-dark-muted);
}

.body-lg {
  font-size: var(--fs-body-lg);
  line-height: 1.78;
}

.muted {
  color: var(--text-muted);
}

.on-dark .muted,
.section--dark .muted {
  color: var(--text-on-dark-muted);
}

.faint {
  color: var(--text-faint);
}

.label {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.micro {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.index-num {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--olive);
  font-variant-numeric: tabular-nums;
}

.section--dark .index-num {
  color: var(--olive-pale);
}

/* 6. Buttons & links ====================================================== */

.btn {
  --btn-bg: var(--olive);
  --btn-fg: #fbfaf7;
  --btn-border: var(--olive);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  --btn-bg: var(--olive-deep);
  --btn-border: var(--olive-deep);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
  transform: translateX(0.3rem);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  --btn-bg: var(--ink);
  --btn-fg: var(--text-on-dark);
  --btn-border: var(--ink);
}

.on-dark .btn--ghost,
.section--dark .btn--ghost {
  --btn-fg: var(--text-on-dark);
  --btn-border: rgba(242, 239, 233, 0.42);
}

.on-dark .btn--ghost:hover,
.on-dark .btn--ghost:focus-visible,
.section--dark .btn--ghost:hover,
.section--dark .btn--ghost:focus-visible {
  --btn-bg: rgba(246, 244, 240, 0.96);
  --btn-fg: var(--ink);
  --btn-border: rgba(246, 244, 240, 0.96);
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.35rem;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--olive);
  border-bottom-color: var(--olive);
}

.on-dark .link-arrow,
.section--dark .link-arrow {
  border-bottom-color: var(--line-on-dark);
}

.on-dark .link-arrow:hover,
.on-dark .link-arrow:focus-visible,
.section--dark .link-arrow:hover,
.section--dark .link-arrow:focus-visible {
  color: var(--olive-pale);
  border-bottom-color: var(--olive-pale);
}

.link-arrow .btn__arrow {
  transition: transform 0.4s var(--ease);
}

.link-arrow:hover .btn__arrow,
.link-arrow:focus-visible .btn__arrow {
  transform: translateX(0.3rem);
}

.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
}

/* 7. Header & navigation ================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--text-on-dark);
  transition: background-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease),
    border-color 0.5s var(--ease), color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-block: 1rem;
}

.site-header.is-scrolled {
  background: rgba(18, 20, 23, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line-on-dark);
}

.site-header.is-scrolled .site-header__inner {
  min-height: 5rem;
}

/* light variant for pages with a light hero */
.site-header--light {
  color: var(--text);
}

.site-header--light.is-scrolled {
  background: rgba(246, 244, 240, 0.9);
  border-bottom-color: var(--line);
}

/* the open mobile panel is dark, so a light header would put dark text and a
   pale bar on top of it — both disappear against the panel */
.is-locked .site-header--light {
  color: var(--text-on-dark);
}

.is-locked .site-header--light.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.28rem;
  flex: none;
}

.wordmark__name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.98rem + 0.6vw, 1.55rem);
  line-height: 1;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.wordmark__sub {
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.4rem);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.45rem;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  color: inherit;
  opacity: 0.78;
  transition: opacity 0.35s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible {
  opacity: 1;
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

.nav__link[aria-current='page'] {
  opacity: 1;
}

.nav__link[aria-current='page']::after {
  transform: scaleX(1);
}

.site-header__meta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: none;
  font-size: var(--fs-small);
  opacity: 0.82;
}

.site-header__meta::before {
  content: '';
  width: 1px;
  height: 2rem;
  background: currentColor;
  opacity: 0.32;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  color: inherit;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-toggle__bars {
  position: relative;
  width: 1.75rem;
  height: 0.75rem;
  flex: none;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle__bars span:first-child {
  top: 0;
}

.nav-toggle__bars span:last-child {
  bottom: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:first-child {
  transform: translateY(0.37rem) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:last-child {
  transform: translateY(-0.37rem) rotate(-45deg);
}

/* mobile panel */
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  background: var(--ink);
  color: var(--text-on-dark);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}

.nav-panel[hidden] {
  display: none;
}

.nav-panel.is-open {
  visibility: visible;
  opacity: 1;
}

.nav-panel__list {
  display: flex;
  flex-direction: column;
}

.nav-panel__list li {
  border-top: 1px solid var(--line-on-dark);
}

.nav-panel__list li:last-child {
  border-bottom: 1px solid var(--line-on-dark);
}

.nav-panel__link {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 8vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.nav-panel__link span {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--olive-pale);
}

.nav-panel__link[aria-current='page'] {
  color: var(--olive-pale);
}

.nav-panel__foot {
  margin-top: auto;
  padding-top: 2.5rem;
  display: grid;
  gap: 0.4rem;
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}

/* 8. Hero (home) ========================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(1rem, 2.2vh, 2.5rem));
  padding-bottom: clamp(1rem, 2vh, 1.75rem);
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--text-on-dark);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../images/hero-poster.jpg');
  background-size: cover;
  background-position: center;
}

.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.hero__media video.is-ready {
  opacity: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(10, 13, 17, 0.82) 0%,
      rgba(10, 13, 17, 0.58) 34%,
      rgba(10, 13, 17, 0.16) 62%,
      rgba(10, 13, 17, 0.32) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 13, 17, 0.5) 0%,
      rgba(10, 13, 17, 0.12) 26%,
      rgba(10, 13, 17, 0.3) 66%,
      rgba(10, 13, 17, 0.74) 100%
    );
}

.hero__body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.hero__body > .shell {
  width: 100%;
}

.hero__content {
  max-width: 48rem;
  padding-block: clamp(1rem, 2.5vh, 2.5rem);
}

/* the hero headline is also height-aware so it never pushes the strip off-screen */
.hero__title {
  margin-top: clamp(1rem, 2.6vh, 1.6rem);
  font-size: min(var(--fs-display-xl), 7.4svh);
  color: #fff;
  text-shadow: 0 1px 30px rgba(8, 10, 13, 0.35);
}

.hero__subhead {
  margin-top: clamp(0.9rem, 2vh, 1.35rem);
  max-width: 27rem;
  color: rgba(255, 255, 255, 0.94);
}

.hero__text {
  margin-top: clamp(0.9rem, 2vh, 1.5rem);
  max-width: 25rem;
  color: var(--text-on-dark-muted);
}

.hero__actions {
  margin-top: clamp(1.5rem, 3.2vh, 2.25rem);
}

/* scroll cue */
.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(1.5rem, 3.4vh, 3rem);
  color: var(--text-on-dark-muted);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.35s var(--ease);
}

.hero__cue:hover,
.hero__cue:focus-visible {
  color: var(--text-on-dark);
}

.hero__cue-mouse {
  position: relative;
  width: 1.35rem;
  height: 2.15rem;
  flex: none;
  border: 1px solid var(--line-on-dark);
  border-radius: 0.7rem;
}

.hero__cue-mouse::before {
  content: '';
  position: absolute;
  top: 0.42rem;
  left: 50%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  background: currentColor;
  border-radius: 50%;
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 0.2;
    transform: translateY(0.7rem);
  }
}

/* right-hand index */
/* fixed section counter, right edge; follows the page rather than the hero */
.section-rail {
  position: fixed;
  top: 50%;
  /* tighter than the page gutter so the markers clear the text column */
  right: clamp(1rem, 2.4vw, 3rem);
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-end;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

/* the footer is the end of the page, so the counter steps aside there */
.section-rail.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.section-rail__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--text-on-dark-faint);
  /* the video brightens behind these markers, so they carry their own contrast */
  text-shadow: 0 1px 12px rgba(8, 10, 13, 0.6);
  transition: color 0.4s var(--ease), text-shadow 0.4s var(--ease);
}

.section-rail__item::after {
  content: '';
  width: 1rem;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.4s var(--ease), width 0.4s var(--ease);
}

.section-rail__item.is-active,
.section-rail__item:hover,
.section-rail__item:focus-visible {
  color: var(--text-on-dark);
}

.section-rail__item.is-active::after {
  opacity: 1;
  width: 1.5rem;
}

/* over a paper section the same markers have to read as ink */
.section-rail.is-on-light .section-rail__item {
  color: var(--text-faint);
  text-shadow: none;
}

.section-rail.is-on-light .section-rail__item.is-active,
.section-rail.is-on-light .section-rail__item:hover,
.section-rail.is-on-light .section-rail__item:focus-visible {
  color: var(--text);
}

/* three directions strip */
.hero__strip {
  flex: none;
  border-top: 1px solid var(--line-on-dark);
  padding-top: clamp(1.25rem, 2.4vh, 2.4rem);
}

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

.hero__direction {
  display: flex;
  gap: 1.1rem;
  padding-inline: clamp(1.25rem, 2.6vw, 2.75rem);
  border-left: 1px solid var(--line-on-dark);
}

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

.hero__direction:last-child {
  padding-right: 0;
}

.hero__direction-icon {
  flex: none;
  width: 1.85rem;
  height: 1.85rem;
  margin-top: 0.1rem;
  color: var(--text-on-dark);
  opacity: 0.86;
}

.hero__direction-icon svg {
  width: 100%;
  height: 100%;
}

.hero__direction h2 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.004em;
}

.hero__direction p {
  margin-top: 0.55rem;
  max-width: 17rem;
  font-size: var(--fs-small);
  line-height: 1.62;
  color: var(--text-on-dark-muted);
}

.hero__foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(1rem, 2.4vh, 2.4rem);
  padding-top: clamp(0.9rem, 1.4vh, 1.15rem);
  border-top: 1px solid var(--line-on-dark);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  text-shadow: 0 1px 12px rgba(8, 10, 13, 0.55);
}

.hero__foot-right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--text-on-dark-faint);
}

.hero__foot-right::before {
  content: '';
  width: clamp(2rem, 6vw, 5.5rem);
  height: 1px;
  background: var(--line-on-dark);
}

/* 9. Page heroes ========================================================== */

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(38rem, 78svh);
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 7rem));
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  background: var(--ink-deep);
  color: var(--text-on-dark);
  overflow: hidden;
  isolation: isolate;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}

/* same clip as the home hero; the still image stays behind it as the fallback */
.page-hero__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.page-hero__media video.is-ready {
  opacity: 1;
}

.page-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
      95deg,
      rgba(9, 12, 15, 0.86) 0%,
      rgba(9, 12, 15, 0.6) 45%,
      rgba(9, 12, 15, 0.28) 100%
    ),
    linear-gradient(to bottom, rgba(9, 12, 15, 0.55) 0%, rgba(9, 12, 15, 0.1) 40%, rgba(9, 12, 15, 0.6) 100%);
}

.page-hero__title {
  margin-top: 1.5rem;
  max-width: 22ch;
  color: #fff;
}

.page-hero__text {
  margin-top: 1.75rem;
  max-width: 34rem;
  color: var(--text-on-dark-muted);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
  padding-top: 1.15rem;
  border-top: 1px solid var(--line-on-dark);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
}

/* breadcrumb */
.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.6rem;
  opacity: 0.5;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.35s var(--ease);
}

.breadcrumb a:hover {
  color: var(--text);
}

.page-hero.on-dark .breadcrumb ol {
  color: var(--text-on-dark-faint);
}

.page-hero.on-dark .breadcrumb a {
  color: var(--text-on-dark-muted);
}

.page-hero.on-dark .breadcrumb a:hover {
  color: var(--text-on-dark);
}

/* light page hero (contact / legal) */
.page-hero--light {
  min-height: 0;
  background: var(--paper);
  color: var(--text);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero--light .page-hero__title {
  color: var(--text);
}

.page-hero--light .page-hero__text {
  color: var(--text-muted);
}

.page-hero--light .page-hero__meta {
  border-top-color: var(--line);
  color: var(--text-faint);
}

/* 10. Editorial sections ================================================== */

.section-head {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head__title {
  max-width: 26ch;
}

.section-head--stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

/* figures */
.figure {
  position: relative;
  overflow: hidden;
  background: var(--paper-dim);
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.4s var(--ease);
}

.figure--hover:hover img {
  scale: 1.035;
}

/* parallax-enabled media is pre-scaled so the shift never exposes an edge */
.figure img.is-parallax {
  scale: 1.07;
}

.figure--hover:hover img.is-parallax {
  scale: 1.1;
}

.is-parallax-bg {
  top: -7%;
  bottom: -7%;
}

.figure--portrait {
  aspect-ratio: 4 / 5;
}

.figure--landscape {
  aspect-ratio: 4 / 3;
}

.figure--wide {
  aspect-ratio: 16 / 9;
}

.figure__caption {
  margin-top: 0.9rem;
  font-size: var(--fs-small);
  color: var(--text-faint);
}

/* numbered editorial rows */
.rows {
  border-top: 1px solid var(--line);
}

.section--dark .rows {
  border-top-color: var(--line-on-dark);
}

.row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
  padding-block: clamp(1.75rem, 3.4vw, 2.85rem);
  border-bottom: 1px solid var(--line);
}

.section--dark .row {
  border-bottom-color: var(--line-on-dark);
}

.row__num {
  padding-top: 0.35rem;
}

.row__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.008em;
}

.row__text {
  color: var(--text-muted);
  max-width: 44rem;
}

.section--dark .row__text {
  color: var(--text-on-dark-muted);
}

/* criteria / approach list */
.spec-list {
  border-top: 1px solid var(--line);
}

.section--dark .spec-list {
  border-top-color: var(--line-on-dark);
}

.spec-list li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.section--dark .spec-list li {
  border-bottom-color: var(--line-on-dark);
}

.spec-list__label {
  font-size: var(--fs-body-lg);
  line-height: 1.5;
}

.spec-list--compact li {
  padding-block: 0.85rem;
}

/* tag / chip list */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.section--dark .tags li {
  border-color: var(--line-on-dark);
  color: var(--text-on-dark-muted);
}

/* statement band */
/* a typographic pause between the focus grid and the closing CTA: no image
   here, so the photographic band before the footer stands on its own */
.statement {
  position: relative;
  padding-block: clamp(5rem, 11vw, 10rem);
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.25rem, 5vw, 5.5rem);
  align-items: end;
}

.statement__title {
  max-width: 18ch;
  margin-top: 1.75rem;
}

.statement__text {
  max-width: 30rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  color: var(--text-muted);
}

/* two-column feature (image + text) */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}

.feature--reverse .feature__media {
  order: 2;
}

.feature__body {
  max-width: 34rem;
}

/* column that pins its last child to the bottom of a two-column band */
.split-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2.5rem, 5vw, 4rem);
  height: 100%;
}

/* stats-free "facts" row (no invented figures — descriptive only) */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px;
}

/* each cell draws its own rules into the 1px gaps, so a part-filled last row
   leaves no empty slab behind */
.facts > div {
  background: var(--paper);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  box-shadow: 0 0 0 1px var(--line);
}

/* in a narrow column the four home facts read better as a square block */
.split-column .facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section--warm .facts > div {
  background: var(--paper-warm);
}

.section--dark .facts > div {
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line-on-dark);
}

.facts dt {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.facts dd {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.32;
}

/* CTA band */
.cta {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
  isolation: isolate;
}

.cta__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}

.cta__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    92deg,
    rgba(11, 13, 12, 0.92) 0%,
    rgba(11, 13, 12, 0.72) 52%,
    rgba(11, 13, 12, 0.5) 100%
  );
}

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.cta__title {
  margin-top: 1.5rem;
  max-width: 20ch;
  color: #fff;
}

.cta__text {
  color: var(--text-on-dark-muted);
  max-width: 30rem;
}

/* contact details block */
.details {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.details__item {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1rem clamp(1.5rem, 3vw, 3rem);
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.details__key {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 0.2rem;
}

.details__value {
  font-size: var(--fs-body-lg);
  line-height: 1.6;
}

.details__value a {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.1rem;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.details__value a:hover,
.details__value a:focus-visible {
  color: var(--olive);
  border-bottom-color: var(--olive);
}

/* disclaimer / notice */
.notice {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line-strong);
  background: var(--paper-warm);
}

.section--dark .notice {
  border-color: var(--line-on-dark);
  background: rgba(246, 244, 240, 0.04);
}

.notice p {
  max-width: 46rem;
}

.notice__title {
  font-family: var(--font-display);
  font-size: var(--fs-display-s);
  line-height: 1.25;
  margin-bottom: 0.9rem;
}

/* prose (legal) */
.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-s);
  font-weight: 400;
  line-height: 1.25;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.prose h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-body-lg);
  font-weight: 500;
  margin-top: 2rem;
}

.prose p,
.prose ul {
  margin-top: 1.1rem;
  color: var(--text-muted);
}

.prose ul li {
  position: relative;
  padding-left: 1.35rem;
  margin-top: 0.5rem;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.6rem;
  height: 1px;
  background: var(--line-strong);
}

.prose a {
  border-bottom: 1px solid var(--line-strong);
}

.prose a:hover {
  color: var(--olive);
  border-bottom-color: var(--olive);
}

.prose strong {
  font-weight: 500;
  color: var(--text);
}

/* 11. Forms =============================================================== */

.form {
  display: grid;
  gap: 1.5rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

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

.field > label {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field .req {
  color: var(--olive);
}

.field input[type='text'],
.field input[type='email'],
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: var(--fs-body-lg);
  transition: border-color 0.35s var(--ease);
  appearance: none;
}

.field select {
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c5f64' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.15rem center;
  cursor: pointer;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.65;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--olive);
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 4px;
}

.field ::placeholder {
  color: var(--text-faint);
  opacity: 1;
}

.field__hint {
  font-size: var(--fs-small);
  color: var(--text-faint);
}

.field__error {
  font-size: var(--fs-small);
  color: #9a3b2c;
  min-height: 0;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-bottom-color: #9a3b2c;
}

/* file input */
.field--file input[type='file'] {
  font-size: var(--fs-small);
  color: var(--text-muted);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-strong);
  width: 100%;
}

.field--file input[type='file']::file-selector-button {
  margin-right: 1rem;
  padding: 0.55rem 1rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.field--file input[type='file']::file-selector-button:hover {
  background: var(--ink);
  color: var(--text-on-dark);
  border-color: var(--ink);
}

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding-top: 0.5rem;
}

.form__note {
  font-size: var(--fs-small);
  color: var(--text-faint);
  max-width: 26rem;
}

.form__status {
  grid-column: 1 / -1;
  display: none;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--line-strong);
  font-size: var(--fs-body);
}

.form__status.is-visible {
  display: block;
}

.form__status.is-success {
  border-color: var(--olive);
  background: rgba(110, 122, 69, 0.08);
}

.form__status.is-error {
  border-color: #9a3b2c;
  background: rgba(154, 59, 44, 0.06);
  color: #7d2f22;
}

.form.is-sending {
  opacity: 0.7;
  pointer-events: none;
}

.btn.is-loading .btn__label::after {
  content: '…';
}

/* honeypot */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 12. Footer ============================================================== */

.site-footer {
  background: var(--ink);
  color: var(--text-on-dark);
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: 2rem;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr));
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.site-footer .wordmark__name {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
}

.site-footer__tag {
  margin-top: 1.4rem;
  max-width: 22rem;
  color: var(--text-on-dark-muted);
  font-size: var(--fs-body);
}

.footer-col h2 {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
  margin-bottom: 1.2rem;
}

.footer-col li + li {
  margin-top: 0.65rem;
}

.footer-col a,
.footer-col p,
.footer-col address {
  font-size: var(--fs-body);
  color: var(--text-on-dark-muted);
  transition: color 0.35s var(--ease);
}

.footer-col address {
  line-height: 1.65;
  max-width: 18rem;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--text-on-dark);
}

.site-footer__disclaimer {
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line-on-dark);
}

.site-footer__disclaimer p {
  max-width: 58rem;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-on-dark-faint);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-on-dark);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
}

/* 13. Motion ============================================================== */

/* Reveals only hide content while the `motion` class is present on <html>.
   That class is added inline in the head and removed again if main.js does
   not confirm it started, so content can never be left invisible. */
.motion .reveal {
  opacity: 0;
  transform: translateY(1.35rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.motion .reveal.is-in {
  opacity: 1;
  transform: none;
}

.motion .reveal-line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.motion .reveal-line.is-in {
  transform: scaleX(1);
}

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

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

  .motion .reveal,
  .motion .reveal-line {
    opacity: 1;
    transform: none;
  }

  .hero__cue-mouse::before {
    opacity: 1;
    animation: none;
  }
}

/* 14. Responsive ========================================================== */

@media (max-width: 1200px) {
  /* not enough room beside the text column for a side rail */
  .section-rail {
    display: none;
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 3rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 5.5rem;
  }

  .nav,
  .site-header__meta {
    display: none;
  }

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

  .grid--split,
  .grid--split-even,
  .grid--media-split,
  .grid--aside,
  .feature,
  .cta__grid,
  .statement__grid,
  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature--reverse .feature__media {
    order: 0;
  }

  .section-head {
    align-items: start;
  }

  .row {
    grid-template-columns: 3.25rem minmax(0, 1fr);
  }

  .row__text {
    grid-column: 2;
  }

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

  .hero__direction {
    flex-direction: column;
    gap: 0.75rem;
    padding-inline: clamp(0.9rem, 2vw, 1.5rem);
  }

  .hero__direction p {
    font-size: var(--fs-small);
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 0;
    padding-bottom: 2.5rem;
  }

  /* text runs the full width here, so the scrim stops leaning to the left */
  .hero__scrim {
    background: linear-gradient(
      to bottom,
      rgba(10, 13, 17, 0.8) 0%,
      rgba(10, 13, 17, 0.66) 42%,
      rgba(10, 13, 17, 0.76) 76%,
      rgba(10, 13, 17, 0.9) 100%
    );
  }

  .hero__body {
    padding-block: clamp(2.5rem, 9vw, 5rem);
  }

  .hero__content {
    max-width: 34rem;
  }

  /* stacked and centred under the buttons: the icon reads as the gesture and
     the label sits beneath it */
  .hero__cue {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: fit-content;
    margin-inline: auto;
    text-align: center;
  }

  .hero__strip {
    padding-top: 0;
    border-top: 0;
  }

  .hero__directions {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__direction {
    flex-direction: row;
    padding: 1.35rem 0;
    border-left: 0;
    border-top: 1px solid var(--line-on-dark);
  }

  .hero__direction:first-child {
    border-top: 1px solid var(--line-on-dark);
  }

  .hero__direction p {
    max-width: 32rem;
  }

  .hero__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .hero__foot-right::before {
    display: none;
  }

  .details__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }

  .form {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
  }

  .page-hero {
    min-height: 0;
    padding-bottom: clamp(2.5rem, 8vw, 4rem);
  }
}

@media (max-width: 560px) {
  .btn {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form__foot .btn {
    width: 100%;
  }

  .spec-list li,
  .row {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .split-column .facts {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .site-header__inner {
    align-items: flex-start;
  }

  .nav-toggle {
    padding-top: 0.35rem;
  }

  .nav-toggle__text {
    display: none;
  }
}

@media (min-width: 1921px) {
  :root {
    --shell-max: 1760px;
  }
}
