/* ============================================================
   Scenza landing — editorial / perfume-house look (SCE-31)
   Palette and type mirror the mobile app tokens:
   cream #f2f4ef · deep #283025 · sage #53644c · mint #c7e5cf
   Playfair Display (display) + Inter (text)
   ============================================================ */

:root {
    --cream: #f2f4ef;
    --paper: #faf9f7;
    --deep: #283025;
    --deep-2: #1e241c;
    --sage: #53644c;
    --sage-soft: #eef2ec;
    --mint: #c7e5cf;
    --ink: #2d342f;
    --muted: #5a615b;
    --hairline: rgba(45, 52, 47, 0.16);
    --hairline-light: rgba(242, 244, 239, 0.22);

    --font-display: "Playfair Display", "Times New Roman", serif;
    --font-text: "Inter", -apple-system, "Segoe UI", sans-serif;

    --container: 1200px;
    --gutter: clamp(20px, 4vw, 48px);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 500; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--deep);
    color: var(--cream);
    padding: 10px 18px;
    z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 3px;
}

::selection { background: var(--mint); color: var(--deep); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-text);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
                border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn--small { padding: 9px 20px; font-size: 13px; }
.btn--large { padding: 15px 30px; font-size: 15px; }

.btn--primary {
    background: var(--deep);
    color: var(--cream);
}
.btn--primary:hover { background: var(--sage); transform: translateY(-1px); }

.btn--ghost {
    border-color: var(--hairline);
    color: var(--ink);
    background: transparent;
}
.btn--ghost:hover { border-color: var(--sage); color: var(--sage); }

.btn--light {
    background: var(--cream);
    color: var(--deep);
}
.btn--light:hover { background: var(--mint); transform: translateY(-1px); }

.btn svg { flex: none; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.site-header.is-scrolled {
    background: rgba(250, 249, 247, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--hairline);
}

.site-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo svg { display: block; height: 100%; width: auto; }

.site-logo--header {
    display: block;
    height: 44px;
    color: var(--deep);
}

.site-header__nav {
    display: flex;
    gap: 34px;
}

.site-header__nav a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.site-header__nav a:hover,
.site-header__nav a.is-current {
    color: var(--deep);
    border-bottom-color: var(--sage);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.lang-switch {
    display: inline-flex;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--muted);
}
.lang-switch__current { color: var(--deep); }
.lang-switch__divider { opacity: 0.4; }
.lang-switch:hover .lang-switch__alt { color: var(--sage); }

@media (max-width: 860px) {
    .site-header__nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 140px 0 90px;
    overflow: hidden;
    background: var(--cream);
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__grain {
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    opacity: 0.05;
    mix-blend-mode: multiply;
}

.hero__rule--v {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% + 120px);
    width: 1px;
    background: var(--hairline);
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
    width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 34px;
}

.hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sage);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(52px, 8.5vw, 108px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: var(--deep);
    margin: 0 0 34px;
}

.hero__title-line { display: block; }

.hero__title-line--italic {
    font-style: italic;
    font-weight: 400;
    color: var(--sage);
}

.hero__lead {
    max-width: 46ch;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 40px;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 46px;
}

.hero__families {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--muted);
    opacity: 0.85;
}

.hero__families-dot { color: var(--sage); }

/* Device mockups */

.hero__device {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 540px;
}

.device {
    background: var(--deep);
    border-radius: 34px;
    padding: 10px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 30px 60px -20px rgba(40, 48, 37, 0.45);
}

.device__screen {
    border-radius: 26px;
    overflow: hidden;
    background: var(--deep-2);
}

.device__screen img { width: 100%; height: auto; }

.device--main {
    position: relative;
    width: min(290px, 68%);
    z-index: 2;
}

.device--secondary {
    position: absolute;
    width: min(240px, 55%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.9s var(--ease-out) 0.45s, transform 0.9s var(--ease-out) 0.45s;
}

.device--back-left {
    left: max(-30px, -6%);
    top: 60px;
    transform: rotate(-8deg) translateY(26px);
}

.hero__device.is-revealed .device--secondary {
    opacity: 1;
    transform: rotate(-8deg) translateY(0);
}

.hero__device.reveal[data-reveal="device"] .device--main {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.hero__device.reveal[data-reveal="device"].is-visible .device--main {
    opacity: 1;
    transform: translateY(0);
}

.hero__scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero__scroll-line {
    width: 1px;
    height: 44px;
    background: var(--hairline);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--sage);
    transform: translateY(-100%);
    animation: scrollline 2.2s var(--ease-out) infinite;
}

@keyframes scrollline {
    0% { transform: translateY(-100%); }
    55% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

@media (max-width: 960px) {
    .hero { padding-top: 120px; min-height: 0; }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__rule--v { display: none; }
    .hero__device { min-height: 0; margin-top: 12px; }
    .device--secondary { display: none; }
    .hero__scroll-hint { display: none; }
}

/* ---------- Section headers ---------- */

.section-header {
    max-width: 720px;
    margin-bottom: clamp(44px, 7vw, 84px);
}

.section-header__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 18px;
}

.section-header__eyebrow::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 28px;
    height: 1px;
    background: var(--sage);
    margin-right: 12px;
}

