/* ==========================================================================
   Vele-gram d.o.o. — global styles
   Tokens, base, shell (preloader, header, menus, rail, footer), hero slider,
   coverflow stage, shared components, assistant, back-to-top.
   ========================================================================== */

:root {
  --bg-deep: #0A0D24;
  --bg: #11153A;
  --surface: #181D4A;
  --brand: #2E3462;          /* sampled from the logo */
  --brand-light: #4B54A0;
  --text: #EFECE4;
  --text-soft: rgba(239, 236, 228, .82);
  --muted: #9297BA;
  --accent: #CBB385;          /* brushed brass, as on bearing cages */
  --accent-strong: #E0CDA4;
  --line: rgba(239, 236, 228, .12);
  --line-strong: rgba(239, 236, 228, .22);
  --danger: #F0A3A3;
  --ok: #A9D8B3;

  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;

  --pad: clamp(1rem, 5vw, 2rem);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --radius: 18px;
}

@media (min-width: 1024px) {
  :root { --pad: max(84px, 6vw); }
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--bg-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: .7rem 1.1rem; border-radius: 999px;
  background: var(--accent); color: var(--bg-deep); font-weight: 600; font-size: .85rem;
  transform: translateY(-300%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(1280px + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- typography primitives ---------- */
.label {
  display: inline-flex; align-items: center; gap: .85rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.label::before { content: ""; width: 28px; height: 1px; background: var(--accent); flex: none; }

.h-section {
  font-size: clamp(2rem, 4.3vw, 3.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.012em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.mask { display: block; overflow: hidden; padding-block: .16em .05em; margin-block: -.16em -.05em; }
.mask > span { display: block; }
.is-accent { color: var(--accent); }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); font-weight: 400; line-height: 1.6; color: var(--text); }
p + p { margin-top: 1.1rem; }
.note { font-size: .88rem; color: var(--muted); }
.note a, .lead a { color: var(--accent); }

.quote-serif { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--accent-strong); }

/* giant faded background type */
.giant {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  line-height: .8; white-space: nowrap; width: max-content;
}
.giant > span, .hero-slide__giant > span {
  display: block;
  font-family: var(--font); font-weight: 800; letter-spacing: -.045em; text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(239, 236, 228, .12);
  background: linear-gradient(180deg, rgba(239, 236, 228, .11) 0%, rgba(239, 236, 228, .015) 70%, transparent 100%);
  -webkit-background-clip: text; background-clip: text;
  will-change: transform;
}

/* ---------- buttons & links ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.btn-pill {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: 0 1.75rem;
  border: 1px solid rgba(239, 236, 228, .5);
  border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text);
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn-pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--text); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn-pill:hover, .btn-pill:focus-visible { color: var(--bg-deep); border-color: var(--text); }
.btn-pill:hover::before, .btn-pill:focus-visible::before { transform: none; }
.btn-pill > span { position: relative; }
.btn-pill--solid { background: var(--accent); border-color: var(--accent); color: var(--bg-deep); }
.btn-pill--solid::before { background: var(--accent-strong); }
.btn-pill--solid:hover, .btn-pill--solid:focus-visible { border-color: var(--accent-strong); }
.btn-magnetic { will-change: transform; transition: color .45s var(--ease), border-color .45s var(--ease), transform .5s var(--ease); }

.plus-row { display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; margin-top: 2rem; }
.plus-link {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-soft);
  padding-block: .45rem;
  position: relative;
  transition: color .3s;
}
.plus-link > span[aria-hidden] { color: var(--accent); font-size: 1rem; font-weight: 400; transition: transform .45s var(--ease); }
.plus-link::after {
  content: ""; position: absolute; left: 1.1rem; right: 0; bottom: .2rem; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.plus-link:hover, a:hover .plus-link, .plus-link:focus-visible { color: var(--text); }
.plus-link:hover::after, a:hover .plus-link::after { transform: scaleX(1); }
.plus-link:hover > span[aria-hidden], a:hover .plus-link > span[aria-hidden] { transform: rotate(90deg); }

/* ---------- preloader / curtain / cursor ---------- */
.preloader { display: none; }
.js:not(.vg-seen) .preloader {
  position: fixed; inset: 0; z-index: 900;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  background: radial-gradient(60% 60% at 50% 45%, #1A1F52 0%, var(--bg-deep) 70%);
  transition: transform 1s var(--ease-io), opacity .4s ease .7s;
  animation: preloaderFailsafe .01s linear 3.4s forwards;
}
.preloader__logo { position: relative; overflow: hidden; width: min(320px, 62vw); }
.preloader__logo::after {
  content: ""; position: absolute; inset: 0; background: var(--bg-deep);
  transform-origin: right; animation: logoReveal 1.1s var(--ease-io) .15s forwards;
}
.preloader__logo img { width: 100%; animation: logoRise 1.3s var(--ease) .1s both; }
.preloader__bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: barFill 1.6s var(--ease-io) .2s forwards; }
.preloader.is-done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
@keyframes logoReveal { to { transform: translateX(101%); } }
@keyframes logoRise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes barFill { to { transform: scaleX(1); } }
@keyframes preloaderFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.curtain {
  position: fixed; inset: 0; z-index: 880; pointer-events: none;
  background: linear-gradient(160deg, #1A1F52 0%, var(--bg-deep) 70%);
  transform: scaleY(0); transform-origin: bottom;
}
.js.vg-seen .curtain { animation: curtainOut .85s var(--ease-io) .05s both; }
.curtain.is-leaving, .js.vg-seen .curtain.is-leaving { animation: curtainIn .55s var(--ease-io) forwards; pointer-events: all; }
@keyframes curtainOut { from { transform: scaleY(1); transform-origin: top; } to { transform: scaleY(0); transform-origin: top; } }
@keyframes curtainIn { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

.cursor { display: none; }
.has-cursor .cursor {
  display: block; position: fixed; left: 0; top: 0; z-index: 950; pointer-events: none;
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(203, 179, 133, .7); border-radius: 50%;
  opacity: 0; transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s;
}
.has-cursor .cursor.is-visible { opacity: 1; }
.has-cursor .cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(203, 179, 133, .08); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: var(--header-h);
  transition: height .45s var(--ease), background-color .45s, border-color .45s, backdrop-filter .45s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  --header-h: 66px;
  background: rgba(10, 13, 36, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.site-header__inner {
  position: relative; height: 100%;
  display: flex; align-items: center; gap: 1.4rem;
  padding-inline: 18px clamp(1rem, 4vw, 3rem);
}
.burger { width: 44px; height: 44px; display: grid; align-content: center; gap: 6px; padding-left: 9px; flex: none; }
.burger span { display: block; height: 1.5px; width: 24px; background: var(--text); transition: transform .4s var(--ease), width .4s var(--ease); }
.burger span:nth-child(2) { width: 16px; }
.burger:hover span:nth-child(2) { width: 24px; }
.brand { display: block; width: clamp(128px, 12vw, 168px); flex: none; }
.brand img { width: 100%; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.6rem); }
.main-nav > ul > li { position: static; display: flex; align-items: center; }
.main-nav a {
  display: inline-block; padding-block: 1.6rem;
  font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); position: relative; transition: color .3s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: 1.25rem; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--text); }
.main-nav a.is-active { font-weight: 700; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.site-header.is-scrolled .main-nav a { padding-block: 1.2rem; }
.site-header.is-scrolled .main-nav a::after { bottom: .9rem; }
.mega-toggle { width: 26px; height: 26px; margin-left: .15rem; color: var(--muted); display: grid; place-items: center; }
.mega-toggle svg { width: 14px; transition: transform .3s; }
.has-mega.is-open .mega-toggle svg { transform: rotate(180deg); }
.lang {
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; color: var(--text);
  padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px;
}

/* mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(10, 13, 36, .97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.has-mega.is-closed .mega { opacity: 0; visibility: hidden; }
.mega__inner { display: grid; grid-template-columns: 1fr 3fr; gap: 3rem; padding: 2.6rem var(--pad) 2.8rem; max-width: 1500px; margin-inline: auto; }
.mega__lead { font-size: 1.1rem; font-weight: 400; line-height: 1.5; margin-bottom: 1rem; max-width: 22ch; }
.mega__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 2rem; }
.main-nav .mega__list a {
  display: flex; align-items: baseline; gap: .8rem; padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .78rem; letter-spacing: .1em; color: var(--text-soft);
}
.main-nav .mega__list a::after { bottom: -1px; right: 0; }
.mega__num { font-size: .66rem; color: var(--accent); letter-spacing: .1em; }
.main-nav .mega .plus-link { padding-block: .45rem; }
.main-nav .mega .plus-link::after { bottom: .2rem; left: 1.1rem; }

/* overlay menu */
.menu {
  position: fixed; inset: 0; z-index: 300;
  background: radial-gradient(80% 90% at 20% 30%, #1B2156 0%, var(--bg-deep) 70%);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity .5s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.menu__bg .giant { right: -4vw; bottom: -6vw; }
.menu__bg .giant { font-size: 38vw; }
.menu__bg .giant { font-family: var(--serif); font-style: italic; font-weight: 500; text-transform: none; -webkit-text-stroke: 1px rgba(239,236,228,.07); color: transparent; }
.menu__inner {
  position: relative; min-height: 100%;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center;
  padding: 7rem var(--pad) 4rem;
}
.menu__close { position: absolute; top: 20px; left: 18px; width: 44px; height: 44px; display: grid; place-items: center; }
.menu__close svg { width: 28px; }
.menu__nav li { overflow: hidden; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 1.2rem;
  font-size: clamp(2rem, 5.2vw, 4.4rem); font-weight: 800; line-height: 1.12; text-transform: uppercase; letter-spacing: -.01em;
  color: var(--text-soft);
  transform: translateY(105%); transition: transform .8s var(--ease), color .3s;
  transition-delay: calc(var(--i) * 60ms + .1s), 0s;
}
.menu__nav a:hover, .menu__nav a[aria-current] { color: var(--text); }
.menu__nav a[aria-current] .menu__idx, .menu__nav a:hover .menu__idx { color: var(--accent); }
.menu__idx { font-size: .75rem; font-weight: 600; letter-spacing: .2em; color: var(--muted); transform: translateY(-1.4em); }
.menu.is-open .menu__nav a { transform: none; }
.menu__aside { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease) .45s, transform .8s var(--ease) .45s; }
.menu.is-open .menu__aside { opacity: 1; transform: none; }
.menu__cats { columns: 2; column-gap: 2rem; margin-bottom: 2.4rem; }
.menu__cats a, .menu__contact li { display: block; padding: .3rem 0; font-size: .92rem; color: var(--text-soft); }
.menu__cats a:hover, .menu__contact a:hover { color: var(--accent); }
.menu-open { overflow: hidden; }

/* social rail */
.rail {
  position: fixed; left: 22px; top: 50%; z-index: 110;
  display: none; flex-direction: column; align-items: center; gap: 14px;
  transform: translateY(-50%);
}
.rail::before, .rail::after { content: ""; width: 1px; height: 48px; background: linear-gradient(var(--line), transparent); }
.rail::before { background: linear-gradient(transparent, var(--line)); }
.rail a { width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; transition: color .3s, background-color .3s; }
.rail a:hover { color: var(--text); background: rgba(239, 236, 228, .06); }
.rail svg { width: 17px; height: 17px; }
@media (min-width: 1024px) { .rail { display: flex; } }

/* ---------- section scaffolding ---------- */
main { display: block; }
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8.5rem); overflow-x: clip; overflow: clip; }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section > .container { position: relative; z-index: 1; }
.section-head { position: relative; z-index: 1; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.section-head--row .h-section { margin-bottom: 0; }
.section-head__aside { max-width: 30rem; color: var(--text-soft); }

/* ==========================================================================
   HERO SLIDER (reference screen 1)
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  height: 100vh; height: 100svh;
  display: grid; grid-template-rows: minmax(0, 1fr);
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--bg-deep);
  touch-action: pan-y;
}
.hero__atmos { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 60% at 36% 52%, rgba(75, 84, 160, .5) 0%, rgba(75, 84, 160, 0) 70%),
    radial-gradient(36% 46% at 82% 28%, rgba(46, 52, 98, .55) 0%, transparent 70%),
    linear-gradient(180deg, #11163E 0%, var(--bg-deep) 85%);
}
.hero__atmos::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 95% at 50% 45%, transparent 55%, rgba(3, 4, 14, .7) 100%); }
.hero__track { position: relative; display: grid; min-height: 0; }

/* blurred photo background, one layer per slide (cross-fades with the slide) */
.hero__bgs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__bg { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__bg.is-active { opacity: 1; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(5px) saturate(.92);
  transform: scale(1.14);
  transition: transform 9s ease-out;
}
.hero__bg.is-active img { transform: scale(1.06); }
.hero__bgs::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 13, 36, .58) 0%, rgba(10, 13, 36, .46) 38%, rgba(10, 13, 36, .8) 60%, rgba(10, 13, 36, .9) 100%),
    linear-gradient(180deg, rgba(10, 13, 36, .78) 0%, rgba(10, 13, 36, 0) 22%, rgba(10, 13, 36, 0) 66%, rgba(10, 13, 36, .94) 100%),
    rgba(17, 21, 58, .18);
}
.hero-slide__copy { text-shadow: 0 2px 28px rgba(5, 7, 20, .55); }
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .82fr); align-items: center;
  column-gap: clamp(2rem, 4vw, 5rem);
  padding: 2vh var(--pad) 150px calc(var(--pad) + 1vw);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .7s ease, visibility 0s .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .9s ease; }

