/* ==========================================================================
   Rethinking Learning — Cédric Durantin
   Editorial, cinematic personal site. One continuous thread runs through it.
   ========================================================================== */

:root {
  --cream: #FDF0D5;
  --cream-dim: #F4E4C8;
  --blue-deep: #003049;
  --blue-deep-80: rgba(0, 48, 73, 0.8);
  --blue-deep-60: rgba(0, 48, 73, 0.6);
  --blue-deep-30: rgba(0, 48, 73, 0.3);
  --blue-deep-12: rgba(0, 48, 73, 0.12);
  --burgundy: #780000;
  --red: #C1121F;
  --blue-soft: #669BBC;
  --blue-soft-40: rgba(102, 155, 188, 0.4);
  --cream-70: rgba(253, 240, 213, 0.7);
  --cream-50: rgba(253, 240, 213, 0.5);
  --cream-25: rgba(253, 240, 213, 0.25);

  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --gutter: clamp(24px, 6vw, 96px);
  --content-max: 1180px;
  --measure: 620px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-slow: 1.1s;
  --dur-med: 0.6s;
  --dur-fast: 0.32s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

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

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--blue-deep);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--blue-deep);
}

p { max-width: var(--measure); }

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--burgundy);
}
.eyebrow .eyebrow-name {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--blue-deep-80);
  letter-spacing: 0.01em;
}
.on-dark .eyebrow .eyebrow-name { color: var(--cream-70); }
.on-dark .eyebrow { color: var(--blue-soft); }

/* ---------- Layout helpers ---------- */
.page-wrap {
  position: relative;
}

.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
  padding-block: clamp(72px, 12vw, 160px);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 76px);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  margin-top: 0.5em;
}

.section-lede {
  margin-top: 1.1em;
  color: var(--blue-deep-80);
  font-size: 1.05rem;
  max-width: 46em;
}

/* ---------- Thread layer ---------- */
.thread-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.thread-layer svg { overflow: visible; }

#thread-path,
#thread-path-invert {
  fill: none;
  stroke: var(--blue-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#thread-path-invert {
  stroke: var(--cream);
  opacity: 0.9;
}
#thread-fade {
  fill: none;
  stroke: url(#threadFadeGrad);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.thread-node-dot {
  fill: var(--burgundy);
  transform-origin: center;
  transform-box: fill-box;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out);
}
.thread-node-dot.is-visible {
  transform: scale(1);
  opacity: 1;
}
.thread-node-dot.on-dark { fill: var(--cream); }
.thread-node-dot.hub { fill: var(--red); }

.thread-node {
  position: absolute;
  width: 1px;
  height: 1px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background-color var(--dur-med) var(--ease-soft), box-shadow var(--dur-med) var(--ease-soft), border-color var(--dur-med) var(--ease-soft);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(-8px);
}
.site-header.is-ready {
  transition: background-color var(--dur-med) var(--ease-soft), box-shadow var(--dur-med) var(--ease-soft), border-color var(--dur-med) var(--ease-soft), opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  opacity: 1;
  transform: translateY(0);
}
.site-header.is-scrolled {
  background: var(--cream-70);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--blue-deep-12);
}

.brand-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--blue-deep);
  white-space: nowrap;
}
.brand-mark strong {
  font-style: normal;
  font-weight: 600;
  margin-left: 0.15em;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.site-nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--burgundy);
  transition: right var(--dur-fast) var(--ease-soft);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { right: 0; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-toggle button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
  color: var(--blue-deep-60);
  transition: color var(--dur-fast) var(--ease-soft);
}
.lang-toggle button[aria-pressed="true"] {
  color: var(--burgundy);
}
.lang-toggle .sep { color: var(--blue-deep-30); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--blue-deep-30);
  border-radius: 3px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--blue-deep);
  position: relative;
  transition: transform var(--dur-fast) var(--ease-soft), opacity var(--dur-fast) var(--ease-soft);
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 64px;
}
.hero-inner {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
}

.hero-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  color: var(--blue-deep);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out),
              font-size 0.9s var(--ease-soft), color 0.9s var(--ease-soft), margin 0.9s var(--ease-soft);
}
.hero-role {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--blue-deep-60);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  height: 1.4em;
}

