/* =========================================================================
   Eagle Reborn — main stylesheet
   Premium / engineered. Marine navy base, aqua-teal "light on metal" accents.
   Mobile-first, accessible, motion respects prefers-reduced-motion.
   ========================================================================= */

/* ---- Fonts (self-hosted variable woff2) -------------------------------- */
@font-face {
	font-family: "Space Grotesk Variable";
	src: url("../fonts/space-grotesk-variable.woff2") format("woff2");
	font-weight: 300 700;
	font-display: swap;
	font-style: normal;
}
@font-face {
	font-family: "Inter Variable";
	src: url("../fonts/inter-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	font-style: normal;
}

/* ---- Design tokens ----------------------------------------------------- */
:root {
	--navy-deep: #021A29;
	--navy: #04263A;
	--navy-2: #073246;
	--teal-deep: #006B7F;
	--aqua: #00B4D8;
	--ice: #90E0EF;
	--aluminium: #C9D2D6;
	--steel: #8A99A0;
	--ink: #0B1B24;
	--paper: #F4F7F8;
	--white: #FFFFFF;

	--grad-metal: linear-gradient(135deg, #006B7F 0%, #00B4D8 55%, #90E0EF 100%);
	--grad-marine: linear-gradient(160deg, #04263A 0%, #021A29 70%);
	--grad-text: linear-gradient(100deg, #00B4D8 0%, #90E0EF 100%);

	--font-display: "Space Grotesk Variable", "Space Grotesk", system-ui, sans-serif;
	--font-body: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--container: 1200px;
	--gutter: clamp(1.1rem, 4vw, 2.5rem);
	--radius: 16px;
	--radius-sm: 10px;

	--shadow-sm: 0 1px 2px rgba(2, 26, 41, .08), 0 4px 14px rgba(2, 26, 41, .06);
	--shadow-md: 0 10px 30px rgba(2, 26, 41, .12), 0 2px 8px rgba(2, 26, 41, .08);
	--shadow-glow: 0 14px 50px rgba(0, 180, 216, .30);

	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Base -------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--white);
	line-height: 1.6;
	font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.02em; font-weight: 600; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
strong { font-weight: 600; }

.er-container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }

/* ---- Accessibility helpers -------------------------------------------- */
.er-visually-hidden, .er-hp {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.er-skip {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--navy); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.er-skip:focus { left: 0; }
:where(a, button, input, [tabindex]):focus-visible {
	outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 4px;
}

/* ---- Buttons ----------------------------------------------------------- */
.er-btn {
	--btn-bg: var(--grad-metal);
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
	padding: .95rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
	text-decoration: none; white-space: nowrap; line-height: 1;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.er-btn--primary { background-image: var(--btn-bg); color: var(--navy-deep); box-shadow: var(--shadow-glow); }
.er-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 60px rgba(0, 180, 216, .42); }
.er-btn--primary:active { transform: translateY(0); }
.er-btn--ghost {
	background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, .35);
}
.er-btn--ghost:hover { border-color: var(--aqua); color: var(--ice); }
.er-header.is-stuck .er-btn--ghost { color: var(--navy); border-color: rgba(4, 38, 58, .25); }
.er-btn--amazon { background-image: linear-gradient(135deg, #FF9900 0%, #FFB84D 100%); color: #14110b; box-shadow: 0 14px 40px rgba(255, 153, 0, .3); }
.er-btn__spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; display: none; }
.er-btn.is-loading .er-btn__spinner { display: inline-block; animation: er-spin .7s linear infinite; }
.er-btn.is-loading .er-btn__label { opacity: .6; }
@keyframes er-spin { to { transform: rotate(360deg); } }

/* ---- Eyebrow / section heads ------------------------------------------ */
.er-eyebrow {
	font-family: var(--font-display); font-weight: 500; font-size: .8rem;
	letter-spacing: .16em; text-transform: uppercase; color: var(--teal-deep);
	margin: 0 0 1rem;
}
.er-eyebrow--light { color: var(--ice); }
.er-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.er-strike { position: relative; color: var(--steel); }
.er-strike::after {
	content: ""; position: absolute; left: -2%; right: -2%; top: 55%; height: .09em;
	background: var(--aqua); transform: scaleX(0); transform-origin: left; border-radius: 2px;
	transition: transform .6s var(--ease) .2s;
}
.is-revealed .er-strike::after, .er-hero__copy.is-revealed .er-strike::after { transform: scaleX(1); }

.er-section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.er-section__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.er-section__title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
.er-section__intro { font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); color: #3a4d57; }

/* ---- Header ------------------------------------------------------------ */
:root { --er-header-h: 66px; }
.er-header {
	position: sticky; top: 0; z-index: 100; padding: .85rem 0;
	transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.er-header.is-stuck { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); box-shadow: var(--shadow-sm); }

/* Home: slide the navy hero up behind the transparent header so the white
   brand/nav read against navy (not the white body background). */
.home .er-main { margin-top: calc(-1 * var(--er-header-h)); }

/* Interior pages have no navy hero — give the header its "stuck" look at rest
   so the brand/nav stay legible on the white page. */
body:not(.home) .er-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(14px); box-shadow: var(--shadow-sm); }
body:not(.home) .er-brand__name { color: var(--navy); }
body:not(.home) .er-nav a { color: var(--navy); }
body:not(.home) .er-header__cta.er-btn--ghost { color: var(--navy); border-color: rgba(4, 38, 58, .25); }
.er-header__inner { display: flex; align-items: center; gap: 1.5rem; }
.er-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.er-brand__mark { height: 38px; width: auto; }
.er-brand__name {
	font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em;
	color: var(--white); line-height: 1;
}
.er-header.is-stuck .er-brand__name { color: var(--navy); }
.er-nav { display: none; margin-left: auto; gap: 1.8rem; }
.er-nav a { font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: rgba(255, 255, 255, .85); text-decoration: none; }
.er-header.is-stuck .er-nav a { color: var(--navy); }
.er-nav a:hover { color: var(--aqua); }
.er-header__cta { margin-left: auto; padding: .6rem 1.2rem; font-size: .9rem; }
.er-nav + .er-header__cta { margin-left: 0; }
@media (min-width: 880px) { .er-nav { display: flex; } }

/* ---- Hero -------------------------------------------------------------- */
.er-hero { position: relative; color: var(--white); padding: calc(var(--er-header-h) + clamp(2rem, 5vw, 4rem)) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.er-hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--grad-marine); }
.er-hero__bg::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(120% 80% at 85% 8%, rgba(0, 180, 216, .35), transparent 55%),
		radial-gradient(90% 70% at 0% 100%, rgba(0, 107, 127, .45), transparent 60%);
}
.er-hero__sheen {
	position: absolute; top: -40%; left: -30%; width: 60%; height: 180%;
	background: linear-gradient(105deg, transparent 30%, rgba(144, 224, 239, .14) 50%, transparent 70%);
	transform: skewX(-12deg); animation: er-sheen 9s var(--ease) infinite;
}
@keyframes er-sheen { 0%, 70% { transform: translateX(0) skewX(-12deg); } 100% { transform: translateX(320%) skewX(-12deg); } }
.er-hero__inner { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center; padding-top: clamp(1rem, 4vw, 2.5rem); }
@media (min-width: 920px) { .er-hero__inner { grid-template-columns: 1.05fr .95fr; } }

.er-hero__title { font-size: clamp(2.3rem, 1.4rem + 4.4vw, 4.4rem); font-weight: 600; margin-bottom: 1.1rem; }
.er-hero__lede { font-size: clamp(1.05rem, 1rem + .55vw, 1.3rem); color: rgba(233, 245, 249, .9); max-width: 34rem; margin-bottom: 1.8rem; }
.er-hero__trust { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .55rem .7rem; }
.er-hero__trust li {
	font-family: var(--font-display); font-size: .82rem; font-weight: 500; letter-spacing: -.01em;
	padding: .42rem .85rem; border-radius: 999px; border: 1px solid rgba(144, 224, 239, .28);
	color: var(--ice); background: rgba(0, 180, 216, .07);
}

.er-hero__media { position: relative; display: flex; justify-content: center; }
.er-hero__img { width: min(100%, 560px); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); border-radius: var(--radius); }
.er-hero__badge {
	position: absolute; bottom: 8%; left: 4%; font-family: var(--font-display); font-weight: 600;
	font-size: .85rem; padding: .55rem 1rem; border-radius: 999px; color: var(--navy-deep);
	background: var(--grad-metal); box-shadow: var(--shadow-glow); transform: rotate(-3deg);
}
.er-hero__scroll { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.er-hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: var(--ice); border-radius: 2px; transform: translateX(-50%); animation: er-scroll 1.8s var(--ease) infinite; }
@keyframes er-scroll { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80%, 100% { opacity: 0; top: 22px; } }