.hero-slide__giant {
  position: absolute; z-index: 0; left: 4vw; top: 47%;
  pointer-events: none; line-height: .8; white-space: nowrap;
  transform: translate3d(calc(var(--mx, 0) * -26px), calc(-50% + var(--my, 0) * -16px), 0);
}
.hero-slide__giant > span {
  font-size: clamp(9rem, 25vw, 27rem);
  opacity: 0; transform: translateX(var(--gfrom, -70px));
  transition: opacity 1.1s ease .1s, transform 1.6s var(--ease) .1s;
}
.hero-slide.is-active .hero-slide__giant > span { opacity: 1; transform: none; }

.hero-slide__media {
  position: relative; z-index: 1;
  opacity: 0; transform: translate3d(var(--from, 90px), 0, 0) scale(.93);
  transition: opacity .9s ease .05s, transform 1.4s var(--ease) .05s;
}
.hero-slide.is-active .hero-slide__media { opacity: 1; transform: none; }
.hero[data-dir="prev"] .hero-slide { --from: -90px; --gfrom: 70px; }
.hero-slide__media::before {
  content: ""; position: absolute; inset: -16% -10%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(98, 108, 196, .42), transparent 72%);
  filter: blur(10px);
}
.hero-slide__media::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: 1px solid rgba(203, 179, 133, .32); border-radius: 22px;
  transform: translate(24px, 24px);
}
.hero-slide__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--radius);
  width: min(100%, calc((100vh - var(--header-h) - 250px) * 16 / 9));
  width: min(100%, calc((100svh - var(--header-h) - 250px) * 16 / 9));
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: perspective(1700px) rotateY(calc(-6deg + var(--mx, 0) * 4deg)) rotateX(calc(var(--my, 0) * -3deg));
  transform-origin: 60% 50%;
}
.hero-slide__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-slide__frame img { transform: scale(1); }
.hero-slide__frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(10, 13, 36, .42) 0%, rgba(10, 13, 36, 0) 42%),
    linear-gradient(0deg, rgba(10, 13, 36, .4) 0%, rgba(10, 13, 36, 0) 34%);
}
.hero-slide__floor {
  position: absolute; left: 6%; right: 6%; bottom: -54px; height: 64px; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .7), transparent 72%);
}