.hero-brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  line-height: 1;
  color: var(--burgundy);
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 1.3s var(--ease-out), transform 1.3s var(--ease-out);
  margin-block: 0.15em 0.05em;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: var(--blue-deep-80);
  max-width: 24ch;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.hero-actions {
  margin-top: clamp(32px, 5vw, 52px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

/* stage reveal states, driven by JS classes on .hero */
.hero.stage-1 .hero-name { opacity: 1; transform: translateY(0); }

.hero.stage-2 .hero-name { opacity: 1; transform: translateY(0); }
.hero.stage-2 .hero-role { opacity: 1; transform: translateY(0); }

.hero.stage-3 .hero-name {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--blue-deep-60);
}
.hero.stage-3 .hero-role { opacity: 1; transform: translateY(0); }
.hero.stage-3 .hero-brand { opacity: 1; transform: translateY(0) scale(1); }

.hero.stage-4 .hero-name { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--blue-deep-60); }
.hero.stage-4 .hero-role { opacity: 1; transform: translateY(0); }
.hero.stage-4 .hero-brand { opacity: 1; transform: translateY(0) scale(1); }
.hero.stage-4 .hero-tagline { opacity: 1; transform: translateY(0); }

.hero.stage-5 .hero-name { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--blue-deep-60); }
.hero.stage-5 .hero-role { opacity: 1; transform: translateY(0); }
.hero.stage-5 .hero-brand { opacity: 1; transform: translateY(0) scale(1); }
.hero.stage-5 .hero-tagline { opacity: 1; transform: translateY(0); }
.hero.stage-5 .hero-actions { opacity: 1; transform: translateY(0); }

.hero-scroll-cue {
  margin-top: clamp(40px, 8vw, 88px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 1s var(--ease-out) 0.3s;
}
.hero.stage-5 .hero-scroll-cue { opacity: 0.6; }
.hero-scroll-cue span {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--blue-deep-60);
}
.hero-scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--blue-soft), transparent);
  animation: thread-pulse 2.6s ease-in-out infinite;
}
@keyframes thread-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid var(--blue-deep);
  transition: background-color var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft);
  cursor: pointer;
  background: transparent;
}
.btn-primary {
  background: var(--blue-deep);
  color: var(--cream);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-ghost {
  color: var(--blue-deep);
  border-color: var(--blue-deep-30);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--burgundy);
  color: var(--burgundy);
}
.on-dark .btn-ghost {
  color: var(--cream);
  border-color: var(--cream-25);
}
.on-dark .btn-ghost:hover { color: var(--blue-soft); border-color: var(--blue-soft); }

/* ---------- Statement (dark title card) ---------- */
.statement {
  background: var(--blue-deep);
  color: var(--cream);
  text-align: center;
  padding-block: clamp(120px, 18vw, 220px);
}
.statement-inner {
  max-width: 920px;
  margin-inline: auto;
}
.statement blockquote {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.28;
  font-weight: 400;
  color: var(--cream);
}
.statement blockquote em {
  font-style: italic;
  color: var(--blue-soft);
}
.statement .statement-sub {
  margin-top: clamp(24px, 4vw, 40px);
  font-size: 1.05rem;
  color: var(--cream-70);
  max-width: 46em;
  margin-inline: auto;
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Journey ---------- */
.intro-bio {
  display: flex;
  align-items: stretch;
  gap: clamp(28px, 5vw, 48px);
  max-width: 800px;
  margin-bottom: clamp(64px, 10vw, 120px);
}
.intro-portrait-wrap {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 1122 / 1402;
  min-width: 120px;
  max-width: 240px;
}
.intro-portrait-wrap::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
  background: rgba(0, 48, 73, 0.2);
  z-index: 0;
}
.intro-portrait {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 18px 32px -22px rgba(0, 48, 73, 0.28), 0 6px 14px -10px rgba(0, 48, 73, 0.16);
}
.intro-bio-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.intro-bio-text p {
  font-size: 1.05rem;
  color: var(--blue-deep-80);
}
.intro-bio-text p + p {
  margin-top: 0.85em;
}

.journey-intro {
  max-width: 720px;
}
.journey-intro h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

.journey-chapters {
  margin-top: clamp(40px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 12vw, 148px);
}

.chapter {
  position: relative;
  display: flex;
}
.chapter-card {
  max-width: 560px;
  width: 100%;
}
.chapter--left { justify-content: flex-start; }
.chapter--right { justify-content: flex-end; }
.chapter--right .chapter-card { margin-left: auto; }

.chapter-card h3 {
  margin-top: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.2;
}

