/* ==========================================================================
   Riven Appliance Repair
   Palette comes straight from the logo: deep navy ground, off-white mark,
   one blue accent (#379AF1). The logo is white, so the site is dark-locked.

   Shape system: 4px radius on controls and panels. Photos, bento cells and
   the statement panel take one top-right chamfer that runs in the same
   direction as the diagonals in the logo's R. Nothing is pill-shaped.

   Z-index scale: --z-bar 90 (mobile action bar), --z-nav 100 (sticky nav).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-950: #050E1D;
  --navy-900: #08162B;
  --navy-850: #0B1C36;
  --navy-800: #102746;
  --navy-700: #183559;

  --ink: #F3F3F5;
  --ink-muted: #AEBACB;
  --ink-dim: #8392AA;

  --accent: #379AF1;
  --accent-hover: #5FB0F5;
  --accent-ink: #041226;

  --danger: #FF9484;

  --line: rgba(243, 243, 245, 0.12);
  --line-strong: rgba(243, 243, 245, 0.24);

  --radius: 4px;
  --cut: 28px;

  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-bar: 90;
  --z-nav: 100;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute;
  left: 16px; top: -64px;
  z-index: calc(var(--z-nav) + 1);
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.container--narrow { max-width: 860px; }

.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 30px; height: 30px; stroke-width: 1.5; }
.icon--xl { width: 52px; height: 52px; stroke-width: 1.25; }

.chamfer {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(243, 243, 245, 0.06); }
.btn--ghost .icon { transition: transform 0.25s var(--ease); }
.btn--ghost:hover .icon { transform: translateX(3px); }

.btn--sm { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(8, 22, 43, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--navy-900); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: auto; height: 38px; }
.brand__word { width: auto; height: 17px; }

.nav__links { display: none; align-items: center; gap: 32px; }
.nav__links a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__toggle .icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .icon--open { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }

.mobile-menu { border-top: 1px solid var(--line); background: var(--navy-900); }
.mobile-menu__links { display: grid; padding-block: 8px 20px; }
.mobile-menu__links a {
  padding: 16px 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-stretch: 112%;
  text-decoration: none;
}
.mobile-menu__links a + a { border-top: 1px solid var(--line); }

@media (max-width: 479px) {
  .nav__call span { display: none; }
  .nav__call { width: 42px; padding: 0; }
}
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__toggle, .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 104px); }

.hero__grid { display: grid; gap: 40px; }

.hero__title {
  font-size: clamp(2.375rem, 4.6vw, 3.75rem);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__sub {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__visual { position: relative; }
.hero__img {
  --cut: 44px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 22%;
  background: var(--navy-800);
}
/* The blue bar is the leg of the logo's R, reused as the brand device. */
.hero__leg {
  position: absolute;
  left: -14px; bottom: -22px;
  z-index: 1;
  width: 34%;
  aspect-ratio: 1 / 1;
  background: var(--accent);
  clip-path: polygon(0 0, 44% 0, 100% 100%, 56% 100%);
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
    min-height: calc(100dvh - var(--nav-h) - 176px);
  }
  .hero__img {
    aspect-ratio: 4 / 5;
    max-height: min(660px, calc(100dvh - var(--nav-h) - 140px));
  }
  .hero__leg { left: -30px; bottom: -30px; width: 38%; }
}

/* ---------- Promises strip ---------- */
.promises { border-block: 1px solid var(--line); background: var(--navy-850); }
.promises__list { display: grid; }
.promise { padding: 28px 0; }
.promise + .promise { border-top: 1px solid var(--line); }
.promise .icon { color: var(--accent); }
.promise__title {
  margin-top: 14px;
  font-size: 1.0625rem;
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1.25;
}
.promise p { margin-top: 6px; color: var(--ink-muted); font-size: 0.9375rem; line-height: 1.5; }

