/* Femmewiz by Gabriela
   Palette: navy, black, ivory, white. Nothing else.
   Motion: only opacity and the translate, scale and rotate properties are animated,
   except the hero portrait wipe (clip-path) and the FAQ height, which were requested. */

:root {
  --navy: #0B1F4B;
  --navy-deep: #06132F; /* hover fill for navy buttons */
  --black: #0B0B0B;
  --ivory: #FAF8F3;
  --white: #FFFFFF;

  --ink-soft: rgba(11, 11, 11, 0.76);
  --hair: rgba(11, 31, 75, 0.16);
  --hair-light: rgba(255, 255, 255, 0.22);

  --serif: "Playfair Display", "Playfair Fallback", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 1120px;
  --gutter: 16px;
  --section: 64px;
  --nav-h: 68px;

  /* Motion tokens */
  --dur-fast: 600ms;
  --dur: 750ms;
  --dur-slow: 900ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --stagger: 80ms;
  --rise: 16px;

  color-scheme: light;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 80px; --rise: 24px; }
}

@media (min-width: 1024px) {
  :root { --section: 96px; --nav-h: 84px; }
}

/* Georgia scaled to Playfair's width, so headline line breaks hold when the web font swaps in */
@font-face {
  font-family: "Playfair Fallback";
  src: local("Georgia");
  size-adjust: 100.9%;
}

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

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--black);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body { font-size: 1.0625rem; }
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
figure { margin: 0; }
a { color: inherit; }
strong { font-weight: 600; }
[hidden] { display: none !important; }

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

.section--navy :focus-visible,
.card--navy :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  text-decoration: none;
  translate: 0 -200%;
}

.skip-link:focus { translate: none; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Type */
.label {
  margin: 0 0 20px;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.h2 {
  max-width: 18ch;
  margin-bottom: 40px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.h2--xl {
  max-width: 16ch;
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
}

.h2 em,
.hero-title em {
  font-style: italic;
}

/* Thin underline under the italic word of each section heading */
.h2 em {
  position: relative;
  display: inline-block;
}

.h2 em::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0;
  bottom: 0.06em;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}

.h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.lead {
  max-width: 36em;
  font-size: 1.0625rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .lead { font-size: 1.1875rem; }
}

.small-print {
  margin-top: 32px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* Links: underline draws in from the left on hover */
.link {
  position: relative;
  display: inline-block;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  scale: 0 1;
  transform-origin: left center;
  transition: scale 500ms var(--ease);
}

.link:hover::after,
.link:focus-visible::after {
  scale: 1 1;
}

/* Standalone links keep a faint resting underline so they read as links */
.link--static::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

/* Buttons */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  overflow: hidden;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy-deep);
  scale: 0 1;
  transform-origin: left center;
  transition: scale var(--dur-fast) var(--ease);
}

.btn-label {
  transition: translate 450ms var(--ease);
}

.btn-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -0.6em;
  font-size: 0.9rem;
  letter-spacing: 0;
  line-height: 1.2;
  opacity: 0;
  translate: -8px 0;
  transition: opacity 450ms var(--ease), translate 450ms var(--ease);
}

.btn:hover::before,
.btn:focus-visible::before { scale: 1 1; }

.btn:hover .btn-label,
.btn:focus-visible .btn-label { translate: -8px 0; }

.btn:hover .btn-arrow,
.btn:focus-visible .btn-arrow { opacity: 1; translate: 0 0; }

.btn--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}

.btn--light::before { background: var(--ivory); }

.btn--sm {
  min-height: 40px;
  padding: 0 26px;
  font-size: 0.6875rem;
}

.btn--sm .btn-arrow { right: 10px; }

/* Scroll progress line */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  height: 2px;
  pointer-events: none;
}

.js .progress { display: block; }

.progress-bar {
  display: block;
  height: 100%;
  background: var(--navy);
  scale: 0 1;
  transform-origin: left center;
}