/* ---- Signup form ------------------------------------------------------- */
.er-signup { max-width: 32rem; }
.er-cta--founding .er-signup { max-width: 36rem; margin-inline: auto; }
.er-signup__label { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 .7rem; }
.er-cta--hero .er-signup__label { display: none; }
.er-signup__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.er-signup__input {
	flex: 1 1 16rem; min-width: 0; font-family: var(--font-body); font-size: 1.02rem;
	padding: .95rem 1.1rem; border-radius: 999px; border: 1.5px solid rgba(144, 224, 239, .4);
	background: rgba(255, 255, 255, .96); color: var(--ink);
}
.er-cta--founding .er-signup__input { border-color: rgba(4, 38, 58, .18); }
.er-signup__input::placeholder { color: #6b7d86; }
.er-signup__submit { flex: 0 0 auto; }
.er-consent { display: flex; gap: .6rem; align-items: flex-start; margin-top: .9rem; font-size: .82rem; line-height: 1.45; color: rgba(233, 245, 249, .82); }
.er-cta--founding .er-consent { color: #4a5d66; justify-content: center; }
.er-consent input { margin-top: .15rem; width: 1.05rem; height: 1.05rem; accent-color: var(--aqua); flex: 0 0 auto; }
.er-consent a { color: var(--ice); }
.er-cta--founding .er-consent a { color: var(--teal-deep); }
.er-signup__feedback { margin: .8rem 0 0; font-size: .9rem; font-weight: 500; min-height: 1.2em; }
.er-signup__feedback.is-ok { color: #19c39c; }
.er-signup__feedback.is-error { color: #ff8da1; }
.er-cta--founding .er-signup__feedback.is-error { color: #d83a57; }
.er-signup.is-done .er-signup__row, .er-signup.is-done .er-consent { display: none; }

/* ---- Cards: Why aluminium --------------------------------------------- */
.er-why { background: var(--paper); }
.er-why__compare { margin: 0 0 1.6rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--white); }
.er-why__compare img { width: 100%; max-height: 480px; object-fit: cover; }
.er-why__compare figcaption { font-family: var(--font-display); font-size: .92rem; text-align: center; padding: .9rem 1rem; color: #43565f; }
.er-why__compare figcaption span { color: var(--teal-deep); font-weight: 600; }
.er-why__compare .er-why__compare-plastic { color: var(--steel); }
.er-why__grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .er-why__grid { grid-template-columns: repeat(3, 1fr); } }
.er-card {
	background: var(--white); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm);
	border: 1px solid rgba(4, 38, 58, .06); overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.er-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.er-card__media { margin: -1.4rem -1.4rem 1.2rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); position: relative; }
.er-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.er-card:hover .er-card__media img { transform: scale(1.05); }
.er-card__title { font-size: 1.3rem; }
.er-card__body { color: #43565f; font-size: .98rem; margin-bottom: 1rem; }
.er-card__vs { font-size: .85rem; color: #7d8c93; border-top: 1px dashed rgba(4, 38, 58, .14); padding-top: .8rem; margin: 0; }
.er-card__vs span { color: var(--teal-deep); font-weight: 600; }

/* ---- What's inside: stages -------------------------------------------- */
.er-inside { background: var(--navy); color: var(--white); }
.er-inside .er-eyebrow { color: var(--aqua); }
.er-inside .er-section__intro { color: rgba(233, 245, 249, .78); }
.er-inside__figure { margin: clamp(1.6rem, 4vw, 2.6rem) 0; text-align: center; }
.er-inside__img {
	width: min(100%, 460px); height: auto; border-radius: var(--radius);
	border: 1px solid rgba(144, 224, 239, .2);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.er-inside__cap { margin: .9rem auto 0; max-width: 30rem; font-size: .92rem; color: rgba(233, 245, 249, .7); }
.er-stages { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: stage; }
@media (min-width: 680px) { .er-stages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .er-stages { grid-template-columns: repeat(4, 1fr); } }
.er-stage {
	position: relative; padding: 1.5rem 1.3rem; border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
	border: 1px solid rgba(144, 224, 239, .16);
}
.er-stage::before { content: ""; position: absolute; left: 0; top: 1.5rem; bottom: 1.5rem; width: 3px; border-radius: 3px; background: var(--grad-metal); }
.er-stage__n { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--aqua); letter-spacing: .08em; }
.er-stage__name { font-size: 1.2rem; margin: .5rem 0 .2rem; }
.er-stage__role { font-family: var(--font-display); font-weight: 500; font-size: .9rem; color: var(--ice); margin: 0 0 .6rem; }
.er-stage__desc { font-size: .92rem; color: rgba(233, 245, 249, .72); margin: 0; }

.er-spec { list-style: none; padding: 0; margin: clamp(2rem, 5vw, 3.5rem) 0 0; display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: rgba(144, 224, 239, .14); border: 1px solid rgba(144, 224, 239, .14); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .er-spec { grid-template-columns: repeat(4, 1fr); } }
.er-spec li { background: var(--navy); padding: 1.4rem 1rem; text-align: center; }
.er-spec strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); color: var(--white); }
.er-spec span { font-size: .82rem; color: var(--ice); letter-spacing: .02em; }

/* ---- Australian water -------------------------------------------------- */
.er-water__split { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .er-water__split { grid-template-columns: 1fr 1fr; } }
.er-water__col { padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: var(--radius); border: 1px solid rgba(4, 38, 58, .08); }
.er-water__col--chlorine { background: linear-gradient(165deg, #eef6f8, #ffffff); }
.er-water__col--chloramine { background: linear-gradient(165deg, var(--navy), var(--navy-2)); color: var(--white); }
.er-water__kicker { font-family: var(--font-display); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; color: var(--teal-deep); margin: 0 0 .6rem; }
.er-water__col--chloramine .er-water__kicker { color: var(--aqua); }
.er-water__role { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem); margin: 0 0 .6rem; }
.er-water__col--chlorine .er-water__role { color: var(--navy); }
.er-water__desc { color: #43565f; margin-bottom: 1.3rem; }
.er-water__col--chloramine .er-water__desc { color: rgba(233, 245, 249, .8); }
.er-water__cities { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.er-water__cities li { font-family: var(--font-display); font-weight: 500; font-size: .85rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid rgba(4, 38, 58, .15); }
.er-water__col--chloramine .er-water__cities li { border-color: rgba(144, 224, 239, .3); color: var(--ice); }
.er-water__media { margin: clamp(1.6rem, 4vw, 2.6rem) 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.er-water__media img { width: 100%; max-height: 460px; object-fit: cover; }
.er-water__media figcaption { font-size: .85rem; color: #6b7d86; text-align: center; padding: .9rem; background: var(--paper); }

/* ---- Founding CTA ------------------------------------------------------ */
.er-founding { position: relative; color: var(--white); text-align: center; overflow: hidden; }
.er-founding__bg { position: absolute; inset: 0; z-index: -1; background: var(--grad-marine); }
.er-founding__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% -10%, rgba(0, 180, 216, .4), transparent 60%); }
.er-founding__inner { max-width: 46rem; margin-inline: auto; }
.er-founding__title { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
.er-founding__lede { font-size: clamp(1.05rem, 1rem + .5vw, 1.25rem); color: rgba(233, 245, 249, .85); margin-bottom: 2rem; }
.er-founding__form { margin-bottom: 1rem; }
.er-founding__fineprint, .er-founding__form + .er-founding__fineprint { font-size: .82rem; color: rgba(233, 245, 249, .6); }

/* ---- Footer ------------------------------------------------------------ */
.er-footer { background: var(--navy-deep); color: rgba(233, 245, 249, .72); padding: clamp(2.5rem, 6vw, 4rem) 0 2.5rem; }
.er-footer__inner { display: grid; gap: 1.8rem; }
@media (min-width: 760px) { .er-footer__inner { grid-template-columns: 1fr auto; align-items: center; } }
.er-footer__brandline { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .8rem; }
.er-footer__mark { height: 34px; width: auto; }
.er-footer__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--white); line-height: 1; }
.er-footer__tag { font-family: var(--font-display); font-size: .9rem; color: var(--ice); margin: 0; }
.er-footer__meta { text-align: left; }
@media (min-width: 760px) { .er-footer__meta { text-align: right; } }
.er-footer__legal { font-size: .9rem; margin: 0 0 .4rem; }
.er-footer__links { font-size: .9rem; margin: 0 0 .4rem; }
.er-footer__links a { color: var(--ice); }
.er-footer__copy { font-size: .8rem; color: rgba(233, 245, 249, .4); margin: 0; }

/* ---- Consent banner ---------------------------------------------------- */
.er-consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: rgba(2, 26, 41, .96); backdrop-filter: blur(10px); color: var(--white); box-shadow: 0 -8px 30px rgba(0, 0, 0, .3); transform: translateY(110%); transition: transform .4s var(--ease); }
.er-consent-banner.is-visible { transform: translateY(0); }
.er-consent-banner__inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 0; }
.er-consent-banner__text { margin: 0; font-size: .88rem; max-width: 46rem; }
.er-consent-banner__text a { color: var(--ice); }
.er-consent-banner__actions { display: flex; gap: .6rem; }
.er-consent-banner__actions .er-btn { padding: .65rem 1.3rem; font-size: .9rem; }

/* ---- Generic pages / prose (Privacy Policy) ---------------------------- */
.er-page { padding: clamp(2.5rem, 7vw, 5rem) 0; max-width: 760px; }
.er-page__title { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.er-prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.er-prose ul { padding-left: 1.2rem; }
.er-prose li { margin-bottom: .4rem; }

/* ---- Scroll reveal ----------------------------------------------------- */
[data-er-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-er-reveal].is-revealed { opacity: 1; transform: none; }
[data-er-stagger] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	[data-er-reveal] { opacity: 1; transform: none; }
	.er-hero__sheen, .er-hero__scroll span { display: none; }
}

/* ---- Full-bleed hero slider (front page) ------------------------------- */
.er-hero { min-height: clamp(580px, 90vh, 860px); display: flex; align-items: center; }
.er-hero__scroll { display: none; }                 /* dots own the bottom here */
.er-hero__inner { display: block; position: relative; z-index: 2; } /* overlay copy ABOVE the slider stage */
.er-hero__copy { max-width: 38rem; }

.er-slider__stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.er-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s var(--ease); }
.er-slide.is-active { opacity: 1; }
.er-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; display: block; }
.er-slide.is-active img { animation: er-hero-kb 8s var(--ease) forwards; }
@keyframes er-hero-kb { from { transform: scale(1.04); } to { transform: scale(1.11); } }

/* legibility scrim: dark on the left under the copy, clear over the product */
.er-slider__stage::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(2, 22, 34, .94) 0%, rgba(2, 22, 34, .72) 34%, rgba(2, 22, 34, .22) 68%, rgba(2, 22, 34, .05) 100%),
		linear-gradient(180deg, rgba(2, 22, 34, .25), transparent 22%, transparent 78%, rgba(2, 22, 34, .35));
}

.er-slider__dots { position: absolute; z-index: 5; bottom: 1.3rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.er-slider__dot { width: 9px; height: 9px; border-radius: 999px; border: none; padding: 0; cursor: pointer; background: rgba(255, 255, 255, .45); transition: .25s var(--ease); }
.er-slider__dot.is-active { background: var(--ice); width: 26px; }
.er-slider__dot:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

.er-hero .er-hero__badge { position: absolute; z-index: 4; right: 4%; bottom: 8%; left: auto; }

@media (max-width: 820px) {
	.er-hero__copy { max-width: none; }
	.er-slide img { object-position: 65% center; }
	.er-slider__stage::after { background: linear-gradient(180deg, rgba(2, 22, 34, .55), rgba(2, 22, 34, .82)); }
	.er-hero .er-hero__badge { display: none; }
}
