/* STEM PLUS homepage — production stylesheet. Values follow design_handoff/README.md exactly. */
:root {
  --ink: #0E1116; --text-2: #3A3F48; --text-3: #5C616A; --text-4: #6B6F76;
  --paper: #F5F6F8; --white: #FFFFFF; --rule: #E4E7EC; --rule-strong: #D7DBE1;
  --rule-on-dark: rgba(255, 255, 255, 0.08); --teal: #1F8A86; --orange: #EE7F2D; --orange-hover: #F29552;
  --on-dark-2: #B9BEC8; --asphalt: #0B0D12; --nav-bg: rgba(255, 255, 255, 0.92); --badge-bg: rgba(255, 255, 255, 0.94);
  --font-sans: Inter, "Noto Sans TC", Helvetica, sans-serif;
  --font-display: Montserrat, "Noto Sans TC", sans-serif;
  --fs-h1: 64px; --lh-h1: 1.02; --fs-h2: 40px; --fs-lead: 18px;
  --container: 1280px; --gutter: 32px; --nav-h: 68px; --section-y: 88px; --strip-y: 40px;
  --r-card: 12px; --r-control: 8px; --r-pill: 999px;
  --shadow-card-hover: 0 12px 32px rgba(14, 17, 22, 0.10);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1); --dur-fast: 300ms; --dur-std: 300ms; --dur-hover: 600ms; --dur-nav: 700ms; --dur-reveal: 900ms;
  --stagger: 90ms; --line-stagger: 110ms; --reveal-offset: 28px; --parallax-range: 32px;
  --glass-light-bg: rgba(255, 255, 255, 0.55); --glass-light-border: rgba(255, 255, 255, 0.7);
  --glass-light-shadow: 0 12px 40px rgba(14, 17, 22, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --glass-dark-bg: rgba(14, 17, 22, 0.42); --glass-dark-border: rgba(255, 255, 255, 0.14);
  --glass-dark-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --glass-blur: blur(24px) saturate(1.6); --pill-max: 1080px; --pill-h: 56px;
  --shadow-card-lift: 0 20px 48px rgba(14, 17, 22, 0.12);
  --focus-ring: 2px solid var(--teal);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a, button { transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--teal); }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--font-display); }
input, textarea, button, select { font-family: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.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; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
section[id], header[id] { scroll-margin-top: 84px; }

/* --- shared type roles --- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.eyebrow--orange { color: var(--orange); }
.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 800; letter-spacing: -0.04em; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-3); }
.body { font-size: 16px; line-height: 1.55; color: var(--text-3); }
.kind { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); }

/* --- buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; padding: 14px 22px; border-radius: var(--r-control); line-height: 1.2; border: 0; cursor: pointer; min-height: 44px; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform 100ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--teal); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: var(--orange-hover); color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--teal); color: var(--white); }
.btn--ghost-dark { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.3); }
.btn--ghost-dark:hover { border-color: var(--white); color: var(--white); }

/* --- the Sprout mark --- */
.mark { display: block; flex: 0 0 auto; }
.mark--32 { width: 32px; height: 32px; }
.mark--28 { width: 28px; height: 28px; }
.mark--120 { width: 120px; height: 120px; }
.mark--56 { width: 56px; height: 56px; }

/* --- nav (rests transparent over the dark hero -> floating glass pill) --- */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav-h); margin-bottom: calc(-1 * var(--nav-h)); background: transparent; color: var(--white);
  transition: background var(--dur-nav) var(--ease), padding var(--dur-nav) var(--ease), box-shadow var(--dur-nav) var(--ease); }
.nav__inner { max-width: var(--container); margin: 0 auto; height: var(--nav-h); padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--white); border: 1px solid transparent;
  transition: max-width var(--dur-nav) var(--ease), height var(--dur-nav) var(--ease), padding var(--dur-nav) var(--ease), border-radius var(--dur-nav) var(--ease), background var(--dur-nav) var(--ease), box-shadow var(--dur-nav) var(--ease), color 500ms var(--ease), border-color 500ms var(--ease); }