/* Header and nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: translate 500ms var(--ease);
}

.site-header.is-hidden { translate: 0 -100%; }

.nav-bg {
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--hair);
  background: var(--ivory);
  opacity: 0;
  transition: opacity 400ms var(--ease), translate 500ms var(--ease);
}

.site-header.is-solid .nav-bg,
.site-header.menu-open .nav-bg {
  opacity: 1;
  translate: 0 -10px;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  transition: translate 500ms var(--ease);
}

.site-header.is-solid .nav,
.site-header.menu-open .nav { translate: 0 -5px; }

.logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.logo-img {
  width: auto;
  height: 42px;
}

.nav-toggle {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-links a {
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

@media (max-width: 899px) {
  .nav-links { display: none; }

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

  .js .nav-menu {
    position: absolute;
    top: calc(100% - 5px);
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 28px;
    border-bottom: 1px solid var(--hair);
    background: var(--ivory);
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: opacity 300ms var(--ease), translate 300ms var(--ease), visibility 0s linear 300ms;
  }

  .js .menu-open .nav-menu {
    opacity: 1;
    visibility: visible;
    translate: none;
    transition: opacity 300ms var(--ease), translate 300ms var(--ease);
  }

  .js .nav-links {
    display: block;
    margin-bottom: 20px;
  }

  .js .nav-links li { border-bottom: 1px solid var(--hair); }

  .js .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  .js .nav-links a::after { display: none; }
}

@media (min-width: 900px) {
  .logo-img { height: 54px; }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .nav-links {
    display: flex;
    gap: 32px;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 var(--section);
  background: var(--ivory);
}

.hero-grid {
  position: absolute;
  inset: -96px 0;
  pointer-events: none;
  opacity: 0.07;
}

.hero-grid-drift {
  position: absolute;
  inset: -48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='3' cy='3' r='1.4' fill='%230B1F4B'/%3E%3C/svg%3E");
  background-size: 24px 24px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-grid-drift { animation: grid-drift 48s linear infinite; }
}

@keyframes grid-drift {
  to { translate: 24px 24px; }
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 56px;
}

.hero-title {
  max-width: 13ch;
  margin-bottom: 28px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.45rem + 4.6vw, 4.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.06;
}

.hero-sub {
  max-width: 34em;
  margin-bottom: 36px;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.hero-portrait {
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  background: var(--white);
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero-sub { font-size: 1.1875rem; }
}

@media (min-width: 960px) {
  .hero { padding-top: calc(var(--nav-h) + 72px); }

  .hero-inner {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
  }

  .hero-portrait { justify-self: end; }
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--hair);
  background: var(--white);
}

.marquee-track {
  display: flex;
  width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 50s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}

@keyframes marquee {
  to { translate: -50% 0; }
}

.marquee-list {
  display: flex;
  flex-shrink: 0;
}

.marquee-list li {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 32px 18px 0;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-list li::after {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    width: auto;
    justify-content: center;
    padding: 12px var(--gutter);
  }

  .marquee-list {
    flex-shrink: 1;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0;
  }

  .marquee-list li { padding: 8px 16px 8px 0; gap: 16px; }
  .marquee-list--clone { display: none; }
}

/* Sections */
.section { padding-block: var(--section); }
.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy .h2 { color: var(--white); }

.split {
  display: grid;
  gap: 8px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }

  .split > .h2 { margin-bottom: 0; }
}

/* Problem rows */
.row {
  padding: 24px 0;
  border-top: 1px solid var(--hair);
}

.row:last-child { border-bottom: 1px solid var(--hair); }
.row p { color: var(--ink-soft); }

/* What I do */
.grid-4 {
  display: grid;
  column-gap: 48px;
}

.tile {
  padding: 28px 0 32px;
  border-top: 1px solid var(--hair);
}

.tile p { color: var(--ink-soft); }

.tile-index {
  display: block;
  margin-bottom: 16px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-style: italic;
}

@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* How it works */
.steps { position: relative; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 36px;
}

.step:last-child { padding-bottom: 0; }

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1;
}

.step-body { padding-top: 7px; }
.step-body p { color: var(--ink-soft); }

/* Line segment from each step to the next one */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: 8px;
  width: 1px;
  background: var(--navy);
  transform-origin: center top;
}

@media (min-width: 900px) {
  .steps-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 0;
  }

  .step-body { padding-top: 0; }

  .step:not(:last-child)::before {
    left: 48px;
    right: -24px;
    top: 20px;
    bottom: auto;
    width: auto;
    height: 1px;
    transform-origin: left center;
  }
}

/* Services */
.cards {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card-wrap { display: flex; }

.card {
  --card-hair: var(--hair);
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 40px 24px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--white);
  color: var(--black);
  transition: translate 500ms var(--ease);
}