.hero-slide__copy { position: relative; z-index: 2; max-width: 32rem; }
.hero-slide__kicker, .hero-slide__meta, .hero-slide__copy .btn-pill {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s ease, transform 1s var(--ease);
}
.hero-slide.is-active .hero-slide__kicker { opacity: 1; transform: none; transition-delay: .25s; }
.hero-slide.is-active .hero-slide__meta { opacity: 1; transform: none; transition-delay: .6s; }
.hero-slide.is-active .btn-pill { opacity: 1; transform: none; transition-delay: .72s, .72s, 0s, 0s; }
.hero-slide__kicker {
  display: flex; align-items: center; gap: .85rem; margin-bottom: 1.4rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.hero-slide__kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.hero-slide__title {
  font-size: clamp(2.2rem, 3.9vw, 4.4rem); font-weight: 800; line-height: .98; letter-spacing: -.015em; text-transform: uppercase;
}
.hero-slide__title .mask > span { transform: translateY(108%); transition: transform 1.15s var(--ease) .3s; }
.hero-slide__title .mask + .mask > span { transition-delay: .42s; }
.hero-slide.is-active .hero-slide__title .mask > span { transform: none; }
.hero-slide__meta { margin-top: 2rem; }
.hero-slide__meta dt { font-size: .68rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.hero-slide__meta dd { font-size: clamp(1.15rem, 1.7vw, 1.55rem); font-weight: 700; letter-spacing: .01em; }
.hero-slide__copy .btn-pill { margin-top: 2rem; }

.hero__plus { position: absolute; z-index: 3; left: var(--pad); bottom: 74px; margin: 0; }
.hero__arrow {
  position: absolute; z-index: 4; top: 50%;
  width: 46px; height: 46px; margin-top: -23px;
  display: none; place-items: center; color: var(--muted); border-radius: 50%;
  transition: color .3s, background-color .3s;
}
.hero__arrow svg { width: 30px; height: 30px; }
.hero__arrow:hover { color: var(--text); background: rgba(239, 236, 228, .06); }
.hero__arrow--prev { left: 64px; }
.hero__arrow--next { right: 14px; }
@media (min-width: 900px) { .hero__arrow { display: grid; } }

/* bottom strip (prev name | dots | next name) */
.strip {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch;
  min-height: 60px; border-top: 1px solid var(--line);
}
.strip--hero, .strip--stage { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; }
.strip__end {
  display: inline-flex; align-items: center; gap: .7rem;
  padding-inline: 1.4rem; min-height: 60px;
  font-size: .76rem; font-weight: 500; letter-spacing: .08em; color: var(--text-soft);
  transition: color .3s, background-color .3s;
}
.strip__end svg { width: 20px; height: 20px; flex: none; color: var(--accent); transition: transform .4s var(--ease); }
.strip__end small { font-size: .66rem; letter-spacing: .14em; color: var(--accent); margin-inline: .5rem; }
.strip__end--prev { justify-self: start; padding-left: var(--pad); background: rgba(3, 4, 14, .28); padding-right: 2rem; }
.strip__end--next { justify-self: end; padding-right: var(--pad); }
.strip--hero .strip__end--prev, .strip--stage .strip__end--prev { margin-left: 96px; padding-left: 1.4rem; }
.strip__end:hover { color: var(--text); }
.strip__end--prev:hover svg { transform: translateX(-4px); }
.strip__end--next:hover svg { transform: translateX(4px); }
.strip__center { display: flex; align-items: center; justify-content: center; gap: 1.6rem; padding-inline: 1rem; }
.dots { display: flex; align-items: center; gap: 2px; }
.dots__btn { width: 22px; height: 30px; display: grid; place-items: center; }
.dots__btn > span {
  display: block; width: 5px; height: 5px; border-radius: 3px; background: rgba(239, 236, 228, .3); overflow: hidden; position: relative;
  transition: width .5s var(--ease), background-color .3s;
}
.dots__btn:hover > span { background: rgba(239, 236, 228, .6); }
.dots__btn.is-active { width: 44px; }
.dots__btn.is-active > span { width: 34px; background: rgba(239, 236, 228, .25); }
.dots__btn.is-active > span::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(var(--p, 1)); transform-origin: left;
}
.dots--static .dots__btn { width: 14px; }
.dots--static .dots__btn.is-active { width: 34px; }
.dots--static .dots__btn.is-active > span { width: 26px; }

/* ==========================================================================
   COVERFLOW STAGE (reference screen 3)
   ========================================================================== */
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(660px, 100vh); min-height: max(660px, 100svh);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 1rem) 0 150px;
  background: var(--bg-deep);
  touch-action: pan-y;
}
.stage__atmos { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 55% at 50% 50%, rgba(75, 84, 160, .45), transparent 72%),
    linear-gradient(180deg, #11163E 0%, var(--bg-deep) 90%);
}
.stage__atmos::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(3, 4, 14, .7) 100%); }
.stage__giant { left: 50%; top: 34%; transform: translate(-50%, -50%); }
.stage__giant > span { font-size: clamp(10rem, 30vw, 30rem); transition: opacity .5s ease; }
.stage__giant.is-swapping > span { opacity: 0; }
.stage__plus { position: absolute; z-index: 3; left: var(--pad); bottom: 74px; margin: 0; }