.section-header__eyebrow--light { color: var(--mint); }
.section-header__eyebrow--light::before { background: var(--mint); }

.section-header__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.14;
    letter-spacing: -0.005em;
    color: var(--deep);
    margin-bottom: 20px;
    text-wrap: balance;
}

.section-header__lead {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--muted);
    max-width: 60ch;
}

.section-header--light .section-header__title { color: var(--cream); }
.section-header--light .section-header__lead { color: rgba(242, 244, 239, 0.72); }

/* ---------- Stats ---------- */

.stats {
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    background: var(--paper);
    padding: clamp(52px, 7vw, 90px) 0;
}

.stats__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(20px, 2.6vw, 28px);
    line-height: 1.4;
    color: var(--deep);
    max-width: 30ch;
    margin-bottom: clamp(36px, 5vw, 60px);
    text-wrap: balance;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stats__item {
    border-left: 1px solid var(--hairline);
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats__value {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1;
    color: var(--deep);
    font-variant-numeric: tabular-nums;
}

.stats__label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 860px) {
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}

/* ---------- Features ---------- */

.features { padding: clamp(80px, 11vw, 150px) 0; }

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--hairline);
}

.feature-card {
    display: flex;
    gap: 26px;
    padding: clamp(30px, 4vw, 48px) clamp(4px, 2vw, 32px) clamp(30px, 4vw, 48px) 4px;
    border-bottom: 1px solid var(--hairline);
    transition: background-color 0.3s var(--ease-out);
}

.feature-card:nth-child(odd) { border-right: 1px solid var(--hairline); padding-right: clamp(24px, 3vw, 48px); }
.feature-card:nth-child(even) { padding-left: clamp(24px, 3vw, 48px); }

.feature-card:hover { background: var(--paper); }

.feature-card__num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    color: var(--sage);
    line-height: 2;
    flex: none;
}

.feature-card__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.25;
    color: var(--deep);
    margin-bottom: 12px;
}

.feature-card__desc {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--muted);
    max-width: 44ch;
}

@media (max-width: 860px) {
    .features__grid { grid-template-columns: 1fr; }
    .feature-card:nth-child(odd) { border-right: 0; padding-right: 4px; }
    .feature-card:nth-child(even) { padding-left: 4px; }
}

/* ---------- Showcase (dark rail) ---------- */

.showcase {
    background: var(--deep);
    padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 110px);
    position: relative;
    overflow: hidden;
}

.showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    opacity: 0.06;
    pointer-events: none;
}

.showcase__rail { position: relative; }

.showcase__track {
    display: flex;
    gap: clamp(24px, 3vw, 40px);
    overflow-x: auto;
    padding: 8px var(--gutter) 28px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.showcase__track::-webkit-scrollbar { display: none; }

.showcase__card {
    margin: 0;
    flex: 0 0 auto;
    width: min(250px, 62vw);
    scroll-snap-align: center;
}

.device--showcase {
    background: #10140e;
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.55);
}

.showcase__caption {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 18px;
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(242, 244, 239, 0.78);
}

.showcase__caption-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--mint);
    flex: none;
}

.showcase__progress {
    margin: 4px var(--gutter) 0;
    height: 1px;
    background: var(--hairline-light);
    position: relative;
}

.showcase__progress-bar {
    position: absolute;
    left: 0;
    top: -0.5px;
    height: 2px;
    width: 0;
    background: var(--mint);
    transition: width 0.15s linear;
}

/* ---------- How it works ---------- */

.howto { padding: clamp(80px, 11vw, 150px) 0; }

.howto__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 4vw, 56px);
}

.howto__step {
    border-top: 1px solid var(--hairline);
    padding-top: 26px;
    position: relative;
}

.howto__step::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 56px;
    height: 1px;
    background: var(--sage);
}

.howto__step-num {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(40px, 5vw, 60px);
    line-height: 1;
    color: var(--sage);
    opacity: 0.55;
    margin-bottom: 22px;
}

.howto__step-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 24px;
    color: var(--deep);
    margin-bottom: 12px;
}

.howto__step-desc {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--muted);
}

@media (max-width: 860px) {
    .howto__steps { grid-template-columns: 1fr; }
}

/* ---------- Why ---------- */

.why {
    background: var(--sage-soft);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: clamp(80px, 11vw, 150px) 0;
}

.why__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 90px);
    align-items: start;
}

.why__intro .section-header__lead { margin-bottom: 0; }

.why__points {
    display: flex;
    flex-direction: column;
}

.why__point {
    display: flex;
    gap: 20px;
    padding: 26px 0;
    border-bottom: 1px solid var(--hairline);
}
.why__point:first-child { padding-top: 6px; }
.why__point:last-child { border-bottom: 0; }

