/* ---------- Theme tokens (switch per slide) ---------- */
.hero {
    --ink: #fff;
    --ink-soft: rgba(255,255,255,.78);
    --accent: #f3c47a;
    --glass: rgba(255,255,255,.12);
    --glass-strong: rgba(255,255,255,.2);
    --glass-line: rgba(255,255,255,.2);
    --solid-bg: #fff;
    --solid-ink: #16110f;
    --card-line: rgba(255,255,255,.35);
    --card-shadow: 0 30px 60px -10px rgba(0,0,0,.6);
    --track: rgba(255,255,255,.22);
}
.hero[data-theme="light"] {
    --ink: #1a1412;
    --ink-soft: rgba(26,20,18,.68);
    --accent: #b4232a;
    --glass: rgba(255,255,255,.55);
    --glass-strong: rgba(26,20,18,.06);
    --glass-line: rgba(26,20,18,.1);
    --solid-bg: #1a1412;
    --solid-ink: #fff;
    --card-line: rgba(26,20,18,.1);
    --card-shadow: 0 30px 50px -18px rgba(70,20,20,.35);
    --track: rgba(26,20,18,.14);
}

.hero { --fade: clamp(120px, 18vh, 190px);
    position: relative; min-height: calc(100vh + var(--fade)); min-height: calc(100svh + var(--fade)); padding-bottom: var(--fade);
    overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; color: var(--ink); transition: color .8s ease; }

/* Below the first screen the hero dissolves into the white of the next section, so there is no visible seam. */
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--fade) + 40px); z-index: 12; pointer-events: none;
    background: linear-gradient(180deg,
        rgba(255,255,255,0) 0%, rgba(255,255,255,.03) 12%, rgba(255,255,255,.12) 26%, rgba(255,255,255,.3) 42%,
        rgba(255,255,255,.55) 58%, rgba(255,255,255,.78) 74%, rgba(255,255,255,.93) 88%, #fff 100%); }

/* ---------- Backgrounds ---------- */
.hero-bgs { position: absolute; inset: -24px; z-index: -3;
    transform: translate(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -8px)); transition: transform .6s ease-out; }
.hero-bg { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; overflow: hidden; }
.hero-bg.is-active { opacity: 1; }
.hero-bg > picture img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center);
    transform: scale(1.12); transition: transform 10s cubic-bezier(.2,.7,.2,1); }
.hero-bg.is-active > picture img { transform: scale(1); }

.hero-bg--light { background:
    radial-gradient(60% 70% at 80% 30%, #fff 0%, rgba(255,255,255,0) 70%),
    radial-gradient(45% 55% at 12% 90%, rgba(180,35,42,.10) 0%, rgba(180,35,42,0) 70%),
    radial-gradient(40% 50% at 95% 95%, rgba(243,196,122,.22) 0%, rgba(243,196,122,0) 70%),
    #f8f4ee; }
.hero-emblem { position: absolute; right: 6%; top: 15%; height: min(40vh, 380px); width: auto;
    filter: drop-shadow(0 24px 30px rgba(120,30,30,.18));
    transform: translateY(24px) scale(.96); opacity: 0;
    transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .2s, opacity 1.2s ease .2s; }
.hero-bg.is-active .hero-emblem { transform: none; opacity: 1; }
.hero-emblem-ring { position: absolute; right: calc(6% - 70px); top: calc(15% - 60px);
    width: calc(min(40vh, 380px) + 120px); aspect-ratio: 1; border-radius: 50%;
    border: 1px solid rgba(180,35,42,.12); box-shadow: inset 0 0 0 40px rgba(255,255,255,.35); }

/* Darkening overlay for photos, plus film grain */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 25%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.92) 100%),
        radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0) 0%, rgba(0,0,0,.4) 100%);
    transition: opacity 1s ease; }
.hero[data-theme="light"]::before { opacity: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
    mix-blend-mode: overlay;
    background-image: 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Glass navigation ---------- */
.hero-nav { position: relative; z-index: 20; margin: 16px auto 0; width: min(1160px, calc(100% - 32px));
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px;
    border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line);
    backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 10px 30px -12px rgba(0,0,0,.25);
    transition: background .8s ease, border-color .8s ease; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.brand-badge { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.15), inset 0 0 0 1px rgba(0,0,0,.05); }
.brand-badge img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { display: grid; line-height: 1.15; font-size: 14px; font-weight: 700; white-space: nowrap; }
.brand-name small { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 9px 16px; border-radius: 999px; color: inherit; text-decoration: none;
    font-size: 14px; font-weight: 500; transition: background .25s; }
.nav-links a:hover { background: var(--glass-strong); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--glass-line);
    background: var(--glass-strong); color: inherit; cursor: pointer; place-items: center; }
.hero-nav.is-open 
/* ---------- Buttons ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 0;
    font: 600 14px/1 'Manrope', sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background .8s ease, color .8s ease, transform .25s ease, box-shadow .25s ease; }
.pill:hover { transform: translateY(-2px); }
.pill-solid { background: var(--solid-bg); color: var(--solid-ink); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.pill-solid svg { transition: transform .25s ease; }
.pill-solid:hover svg { transform: translateX(3px); }
.pill-glass { background: var(--glass-strong); color: var(--ink); border: 1px solid var(--glass-line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-end .pill { padding: 12px 20px; }

/* ---------- Copy ---------- */
.hero-copy { position: relative; display: grid; justify-items: center; text-align: center;
    padding: clamp(36px, 8vh, 96px) 20px 0; }
