/* ==========================================================================
   BOREST — main stylesheet
   Cinematic full-bleed hero under a deep-blue glass header; calm warm-white sections below.
   1. Fonts & tokens  2. Base  3. Header  4. Hero  5. Categories
   6. Buying guide    7. About  8. Footer  9. Motion
   ========================================================================== */

/* 1. Fonts & tokens */

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

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand blue — one hue (≈220°) taken from the logo (#6B7C9F).
     Primary is the logo blue, slightly deeper. */
  --blue-50: #F1F4F9;
  --blue-100: #E4EAF3;
  --blue-200: #C6D3E8;
  --blue-300: #A3B4D0;
  --blue-400: #8595B4;
  --blue-500: #6B7C9F;
  --blue-600: #5A6A8C;
  --blue-700: #46546F;
  --blue-800: #34405A;
  --blue-900: #252F43;
  --color-primary: var(--blue-600);
  /* Light-blue accent on dark surfaces (replaces the former sand). */
  --accent: var(--blue-200);
  --accent-light: var(--blue-100);
  --accent-line: var(--blue-400);
  /* RGB channels for translucent washes: rgba(var(--ink-rgb), .5) */
  --ink-rgb: 37, 47, 67;
  --glow-rgb: 107, 124, 159;
  --accent-rgb: 198, 211, 232;
  /* Neutrals */
  --color-warm-white: #FAF9F6;
  --paper: #EFEDE7;
  --color-text: #333333;
  --muted: #555851;
  --on-dark: #FAF9F6;
  --on-dark-muted: #CDD6E4;
  --on-dark-subtle: #97A5BF;
  /* Surfaces */
  --glass-dark: rgba(var(--ink-rgb), 0.72);
  --glass-line: rgba(255, 255, 255, 0.12);
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  /* Type & space */
  --font-base: "Vazirmatn", "Tahoma", sans-serif;
  --gutter: clamp(1.5rem, 6vw, 4rem);
  --section-space: clamp(88px, 12vw, 168px);
  --header-h: 72px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* 2. Base */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--blue-900); }

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

.skip-link {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--blue-900);
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline: 2px solid var(--accent); outline-offset: 3px; }
html[dir="ltr"] .skip-link { right: auto; left: 12px; }
main:focus { outline: none; }

.section-kicker { color: var(--color-primary); font-size: 13px; margin-bottom: 10px; }

/* 3. Header — logo stays on the left in both languages (approved), hence direction: ltr. */

.store-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
  padding: 10px var(--gutter);
  background: rgba(228, 234, 243, 0.92); /* --blue-100, lightly translucent */
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--blue-200);
}

.logo { display: inline-flex; }
.logo img { height: 2.25rem; width: auto; }

.store-nav, .language-switch { display: flex; align-items: center; }
.store-nav { gap: clamp(1rem, 2.6vw, 2.75rem); }
html[dir="rtl"] .store-nav { direction: rtl; }
html[dir="ltr"] .store-nav { direction: ltr; }

.store-nav a, .language-switch button {
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--blue-900);
  background: none;
  border: 0;
  min-height: 44px;
  white-space: nowrap;
}
.store-nav a {
  display: flex;
  align-items: center;
  opacity: .82;
  border-bottom: 1px solid transparent;
  transition: opacity .2s, border-color .2s;
}
.store-nav a:hover { opacity: 1; }
.store-nav a[aria-current] { opacity: 1; border-bottom-color: var(--color-primary); }

/* Active-section underline (CSS only). Each section exposes a view timeline;
   a nav link is "on" while its section crosses the middle of the viewport. */
@supports (animation-timeline: view()) {
  body { timeline-scope: --sec-home, --sec-products, --sec-guide, --sec-about; }
  .hero { view-timeline-name: --sec-home; }
  #categories { view-timeline-name: --sec-products; }
  #buying-guide { view-timeline-name: --sec-guide; }
  #about { view-timeline-name: --sec-about; }

  .store-nav a[aria-current] { opacity: .82; border-bottom-color: transparent; }
  .store-nav a {
    animation: nav-on linear none;
    animation-range: cover 50vh exit 50vh;
  }
  .store-nav a[aria-current] { animation-timeline: --sec-home; }
  .store-nav a[href="#categories"] { animation-timeline: --sec-products; }
  .store-nav a[href="#buying-guide"] { animation-timeline: --sec-guide; }
  /* Last section stays active to the bottom of the page. */
  .store-nav a[href="#about"] { animation-timeline: --sec-about; animation-range: cover 50vh exit 100%; }
}
@keyframes nav-on { from, to { opacity: 1; border-bottom-color: var(--color-primary); } }