@media (min-width: 640px) {
  .promises__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .promise + .promise { border-top: 0; }
  .promise:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .promises__list { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .promise { padding: 40px 32px; }
  .promise:first-child { padding-left: 0; }
  .promise:last-child { padding-right: 0; }
  .promise:nth-child(n + 3) { border-top: 0; }
  .promise + .promise { border-left: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(64px, 7vw, 96px); overflow: hidden; }
.section--raised { background: var(--navy-850); border-block: 1px solid var(--line); }

.section__head { margin-bottom: clamp(32px, 4vw, 56px); }
.section__title {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  font-weight: 800;
  font-stretch: 116%;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section__lead { max-width: 38rem; margin-top: 16px; color: var(--ink-muted); }

.eyebrow {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; }

.cell {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.cell:focus-visible { outline-offset: -5px; }

.cell > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.cell--img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(5, 14, 29, 0.95) 0%, rgba(5, 14, 29, 0.72) 38%, rgba(5, 14, 29, 0.2) 100%);
}
.cell--img:hover > img { transform: scale(1.04); }

.cell--tint { background: linear-gradient(160deg, var(--navy-700), var(--navy-850) 70%); }
.cell--pattern {
  background:
    repeating-linear-gradient(45deg, rgba(55, 154, 241, 0.14) 0 2px, transparent 2px 18px),
    var(--navy-800);
}
.cell--accent { background: var(--accent); color: var(--accent-ink); }

.cell__body { display: grid; gap: 8px; padding: 28px 72px 28px 28px; }
.cell__body .icon { margin-bottom: 8px; color: var(--accent); }
.cell--accent .cell__body .icon { color: var(--accent-ink); }
.cell__title {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 800;
  font-stretch: 114%;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.cell__text { max-width: 30rem; color: var(--ink-muted); font-size: 0.9688rem; line-height: 1.5; }
.cell--img .cell__text { color: #C9D3E0; }
.cell--accent .cell__text { color: var(--accent-ink); }

.cell__go {
  position: absolute;
  right: 24px; bottom: 28px;
  width: 26px; height: 26px;
  transition: transform 0.35s var(--ease);
}
.cell:hover .cell__go { transform: translate(3px, -3px); }

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cell { min-height: 300px; }
  .cell--a { grid-column: span 7; min-height: 400px; }
  .cell--b { grid-column: span 5; min-height: 400px; }
  .cell--c { grid-column: span 4; }
  .cell--d { grid-column: span 8; }
  .cell--e { grid-column: span 7; }
  .cell--f { grid-column: span 5; }
}

/* ---------- Process ---------- */
.process { display: grid; gap: 40px; }
.process__img {
  --cut: 40px;
  width: 100%;
  margin-top: 32px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--navy-800);
}

.step { padding-block: 32px; }
.step + .step { border-top: 1px solid var(--line); }
.step:first-child { padding-top: 0; }
.step__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 800;
  font-stretch: 114%;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.step__title::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  background: var(--accent);
  clip-path: polygon(0 0, 44% 0, 100% 100%, 56% 100%);
}
.step p { max-width: 34rem; margin-top: 12px; padding-left: 38px; color: var(--ink-muted); }

@media (min-width: 960px) {
  .process { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
  .process__aside { position: sticky; top: calc(var(--nav-h) + 32px); }
  .process__img { aspect-ratio: 4 / 5; max-height: 60dvh; }
  .step { padding-block: 44px; }
}

/* ---------- Brands marquee ---------- */
.marquee {
  display: flex;
  overflow: hidden;
  padding-block: 8px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; flex: none; align-items: center; min-width: 100%; }
.marquee__track span {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.875rem, 4.6vw, 3.5rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track span::after {
  content: "";
  width: 0.5em; height: 0.62em;
  margin-inline: 0.7em;
  background: var(--accent);
  clip-path: polygon(0 0, 44% 0, 100% 100%, 56% 100%);
}

@keyframes marquee { to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 42s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: clamp(20px, 4vw, 40px); }
  .marquee__track { flex-wrap: wrap; row-gap: 8px; min-width: 0; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .marquee__track span { font-size: 1.5rem; }
}

/* ---------- Pricing statement ---------- */
.statement {
  --cut: 64px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(36px, 6vw, 88px);
  background: var(--navy-800);
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.statement::after {
  content: "";
  position: absolute;
  right: -4%; bottom: -18%;
  z-index: -1;
  width: min(46%, 520px);
  aspect-ratio: 1 / 1;
  background: url("../img/logo-mark.png") center / contain no-repeat;
  opacity: 0.07;
}
.statement__title {
  max-width: 20ch;
  margin-top: 20px;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 800;
  font-stretch: 116%;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.statement__text { max-width: 36rem; margin-top: 24px; color: var(--ink-muted); font-size: 1.125rem; }
.statement .btn { margin-top: 36px; }

/* ---------- FAQ ---------- */
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon {
  width: 24px; height: 24px;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}
.faq__item summary:hover { color: var(--accent-hover); }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item p { max-width: 42rem; padding-bottom: 28px; color: var(--ink-muted); }

/* ---------- Book ---------- */
.book { display: grid; gap: 40px; }

.contact-list { display: grid; gap: 4px; margin-top: 32px; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.contact-list .icon { width: 22px; height: 22px; color: var(--accent); }
.contact-list a { font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--accent-hover); }
.contact-list li:first-child a { font-size: 1.5rem; font-stretch: 112%; letter-spacing: -0.01em; }
.contact-list span { color: var(--ink-muted); }

.book__panel {
  padding: clamp(24px, 3.4vw, 44px);
  background: var(--navy-850);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 560px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--navy-950);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
    linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field select option { background: var(--navy-900); color: var(--ink); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(243, 243, 245, 0.42); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(55, 154, 241, 0.35);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__help { color: var(--ink-muted); font-size: 0.875rem; line-height: 1.45; }
.field__error { color: var(--danger); font-size: 0.875rem; font-weight: 600; line-height: 1.45; }

.form__status {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  color: var(--danger);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.form__status[hidden] { display: none; }
.form__status .icon { margin-top: 2px; }
.form__status a { color: var(--ink); font-weight: 700; }

.btn__spinner { display: none; }
.form.is-sending .btn__spinner { display: block; animation: spin 0.8s linear infinite; }
.form.is-sending button[type="submit"] { opacity: 0.75; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { display: grid; gap: 12px; justify-items: start; padding-block: 24px; }
.form-success[hidden] { display: none; }
.form-success .icon { color: var(--accent); }
.form-success h3 { font-size: 1.625rem; font-weight: 800; font-stretch: 114%; letter-spacing: -0.015em; }
.form-success p { color: var(--ink-muted); }
.form-success:focus { outline: none; }

@media (min-width: 960px) {
  .book { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 40px; padding-block: 64px 48px; }
.footer__brand img { width: 176px; }
.footer__col { display: grid; gap: 10px; align-content: start; justify-items: start; color: var(--ink-muted); font-size: 0.9688rem; }
.footer__heading {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  font-stretch: 112%;
}
.footer__col a { text-decoration: none; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__legal {
  display: grid;
  gap: 8px;
  padding-bottom: 32px;
  color: var(--ink-dim);
  font-size: 0.8438rem;
  line-height: 1.5;
}
.footer__legal::before { content: ""; height: 1px; margin-bottom: 16px; background: var(--line); }
.footer__legal p:last-child { max-width: 46rem; }

@media (min-width: 800px) {
  .footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); }
}

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-bar);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--navy-950);
  border-top: 1px solid var(--line);
}
.action-bar .btn { min-height: 48px; gap: 8px; padding: 0 10px; font-size: 0.875rem; font-stretch: 90%; }
/* With JS the bar steps aside while the hero buttons or the booking form are on screen. */
.js .action-bar { transition: transform 0.4s var(--ease), visibility 0s linear 0.4s; }
.js .action-bar:not(.is-visible) { transform: translateY(100%); visibility: hidden; }
.js .action-bar.is-visible { transition-delay: 0s; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .js .action-bar { transition: none; }
}
body { padding-bottom: 69px; }

@media (min-width: 768px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Motion (all of it sits behind the reduced-motion check) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Page load: copy, then the photo, so the eye lands on the headline first. */
  .load-in {
    animation: load-in 0.9s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 120ms + 60ms);
  }
  @keyframes load-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }

  /* Scroll reveal: sections arrive as the reader reaches them. Only hidden when JS is running. */
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