.cf { --w: clamp(250px, 36vw, 560px); position: relative; z-index: 1; }
.cf__track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem var(--pad) 2rem; }
.cf__item { flex: 0 0 min(78vw, 420px); scroll-snap-align: center; }
.cf__card {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .07);
}
.cf__media, .cf__media img { display: block; width: 100%; height: 100%; }
.cf__media img { object-fit: cover; transition: transform .9s var(--ease); }
.cf__card:hover .cf__media img { transform: scale(1.05); }
.cf__card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(10, 13, 36, .88) 0%, rgba(10, 13, 36, .1) 55%, rgba(10, 13, 36, 0) 100%);
}
.cf__card::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--bg-deep); opacity: 0; transition: opacity .7s var(--ease); pointer-events: none; }
.cf__cap { position: absolute; z-index: 2; left: 1.4rem; right: 1.4rem; bottom: 1.2rem; display: flex; flex-direction: column; gap: .2rem; }
.cf__num { font-size: .68rem; font-weight: 600; letter-spacing: .24em; color: var(--accent); text-transform: uppercase; }
.cf__title { font-size: clamp(1.1rem, 1.8vw, 1.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; }
.cf__hint { display: none; }

/* enhanced coverflow (JS ready) */
.stage.is-ready .cf { height: calc(var(--w) * .75 + 70px); }
.stage.is-ready .cf__track { display: block; position: relative; height: calc(var(--w) * .75); padding: 0; overflow: visible; perspective: 1800px; }
.stage.is-ready .cf__item {
  position: absolute; left: 50%; top: 0; width: var(--w); margin-left: calc(var(--w) / -2);
  transition: transform .9s var(--ease), opacity .7s ease;
  will-change: transform, opacity;
}
.stage.is-ready .cf__item:not(.is-active) .cf__card::after { opacity: .5; }
.stage.is-ready .cf__item:not(.is-active) .cf__cap { opacity: .6; }
.stage.is-ready .cf__hint {
  display: block; position: absolute; left: 0; right: 0; bottom: 6px; text-align: center;
  font-size: .66rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.stage.is-dragging .cf__item { transition-duration: .25s; }

/* ==========================================================================
   INNER PAGE TEMPLATE (reference screen 2)
   ========================================================================== */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(320px, 56vh, 560px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 clamp(2.2rem, 5vw, 3.6rem);
  background: var(--bg-deep);
}
.banner__media { position: absolute; inset: 0; z-index: -1; }
.banner__img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.banner__img.is-soft { filter: blur(3px) saturate(.85); transform: scale(1.08); }
.banner__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 13, 36, .94) 0%, rgba(10, 13, 36, .62) 42%, rgba(10, 13, 36, .2) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(17, 21, 58, 0) 55%),
    linear-gradient(180deg, rgba(10, 13, 36, .7) 0%, rgba(10, 13, 36, 0) 30%);
}
.banner__inner { position: relative; }
.banner__word {
  font-size: clamp(2.6rem, 9vw, 8.6rem); font-weight: 800; line-height: .92; letter-spacing: -.025em; text-transform: uppercase;
  color: #fff; margin-top: .8rem;
  overflow-wrap: anywhere;
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .6rem; font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--accent); }
.crumbs a:hover { color: var(--text); }
.section-head .crumbs { margin-bottom: 1.2rem; }