/* Fallback: move the underline to the section chosen from the menu. */
@supports not (animation-timeline: view()) {
  html:has(:is(#categories, #buying-guide, #about):target) .store-nav a[aria-current] { opacity: .82; border-bottom-color: transparent; }
  html:has(#categories:target) .store-nav a[href="#categories"],
  html:has(#buying-guide:target) .store-nav a[href="#buying-guide"],
  html:has(#about:target) .store-nav a[href="#about"] { opacity: 1; border-bottom-color: var(--color-primary); }
}

.language-switch { direction: ltr; gap: 6px; }
.language-switch button { cursor: pointer; padding: 0 6px; }
.language-switch button[aria-pressed="true"] { color: var(--color-primary); font-weight: 600; }
.language-switch button[aria-pressed="false"] { color: var(--blue-700); }
.language-switch > span { color: var(--blue-400); }

.store-header :focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 2px; }

/* Tablet & mobile: header sits over the hero and scrolls away with it. */
@media (max-width: 900px) {
  html { scroll-padding-top: 16px; }
  .store-header { position: absolute; flex-wrap: wrap; row-gap: 0; padding-top: 12px; padding-bottom: 4px; }
  .store-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 0 22px; }
}
/* Hamburger menu (phones). CSS only: the toggle links to #menu and the nav
   opens while it is the :target. Choosing a section changes the target,
   so the menu closes by itself and the page scrolls to that section. */
.menu-toggle, .store-nav .menu-close { display: none; }
.menu-toggle svg, .menu-close svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

@media (max-width: 760px) {
  .store-header {
    flex-wrap: nowrap;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
    /* A backdrop-filter would trap the fixed menu inside the header box. */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--blue-100);
  }
  .logo { margin-inline-end: auto; }
  .logo img { height: 2rem; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-inline-end: -10px;
    color: var(--blue-900);
  }

  .store-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    order: 0;
    width: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 88px 24px 48px;
    background:
      radial-gradient(90% 60% at 80% 0%, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, 0) 70%),
      var(--blue-100);
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s var(--ease-out), visibility 0s linear .3s;
  }
  .store-nav:target { visibility: visible; opacity: 1; transition: opacity .3s var(--ease-out); }

  .store-nav a { font-size: 1.5rem; min-height: 56px; padding-inline: 4px; }
  .store-nav a + a:not(.menu-close) { margin-top: 2px; }
  .store-nav .menu-close {
    display: inline-flex;
    position: absolute;
    top: 12px;
    right: var(--gutter);
    width: 44px;
    height: 44px;
    min-height: 0;
    justify-content: center;
    opacity: 1;
    border: 0;
    animation: none;
  }
  .store-nav :focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
}
@media (max-width: 360px) {
  .logo img { height: 1.75rem; }
  .language-switch button { padding-inline: 3px; font-size: 0.8125rem; }
}

/* 4. Hero — full-bleed image, copy anchored bottom-start over a deep-blue wash. */

.hero {
  position: relative;
  min-height: max(600px, 100svh);
  overflow: hidden;
  background: var(--blue-800);
  color: var(--on-dark);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--ink-rgb), .45) 0%, rgba(var(--ink-rgb), 0) 22%),
    linear-gradient(0deg, rgba(var(--ink-rgb), .92) 0%, rgba(var(--ink-rgb), .5) 32%, rgba(var(--ink-rgb), .06) 60%, rgba(var(--ink-rgb), 0) 76%);
}

/* Extra wash on the side the copy sits (right in Persian, left in English). */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(270deg, rgba(var(--ink-rgb), .5) 0%, rgba(var(--ink-rgb), 0) 55%);
}
html[dir="ltr"] .hero::before { background: linear-gradient(90deg, rgba(var(--ink-rgb), .6) 0%, rgba(var(--ink-rgb), 0) 55%); }

.hero-inner {
  position: absolute;
  inset-inline: var(--gutter);
  bottom: clamp(48px, 9vh, 104px);
  max-width: 860px;
}

.hero-eyebrow { display: flex; align-items: center; gap: 14px; color: var(--accent); font-size: 15px; margin-bottom: 18px; }
.hero-eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--accent-line); flex: none; }