.nav__brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.nav__brand:hover { color: inherit; }
.nav__brand .mark rect:last-child { fill: currentColor; transition: fill 500ms var(--ease); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.04em; color: inherit; line-height: 1; }
.nav__links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; opacity: 0.85; }
.nav__links a { color: inherit; }
.nav__links a:hover { color: var(--teal); }
.nav__right { display: flex; align-items: center; gap: 12px; }
/* language toggle + CTA: dark-tone values by default (at rest the nav sits on the ink hero) */
.lang { display: flex; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--r-pill); padding: 3px; font-size: 12px; font-weight: 600; line-height: 1.2; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.lang__seg { display: inline-block; padding: 5px 10px; border-radius: var(--r-pill); color: rgba(255, 255, 255, 0.75); transition: background 350ms var(--ease), color 350ms var(--ease); }
.lang:hover .lang__seg:not(.is-active) { color: var(--teal); }
.lang__seg.is-active { background: var(--white); color: var(--ink); }
.nav__cta { font-size: 13px; font-weight: 600; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--r-control); line-height: 1.2; }
.nav__cta:hover { background: var(--teal); color: var(--white); }
.nav__menu { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: var(--r-control); color: inherit; cursor: pointer; padding: 0; order: 3; }
.nav__menu svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav__menu .icon-x { display: none; }
.nav.is-open .nav__menu .icon-menu { display: none; }
.nav.is-open .nav__menu .icon-x { display: block; }
/* light tone (pill over a light section) */
.nav.is-pill:not(.is-dark):not(.is-open) .nav__inner { color: var(--ink); }
.nav.is-pill:not(.is-dark):not(.is-open) .lang { background: var(--paper); border-color: var(--rule); }
.nav.is-pill:not(.is-dark):not(.is-open) .lang__seg { color: var(--text-3); }
.nav.is-pill:not(.is-dark):not(.is-open) .lang__seg.is-active { background: var(--ink); color: var(--white); }
.nav.is-pill:not(.is-dark):not(.is-open) .nav__cta { background: var(--ink); color: var(--white); }
.nav.is-pill:not(.is-dark):not(.is-open) .nav__cta:hover { background: var(--teal); color: var(--white); }
/* mobile sheet (dark) */
.nav__sheet { display: none; flex-direction: column; padding: 8px 20px 20px; background: var(--ink); color: var(--white); border-bottom: 1px solid var(--rule-on-dark); font-size: 18px; font-weight: 600; pointer-events: auto; }
.nav__sheet a { padding: 14px 0; border-bottom: 1px solid var(--rule-on-dark); color: var(--white); min-height: 44px; display: flex; align-items: center; }
.nav__sheet a:hover { color: var(--teal); }
.nav__sheet a:nth-last-of-type(2) { border-bottom: 0; }
.nav.is-open .nav__sheet { border-top: 1px solid var(--rule-on-dark); }
.nav__sheet .nav__sheet-cta { margin-top: 8px; justify-content: center; text-align: center; font-size: 15px; background: var(--white); color: var(--ink); padding: 14px 20px; border-radius: var(--r-control); border-bottom: 0; }
.nav__sheet .nav__sheet-cta:hover { background: var(--teal); color: var(--white); }
.nav.is-open .nav__sheet { display: flex; }
/* pill state (set by JS after 24px of scroll) */
.nav.is-pill { background: transparent; padding-top: 12px; pointer-events: none; }
.nav.is-pill .nav__inner { max-width: var(--pill-max); height: var(--pill-h); padding: 0 12px 0 24px; border-radius: var(--r-pill); pointer-events: auto;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  background: var(--glass-light-bg); border-color: var(--glass-light-border); box-shadow: var(--glass-light-shadow); }
.nav.is-pill.is-dark .nav__inner { background: var(--glass-dark-bg); border-color: var(--glass-dark-border); box-shadow: var(--glass-dark-shadow); color: var(--white); }
/* while the mobile sheet is open the bar is solid ink, full width, regardless of scroll */
.nav.is-open { background: var(--ink); padding: 0; pointer-events: auto; }
.nav.is-open .nav__inner { max-width: var(--container); height: var(--nav-h); padding: 0 var(--gutter); border-radius: 0; background: transparent; border-color: transparent; box-shadow: none; color: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav.is-open .lang { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
.nav.is-open .lang__seg { color: rgba(255, 255, 255, 0.75); }
.nav.is-open .lang__seg.is-active { background: var(--white); color: var(--ink); }
.nav.is-open .nav__cta { background: var(--white); color: var(--ink); }

/* --- hero (dark, animated Sprout ident behind the copy) --- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; padding-top: var(--nav-h); display: flex; flex-direction: column; }
.hero__anim { position: absolute; top: 0; bottom: 0; left: 34%; right: -34%; z-index: 0; pointer-events: none; background: var(--ink); overflow: hidden; }
.hero__anim svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(14, 17, 22, 0.96) 0%, rgba(14, 17, 22, 0.92) 50%, rgba(14, 17, 22, 0.55) 64%, rgba(14, 17, 22, 0) 80%); }
.hero__copy { position: relative; z-index: 2; width: 100%; padding-top: 96px; padding-bottom: 112px; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; max-width: 640px; }
.hero .h1 { color: var(--white); }
.hero__lead { max-width: 52ch; color: var(--on-dark-2); }
.hero__actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.tile img[data-parallax] { will-change: transform; transform: scale(1.1); }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--ink); }
.tile img, .tile .img-missing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--asphalt { background: var(--asphalt); }
.img-missing { background: var(--paper); }

/* --- numbers strip --- */
.numbers { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.numbers__grid { padding: var(--strip-y) var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--rule-strong); padding-left: 20px; }
.stat__n { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.stat__l { font-size: 13px; color: var(--text-3); }

/* --- products --- */
.products { padding: var(--section-y) var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.section-head__left { display: flex; flex-direction: column; gap: 12px; }
.products .h2 { max-width: 22ch; }
.products__body { max-width: 40ch; }
.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card); overflow: hidden; color: var(--ink); transition: box-shadow var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease); }
.card:hover { box-shadow: var(--shadow-card-lift); transform: translateY(-6px); color: var(--ink); }
.card__img { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--paper); }
.card__img img, .card__img .img-missing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__accent { position: absolute; left: 14px; top: 14px; width: 40px; height: 6px; border-radius: 3px; }
.card__body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card__desc { font-size: 14px; line-height: 1.55; color: var(--text-3); flex: 1; }
.card__cta { font-size: 13px; font-weight: 600; color: var(--teal); margin-top: 6px; }