.page-body { padding-top: clamp(3rem, 7vw, 6rem); }
.page-body__giant { right: -2vw; top: 1rem; }
.page-body__giant > span { font-size: clamp(9rem, 24vw, 24rem); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2.5rem, 6vw, 6.5rem); align-items: start; }
.two-col__main { max-width: 44rem; }
.two-col__main > p { color: var(--text-soft); }
.two-col__main > p.lead { color: var(--text); }
.thin-title {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem); font-weight: 300; line-height: 1.12; letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 2rem;
}
.thin-title .mask:first-child > span { font-weight: 400; }

.info-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(239, 236, 228, .045), rgba(239, 236, 228, .012));
}
.info-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.info-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.info-card:hover .info-card__media img { transform: scale(1.04); }
.info-card__body { padding: 1.5rem 1.6rem 1.7rem; }
.info-card__title { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; }
.info-card__body li { display: flex; flex-direction: column; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .95rem; font-weight: 400; }
.info-card__body li span { font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.info-card__body a:hover { color: var(--accent); }

.block { margin-top: 2.6rem; }
.block__title { font-size: .74rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 1.1rem; color: var(--text); }
.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .55rem; }
.tags li {
  padding: .75rem 1rem .75rem 1.1rem; font-size: .92rem; font-weight: 400; line-height: 1.4;
  border-left: 1px solid var(--accent); background: rgba(239, 236, 228, .03);
  border-radius: 0 10px 10px 0;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .5rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .3s, color .3s;
}
.chips li:hover { border-color: var(--accent); color: var(--accent); }