.chapter-card p {
  margin-top: 0.9em;
  color: var(--blue-deep-80);
  font-size: 1.02rem;
  max-width: 46em;
}

.chapter-rest[hidden] { display: none; }

.read-more-btn {
  margin-top: 1.4em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 2px 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--burgundy);
  cursor: pointer;
  position: relative;
}
.read-more-btn::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--burgundy);
  transition: right var(--dur-fast) var(--ease-soft);
}
.read-more-btn:hover::after,
.read-more-btn:focus-visible::after { right: 0; }

.rm-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-fast) var(--ease-soft);
  margin-top: -2px;
}
.read-more-btn[aria-expanded="true"] .rm-chevron {
  transform: rotate(-135deg);
  margin-top: 2px;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.18;
}
.contact-intro p {
  margin-top: 1.2em;
  color: var(--blue-deep-80);
  font-size: 1.05rem;
}
.contact-direct {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-direct a {
  font-weight: 600;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--blue-deep-30);
  width: fit-content;
  padding-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}
.contact-direct a:hover { color: var(--burgundy); border-color: var(--burgundy); }

.form-field {
  margin-bottom: 26px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-deep-60);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--blue-deep-30);
  padding: 10px 2px;
  font-size: 1rem;
  color: var(--blue-deep);
  transition: border-color var(--dur-fast) var(--ease-soft);
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--blue-deep-30); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--burgundy);
  outline: none;
}
.form-field textarea { min-height: 120px; }

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--blue-deep-60);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-soft);
}
.form-note.is-visible { opacity: 1; }
.form-note.is-error { color: var(--red); }

.botcheck-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding-block: clamp(56px, 8vw, 96px) clamp(90px, 12vw, 140px);
  border-top: 1px solid var(--blue-deep-12);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-thread-line {
  font-family: var(--serif);
  font-style: italic;
  color: var(--burgundy);
  font-size: 1.1rem;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--blue-deep-60);
  transition: color var(--dur-fast) var(--ease-soft);
}
.footer-links a:hover { color: var(--burgundy); }
.footer-meta {
  margin-top: 40px;
  font-size: 0.78rem;
  color: var(--blue-deep-30);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Thread node anchor placement ---------- */
.thread-node--hero { left: 50%; bottom: 18px; transform: translate(-50%, 0); }
.thread-node--statement { left: 50%; bottom: 54px; transform: translate(-50%, 0); }
.chapter--left .thread-node { left: 66%; top: 38%; transform: translate(-50%, -50%); }
.chapter--right .thread-node { left: 34%; top: 38%; transform: translate(-50%, -50%); }
.thread-node--contact { left: 50%; top: -4px; transform: translate(-50%, 0); }
.thread-node--footer { left: 50%; bottom: -8px; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }

  .intro-bio { flex-direction: column; align-items: flex-start; gap: 36px; }
  .intro-portrait-wrap {
    flex: none;
    width: 100%;
    max-width: 260px;
  }
  .intro-portrait-wrap::before { top: 10px; left: 10px; right: -10px; bottom: -10px; }
  .intro-bio-text { justify-content: flex-start; }

  .nav-inner.mobile-open {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 50;
  }
  .nav-inner.mobile-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .nav-inner.mobile-open .site-nav a { font-size: 1.4rem; font-family: var(--serif); }

  .chapter--left, .chapter--right { justify-content: flex-start; }
  .chapter-card { max-width: 100%; }
  .chapter--right .chapter-card { margin-left: 0; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  #thread-path, #thread-path-invert, #thread-fade { stroke-width: 1.1; opacity: 0.6; }
  #thread-path-invert { opacity: 0.55; }

  .thread-node--hero,
  .thread-node--statement,
  .thread-node--contact,
  .thread-node--footer {
    left: 14px;
    right: auto;
    transform: translate(0, -50%);
  }
  .chapter--left .thread-node,
  .chapter--right .thread-node {
    /* .chapter sits inside the padded .wrap, so offset back out by the
       gutter to land at the same true distance from the screen edge as
       the other nodes (which sit directly on the unpadded <section>). */
    left: calc(14px - var(--gutter));
    right: auto;
    transform: translate(0, -50%);
  }
  .thread-node--hero { bottom: 18px; top: auto; transform: translate(0, 0); }
  .thread-node--statement { bottom: 40px; top: auto; transform: translate(0, 0); }
  .thread-node--footer { bottom: -8px; top: auto; transform: translate(0, 0); }

  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