.why__check {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--sage);
    color: var(--sage);
    display: grid;
    place-items: center;
}
.why__check svg { width: 15px; height: 15px; }

.why__point-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
    color: var(--deep);
    margin-bottom: 8px;
}

.why__point-desc {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--muted);
}

@media (max-width: 860px) {
    .why__grid { grid-template-columns: 1fr; }
}

/* ---------- Beta / download ---------- */

.download {
    position: relative;
    background: var(--deep);
    color: var(--cream);
    padding: clamp(80px, 11vw, 150px) 0;
    overflow: hidden;
}

.download__bg { position: absolute; inset: 0; pointer-events: none; }

.download__grain {
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    opacity: 0.07;
}

.download__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.download__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(32px, 4.6vw, 52px);
    line-height: 1.12;
    color: var(--cream);
    margin-bottom: 22px;
    text-wrap: balance;
}

.download__lead {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(242, 244, 239, 0.75);
    max-width: 52ch;
    margin-bottom: 38px;
}

.download__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 44px;
}

.download__cta-mail {
    font-size: 13.5px;
    font-weight: 300;
    color: rgba(242, 244, 239, 0.6);
}

.download__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 14px;
    border: 1px solid var(--hairline-light);
    border-radius: 14px;
    color: var(--cream);
    text-decoration: none;
}

.store-badge--soon { opacity: 0.55; }

.store-badge__logo { width: 26px; height: 26px; flex: none; }

.store-badge__text { display: flex; flex-direction: column; line-height: 1.25; }

.store-badge__pre {
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

.store-badge__name { font-size: 15px; font-weight: 500; }

.download__device { display: flex; justify-content: center; }

.device--download {
    width: min(270px, 70%);
    transform: rotate(4deg);
    background: #10140e;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

@media (max-width: 960px) {
    .download__inner { grid-template-columns: 1fr; }
    .download__device { display: none; }
}

/* ---------- FAQ ---------- */

.faq { padding: clamp(80px, 11vw, 150px) 0; }

.faq__list {
    max-width: 820px;
    border-top: 1px solid var(--hairline);
}

.faq__item { border-bottom: 1px solid var(--hairline); }

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 4px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 19px;
    color: var(--deep);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--sage); }

.faq__icon {
    flex: none;
    width: 26px;
    height: 26px;
    color: var(--sage);
    transition: transform 0.3s var(--ease-out);
}
.faq__icon svg { width: 100%; height: 100%; }

.faq__item[open] .faq__icon { transform: rotate(180deg); }

.faq__a {
    padding: 0 44px 26px 4px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--muted);
    max-width: 68ch;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--deep);
    color: var(--cream);
    padding: clamp(60px, 8vw, 100px) 0 36px;
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: clamp(40px, 6vw, 90px);
    padding-bottom: clamp(40px, 6vw, 70px);
    border-bottom: 1px solid var(--hairline-light);
}

.site-logo--footer {
    display: block;
    height: 74px;
    color: var(--cream);
    margin-bottom: 18px;
}

.site-footer__tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 16px;
    color: rgba(242, 244, 239, 0.65);
}

.site-footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.site-footer__col h4 {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 18px;
}

.site-footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__col a {
    font-size: 14.5px;
    font-weight: 300;
    text-decoration: none;
    color: rgba(242, 244, 239, 0.78);
    transition: color 0.2s;
}
.site-footer__col a:hover { color: var(--cream); }

.site-footer__contact-cta { margin-top: 6px; }

.site-footer__contact-cta .btn--ghost {
    border-color: var(--hairline-light);
    color: var(--cream);
}
.site-footer__contact-cta .btn--ghost:hover {
    border-color: var(--mint);
    color: var(--mint);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 28px;
    font-size: 13px;
    font-weight: 300;
    color: rgba(242, 244, 239, 0.55);
}

@media (max-width: 860px) {
    .site-footer__top { grid-template-columns: 1fr; }
    .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reveal animations ---------- */

.reveal { opacity: 1; }

.js .reveal[data-reveal="up"] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease-out) var(--reveal-delay, 0s),
                transform 0.8s var(--ease-out) var(--reveal-delay, 0s);
}

.js .reveal[data-reveal="up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.js .reveal[data-reveal="mask"] {
    display: block;
    clip-path: inset(0 0 100% 0);
    transform: translateY(20px);
    transition: clip-path 0.9s var(--ease-out) var(--reveal-delay, 0s),
                transform 0.9s var(--ease-out) var(--reveal-delay, 0s);
}

.js .reveal[data-reveal="mask"].is-visible {
    clip-path: inset(-4% -2% -8% -2%);
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal[data-reveal="up"],
    .js .reveal[data-reveal="mask"],
    .hero__device.reveal[data-reveal="device"] .device--main,
    .device--secondary {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
    }
    .hero__badge-dot, .hero__scroll-line::after { animation: none !important; }
}