.doc-links li + li { border-top: 1px solid var(--line); }
.doc-links a {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: .9rem;
  padding: .9rem .2rem; font-size: .95rem; font-weight: 400; transition: color .3s;
}
.doc-links svg { width: 20px; height: 20px; color: var(--accent); }
.doc-links small { font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.doc-links a:hover { color: var(--accent); }

/* ---------- hours ---------- */
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 400; }
.hours li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.hours li:last-child span:last-child { color: var(--muted); font-weight: 400; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; background: var(--bg-deep); border-top: 1px solid var(--line); padding-top: clamp(5rem, 11vw, 9rem); }
.site-footer__giant { left: 50%; top: -1vw; transform: translateX(-50%); }
.site-footer__giant > span { font-size: clamp(5rem, 17vw, 17rem); text-transform: none; font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1.5fr .8fr 1.1fr 1.3fr; gap: 3rem; padding-bottom: 4rem; }
.site-footer__logo { display: block; width: 200px; margin-bottom: 1.6rem; }
.site-footer__brand > p { color: var(--text-soft); max-width: 30rem; }
.site-footer__brand .quote-serif { margin-top: 1.4rem; }
.social-link { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.6rem; font-size: .8rem; font-weight: 500; color: var(--text-soft); }
.social-link svg { width: 34px; height: 34px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 50%; transition: border-color .3s, color .3s; }
.social-link:hover { color: var(--text); }
.social-link:hover svg { border-color: var(--accent); color: var(--accent); }
.site-footer__col ul li a { display: inline-block; padding: .28rem 0; font-size: .92rem; color: var(--text-soft); transition: color .3s; }
.site-footer__col ul li a:hover { color: var(--accent); }
.site-footer address { display: grid; gap: .65rem; margin-bottom: 2rem; font-size: .92rem; }
.site-footer address a, .site-footer address span { display: flex; flex-direction: column; color: var(--text-soft); }
.site-footer address a:hover { color: var(--accent); }
.site-footer address small { font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.hours--footer li { font-size: .85rem; padding: .45rem 0; }
.site-footer__bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem;
  padding-block: 1.6rem 6.5rem; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--muted);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--text-soft); border-bottom: 1px solid var(--line-strong); }
