/* BorrowMyPup — styles. Mobile-first, no external dependencies. */

:root {
  --cream: #FBF6EE;
  --cream-2: #F4EADB;
  --sand: #EADBC4;
  --ink: #1E2230;
  --ink-2: #474B5A;
  --terracotta: #B5462A;      /* white text on this: ~5.3:1 */
  --terracotta-dark: #963822;
  --coral: #E8825F;           /* decorative only */
  --gold: #E9B44C;
  --gold-soft: #F7DFA7;
  --green: #2F6B4F;
  --error: #A3261B;
  --white: #FFFFFF;

  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgb(30 34 48 / .06), 0 10px 30px -12px rgb(30 34 48 / .22);
  --shadow-lg: 0 2px 4px rgb(30 34 48 / .06), 0 24px 50px -20px rgb(30 34 48 / .35);

  --font-sans: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

  --header-h: 64px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--font-sans); letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--terracotta-dark); text-underline-offset: .18em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  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;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .75rem 1.1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--terracotta); color: var(--white); box-shadow: 0 8px 20px -10px rgb(181 70 42 / .8); }
.btn-primary:hover { background: var(--terracotta-dark); color: var(--white); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 246 238 / .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgb(30 34 48 / .07);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: none; transition: transform .3s ease; }
.brand:hover .brand-mark { transform: rotate(-10deg); }
.brand-word {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.01em;
}
.brand-word span { color: var(--terracotta); font-style: italic; }

.site-nav ul {
  display: flex;
  gap: .25rem 1.25rem;
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: .4rem 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--coral); }

.nav-toggle { display: none; }

/* Without JS on small screens: nav wraps onto its own row. */
.site-nav { order: 3; width: 100%; padding-bottom: .5rem; overflow-x: auto; }
.header-cta { display: none; }

/* With JS on small screens: hamburger menu. */
.js .nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.js .site-nav { display: none; padding-bottom: 1rem; }
.js .site-nav.is-open { display: block; }
.js .site-nav ul { flex-direction: column; }
.js .site-nav a { padding: .7rem 0; font-size: 1.1rem; }

@media (min-width: 420px) {
  .header-cta { display: inline-flex; order: 1; }
  .js .nav-toggle { order: 2; }
}