.card--navy {
  --card-hair: var(--hair-light);
  background: var(--navy);
  color: var(--white);
}

@media (min-width: 768px) {
  .card { padding: 48px 40px; }
}

.card-shadow {
  position: absolute;
  inset: 0;
  box-shadow: 0 28px 56px -28px rgba(11, 31, 75, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease);
}

.card-edge {
  position: absolute;
  background: currentColor;
  opacity: 0.5;
  pointer-events: none;
  transition: scale 350ms var(--ease);
}

.card--outline .card-edge { background: var(--navy); }

.card-edge--t { top: 10px; left: 10px; right: 10px; height: 1px; scale: 0 1; transform-origin: left center; }
.card-edge--r { top: 10px; bottom: 10px; right: 10px; width: 1px; scale: 1 0; transform-origin: center top; transition-delay: 120ms; }
.card-edge--b { bottom: 10px; left: 10px; right: 10px; height: 1px; scale: 0 1; transform-origin: right center; transition-delay: 240ms; }
.card-edge--l { top: 10px; bottom: 10px; left: 10px; width: 1px; scale: 1 0; transform-origin: center bottom; transition-delay: 360ms; }

@media (hover: hover) and (pointer: fine) {
  .card:hover { translate: 0 -6px; }
  .card:hover .card-shadow { opacity: 1; }
  .card:hover .card-edge { scale: 1 1; }
}

.card-title {
  margin-bottom: 12px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  line-height: 1.15;
}

.card--navy .card-title { color: var(--white); }

.card-line { font-size: 1.0625rem; }

.card-label {
  margin: 24px 0 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card--outline .card-label { color: var(--navy); }

.includes li {
  position: relative;
  padding: 12px 0 12px 20px;
  border-top: 1px solid var(--card-hair);
  font-size: 0.9375rem;
}

.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 5px;
  height: 5px;
  background: currentColor;
}

.card-meta {
  display: grid;
  gap: 16px;
  margin: 8px 0 32px;
  padding-top: 20px;
  border-top: 1px solid var(--card-hair);
}

.card-meta dt {
  margin-bottom: 2px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-meta dd {
  margin: 0;
  font-size: 0.9375rem;
}


.card .btn {
  align-self: stretch;
  margin-top: auto;
}

@media (min-width: 768px) {
  .card .btn { align-self: flex-start; }
}

.cards-note {
  margin-top: 36px;
  color: var(--ink-soft);
}

/* Who it's for */
.who {
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .who {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }
}

.who-col {
  padding-top: 24px;
  border-top: 1px solid var(--navy);
}

.who-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 1.0625rem;
}

/* Why me */
.why {
  display: grid;
  gap: 48px;
}

.why-portrait {
  max-width: 420px;
  overflow: hidden;
}

.why-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.points { margin-top: 32px; }

.points li {
  padding: 16px 0;
  border-top: 1px solid var(--hair);
}

.points li:last-child { border-bottom: 1px solid var(--hair); }
.points strong { color: var(--navy); }

@media (min-width: 900px) {
  .why {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: center;
  }
}

/* Brands */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: 32px;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item:first-child { border-top: 1px solid var(--hair); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6.5px;
  width: 14px;
  height: 1px;
  background: var(--navy);
}

.faq-icon::after {
  rotate: 90deg;
  transition: rotate 400ms var(--ease);
}

.faq details[open]:not(.is-closing) .faq-icon::after { rotate: 0deg; }

.faq-answer p {
  max-width: 38em;
  padding-bottom: 24px;
  color: var(--ink-soft);
}

/* Final CTA */
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-inner .h2 { margin-inline: auto; }

/* Newsletter */
.newsletter {
  padding-block: 48px;
  border-top: 1px solid var(--hair);
  background: var(--ivory);
}

.newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}

.newsletter-title {
  margin-bottom: 4px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  line-height: 1.2;
}

.newsletter-title em { font-style: italic; }

.newsletter-text {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  padding: 64px 0 40px;
  background: var(--black);
  color: var(--white);
}