.hero h1 { font-size: clamp(34px, 4.6vw, 74px); font-weight: 400; line-height: 1.35; color: var(--on-dark); }
/* Keep the approved Persian slogan on one line (wraps only on narrow phones). */
html[lang="fa"] .hero h1 { white-space: nowrap; }
html[lang="en"] .hero h1 { font-size: clamp(38px, 5vw, 76px); line-height: 1.15; max-width: 17ch; }

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  text-decoration: none;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--blue-900); }
.btn-primary:hover { background: var(--accent-light); }
.btn-ghost {
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.hero-note { margin-top: 28px; color: var(--on-dark-muted); font-size: 14px; }
.hero-phones { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 24px; }
.hero-phones a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--accent-line);
  transition: color .2s;
}
.hero-phones a:hover { color: #fff; }

.hero-tag {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(48px, 9vh, 104px);
  padding: 10px 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  background: rgba(var(--ink-rgb), .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--on-dark);
  font-size: 12px;
  letter-spacing: .24em;
}
html[dir="ltr"] .hero-tag { left: auto; right: var(--gutter); }

@media (max-width: 1100px) {
  .hero-tag { display: none; }
}
@media (max-width: 900px) {
  .hero { min-height: max(560px, 92svh); }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(var(--ink-rgb), .7) 0%, rgba(var(--ink-rgb), 0) 26%),
      linear-gradient(0deg, rgba(var(--ink-rgb), .96) 0%, rgba(var(--ink-rgb), .7) 40%, rgba(var(--ink-rgb), .1) 70%, rgba(var(--ink-rgb), 0) 82%);
  }
  .hero-inner { bottom: 40px; }
}
@media (max-width: 480px) {
  html[lang="fa"] .hero h1 { white-space: normal; font-size: clamp(30px, 9vw, 38px); }
  .hero-eyebrow { font-size: 14px; }
  .hero-eyebrow::before { width: 24px; }
  .hero-actions { margin-top: 28px; }
  .btn { flex: 1 1 auto; padding: 0 20px; }
}

/* 5. Categories */

.categories { padding: 72px var(--gutter) 80px; scroll-margin-top: 24px; }
.categories-heading { max-width: 720px; margin-bottom: 36px; }
.categories-heading h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; color: var(--blue-700); margin-bottom: 12px; text-wrap: balance; }
.categories-heading > p:last-child { color: #65665e; line-height: 1.9; font-size: 15px; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; }
.category-card { min-width: 0; }
.category-art { display: grid; place-items: center; overflow: hidden; background: #efede7; aspect-ratio: 1.3; border-radius: 4px; }
.category-card:nth-child(2) .category-art { background: #e9edeb; }
.category-card:nth-child(3) .category-art { background: #eee9e2; }
.category-card:nth-child(4) .category-art { background: #e8ecf0; }
.category-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Hover: slow zoom, a soft blue veil and a thin inset frame (echoes the hero). */
.category-art { position: relative; transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out); }
.category-art img { transition: transform 1.1s var(--ease-out); }
.category-art::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(250, 247, 240, .85);
  border-radius: 2px;
  background: linear-gradient(0deg, rgba(var(--ink-rgb), .28) 0%, rgba(var(--ink-rgb), 0) 60%);
  box-shadow: 0 0 0 12px rgba(var(--ink-rgb), .08);
  opacity: 0;
  transition: opacity .45s var(--ease-out), inset .45s var(--ease-out);
  pointer-events: none;
}
.category-copy h3 { transition: color .3s var(--ease-out); }
.category-status { transition: border-color .3s var(--ease-out), color .3s var(--ease-out); }
@media (hover: hover) {
  .category-card:hover .category-art { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(var(--ink-rgb), .45); }
  .category-card:hover .category-art img { transform: scale(1.06); }
  .category-card:hover .category-art::after { opacity: 1; inset: 16px; }
  .category-card:hover .category-copy h3 { color: var(--color-primary); }
  .category-card:hover .category-status { border-top-color: var(--accent-line); color: var(--blue-700); }
}

.category-copy { padding: 20px 2px 0; }
.category-copy h3 { font-size: 20px; font-weight: 600; line-height: 1.6; color: var(--blue-700); }
.category-copy p { color: #65665e; font-size: 14px; margin-top: 6px; }
.category-status { display: inline-block; color: var(--muted); border-top: 1px solid var(--blue-100); margin-top: 20px; padding-top: 12px; font-size: 13px; }
.category-image-note { margin-top: 28px; font-size: 13px; color: #66675e; }

@media (max-width: 1000px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}
@media (max-width: 480px) {
  .categories { padding: 44px 24px; }
  .category-grid { grid-template-columns: 1fr; gap: 28px; }
  .category-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; }
  .category-art { aspect-ratio: 1; }
  .category-copy { padding: 0; }
  .category-copy h3 { font-size: 18px; }
  .category-status { margin-top: 10px; padding-top: 8px; }
}

/* Shared heading block for the guide section */
.kicker { color: var(--color-primary); font-size: 14px; margin-bottom: 14px; }
.section-head { max-width: 720px; }
.section-head h2 {
  color: var(--blue-700);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.5;
  text-wrap: balance;
}
.section-head > p:last-child { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 2; max-width: 56ch; }

/* 6. Buying guide — light-blue chapter. */

.guide {
  padding: var(--section-space) var(--gutter);
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 70%),
    var(--blue-200);
  color: var(--blue-900);
}
.guide .kicker { color: var(--blue-700); }
.guide .section-head h2 { color: var(--blue-900); }
.guide .section-head > p:last-child { color: var(--blue-800); }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
  list-style: none;
}
.guide-card {
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .45);
}
.guide-label {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--blue-400);
  border-radius: 999px;
  color: var(--blue-700);
  font-size: 13px;
}
.guide-card h3 { margin-top: 18px; font-size: 18px; font-weight: 600; line-height: 1.7; }
.guide-card p { margin-top: 12px; color: var(--blue-800); font-size: 15px; line-height: 2; }

.contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
  min-height: 76px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  background: var(--blue-800);
  color: var(--on-dark);
  font-size: 16px;
  text-decoration: none;
  transition: background-color .25s var(--ease-out);
}
.contact-bar:hover { background: var(--blue-900); }
.contact-bar:focus-visible { outline: 2px solid var(--blue-800); outline-offset: 4px; }
.contact-bar-end { display: inline-flex; align-items: center; gap: 16px; font-size: 20px; font-weight: 600; }
.icon-arrow { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.contact-bar:hover .icon-arrow { transform: translate(-3px, -3px); }
html[dir="ltr"] .icon-arrow { transform: scaleX(-1); }
html[dir="ltr"] .contact-bar:hover .icon-arrow { transform: scaleX(-1) translate(-3px, -3px); }

@media (max-width: 1100px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .guide-grid { grid-template-columns: 1fr; }
  .contact-bar { padding: 18px 22px; }
  .contact-bar-end { font-size: 18px; }
}

/* 7. About — brand statement. */

.statement {
  padding: var(--section-space) var(--gutter);
  text-align: center;
}
.statement h2 {
  max-width: 18ch;
  margin: 0 auto;
  color: var(--blue-700);
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1.45;
  text-wrap: balance;
}
.statement-copy { max-width: 60ch; margin: 32px auto 0; color: var(--muted); font-size: 17px; line-height: 2.1; }
.statement-copy p + p { margin-top: 10px; }

/* 8. Footer */

.brand-footer { background: var(--blue-900); color: var(--on-dark-muted); padding: 80px var(--gutter) 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 64px; }
.footer-brand img { width: 200px; height: auto; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 20px; font-size: 15px; }
.footer-col h2 { margin-bottom: 14px; color: var(--on-dark-subtle); font-size: 13px; font-weight: 400; }
.footer-col p { font-size: 14px; line-height: 1.9; }
.footer-col a { display: flex; align-items: center; width: fit-content; min-height: 44px; color: var(--on-dark); text-decoration: none; font-size: 15px; }
.footer-col a:hover, .footer-bottom a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-col .footer-phone { font-size: 18px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: var(--on-dark-subtle);
  font-size: 13px;
}
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-muted); text-decoration: none; }
.brand-footer :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .brand-footer { padding-top: 56px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand img { width: 170px; }
}

/* 9. Motion — CSS only; everything is fully visible without it. */

@media (prefers-reduced-motion: no-preference) {
  .hero-media { animation: hero-settle 2.4s var(--ease-out) both; }
  .hero-inner { animation: rise 1s .25s var(--ease-out) both; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }
  }
}

@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