.site-footer__bottom a:hover { color: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 700;
  display: grid; place-items: center; padding: 4.5rem 4.5rem 5rem;
  background: rgba(5, 7, 20, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .4s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 100%; }
.lightbox__img {
  max-width: min(1200px, 100%); max-height: calc(100vh - 11rem); width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9);
  transform: scale(.96); opacity: 0; transition: transform .6s var(--ease), opacity .4s ease;
}
.lightbox.is-loaded .lightbox__img { transform: none; opacity: 1; }
.lightbox__cap { font-size: .9rem; color: var(--text-soft); text-align: center; }
.lightbox__count { font-size: .7rem; letter-spacing: .2em; color: var(--accent); margin-right: .8rem; }
.lightbox__btn {
  position: absolute; width: 50px; height: 50px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text);
  transition: border-color .3s, background-color .3s;
}
.lightbox__btn:hover { border-color: var(--accent); background: rgba(203, 179, 133, .1); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; margin-top: -25px; }
.lightbox__next { right: 18px; top: 50%; margin-top: -25px; }

/* ==========================================================================
   ASSISTANT (bottom-left)
   ========================================================================== */
.assistant { display: none; }
.js .assistant { display: block; }
.assistant__fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 160;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #2A3170 0%, #141947 70%);
  border: 1px solid rgba(203, 179, 133, .5);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .8);
  transition: transform .5s var(--ease), border-color .3s;
}
.assistant__fab:hover { transform: translateY(-3px); border-color: var(--accent); }
.assistant__fab img { width: 34px; height: auto; position: relative; z-index: 1; }
.assistant__pulse { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 2.8s ease-out infinite; pointer-events: none; }
.assistant.is-open .assistant__pulse { animation: none; opacity: 0; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(1.55); opacity: 0; } }

.assistant__panel {
  position: fixed; left: 20px; bottom: 94px; z-index: 170;
  width: min(390px, calc(100vw - 40px));
  height: min(580px, calc(100vh - 130px));
  display: flex; flex-direction: column;
  background: rgba(17, 21, 58, .86);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(239, 236, 228, .14); border-radius: 22px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  transform-origin: 30px 100%;
  opacity: 0; transform: translateY(14px) scale(.94);
  transition: opacity .35s ease, transform .5s var(--ease);
}
.assistant__panel.is-open { opacity: 1; transform: none; }
.assistant__head { display: flex; align-items: center; gap: .9rem; padding: 1rem 1rem 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.assistant__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); border: 1px solid rgba(203, 179, 133, .4); flex: none; }
.assistant__avatar img { width: 24px; }
.assistant__head h2 { font-size: .9rem; font-weight: 700; letter-spacing: .04em; }
.assistant__head p { font-size: .74rem; color: var(--muted); line-height: 1.4; }
.assistant__close { margin-left: auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.assistant__close:hover { color: var(--text); background: rgba(239, 236, 228, .07); }
.assistant__close svg { width: 20px; }
.assistant__log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; overscroll-behavior: contain; }
.msg {
  max-width: 88%; padding: .75rem .95rem; font-size: .88rem; line-height: 1.55; font-weight: 400;
  border-radius: 16px 16px 16px 4px; background: rgba(239, 236, 228, .07);
  animation: msgIn .45s var(--ease) both;
}
.msg--user { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: rgba(203, 179, 133, .16); border: 1px solid rgba(203, 179, 133, .3); }
.msg a { color: var(--accent); border-bottom: 1px solid rgba(203, 179, 133, .4); }
.msg a:hover { color: var(--accent-strong); }
.msg ul { margin-top: .4rem; display: grid; gap: .2rem; }
.msg li { padding-left: .9rem; position: relative; }
.msg li::before { content: "+"; position: absolute; left: 0; color: var(--accent); }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: .45rem; }
.msg--typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.1s ease-in-out infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.assistant__chips { display: flex; gap: .45rem; padding: .6rem 1rem; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.assistant__chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: .45rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .74rem; font-weight: 500; color: var(--text-soft); white-space: nowrap;
  transition: border-color .3s, color .3s, background-color .3s;
}
.chip:hover { border-color: var(--accent); color: var(--text); background: rgba(203, 179, 133, .08); }
.assistant__form { display: flex; align-items: center; gap: .5rem; padding: .7rem .7rem .7rem 1.1rem; border-top: 1px solid var(--line); }
.assistant__form input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text);
  font: 400 .92rem var(--font); padding: .6rem 0;
}
.assistant__form input::placeholder { color: var(--muted); }
.assistant__form input:focus { outline: none; }
.assistant__form:focus-within { box-shadow: inset 0 1px 0 var(--accent); }
.assistant__form button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--bg-deep); flex: none; transition: background-color .3s; }
.assistant__form button:hover { background: var(--accent-strong); }
.assistant__form button svg { width: 20px; }