/* --- expo band --- */
.expo { background: var(--ink); color: var(--white); }
.expo__inner { padding: var(--section-y) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.expo__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.expo__body { font-size: 16px; line-height: 1.6; color: var(--on-dark-2); max-width: 48ch; }
.expo__stats { display: flex; gap: 32px; margin: 8px 0; flex-wrap: wrap; }
.expo__stat { display: flex; flex-direction: column; gap: 4px; }
.expo__n { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; color: var(--white); }
.expo__l { font-size: 13px; color: var(--on-dark-2); }
.expo .tile { background: var(--ink); }

/* --- formula edge band --- */
.fe { padding: var(--section-y) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.fe__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.fe__body { font-size: 16px; line-height: 1.6; color: var(--text-3); max-width: 48ch; }

/* --- about --- */
.about { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.about__inner { padding: var(--section-y) var(--gutter); display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.about__left { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.about__left .mark { margin-top: 12px; }
.about__right { display: flex; flex-direction: column; gap: 24px; }
.about__lead { font-size: 18px; line-height: 1.6; color: var(--text-2); }
.about__body { font-size: 16px; line-height: 1.6; color: var(--text-3); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.value { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.value__bar { width: 20px; height: 4px; border-radius: 2px; background: var(--ink); }
.value__bar--teal { background: var(--teal); }
.value__bar--orange { background: var(--orange); }
.value__title { font-weight: 600; font-size: 15px; }
.value__body { font-size: 13px; color: var(--text-3); line-height: 1.5; }

/* --- news --- */
.news { padding: var(--section-y) var(--gutter); }
.news .section-head { margin-bottom: 32px; }
.news__all { font-size: 14px; font-weight: 600; color: var(--teal); white-space: nowrap; }
.news__all:hover { color: var(--ink); }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-item { display: flex; flex-direction: column; gap: 12px; color: var(--ink); padding-top: 20px; border-top: 1px solid var(--rule); }
a.news-item:hover { color: var(--teal); }
.news-item__meta { font-size: 12px; color: var(--text-4); }
.news-item__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; line-height: 1.3; text-wrap: pretty; }

/* --- partners --- */
.partners { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.partners__inner { padding: var(--strip-y) var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.partners__line { font-size: 13px; color: var(--text-4); }
.partners__right { display: flex; align-items: center; gap: 40px; }
.partners__parent { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text-2); letter-spacing: -0.01em; white-space: nowrap; }
.partners__logo img { height: 40px; width: auto; }

/* --- contact --- */
.contact { padding: var(--section-y) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.contact__body { font-size: 16px; line-height: 1.6; color: var(--text-3); max-width: 44ch; }
.contact__lines { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--text-2); margin-top: 8px; }
.contact__lines a { color: var(--ink); font-weight: 500; }
.contact__lines a:hover { color: var(--teal); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 28px; margin: 0; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; height: 44px; border: 1px solid var(--rule-strong); border-radius: var(--r-control); padding: 0 12px; font-size: 14px; background: var(--white); color: var(--ink); font-weight: 400; }
.form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230E1116' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form textarea { height: auto; padding: 12px; resize: vertical; min-height: 112px; line-height: 1.5; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: var(--focus-ring); outline-offset: 0; border-color: var(--teal); }
.form__submit { grid-column: 1 / -1; height: 48px; background: var(--ink); color: var(--white); border: 0; border-radius: var(--r-control); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color var(--dur-fast) var(--ease), transform 100ms var(--ease); }
.form__submit:hover { background: var(--teal); }
.form__submit:active { transform: scale(0.98); }
.form__submit:disabled { opacity: 0.7; cursor: progress; transform: none; }
.form__error { grid-column: 1 / -1; font-size: 13px; color: var(--text-3); margin-top: -4px; }
.form__error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sent { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 48px 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.sent[hidden] { display: none; }
.sent__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.sent__body { font-size: 14px; color: var(--text-3); }

/* --- footer --- */
.footer { background: var(--ink); color: var(--on-dark-2); }
.footer__grid { padding: 56px var(--gutter) 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__lockup { display: flex; align-items: center; gap: 12px; }
.footer__wordmark { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.04em; color: var(--white); line-height: 1; }
.footer__blurb { font-size: 13px; line-height: 1.6; max-width: 36ch; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__heading { color: var(--white); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.footer__col a { color: var(--on-dark-2); }
.footer__col a:hover { color: var(--white); }
.footer__col span { line-height: 1.5; }
.footer__bottom { padding: 20px var(--gutter) 32px; border-top: 1px solid var(--rule-on-dark); font-size: 12px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.footer__legal a { color: var(--on-dark-2); }
.footer__legal a:hover { color: var(--white); }

/* ================= motion (only active when JS has added html.js; inert under reduced motion) ================= */
html.js.motion [data-reveal]:not([data-reveal="stagger"]), html.js.motion [data-reveal="stagger"] > * { opacity: 0; transform: translateY(var(--reveal-offset)); }
html.js.motion .is-revealed[data-reveal]:not([data-reveal="stagger"]), html.js.motion [data-reveal="stagger"] > .is-revealed { opacity: 1; transform: none; transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); }
html.js.motion [data-lines] { opacity: 0; }
html.js.motion [data-reveal="stagger"] > [data-lines] { transform: none; transition: none; }
html.js.motion [data-lines].is-lines { opacity: 1; }
html.js.motion .line { display: block; overflow: hidden; padding: 0.15em 0; margin: -0.15em 0; }
html.js.motion .line > span { display: block; transform: translateY(110%); transition: transform var(--dur-reveal) var(--ease); }
html.js.motion .line.is-in > span { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tile img[data-parallax] { transform: none !important; }
}

/* ================= responsive ================= */
@media (max-width: 1199px) {
  :root { --gutter: 24px; --fs-h1: 56px; --fs-h2: 36px; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__text { max-width: 520px; }
  .hero__anim { left: 40%; right: -40%; }
  .hero__scrim { background: linear-gradient(90deg, rgba(14, 17, 22, 0.96) 0%, rgba(14, 17, 22, 0.92) 56%, rgba(14, 17, 22, 0.55) 70%, rgba(14, 17, 22, 0) 86%); }
}

@media (max-width: 899px) {
  :root { --fs-h1: 44px; --fs-h2: 32px; --section-y: 56px; }
  .hero__anim { position: relative; left: 0; right: auto; width: 100%; height: 62vw; max-height: 520px; order: 2; }
  .hero__scrim { display: none; }
  .hero__copy { padding: 56px 24px 24px; min-height: 0; order: 1; }
  .expo__inner, .fe, .about__inner, .contact { grid-template-columns: 1fr; gap: 40px; }
  .expo__inner .tile { order: 2; }
  .expo__text { order: 1; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .news .section-head { margin-bottom: 28px; }
  .news__grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about__left .mark--120 { width: 80px; height: 80px; }
  .nav__inner { padding: 0 20px; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
  .nav.is-pill { padding: 8px 12px 0; }
  .nav.is-pill .nav__inner { padding: 0 8px 0 16px; }
  .nav.is-open { padding: 0; }
  .nav.is-open .nav__inner { padding: 0 20px; }
}
@media (min-width: 900px) { .nav__sheet { display: none !important; } }

@media (max-width: 639px) {
  :root { --gutter: 20px; --fs-h1: 40px; --lh-h1: 1.05; --fs-h2: 30px; --fs-lead: 17px; }
  .products__grid, .numbers__grid, .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; text-align: center; }
  .hero__copy { padding-left: 20px; padding-right: 20px; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .form > * { grid-column: 1 / -1; }
  .partners__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .partners__right { flex-wrap: wrap; gap: 16px 24px; }
  .expo__stats { gap: 24px; }
}

@media (max-width: 379px) {
  .partners__parent { white-space: normal; }
}