@media (min-width: 900px) {
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; order: 0; width: auto; padding: 0; margin-right: 1rem; overflow: visible; }
  .js .site-nav ul { flex-direction: row; }
  .js .site-nav a { padding: .4rem 0; font-size: 1rem; }
  .header-cta { order: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(92svh, 860px);
  min-height: min(92vh, 860px);
  padding-block: 7rem 3rem;
  color: var(--white);
  overflow: hidden;
  background: #2b2a1c;
}
@supports (min-height: 1svh) { .hero { min-height: min(92svh, 860px); } }
.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(20 18 12 / .1) 0%, rgb(20 18 12 / .5) 30%, rgb(20 18 12 / .78) 55%, rgb(20 18 12 / .9) 100%);
}
.hero-content { max-width: 1200px; }
.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 1.4rem + 5.4vw, 5rem);
  line-height: 1.02;
  text-shadow: 0 2px 24px rgb(0 0 0 / .25);
}
.hero h1 em { color: var(--gold-soft); font-weight: 600; }
.hero-sub {
  max-width: 36rem;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  color: rgb(255 255 255 / .94);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-ctas .btn { flex: 1 1 15rem; }

@media (min-width: 768px) {
  .hero { align-items: center; padding-block: 6rem; }
  .hero-img { object-position: 70% 40%; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgb(20 18 12 / .82) 0%, rgb(20 18 12 / .55) 38%, rgb(20 18 12 / 0) 68%),
      linear-gradient(0deg, rgb(20 18 12 / .35) 0%, rgb(20 18 12 / 0) 40%);
  }
  .hero-ctas .btn { flex: 0 0 auto; }
}
@media (min-width: 1024px) {
  .hero { background: #1D2008; }
  .hero-img { left: auto; width: 74%; object-position: 50% 35%; }
  .hero-shade {
    background:
      linear-gradient(90deg, #1D2008 0%, #1D2008 26%, rgb(29 32 8 / .7) 38%, rgb(29 32 8 / 0) 56%),
      linear-gradient(0deg, rgb(20 18 12 / .3) 0%, rgb(20 18 12 / 0) 35%);
  }
  .hero h1 { font-size: clamp(3rem, 1.5rem + 3.6vw, 4.6rem); }
  .hero-content > * { max-width: 34rem; }
}

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
}
.eyebrow-light { color: var(--gold-soft); }
.eyebrow-gold { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 3rem + 5vw, 7.5rem); }
.section-tint { background: var(--cream-2); }
.section-ink { background: var(--ink); color: #EDEAE4; }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.lede { font-size: 1.15rem; }

/* ---------- Tabs / How it works ---------- */
.tab-list {
  display: inline-flex;
  gap: .25rem;
  padding: .3rem;
  margin-bottom: 2rem;
  border-radius: 999px;
  background: var(--cream-2);
  border: 1px solid var(--sand);
}
.tab {
  min-height: 44px;
  padding: .55rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }

/* Without JS: no tabs, both panels stacked with their own headings. */
html:not(.js) .tab-list { display: none; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .tab-panel + .tab-panel { margin-top: 4rem; }

.tab-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.tab-panel[hidden] { display: none; }
.tab-panel:focus-visible { outline-offset: 8px; }
.tab-panel.is-entering { animation: fade-up .45s ease both; }

.panel-photo { margin: 0; }
.panel-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
#panel-borrowers .panel-photo img { object-position: 50% 30%; }
#safety .split-photo img { object-position: 70% 50%; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.5rem; }
.steps li {
  position: relative;
  padding-left: 4rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -.1rem;
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
}
.steps h4 { margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--ink-2); }

@media (min-width: 900px) {
  .tab-panel { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ---------- Benefit cards ---------- */
.cards { display: grid; gap: 1.5rem; }
.card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card:nth-child(2) img { object-position: 50% 25%; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body p { margin: 0; color: var(--ink-2); }

@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } .cards .card:last-child { grid-column: 1 / -1; } .cards .card:last-child img { aspect-ratio: 21 / 9; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards .card:last-child { grid-column: auto; } .cards .card:last-child img { aspect-ratio: 4 / 3; } }

/* ---------- Mosaic gallery ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: .75rem;
  margin: 0; padding: 0;
  list-style: none;
}
.mosaic li { overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.mosaic li:hover img { transform: scale(1.04); }
.m-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; }

@media (min-width: 768px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
}
@media (min-width: 1280px) {
  .mosaic { grid-auto-rows: 230px; }
}

/* ---------- Split layout (safety, shelters) ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split-photo { margin: 0; }
.split-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; gap: 4.5rem; }
  .split-reverse { grid-template-columns: 6fr 5fr; }
  .split-reverse .split-photo { order: 2; }
  #safety .split-photo img { aspect-ratio: 4 / 5; }
}

.trust-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.trust-list li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: start; }
.trust-list svg {
  width: 2.75rem; height: 2.75rem;
  padding: .6rem;
  border-radius: 14px;
  background: rgb(233 180 76 / .16);
  fill: var(--gold);
}
.trust-list h3 { font-family: var(--font-sans); font-size: 1.1rem; margin-bottom: .2rem; }
.trust-list p { margin: 0; color: #CFCBC3; }
@media (min-width: 640px) { .trust-list { grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; } }

.badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Launch ---------- */
.launch { padding-top: 0; }
.launch-inner { position: relative; }
.launch-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 58% 40%;
  border-radius: var(--radius-lg);
}
.launch-card {
  position: relative;
  margin: -3rem 1rem 0;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.launch-card p:last-of-type { color: var(--ink-2); }
@media (min-width: 900px) {
  .launch-img { aspect-ratio: 21 / 9; object-position: 70% 40%; }
  .launch-card {
    position: absolute;
    left: calc(var(--gutter) + 2.5rem);
    bottom: -2.5rem;
    max-width: 30rem;
    margin: 0;
    padding: 2.25rem;
  }
  .launch { padding-bottom: clamp(6rem, 5rem + 4vw, 9rem); }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 2px rgb(30 34 48 / .05);
  border: 1px solid rgb(30 34 48 / .06);
}
.faq summary {
  position: relative;
  display: block;
  padding: 1.15rem 3.5rem 1.15rem 1.4rem;
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.4rem; top: 50%;
  width: .7rem; height: .7rem;
  border-right: 2.5px solid var(--terracotta);
  border-bottom: 2.5px solid var(--terracotta);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--terracotta-dark); }
.faq-body { padding: 0 1.4rem 1.2rem; color: var(--ink-2); }
.faq-body p { margin: 0; }
.faq details[open] .faq-body { animation: fade-in .3s ease both; }

/* ---------- Waitlist ---------- */
.waitlist {
  background:
    radial-gradient(circle at 10% 10%, rgb(233 180 76 / .28), transparent 40%),
    radial-gradient(circle at 90% 90%, rgb(232 130 95 / .22), transparent 45%),
    var(--cream);
}
.waitlist-inner { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
  .waitlist-inner { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
}
.waitlist-intro p:last-child { color: var(--ink-2); font-size: 1.1rem; }

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.waitlist-form { display: grid; gap: 1.2rem; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block;
  margin-bottom: .4rem;
  padding: 0;
  font-weight: 700;
}
.field input[type="text"], .field input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: .7rem 1rem;
  border: 2px solid #CFC4B3;
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  transition: border-color .2s ease, background-color .2s ease;
}
.field input:hover { border-color: #A99B86; }
.field input:focus-visible { outline: 3px solid rgb(181 70 42 / .35); outline-offset: 1px; border-color: var(--terracotta); background: var(--white); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.hint { margin: .35rem 0 0; font-size: .9rem; color: var(--ink-2); }

.role-options { display: grid; gap: .75rem; }
@media (min-width: 520px) { .role-options { grid-template-columns: 1fr 1fr; } }
.role-option {
  position: relative;
  display: flex !important;
  gap: .75rem;
  align-items: flex-start;
  margin: 0 !important;
  padding: 1rem;
  border: 2px solid #CFC4B3;
  border-radius: var(--radius-sm);
  background: var(--cream);
  cursor: pointer;
  font-weight: 400 !important;
  transition: border-color .2s ease, background-color .2s ease;
}
.role-option:hover { border-color: #A99B86; }
.role-option input {
  flex: none;
  width: 1.25rem; height: 1.25rem;
  margin: .15rem 0 0;
  accent-color: var(--terracotta);
}
.role-option strong { display: block; }
.role-option small { display: block; color: var(--ink-2); font-size: .9rem; line-height: 1.4; }
.role-option:has(input:checked) { border-color: var(--terracotta); background: #FFF4EE; }
.role-option:has(input:focus-visible) { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.role-option input:focus-visible { outline: none; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  margin: 0;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  background: #FCE9E6;
  color: var(--error);
  font-weight: 600;
}
.fineprint { margin: 0; font-size: .9rem; color: var(--ink-2); text-align: center; }

.form-success { text-align: center; padding: 1.5rem .5rem; }
.form-success svg { width: 64px; height: 64px; margin: 0 auto 1rem; }
.form-success:not([hidden]) { animation: pop .5s cubic-bezier(.2,.9,.3,1.3) both; }
.form-success p { color: var(--ink-2); margin: 0; }
.form-success:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 3.5rem; background: var(--ink); color: #CFCBC3; }
.footer-inner { display: grid; gap: 1rem; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-word span { color: var(--coral); }
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: var(--white); }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding-block: .3rem; }
.copyright { font-size: .9rem; }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem 2.5rem; }
  .copyright { grid-column: 1 / -1; }
}

/* ---------- Credits page ---------- */
.credits-page main { padding-block: 3rem 5rem; }
.credits-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.credits-list li {
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 2px rgb(30 34 48 / .06);
}
.credits-list p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.credits-list strong { color: var(--ink); }

/* ---------- Motion ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.hero-content > * { animation: fade-up .8s ease both; }
.hero-content > :nth-child(2) { animation-delay: .08s; }
.hero-content > :nth-child(3) { animation-delay: .16s; }
.hero-content > :nth-child(4) { animation-delay: .24s; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover, .mosaic li:hover img { transform: none; }
}