/* ==========================================================================
   BACK TO TOP (bottom-right)
   ========================================================================== */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(17, 21, 58, .75);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s ease, transform .5s var(--ease);
}
html:not(.js) .to-top { opacity: 1; transform: none; pointer-events: auto; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top > svg:last-child { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.to-top:hover > svg:last-child { transform: translateY(-3px); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke-width: 1.5; }
.to-top__track { stroke: var(--line-strong); }
.to-top__bar { stroke: var(--accent); stroke-dasharray: 138.23; stroke-dashoffset: calc(138.23 * (1 - var(--p, 0))); stroke-linecap: round; }

/* ==========================================================================
   SCROLL REVEALS (only after JS opts in)
   ========================================================================== */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s var(--ease); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-on .h-section .mask > span,
.reveal-on .thin-title .mask > span,
.reveal-on .banner__word .mask > span { transform: translateY(110%); transition: transform 1.15s var(--ease); }
.reveal-on .h-section .mask + .mask > span,
.reveal-on .thin-title .mask + .mask > span { transition-delay: .12s; }
.reveal-on .is-in .mask > span, .reveal-on .is-in.mask > span,
.reveal-on .h-section.is-in .mask > span, .reveal-on .thin-title.is-in .mask > span, .reveal-on .banner__word.is-in .mask > span { transform: none; }
.reveal-on [data-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-on [data-stagger].is-in > * { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE — shell, hero, stage
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 1100px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .mega__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .menu__inner { grid-template-columns: 1fr; align-items: start; padding-top: 6rem; }
  .hero { display: flex; flex-direction: column; padding-bottom: 0; }
  .hero__track { flex: 1 1 auto; }
  .hero-slide {
    grid-template-columns: 1fr; row-gap: 1.5rem;
    padding: .8rem var(--pad) 1.2rem;
    align-content: center;
  }
  .hero-slide__frame {
    aspect-ratio: auto; width: 100%;
    height: max(110px, min(calc(100vh - 600px), 56vw));
    height: max(110px, min(calc(100svh - 600px), 56vw));
  }
  .hero__bgs::after {
    background:
      linear-gradient(180deg, rgba(10, 13, 36, .86) 0%, rgba(10, 13, 36, .74) 48%, rgba(10, 13, 36, .55) 70%, rgba(10, 13, 36, .92) 100%),
      rgba(17, 21, 58, .15);
  }
  .hero-slide__copy { order: -1; max-width: none; }
  .hero-slide__giant { top: 4.5rem; left: 50%; transform: translate3d(-50%, 0, 0); }
  .hero-slide__giant > span { font-size: 44vw; }
  .hero-slide__giant { opacity: .55; }
  .hero-slide__title { font-size: clamp(2.1rem, 9.5vw, 3.4rem); }
  .hero-slide__meta { margin-top: 1.4rem; }
  .hero-slide__copy .btn-pill { margin-top: 1.5rem; }
  .hero-slide__media { margin-right: 14px; }
  .hero-slide__media::after { transform: translate(12px, 12px); }
  .strip--hero .strip__end--prev, .strip--stage .strip__end--prev { margin-left: 0; }
  .hero-slide__floor { bottom: -34px; }
  .hero-slide__frame { transform: none; }
  .hero__plus { position: relative; left: auto; bottom: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; padding: 0 var(--pad) .9rem; margin: 0; flex: none; }
  .strip--hero { flex: none; }
  .strip--hero, .strip--stage { position: relative; }
  .strip--hero .strip__end span, .strip--stage .strip__end span { display: none; }
  .strip--hero .strip__end, .strip--stage .strip__end { background: none; padding-inline: var(--pad); }
  .strip--hero .strip__end--prev, .strip--stage .strip__end--prev { padding-left: calc(var(--pad) + 64px); }
  .stage { min-height: 0; padding-bottom: 0; }
  .stage__plus { position: relative; left: auto; bottom: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1rem; padding: 1rem var(--pad) 1.2rem; margin: 0; }
  .cf { --w: min(74vw, 400px); }
  .stage__giant > span { font-size: 52vw; }
  .two-col { grid-template-columns: 1fr; }
  .info-card { position: relative; top: auto; }
}
@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .menu__cats { columns: 1; }
  .mega { display: none; }
  .lightbox { padding: 4rem 1rem 4.5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; margin-top: 0; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .assistant__fab { left: 14px; bottom: 14px; width: 54px; height: 54px; }
  .assistant__fab img { width: 30px; }
  .assistant__panel { left: 10px; right: 10px; width: auto; bottom: 80px; height: min(560px, calc(100vh - 100px)); height: min(560px, calc(100svh - 100px)); }
  .to-top { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .tags { grid-template-columns: 1fr; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .assistant__pulse { display: none; }
  .hero-slide__frame { transform: none; }
}

/* hero intro prep state (set by slider.js until the page is revealed) */
.hero--prep, .hero--prep * { transition: none !important; }
[id] { scroll-margin-top: 90px; }

/* hero: very short phones drop the framed image to keep everything in one screen */
@media (max-width: 900px) and (max-height: 700px) {
  .hero-slide__media { display: none; }
}
/* landscape phones / tiny windows: let the hero grow instead of clipping content */
@media (max-height: 480px) {
  .hero { height: auto; min-height: 100vh; min-height: 100svh; }
}