.hero-text { grid-area: 1 / 1; display: grid; justify-items: center; align-content: start; pointer-events: none; }
.hero-text.is-active { pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px 7px 10px;
    border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero-title { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(42px, 6.4vw, 92px);
    line-height: 1; letter-spacing: -.025em; margin: 0 0 18px; }
.hero-title .w { display: inline-block; overflow: hidden; padding: .06em .02em .12em; margin: -.06em 0 -.12em; vertical-align: top; }
.hero-title .w > * { display: inline-block; transform: translateY(110%); opacity: 0;
    transition: transform 1s cubic-bezier(.2,.75,.15,1), opacity .6s ease; transition-delay: calc(var(--i) * 80ms); }
.hero-title em { font-style: italic; font-weight: 400; color: var(--accent); transition: color .8s ease, transform 1s cubic-bezier(.2,.75,.15,1); }
.hero-lead { max-width: 480px; margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft);
    opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease, color .8s ease; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px;
    opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.hero-text.is-active .eyebrow { opacity: 1; transform: none; transition-delay: .1s; }
.hero-text.is-active .hero-title .w > * { transform: none; opacity: 1; }
.hero-text.is-active .hero-lead { opacity: 1; transform: none; transition-delay: .35s; }
.hero-text.is-active .hero-actions { opacity: 1; transform: none; transition-delay: .5s; }
.hero-text:not(.is-active) .hero-title .w > * { transform: translateY(-110%); transition-delay: 0s; transition-duration: .5s; }
.mobile-emblem { display: none; opacity: 0; transform: translateY(10px) scale(.92); transition: opacity .6s ease, transform .8s ease; }
.hero-text.is-active .mobile-emblem { opacity: 1; transform: none; }

/* ---------- Curved card row ---------- */
.hero-arc { position: relative; flex: 1; min-height: 360px; perspective: 1100px; perspective-origin: 50% 25%; }
.arc-inner { position: absolute; inset: 24px 0 76px; transform-style: preserve-3d;
    transform: rotateY(calc(var(--mx, 0) * -4deg)) rotateX(calc(var(--my, 0) * 2deg)); transition: transform .6s ease-out; }
.arc-card { --w: 170px; position: absolute; left: 50%; top: 50%; width: var(--w); height: calc(var(--w) * 1.25);
    margin: calc(var(--w) * -.625) 0 0 calc(var(--w) * -.5); padding: 0; border: 1px solid var(--card-line);
    border-radius: 18px; overflow: hidden; cursor: pointer; background: #fff; box-shadow: var(--card-shadow);
    -webkit-box-reflect: below 10px linear-gradient(transparent 72%, rgba(255,255,255,.14));
    transition: transform 1s cubic-bezier(.2,.75,.15,1), opacity 1s ease, box-shadow .8s ease, border-color .8s ease; }
.arc-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;
    transition: transform .6s ease; }
.arc-card img.fit-contain { object-fit: contain; padding: 14%; background: #fff; }
.arc-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(140deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 35%); }
.arc-card:hover img { transform: scale(1.05); }
.arc-card.is-center { box-shadow: 0 0 0 2px var(--solid-bg), var(--card-shadow); }
.arc-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

/* ---------- Progress + controls ---------- */
.hero-controls { position: absolute; left: 50%; bottom: calc(22px + var(--fade)); transform: translateX(-50%); z-index: 15;
    width: min(1160px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.counter { font: 500 14px/1 'Manrope', sans-serif; letter-spacing: .08em; font-variant-numeric: tabular-nums; min-width: 64px; }
.counter b { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; }
.progress { flex: 1; max-width: 420px; display: flex; gap: 8px; }
.progress button { flex: 1; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.progress button::before, .progress span { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px;
    margin-top: -1.5px; border-radius: 3px; }
.progress button::before { background: var(--track); }
.progress span { background: var(--ink); transform-origin: left; transform: scaleX(0); }
.progress button.is-done span { transform: scaleX(1); }
.progress button.is-active span { animation: fill var(--dur, 7s) linear forwards; }
.hero.is-paused .progress span { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.arrows { display: flex; gap: 8px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: inherit;
    background: var(--glass); border: 1px solid var(--glass-line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .25s, transform .25s; }
.arrow:hover { background: var(--glass-strong); transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .hero-emblem, .hero-emblem-ring { display: none; }
}
@media (max-width: 960px) {
    .nav-links { display: none; }
    .menu-btn { display: grid; }
}
@media (max-height: 820px) and (min-width: 561px) {
    .hero-copy { padding-top: 28px; }
    .hero-arc { min-height: 300px; }
    .hero .mobile-emblem { display: none; }
    .hero-title { font-size: clamp(40px, 5.4vw, 76px); }
}
@media (max-width: 1199px) and (min-width: 561px) {
    .mobile-emblem { display: block; width: 80px; height: 80px; margin-bottom: 14px; border-radius: 24px; background: #fff;
        padding: 10px; object-fit: contain; box-shadow: 0 16px 34px -12px rgba(120,30,30,.35); }
}
@media (max-width: 560px) {
    .brand-name, .nav-end .pill { display: none; }
    .hero-copy { padding-top: 24px; }
    .hero-arc { min-height: 300px; }
    .hero-lead { font-size: 15px; }
    .mobile-emblem { display: block; width: 76px; height: 76px; margin-bottom: 16px; border-radius: 20px; background: #fff;
        padding: 8px; object-fit: contain; box-shadow: 0 16px 34px -12px rgba(120,30,30,.35); }
    .arc-card { -webkit-box-reflect: unset; }
    .progress { max-width: none; }
    .counter { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero *, .hero *::before, .hero *::after { transition-duration: .01s !important; transition-delay: 0s !important; }
    .hero-bgs, .arc-inner { transform: none !important; }
}