.footer-inner {
  display: grid;
  gap: 32px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.footer-brand address {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  font-style: normal;
  line-height: 1.6;
}

.footer-brand .logo-img { height: 44px; }

.social {
  display: flex;
  gap: 4px;
  margin-left: -10px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 300ms var(--ease), translate 300ms var(--ease);
}

.social-link:hover,
.social-link:focus-visible {
  opacity: 1;
  translate: 0 -2px;
}

.footer-small {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
}

.footer-small .link {
  color: var(--white);
  font-weight: 400;
}

@media (min-width: 768px) {
  .social { margin-left: 0; margin-right: -10px; }
}

/* Simple pages (thanks, privacy) */
.page {
  padding: calc(var(--nav-h) + 56px) 0 var(--section);
  background: var(--ivory);
}

.page-title {
  margin-bottom: 28px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);
  line-height: 1.08;
}

.page-title em { font-style: italic; }

.prose {
  max-width: 40em;
}

.prose h2 {
  margin: 48px 0 12px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.625rem;
  line-height: 1.25;
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
  list-style: square;
}

.prose li { margin-bottom: 6px; }

.prose a:not(.btn):not(.link) {
  color: var(--navy);
  text-underline-offset: 3px;
}

.page-back { margin-top: 40px; }

/* ----------------------------------------------------------
   Motion. Only active with the "motion" class on <html>, which
   is set by JavaScript when reduced motion is not requested.
   ---------------------------------------------------------- */

/* Hero headline: lines slide up from behind a mask, italic word last */
.motion .hero-title:not(.is-split) { opacity: 0; }

.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0 0.1em 0.14em;
  margin: 0 -0.1em -0.14em;
}

.hero-title .line-inner {
  display: block;
  translate: 0 110%;
  transition: translate var(--dur-slow) var(--ease);
  transition-delay: var(--d, 0ms);
}

.hero-title .em-land {
  display: inline-block;
  translate: 0 120%;
  transition: translate var(--dur-slow) var(--ease);
  transition-delay: var(--d, 0ms);
}

.hero.is-in .hero-title .line-inner,
.hero.is-in .hero-title .em-land { translate: none; }

.motion [data-hero-item] {
  opacity: 0;
  translate: 0 var(--rise);
  transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease);
  transition-delay: var(--d, 0ms);
}

.motion .hero.is-in [data-hero-item] {
  opacity: 1;
  translate: none;
}

.motion .hero-portrait {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1100ms var(--ease) 250ms;
}

.motion .hero-portrait img {
  scale: 1.06;
  transition: scale 1800ms var(--ease) 250ms;
}

.motion .hero.is-in .hero-portrait { clip-path: inset(0 0 0 0); }
.motion .hero.is-in .hero-portrait img { scale: 1; }

/* Scroll reveal */
.motion [data-reveal],
.motion [data-reveal-group] > * {
  opacity: 0;
  translate: 0 var(--rise);
  transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * var(--stagger) + var(--base, 0ms));
}

.motion [data-reveal].is-visible,
.motion [data-reveal-group].is-visible > * {
  opacity: 1;
  translate: none;
}

.motion .includes { --base: 250ms; }

/* Italic word underline draws after the heading reveals */
.motion .h2 em::after {
  scale: 0 1;
  transition: scale 700ms var(--ease) 500ms;
}

.motion .h2.is-visible em::after { scale: 1 1; }

/* How it works: segments draw in sequence, numbers appear as the line arrives */
.motion .step-num {
  opacity: 0;
  scale: 0.7;
  transition: opacity 500ms var(--ease), scale 500ms var(--ease);
  transition-delay: calc(var(--i, 0) * 450ms);
}

.motion .step-body {
  opacity: 0;
  translate: 0 var(--rise);
  transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 450ms + 100ms);
}

.motion .step:not(:last-child)::before {
  scale: 1 0;
  transition: scale 420ms cubic-bezier(0.4, 0, 0.6, 1);
  transition-delay: calc(var(--i, 0) * 450ms + 40ms);
}

.motion .steps.is-visible .step-num { opacity: 1; scale: 1; }
.motion .steps.is-visible .step-body { opacity: 1; translate: none; }
.motion .steps.is-visible .step:not(:last-child)::before { scale: 1 1; }

@media (min-width: 900px) {
  .motion .step:not(:last-child)::before { scale: 0 1; }
  .motion .steps.is-visible .step:not(:last-child)::before { scale: 1 1; }
}

/* Reduced motion: switch every effect off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
