/* ============================================================
   STELLAR OPTICAL FRAMES, "The Observatory"
   Design system & page styles · hand-crafted, no framework
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Clash Display';
  src: url('../assets/fonts/ClashDisplay-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../assets/fonts/ClashDisplay-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/Satoshi-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/Satoshi-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/Satoshi-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('../assets/fonts/Zodiak-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --void:  #05070D;
  --deep:  #090E1B;
  --ink:   #0C1224;
  --line:  rgba(158, 182, 226, .14);
  --line-strong: rgba(158, 182, 226, .28);
  --star:  #EFF3FC;
  --dim:   #9AA7C4;
  --faint: #5E6A88;
  --amber: #FFA028;
  --amber-soft: #FFC46B;
  --ice:   #A8CBEE;

  --font-display: 'Clash Display', 'Avenir Next', 'Trebuchet MS', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-accent: 'Zodiak', Georgia, serif;

  --w-wide: 1280px;
  --w-text: 720px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sec-pad: clamp(5rem, 12vh, 9rem);

  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-smooth: cubic-bezier(.65, .05, 0, 1);
  --t-reveal: 1.1s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* reveal-animation offsets must never pan the page sideways;
     hidden first as a fallback for engines without clip */
  overflow-x: hidden;
  overflow-x: clip;
}
html:focus-within { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--star);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100svh;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--amber); color: #14100A; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 300;
  background: var(--amber); color: #14100A;
  padding: .6rem 1.1rem; border-radius: 999px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Atmosphere: grain + aurora ---------- */
.grain {
  /* pattern is uniform and the shift keyframes move at most 3%, so a slim
     overdraw margin is enough; a huge layer only wastes GPU memory */
  position: fixed; inset: -8%; z-index: 120; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .035;
  animation: grain-shift 1.1s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

.aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* unclipped: the washes bleed across section boundaries instead of
     starting on a hard line (horizontal overflow is clipped at the html level) */
}
.aurora::before, .aurora::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5;
}
.aurora::before {
  width: 60vw; height: 60vw; min-width: 540px;
  left: -18vw; top: -22vw;
  background: radial-gradient(circle at 40% 40%, rgba(58, 96, 158, .26), transparent 62%);
}
.aurora::after {
  width: 44vw; height: 44vw; min-width: 420px;
  right: -14vw; bottom: -18vw;
  background: radial-gradient(circle at 60% 55%, rgba(255, 160, 40, .10), transparent 65%);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--dim);
}
.eyebrow::before {
  content: ""; width: 2.25rem; height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
}
.eyebrow .spark { color: var(--amber); letter-spacing: 0; }
.eyebrow .idx {
  font-family: var(--font-display); font-weight: 600;
  color: var(--amber);
  margin-right: .85rem;
  padding-right: .85rem;
  border-right: 1px solid var(--line-strong);
  letter-spacing: .08em;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: .005em;
  text-wrap: balance;
}
.h-1 { font-size: clamp(2.9rem, 2rem + 5.4vw, 6.1rem); }
.h-2 { font-size: clamp(2.1rem, 1.5rem + 3.2vw, 3.9rem); }
.h-3 { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.9rem); font-weight: 500; }

.accent-i {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--amber-soft);
}

.lead { font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); color: var(--dim); max-width: 56ch; }
.copy { color: var(--dim); max-width: 60ch; }
.copy strong { color: var(--star); font-weight: 500; }

/* ---------- Layout primitives ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--w-wide)); margin-inline: auto; }
.section { position: relative; padding-block: var(--sec-pad); }
/* anchored jumps must land below the fixed header (and mobile rail) */
#mission, #collections, #why, #testimonials, #contact,
#astris, #lunaris, #lineup {
  scroll-margin-top: calc(5rem + env(safe-area-inset-top, 0px));
}
@media (max-width: 900px) {
  #mission, #collections, #why, #testimonials, #contact,
  #astris, #lunaris, #lineup {
    /* clears the FULL header row + rail (the expanded state after an upward jump) */
    scroll-margin-top: calc(8.2rem + env(safe-area-inset-top, 0px));
  }
}
.section--flush-top { padding-top: 0; }
.section--half-top { padding-top: calc(var(--sec-pad) * .55); }
.section-head { display: grid; gap: 1.2rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--amber);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .95rem 1.9rem;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: #170F04;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  cursor: pointer; overflow: hidden;
  transition: box-shadow .35s var(--ease-out), background .35s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .7s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(110%); }
.btn:hover { box-shadow: 0 10px 34px -8px rgba(255, 160, 40, .45); }
.btn .arr { transition: transform .35s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

.btn--ghost {
  background: transparent; color: var(--star);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost::after {
  background: linear-gradient(115deg, transparent 30%, rgba(168, 203, 238, .18) 50%, transparent 70%);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ice), 0 10px 30px -12px rgba(168, 203, 238, .35); }

.link-underline {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  color: var(--star); font-weight: 500;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 230; /* above the mobile-menu overlay so the burger stays reachable */
  padding-top: env(safe-area-inset-top, 0px); /* keep clear of notches / status bars in edge-to-edge modes */
  transition: background .45s, box-shadow .45s, backdrop-filter .45s, transform .45s;
}
body.menu-open .site-header,
body.menu-open .site-header.is-solid {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header .container {
  display: flex; align-items: center; gap: 2rem;
  padding-block: 1.1rem;
  max-height: 140px;
  transition: padding .45s var(--ease-out), max-height .45s var(--ease-out), opacity .3s;
}
.site-header.is-solid {
  background: rgba(6, 9, 17, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .container { padding-block: .7rem; }
.site-header.is-hidden { transform: translateY(-110%); }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand svg { height: 22px; width: auto; }
.brand .brand-mark { color: var(--star); }
.brand .brand-dot { fill: var(--amber); }

.main-nav { display: flex; gap: clamp(1.2rem, 2.6vw, 2.4rem); margin-inline: auto; }
.main-nav a {
  position: relative;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim);
  padding-block: .35rem;
  transition: color .3s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--amber);
  transform: translateX(-50%) scale(0);
  transition: transform .3s var(--ease-out);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--star); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: translateX(-50%) scale(1); }

.header-cta { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.pill-soon {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ice);
  padding: .5rem 1rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s, color .3s;
}
.pill-soon .dot {
  position: relative;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
}
.pill-soon .dot::after {
  content: ""; position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 160, 40, .55);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(.6); opacity: 1; }
  55%, 100% { transform: scale(2.1); opacity: 0; }
}
.pill-soon:hover { box-shadow: inset 0 0 0 1px var(--ice); color: var(--star); }
.btn--nav { padding: .68rem 1.4rem; font-size: .85rem; }

/* Mobile section jump rail, pinned to the top even while the logo row
   retracts on scroll-down; styled as an observatory instrument strip */
.section-rail {
  position: relative;
  display: none;
  gap: .3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: .48rem var(--gutter) .56rem;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(16, 23, 44, .88), rgba(6, 9, 17, .82)),
    radial-gradient(80% 200% at 50% -60%, rgba(58, 96, 158, .35), transparent 70%);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
}
.section-rail::-webkit-scrollbar { display: none; }
/* Page progress beam along the rail's lower edge. Anchored to the HEADER,
   not the rail, the rail scrolls horizontally to centre the active chip,
   and a beam inside the scroller would be dragged out of view with it. */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  transform-origin: left;
  transform: scaleX(var(--page-p, 0));
  background: linear-gradient(90deg, var(--amber), var(--amber-soft));
  box-shadow: 0 0 10px rgba(255, 160, 40, .55);
  pointer-events: none;
  display: none; /* mobile only, enabled alongside the rail */
}
.section-rail a {
  flex: 0 0 auto;
  display: inline-flex; align-items: baseline; gap: .42rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--faint);
  padding: .4rem .85rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px transparent;
  transition: color .3s, box-shadow .3s, background .3s;
}
.section-rail a i {
  font-family: var(--font-display); font-style: normal; font-weight: 600;
  font-size: .6rem; letter-spacing: .06em;
  color: var(--faint);
  transition: color .3s, text-shadow .3s;
}
.section-rail a.is-active {
  color: var(--star);
  background: linear-gradient(180deg, rgba(255, 160, 40, .16), rgba(255, 160, 40, .05));
  box-shadow: inset 0 0 0 1px rgba(255, 160, 40, .45), 0 4px 18px -6px rgba(255, 160, 40, .35);
}
.section-rail a.is-active i {
  color: var(--amber);
  text-shadow: 0 0 8px rgba(255, 160, 40, .8);
}
body.menu-open .section-rail { visibility: hidden; }

/* Burger */
.burger {
  display: none; position: relative; z-index: 220;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--star); border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .3s, top .4s var(--ease-out);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 210;
  display: grid; place-content: center; gap: 2.5rem;
  background: rgba(5, 7, 13, .92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease-out), visibility 0s .45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu nav { display: grid; gap: .4rem; text-align: center; }
.mobile-menu nav a {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 8vw, 3rem); line-height: 1.25;
  color: var(--star);
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .3s;
}
.mobile-menu nav a:hover { color: var(--amber-soft); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu .menu-meta {
  text-align: center; color: var(--faint); font-size: .85rem;
  opacity: 0; transition: opacity .6s .25s;
}
.mobile-menu.is-open .menu-meta { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: clip;
  padding-top: 5rem;
  padding-bottom: 5.4rem; /* reserves a band below the stats for the scroll cue */
}
.hero-inner { margin-block: auto; }
.title-dot {
  display: inline-block;
  width: .13em; height: .13em;
  border-radius: 50%;
  background: var(--amber);
  margin-left: .07em;
  box-shadow: 0 0 18px rgba(255, 160, 40, .65);
}
.hero-media {
  position: absolute; inset: 0; z-index: -3;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: hero-drift 26s var(--ease-smooth) both;
  transform-origin: 60% 40%;
  translate: 0 calc(var(--hp, 0) * 46px);
  scale: 1.06;
}
@keyframes hero-drift {
  from { transform: scale(1.14); }
  to { transform: scale(1.02); }
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 6%, transparent 30%, rgba(5, 7, 13, .74) 78%, var(--void) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, .55), rgba(5, 7, 13, .18) 34%, rgba(5, 7, 13, .82) 88%, var(--void) 100%);
}
#starfield, .starfield {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
}
/* Sections that carry the starfield onward paint it above their own
   background but beneath their content */
.mission, .testimonials, .contact { isolation: isolate; }
.mission .starfield, .testimonials .starfield, .contact .starfield { z-index: -1; }
/* dissolves into darkness toward the section's end */
.starfield--fade {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 96%);
}
/* fades in from darkness at the section's top */
.starfield--fade-top {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
}

/* ---------- Nebula: a distant gas cloud, drifting imperceptibly ---------- */
.nebula {
  position: absolute; inset: -12% -16%; z-index: -1;
  pointer-events: none;
  filter: blur(52px) saturate(1.4);
  opacity: .85;
}
.nebula::before, .nebula::after {
  content: ""; position: absolute; inset: 0;
  animation: nebula-drift 48s ease-in-out infinite alternate;
}
.nebula::before {
  background:
    radial-gradient(38% 32% at 28% 40%, rgba(62, 168, 192, .24), transparent 70%),
    radial-gradient(42% 34% at 46% 52%, rgba(64, 105, 182, .32), transparent 70%),
    radial-gradient(30% 26% at 61% 30%, rgba(174, 76, 152, .2), transparent 70%),
    radial-gradient(30% 26% at 69% 57%, rgba(112, 84, 190, .26), transparent 70%),
    radial-gradient(16% 14% at 41% 61%, rgba(255, 160, 40, .13), transparent 70%),
    radial-gradient(22% 18% at 76% 44%, rgba(168, 203, 238, .1), transparent 70%);
}
.nebula::after {
  background:
    radial-gradient(26% 20% at 36% 46%, rgba(198, 92, 142, .13), transparent 70%),
    radial-gradient(24% 20% at 64% 36%, rgba(82, 192, 212, .12), transparent 70%),
    radial-gradient(28% 22% at 51% 60%, rgba(126, 100, 204, .16), transparent 70%);
  animation-duration: 66s;
  animation-direction: alternate-reverse;
}
@keyframes nebula-drift {
  from { transform: translate3d(-2.5%, -1.5%, 0) rotate(-1.6deg) scale(1); }
  to { transform: translate3d(2.5%, 2%, 0) rotate(1.4deg) scale(1.07); }
}
/* newborn stars embedded in the gas: sharp cores with layered glow halos */
.nursery { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.nursery i {
  position: absolute; left: var(--nx); top: var(--ny);
  width: var(--ns, 3px); height: var(--ns, 3px);
  border-radius: 50%;
  background: rgb(var(--nc, 220, 236, 255));
  box-shadow:
    0 0 10px 2px rgba(var(--nc, 220, 236, 255), .85),
    0 0 28px 8px rgba(var(--nc, 220, 236, 255), .28),
    0 0 64px 20px rgba(var(--nc, 220, 236, 255), .1);
  animation: nursery-twinkle var(--nt, 5.5s) ease-in-out var(--nd, 0s) infinite alternate;
}
@keyframes nursery-twinkle {
  from { opacity: .5; transform: scale(.88); }
  to { opacity: 1; transform: scale(1.18); }
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: 1.5rem;
  justify-items: center; text-align: center;
  /* 2.6vh drop centres the star between the headline and the paragraph */
  translate: 0 calc(2.6vh + var(--hp, 0) * -34px);
}
.hero .eyebrow { color: var(--ice); }
.eyebrow--center { justify-self: center; }
.eyebrow--center::before,
.eyebrow--center::after {
  content: ""; width: 2.25rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber));
}
.eyebrow--center::after { background: linear-gradient(90deg, var(--amber), transparent); }

/* Orbital ring system + kinetic watermark behind the headline */
.hero-orbits {
  position: absolute; inset: 0; z-index: -1;
  display: grid; place-items: center;
  pointer-events: none;
  translate: 0 calc(var(--hp, 0) * -110px);
  opacity: calc(1 - var(--hp, 0) * .75);
  /* rays and rings dissolve before the hero's edge instead of being cut by it */
  -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 76%, transparent 97%);
}
.hero-orbits svg {
  width: min(148vmin, 1080px); height: auto;
  opacity: .9;
}
.hero-orbits .orbit { fill: none; stroke-dasharray: 2 10; }
.hero-orbits .o1 { stroke: rgba(168, 203, 238, .22); }
.hero-orbits .o2 { stroke: rgba(168, 203, 238, .15); stroke-dasharray: 1 8; }
.hero-orbits .o3 { stroke: rgba(255, 160, 40, .18); }
.hero-orbits .rot { transform-origin: 400px 400px; }
.hero-orbits .r1 { animation: orbit-rot 85s linear infinite; }
.hero-orbits .r2 { animation: orbit-rot 130s linear infinite reverse; }
.hero-orbits .r3 { animation: orbit-rot 55s linear infinite; }
@keyframes orbit-rot { to { transform: rotate(360deg); } }
.hero-orbits .node { fill: rgba(238, 243, 252, .75); }
.hero-orbits .node--amber { fill: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 160, 40, .9)); }
.hero-orbits .node--ice { fill: var(--ice); filter: drop-shadow(0 0 5px rgba(168, 203, 238, .8)); }

/* Central star: hot core, layered halo and diffraction spikes.
   Powerful but distant, breathing slowly at the heart of the orbits. */
.hero-star .star-halo {
  transform-origin: 400px 400px;
  animation: star-breathe 7s var(--ease-smooth) infinite alternate;
}
@keyframes star-breathe {
  from { transform: scale(.9); opacity: .8; }
  to { transform: scale(1.14); opacity: 1; }
}
.hero-star .star-rays {
  transform-origin: 400px 400px;
  animation: star-shimmer 9s ease-in-out infinite alternate;
}
@keyframes star-shimmer {
  from { opacity: .5; transform: scale(.96); }
  to { opacity: .95; transform: scale(1.04); }
}
.hero-star .star-core {
  transform-origin: 400px 400px;
  animation: star-breathe 7s var(--ease-smooth) infinite alternate-reverse;
}
.hero-star .star-point {
  filter: drop-shadow(0 0 6px #FFFFFF) drop-shadow(0 0 14px rgba(255, 217, 160, .9));
  transform-origin: 400px 400px;
  animation: star-pulse 6s ease-in-out infinite alternate;
}
@keyframes star-pulse {
  from { transform: scale(1); opacity: .72; }
  to { transform: scale(1.95); opacity: 1; }
}
.hero-watermark {
  position: absolute;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(6.5rem, 19vw, 18rem);
  line-height: 1; letter-spacing: .14em; text-indent: .14em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(168, 198, 240, .16);
  filter: drop-shadow(0 0 14px rgba(168, 203, 238, .12));
  translate: 0 -6%;
  animation: wm-drift 26s ease-in-out infinite alternate;
  user-select: none;
}
@keyframes wm-drift {
  from { transform: translateX(-3%); }
  to { transform: translateX(3%); }
}

.hero-title--grand {
  font-size: clamp(3.4rem, 2rem + 7.6vw, 8.2rem);
  line-height: .98;
}
.hero-title .line-mask { display: block; overflow: clip; padding-block: .05em; }
.hero-title .line { display: block; }
.hero-title .ch {
  display: inline-block;
  transform: translateY(118%) rotate(5deg);
  transform-origin: left bottom;
}
.is-loaded .hero-title .ch {
  animation: line-up .95s var(--ease-out) forwards;
  animation-delay: calc(.1s + var(--chi, 0) * .05s);
}
.hero-title .line--accent {
  margin-top: -.08em;
  transform: translateY(115%);
  filter: blur(10px);
}
.is-loaded .hero-title .line--accent {
  animation: accent-up 1.2s var(--ease-out) forwards;
  animation-delay: var(--d, .5s);
}
@keyframes line-up {
  to { transform: translateY(0) rotate(0); }
}
@keyframes accent-up {
  to { transform: translateY(0); filter: blur(0); }
}
.hero-sub {
  margin-inline: auto; max-width: 58ch;
  /* clears the central star so the core sits in open space above the copy */
  margin-top: clamp(2.6rem, 7.5vh, 5rem);
}
.hero-ctas { justify-content: center; }

.hero-sub {
  opacity: 0; transform: translateY(18px);
}
.is-loaded .hero-sub {
  animation: soft-in .9s var(--ease-out) .55s forwards;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .6rem;
  opacity: 0; transform: translateY(18px);
}
.is-loaded .hero-ctas {
  animation: soft-in .9s var(--ease-out) .72s forwards;
}
@keyframes soft-in {
  to { opacity: 1; transform: none; }
}

/* Hero stats, the observatory console */
.hero-stats {
  position: relative; z-index: 1;
  margin-top: clamp(2.2rem, 6vh, 4.2rem);
  opacity: 0;
}
.is-loaded .hero-stats { animation: soft-in 1s var(--ease-out) .95s forwards; }

.stat-console {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(158, 182, 226, .085), rgba(158, 182, 226, .02) 55%, rgba(255, 160, 40, .045));
  box-shadow:
    inset 0 0 0 1px var(--line),
    inset 0 1px 0 rgba(238, 243, 252, .07),
    0 26px 60px -32px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}
/* instrument corner ticks */
.stat-console::before, .stat-console::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1px solid rgba(255, 160, 40, .55);
  pointer-events: none;
}
.stat-console::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.stat-console::after { bottom: -5px; right: -5px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

.stat {
  position: relative;
  display: grid; gap: .3rem; align-content: start;
  padding: clamp(1.2rem, 2.4vw, 1.7rem) clamp(1.2rem, 2.6vw, 2.1rem) clamp(1.3rem, 2.4vw, 1.8rem);
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat::after {
  content: attr(data-idx);
  position: absolute; top: .95rem; right: 1.15rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .28em;
  color: var(--faint); opacity: .75;
}
.stat b {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1.05;
  color: var(--star);
}
.stat b .unit { color: var(--amber); }
.stat > span {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim);
}
.stat .gauge {
  position: relative; display: block;
  height: 2px; margin-top: .7rem;
  background: rgba(158, 182, 226, .16);
  border-radius: 2px; overflow: clip;
}
.stat .gauge::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--amber-soft));
  box-shadow: 0 0 12px rgba(255, 160, 40, .5);
  transform-origin: left;
}
/* JS arms the gauges (scale 0), then releases them in sync with the counters */
.stat.gauge-armed .gauge::after {
  transform: scaleX(0);
  transition: transform 3.4s var(--ease-smooth);
}
.stat.gauge-armed.gauge-run .gauge::after { transform: scaleX(1); }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: .8rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; align-items: center; gap: .8rem;
  font-size: .64rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--faint);
  opacity: 0;
}
.scroll-cue .rail { height: 34px; }
.is-loaded .scroll-cue { animation: soft-in 1s var(--ease-out) 1.35s forwards; }
.scroll-cue .rail {
  width: 1px; height: 44px; overflow: hidden;
  background: var(--line);
  position: relative;
}
.scroll-cue .rail::after {
  content: ""; position: absolute; inset-inline: 0; top: 0;
  height: 50%;
  background: var(--amber);
  transform: translateY(-100%);
  animation: cue-fall 1.9s var(--ease-smooth) infinite;
}
@keyframes cue-fall {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(220%); }
}

/* ---------- Reveal engine ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity var(--t-reveal) var(--ease-out),
    transform var(--t-reveal) var(--ease-out),
    filter var(--t-reveal) var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal="blur"] { filter: blur(14px); transform: translateY(20px) scale(.985); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].is-in {
  opacity: 1; transform: none; filter: none;
}

/* ---------- Mission ---------- */
/* the galaxy below provides the light; the mission keeps only its
   upper-left wash (which bleeds into the hero), not a stray glow
   hanging over the open space */
.mission .aurora::after { content: none; }

.mission { background: var(--void); }
.mission .container {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}
.mission-statement { font-weight: 500; }
.mission-statement .h-2 { margin-bottom: 1.6rem; }
.mission-figure { position: relative; }
.mission-figure .frame-panel {
  position: relative; overflow: clip;
  border-radius: 22px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px var(--line);
}
.frame-panel img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12) translateY(calc(var(--py, 0) * 1px));
  transition: transform .1s linear;
}
.orbit-deco {
  position: absolute; z-index: 2; pointer-events: none;
  inset: -9%; opacity: .55;
}
.orbit-deco circle { fill: none; stroke: var(--line-strong); stroke-dasharray: 2 7; }
.orbit-deco .sat { fill: var(--amber); animation: orbit-spin 26s linear infinite; transform-origin: 50% 50%; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.mission-points { display: grid; gap: 1rem; margin-top: 2.2rem; }
.mission-points li {
  display: flex; gap: .9rem; align-items: baseline;
  color: var(--dim);
}
.mission-points li::before {
  content: "✦"; color: var(--amber); font-size: .8rem;
  translate: 0 -1px;
}
.mission-points b { color: var(--star); font-weight: 500; }

/* ---------- Collections deck ---------- */
.collections {
  padding-block: var(--sec-pad) 0;
  background: var(--void); /* open space: the galaxy floats with no plate or border */
  isolation: isolate;
}
.collections .section-head { text-align: center; justify-items: center; position: relative; }
/* The galaxy: rendered once to canvas (see initGalaxy), tilted like a disc
   seen from afar, spun by the compositor over five minutes. The one great
   structure of the theme, reserved for the collections. */
.galaxy {
  position: absolute; top: -110%; bottom: -110%; left: 50%; width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  opacity: .5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.galaxy-tilt {
  position: absolute; left: 50%; top: 50%;
  width: min(2080px, 230vw);
  /* --gp is scroll depth: the disc drifts and swells slightly as you pass */
  transform: translate(-50%, calc(-50% + var(--gp, 0) * 46px)) rotate(-11deg) scaleY(.46) scale(calc(1.03 - var(--gp, 0) * .05));
}
/* the galactic heart breathes, kin to the hero star */
.galaxy-pulse {
  position: absolute; left: 50%; top: 50%;
  width: 340px; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 180, .38) 0%, rgba(255, 200, 140, .12) 42%, transparent 70%);
  animation: galaxy-heart 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes galaxy-heart {
  from { opacity: .45; scale: .9; }
  to { opacity: 1; scale: 1.12; }
}
.galaxy-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  filter: blur(.6px) saturate(1.25);
  animation: galaxy-spin 500s linear infinite;
}
@keyframes galaxy-spin { to { transform: rotate(360deg); } }

.panel-slot { height: 185svh; }
.panel {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; align-items: flex-end;
  overflow: clip;
  isolation: isolate;
  border-top: 1px solid rgba(158, 182, 226, .10);
  background: var(--void);
}
.panel-media { position: absolute; inset: 0; z-index: -2; }
.panel-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
  transform: scale(calc(1.22 - var(--p, 0) * .16)) translateX(calc(var(--p, 0) * -3.5%));
  will-change: transform;
}
.panel-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,13,.62) 0%, rgba(5,7,13,.10) 42%, rgba(5,7,13,.88) 100%),
    linear-gradient(90deg, rgba(5,7,13,.55), transparent 45%);
}
.panel-index {
  position: absolute; top: clamp(4.2rem, 9vh, 6rem); right: var(--gutter); z-index: 1;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(5rem, 14vw, 12rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(168, 203, 238, .35);
  opacity: .9;
  transform: translateY(calc((1 - var(--p, 0)) * 6vh));
}
.panel-body {
  position: relative; z-index: 1;
  width: min(100% - 2 * var(--gutter), var(--w-wide));
  margin-inline: auto;
  padding-bottom: clamp(3rem, 9vh, 6rem);
  display: grid; gap: 1.1rem;
  max-width: none;
}
.panel-kicker {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ice);
}
.panel-kicker svg { width: 18px; height: 18px; color: var(--amber); }
.panel-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 2rem + 7vw, 7rem);
  line-height: .96; letter-spacing: .01em;
}
.panel-copy { max-width: 46ch; color: var(--dim); }
.panel-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.panel-tags span {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ice);
  padding: .45rem .95rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: rgba(5, 7, 13, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ---------- Why Stellar ---------- */
.why {
  background: linear-gradient(180deg, #0B1122, var(--deep) 45%, var(--void));
  border-top: 1px solid var(--line);
  isolation: isolate;
}
/* soft out-of-focus light dust, the quiet counterpart to the starfields */
.bokeh-canvas {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.why .container { position: relative; }
.watermark {
  position: absolute; z-index: 0; pointer-events: none;
  right: -2vw; top: 0; height: 100%;
  display: flex; align-items: center;
}
.watermark span {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(6rem, 16vw, 15rem);
  line-height: 1;
  writing-mode: vertical-rl;
  color: transparent;
  -webkit-text-stroke: 1px rgba(158, 182, 226, .09);
  letter-spacing: .22em;
  user-select: none;
}
.why-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 980px;
}
.why-card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: clip;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(158, 182, 226, .055), rgba(158, 182, 226, .015));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.why-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 160, 40, .10), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.why-card:hover::before { opacity: 1; }
.why-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 50px -28px rgba(0,0,0,.9); }
.why-card > * { position: relative; z-index: 1; }
.why-card .ico {
  width: 46px; height: 46px; margin-bottom: 1.3rem;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--amber);
  background: rgba(255, 160, 40, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 160, 40, .22);
}
.why-card .ico svg { width: 22px; height: 22px; }
.why-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.28rem; margin-bottom: .55rem; }
.why-card p { color: var(--dim); font-size: .98rem; }

/* ---------- Cities marquee ---------- */
.cities {
  padding-block: clamp(2.2rem, 5vh, 3.4rem);
  border-block: 1px solid var(--line);
  overflow: clip;
  position: relative;
  background: linear-gradient(180deg, #060A13, #0A1120 50%, #060A13);
}
/* Aurora borealis: canvas-drawn flowing ribbons (see initBorealis in main.js);
   the blur melts the individual rays into a glowing curtain */
.borealis-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  filter: blur(4px) saturate(1.35);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 93%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 93%, transparent 100%);
}
.cities::before, .cities::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2;
  pointer-events: none;
}
.cities::before { left: 0; background: linear-gradient(90deg, var(--void), transparent); }
.cities::after { right: 0; background: linear-gradient(-90deg, var(--void), transparent); }
.marquee { position: relative; z-index: 1; display: flex; width: max-content; gap: 3.4rem; animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee .set { display: flex; gap: 3.4rem; align-items: center; }
.marquee .city {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  color: var(--star); white-space: nowrap;
  text-shadow: 0 2px 20px rgba(5, 7, 13, .85);
}
.marquee .star-sep { color: var(--amber); font-size: 1.1rem; }

/* ---------- Testimonials ---------- */
.testimonials {
  background: linear-gradient(180deg, #0B1122, var(--deep) 50%, var(--void));
  border-top: 1px solid var(--line);
}
.testimonials .section-head { text-align: center; justify-items: center; }
.slider { position: relative; max-width: 880px; margin-inline: auto; }
.slider-track { overflow: clip; }
.slides { display: flex; transition: transform .8s var(--ease-smooth); }
.slide { flex: 0 0 100%; padding-inline: clamp(.2rem, 2vw, 1rem); }
.slide figure { display: grid; gap: 1.8rem; justify-items: center; text-align: center; }
.slide .stars { display: flex; gap: .4rem; color: var(--amber); }
.slide blockquote {
  font-family: var(--font-accent); font-style: italic;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.55rem);
  line-height: 1.55; color: var(--star);
  max-width: 34ch;
  text-wrap: pretty;
}
.slide figcaption { color: var(--faint); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.slide figcaption b { color: var(--ice); display: block; letter-spacing: .06em; font-size: 1rem; text-transform: none; font-weight: 500; }
.slider-nav { display: flex; justify-content: center; gap: .6rem; margin-top: 2.4rem; }
.slider-dot {
  width: 34px; height: 4px; border-radius: 4px; border: 0; cursor: pointer;
  background: var(--line-strong);
  overflow: clip; position: relative;
  transition: background .3s;
}
.slider-dot .fill {
  position: absolute; inset: 0; transform: scaleX(0); transform-origin: left;
  background: var(--amber); border-radius: inherit;
}
.slider-dot.is-active .fill { animation: dot-fill var(--slide-ms, 7000ms) linear forwards; }
@keyframes dot-fill { to { transform: scaleX(1); } }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact .container {
  display: grid; gap: clamp(3rem, 7vw, 6rem);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.contact-intro .h-2 { margin-bottom: 1.4rem; }
.contact-rails { display: grid; gap: 0; margin-top: 2.4rem; border-top: 1px solid var(--line); }
.rail {
  display: flex; align-items: center; gap: 1.1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  transition: color .3s, padding-left .35s var(--ease-out);
}
a.rail:hover { color: var(--star); padding-left: .5rem; }
.rail .ico {
  flex: 0 0 auto; width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px; color: var(--amber);
  background: rgba(255, 160, 40, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 160, 40, .2);
}
.rail .ico svg { width: 18px; height: 18px; }
.rail small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.rail .val { font-weight: 500; color: inherit; }

.contact-form {
  display: grid; gap: 1.3rem;
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(158, 182, 226, .06), rgba(158, 182, 226, .015));
  box-shadow: inset 0 0 0 1px var(--line);
}
.field { position: relative; display: grid; gap: .45rem; }
.field label {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint);
}
.field input, .field textarea {
  width: 100%; background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong);
  padding: .55rem .1rem .8rem;
  color: var(--star);
  transition: border-color .3s;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); }
.field::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.field:focus-within::after { transform: scaleX(1); }
.form-foot { display: grid; gap: .9rem; }
.form-hint { font-size: .8rem; color: var(--faint); }
.form-hint a { color: var(--ice); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: radial-gradient(90% 120% at 50% 120%, rgba(43, 66, 112, .25), transparent 60%), var(--void);
  padding: clamp(3.4rem, 8vh, 5.5rem) 0 2rem;
  overflow: clip;
}
.footer-grid {
  display: grid; gap: clamp(2rem, 5vw, 3.4rem);
  grid-template-columns: 1.25fr .75fr .85fr 1.15fr;
  align-items: start;
}
.footer-brand p { color: var(--faint); max-width: 34ch; margin-top: 1.1rem; font-size: .95rem; }
.footer-col h4 {
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 1.2rem;
}
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a { color: var(--dim); transition: color .3s; font-size: .95rem; }
.footer-col a:hover { color: var(--amber-soft); }
.footer-col address { font-style: normal; color: var(--dim); font-size: .95rem; line-height: 1.8; }

.constellation-divider { margin: clamp(2.6rem, 6vh, 4rem) 0 1.6rem; opacity: .8; }
.constellation-divider svg { width: 100%; height: 46px; }

/* Two-part bottom row: the client's own line sits left, our credit sits hard
   right. A real grid track does the separating, so the credit never drifts
   toward centre when the left column is short. */
.footer-legal {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem; align-items: center;
  color: var(--faint); font-size: .8rem;
}
.footer-legal .legal-owner {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem;
  justify-self: start; text-align: left;
}
.footer-legal .legal-links { display: flex; gap: 1.4rem; }
.footer-legal .footer-credit { justify-self: end; text-align: right; }
.footer-legal a:hover { color: var(--dim); }

/* ---------- Orbital scroll dial ---------- */
.orbit-dial {
  position: fixed; right: 1.4rem; bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); z-index: 150;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(6, 9, 17, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .4s, transform .4s var(--ease-out), visibility 0s .4s;
}
.orbit-dial.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.orbit-dial svg { position: absolute; inset: 6px; width: auto; height: auto; transform: rotate(-90deg); }
.orbit-dial .track { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.orbit-dial .prog { fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-linecap: round; }
.orbit-dial .up-arrow { color: var(--dim); width: 14px; height: 14px; transition: color .3s, transform .3s var(--ease-out); }
.orbit-dial:hover .up-arrow { color: var(--amber); transform: translateY(-2px); }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 400;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--amber);
}
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(168, 203, 238, .5);
  transition: width .3s, height .3s, margin .3s, border-color .3s, background-color .3s;
}
body.cursor-active .cursor-dot, body.cursor-active .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-color: var(--amber);
  background: rgba(255, 160, 40, .07);
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: var(--void);
  transition: opacity .6s var(--ease-smooth), visibility 0s .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader .pl-mark { display: grid; gap: 1.1rem; justify-items: center; }
.preloader .pl-chevron { width: 54px; height: 54px; }
.preloader .pl-chevron path {
  fill: none; stroke: var(--star); stroke-width: 10;
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: draw-chevron .9s var(--ease-smooth) .1s forwards;
}
.preloader .pl-chevron circle { fill: var(--amber); opacity: 0; animation: pop-dot .4s var(--ease-out) .8s forwards; }
@keyframes draw-chevron { to { stroke-dashoffset: 0; } }
@keyframes pop-dot { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
.preloader .pl-word {
  font-family: var(--font-display); font-weight: 500;
  font-size: .95rem; letter-spacing: .5em; text-indent: .5em;
  color: var(--dim);
  opacity: 0;
  animation: word-in .8s var(--ease-out) .5s forwards;
}
@keyframes word-in { from { opacity: 0; letter-spacing: .2em; } to { opacity: 1; letter-spacing: .5em; } }

/* ---------- Panel CTA ---------- */
.panel-cta {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 1.4rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--star);
  padding: .8rem 1.5rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: rgba(5, 7, 13, .38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s, color .3s, gap .3s var(--ease-out);
}
.panel-cta:hover { box-shadow: inset 0 0 0 1px var(--amber); color: var(--amber-soft); gap: .95rem; }
.panel-cta .arr { color: var(--amber); }

/* ---------- Line detail pages ---------- */
.line-hero {
  position: relative; isolation: isolate;
  min-height: 74svh;
  display: flex; align-items: flex-end;
  overflow: clip;
  padding: 8rem 0 clamp(2.6rem, 7vh, 4.5rem);
}
.line-hero .media { position: absolute; inset: 0; z-index: -1; }
.line-hero .media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: hero-drift 22s var(--ease-smooth) both;
}
.line-hero .media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,13,.66), rgba(5,7,13,.12) 42%, rgba(5,7,13,.9) 100%),
    linear-gradient(90deg, rgba(5,7,13,.5), transparent 50%);
}
.line-hero .container { display: grid; gap: 1rem; }
.line-index {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(4rem, 10vw, 8rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(168, 203, 238, .4);
  position: absolute; top: clamp(5rem, 12vh, 8rem); right: var(--gutter);
  z-index: 1; pointer-events: none;
}
.line-story .container {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}
.line-story .frame-panel { aspect-ratio: 4 / 3; }
.line-story .frame-panel img { height: 100%; }
.line-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 980px; margin-inline: auto;
}
.cta-band {
  position: relative;
  text-align: center;
  display: grid; justify-items: center; gap: 1.4rem;
}
.cta-band .page-actions { margin-top: .4rem; }
@media (max-width: 900px) {
  .line-story .container { grid-template-columns: 1fr; }
  .line-facts { grid-template-columns: 1fr; max-width: 560px; }
}

/* ---------- Sample product grid (line pages) ---------- */
.sample-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  justify-self: start;
  font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber-soft);
  padding: .45rem 1rem; border-radius: 999px;
  background: rgba(255, 160, 40, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 160, 40, .3);
}
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.product-card {
  position: relative; overflow: clip;
  display: grid; grid-template-rows: auto 1fr;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(158, 182, 226, .06), rgba(158, 182, 226, .015));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 26px 50px -28px rgba(0,0,0,.9); }
.product-swatch {
  position: relative;
  aspect-ratio: 5 / 3.4;
  display: grid; place-items: center;
  background: var(--swatch, linear-gradient(140deg, #23304d, #0d1426));
  overflow: clip;
}
.product-swatch::after { /* acetate sheen */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 60% at 18% 0%, rgba(255,255,255,.14), transparent 55%),
    radial-gradient(70% 55% at 85% 100%, rgba(5,7,13,.5), transparent 60%);
}
.product-swatch svg {
  position: relative; z-index: 1;
  width: 72%; height: auto;
  color: rgba(238, 243, 252, .92);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .45));
  transition: transform .55s var(--ease-out);
}
.product-card:hover .product-swatch svg { transform: translateY(-3px) rotate(-2deg) scale(1.04); }
.product-body { display: grid; gap: .55rem; padding: 1.15rem 1.25rem 1.3rem; align-content: start; }
.product-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; }
.product-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-size: .74rem; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.product-colour { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--dim); }
.product-colour i { width: 12px; height: 12px; border-radius: 50%; background: var(--dot, #23304d); box-shadow: inset 0 0 0 1px rgba(238,243,252,.25); }
.product-actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .5rem; }
.product-price { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--star); }
.product-price small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.bag-soon {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ice);
  padding: .55rem 1rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: transparent; cursor: default;
}
a.bag-link {
  display: inline-block; cursor: pointer; text-decoration: none;
  transition: color .3s ease, box-shadow .3s ease;
}
a.bag-link:hover {
  color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(255, 160, 40, .55);
}
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- Footer newsletter ---------- */
.footer-news p { color: var(--faint); font-size: .9rem; margin-bottom: 1rem; }
.footer-news .notify-form { max-width: none; margin: 0; padding: .35rem .35rem .35rem 1.1rem; }
.footer-news .notify-form .btn { padding: .65rem 1.2rem; font-size: .85rem; }

/* ---------- Inner pages (shop / legal / 404) ---------- */
.page-hero {
  position: relative; isolation: isolate;
  min-height: 72svh;
  display: grid; place-content: center; text-align: center; gap: 1.4rem;
  padding: 7rem var(--gutter) 4rem;
  overflow: clip;
}
.page-hero .eyebrow { justify-self: center; }
.page-hero .eyebrow::before { display: none; }
.page-hero p { max-width: 52ch; margin-inline: auto; }
.page-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1rem; }

.prose-page { padding: 9rem 0 5rem; }
.prose { max-width: var(--w-text); margin-inline: auto; display: grid; gap: 1.1rem; }
.prose h1 { margin-bottom: 1rem; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--dim); }
.prose ul { display: grid; gap: .5rem; padding-left: 1.1rem; }
.prose ul li { list-style: "✦  "; }
.prose ul li::marker { color: var(--amber); font-size: .8em; }
.prose a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }

.notify-form {
  display: flex; gap: .7rem; max-width: 460px; margin-inline: auto; width: 100%;
  padding: .45rem .45rem .45rem 1.3rem;
  border-radius: 999px;
  background: rgba(158, 182, 226, .05);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow .3s;
}
.notify-form:focus-within { box-shadow: inset 0 0 0 1px var(--ice); }
.notify-form input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--star);
}
.notify-form .btn { padding: .8rem 1.5rem; flex-shrink: 0; }

.glyph-404 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(6rem, 22vw, 13rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-strong);
}
.glyph-404 .o { color: var(--amber); -webkit-text-stroke: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .watermark { display: none; }
}
@media (max-width: 900px) {
  .main-nav, .header-cta .btn--nav { display: none; }
  .burger { display: block; }
  .section-rail { display: flex; }
  /* lift the whole orbit system so the star sits between headline and paragraph */
  .hero-orbits { translate: 0 calc(-16% + var(--hp, 0) * -110px); }
  .site-header::after { display: block; }
  /* On scroll-down the logo row condenses to a slim brand strip instead of
     vanishing, the rail then sits ~40px below the viewport top, safely
     clear of device status bars even when the browser under-reports its
     safe-area inset. */
  .site-header.is-hidden { transform: none; }
  .site-header .brand { transition: scale .35s var(--ease-out); transform-origin: left center; }
  .site-header .header-cta { transition: opacity .3s; }
  .site-header.is-hidden .container {
    max-height: 40px;
    padding-block: .3rem;
    overflow: clip;
  }
  .site-header.is-hidden .brand { scale: .8; }
  .site-header.is-hidden .header-cta { opacity: 0; pointer-events: none; }
  .hero { padding-top: calc(9rem + env(safe-area-inset-top, 0px)); }
  .mission .container { grid-template-columns: 1fr; }
  .mission-figure { order: -1; }
  .contact .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Collections: natural flow instead of the tall sticky deck, far less scrolling */
  .panel-slot { height: auto; }
  .panel { position: relative; height: auto; min-height: 88svh; align-items: center; }
  .panel-body { padding-block: 42svh clamp(2.2rem, 6vh, 3.5rem); align-content: end; }
}
@media (max-width: 640px) {
  :root { --sec-pad: clamp(3.4rem, 9vh, 5rem); }
  .why-grid { grid-template-columns: 1fr; }
  .stat-console { grid-template-columns: 1fr; }
  .stat {
    grid-template-columns: auto 1fr;
    align-items: baseline; column-gap: 1rem;
    padding: 1rem 1.2rem 1.1rem;
  }
  .stat b { font-size: 1.9rem; }
  .stat > span { justify-self: end; text-align: right; font-size: .66rem; max-width: 17ch; }
  .stat .gauge { grid-column: 1 / -1; margin-top: .55rem; }
  .stat::after { display: none; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  /* Stack, never centre: client line stays left, our credit stays right, and
     the extra bottom room keeps that last line clear of the fixed orbit dial. */
  .footer-legal { grid-template-columns: 1fr; gap: .85rem; }
  .site-footer { padding-bottom: 5.4rem; }
  .header-cta .pill-soon { display: none; }
  .panel-index { right: auto; left: var(--gutter); top: 14vh; font-size: 4.6rem; opacity: .6; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .orbit-dial { right: 1rem; bottom: 1rem; width: 48px; height: 48px; }
}

}

/* ============================================================
   PORTFOLIO · the frame register
   ============================================================ */
.portfolio-hero .lead { max-width: 640px; }
.pf-counts {
  display: flex; align-items: center; justify-content: center; gap: 1.1rem;
  margin-top: 2.2rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim);
}
.pf-counts b { color: var(--star); font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; }
.pf-counts i { width: 26px; height: 1px; background: var(--line-strong); }

.pf-register { background: var(--void); isolation: isolate; padding-top: clamp(2.5rem, 6vh, 4rem); }
.pf-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
  margin-bottom: clamp(1.8rem, 4vh, 2.8rem);
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--line);
}
.pf-bar-note {
  font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--dim);
}
.pf-bar-note .spark { color: var(--amber); margin-right: .4rem; }
.pf-filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.pf-filter {
  font-family: var(--font-body); font-size: .74rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--dim); background: transparent; cursor: pointer;
  padding: .5rem 1.05rem; border: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: color .3s ease, box-shadow .3s ease, background .3s ease;
}
.pf-filter:hover { color: var(--star); }
.pf-filter[aria-pressed="true"] {
  color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(255, 160, 40, .55);
  background: rgba(255, 160, 40, .07);
}

.pf-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(.9rem, 1.8vw, 1.6rem);
}
.pf-span-7 { grid-column: span 7; }
.pf-span-6 { grid-column: span 6; }
.pf-span-5 { grid-column: span 5; }
.pf-span-4 { grid-column: span 4; }
.pf-card {
  opacity: 0; transform: translateY(30px); filter: blur(6px);
  transition: opacity .9s var(--ease-out) var(--d, 0s),
              transform .9s var(--ease-out) var(--d, 0s),
              filter .9s var(--ease-out) var(--d, 0s);
}
.pf-card.is-in { opacity: 1; transform: none; filter: none; }
.pf-open {
  position: relative; display: block; width: 100%; text-align: left;
  background: var(--ink); border: 0; padding: 0; cursor: pointer;
  border-radius: 14px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.pf-media { display: block; aspect-ratio: 3 / 2.1; overflow: hidden; }
.pf-span-7 .pf-media { aspect-ratio: 16 / 9.4; }
.pf-span-4 .pf-media { aspect-ratio: 1 / 1.02; }
.pf-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.01);
  transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out);
  filter: saturate(.96);
}
.pf-open:hover .pf-media img, .pf-open:focus-visible .pf-media img { transform: scale(1.055); filter: saturate(1.05); }
.pf-open::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(185deg, rgba(5, 7, 13, 0) 46%, rgba(5, 7, 13, .82) 88%);
}
.pf-no {
  position: absolute; top: .4rem; right: 1rem; z-index: 2;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.4rem, 6.5vw, 5.6rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(158, 182, 226, .3);
  transition: -webkit-text-stroke-color .5s ease, color .5s ease;
}
.pf-open:hover .pf-no, .pf-open:focus-visible .pf-no { -webkit-text-stroke-color: rgba(255, 160, 40, .55); }
.pf-meta { position: absolute; left: 1.15rem; right: 1.15rem; bottom: 1rem; z-index: 2; display: grid; gap: .18rem; }
.pf-line {
  font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber-soft);
}
.pf-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem); color: var(--star); line-height: 1.05;
}
.pf-spec { font-size: .8rem; color: var(--dim); letter-spacing: .04em; }
.pf-open:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.pf-empty { margin-top: 2rem; color: var(--dim); text-align: center; }

/* ---- model sets: one frame, its colourways beneath ----
   Line pages group the register by model so three finishes of the same
   frame never read as three different frames wearing one name. */
.pf-set-head {
  display: grid; gap: .55rem; align-content: start;
  padding: clamp(1.5rem, 3vw, 2.4rem) 0 clamp(.4rem, 1vw, .8rem);
  border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.pf-set-head.is-in { opacity: 1; transform: none; }
.pf-grid > .pf-set-head:first-child { border-top: 0; padding-top: 0; }
.pf-set-id { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.pf-set-model {
  font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber); padding: .3rem .6rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 160, 40, .4);
}
.pf-set-name {
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem); color: var(--star);
}
.pf-set-def { max-width: 62ch; color: var(--dim); font-size: .95rem; line-height: 1.6; }
.pf-set-meta {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint);
}
.pf-set-meta i { width: 14px; height: 1px; background: var(--line-strong); display: inline-block; }
/* inside a set the colourway leads, so its type sits a step down */
.pf-in-set .pf-name { font-size: clamp(1.15rem, 1.9vw, 1.5rem); }

/* ---- colour dots ---- */
.pf-dot {
  width: 13px; height: 13px; border-radius: 50%; display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 1px 3px rgba(0, 0, 0, .5);
  flex: none;
}
.pf-line .pf-dot { translate: 0 2px; margin-right: .45rem; }
.pf-ways { display: flex; align-items: center; gap: .5rem; margin-top: .45rem; }
.pf-dots { display: inline-flex; gap: .3rem; }
.pf-ways-n {
  font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint);
}

/* ---- dialog colourway switcher ---- */
.pfd-ways { margin: .2rem 0 1.1rem; }
.pfd-ways[hidden] { display: none; }
.pfd-ways-label {
  font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); margin-bottom: .5rem;
}
.pfd-ways-row { display: flex; gap: .55rem; flex-wrap: wrap; }
.pfd-way {
  display: grid; gap: .34rem; justify-items: center; padding: .4rem .45rem .5rem;
  background: transparent; border: 0; border-radius: 12px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .25s var(--ease-out), background .25s var(--ease-out);
  width: 5.6rem;
}
.pfd-way:hover { background: rgba(255, 255, 255, .04); }
.pfd-way[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px rgba(255, 160, 40, .65);
  background: rgba(255, 160, 40, .07);
}
.pfd-way-img { width: 100%; aspect-ratio: 16 / 11; border-radius: 7px; overflow: hidden; display: block; }
.pfd-way-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfd-way-dot {
  width: 12px; height: 12px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.pfd-way-name {
  font-size: .6rem; line-height: 1.25; text-align: center; color: var(--dim);
  letter-spacing: .02em;
}
.pfd-way[aria-pressed="true"] .pfd-way-name { color: var(--star); }
.pfd-way:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.pf-note { position: relative; isolation: isolate; overflow: hidden; text-align: center; }
.pf-note-backdrop { position: absolute; inset: 0; z-index: -1; background: var(--deep); }
.pf-note-backdrop img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: .15; filter: saturate(.85);
}
.pf-note-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--void) 0%, rgba(9, 14, 27, .3) 48%, var(--void) 100%);
}
.pf-note .lead { margin-inline: auto; max-width: 620px; }
.pf-note .page-actions { justify-content: center; display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- spec-sheet dialog ---------- */
.pf-dialog {
  border: 0; padding: 0; background: transparent;
  width: min(960px, calc(100vw - 2.5rem));
  max-height: calc(100dvh - 3rem);
  margin: auto; /* the global reset strips the UA centering margin */
  color: var(--star); /* dialogs default to UA CanvasText (black), not the body ink */
}
.pf-dialog::backdrop {
  background: rgba(5, 7, 13, .78);
  backdrop-filter: blur(10px);
}
.pfd-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--ink); border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 90px rgba(0, 0, 0, .5);
}
.pfd-media { margin: 0; min-height: 100%; }
.pfd-media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 420px; }
.pfd-body { padding: clamp(1.6rem, 3.4vw, 2.6rem); display: grid; align-content: start; gap: .55rem; }
.pfd-entry {
  font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--faint); border-bottom: 1px solid var(--line); padding-bottom: .8rem; margin-bottom: .5rem;
}
.pfd-entry span { color: var(--amber); }
.pfd-body .eyebrow { color: var(--amber-soft); font-size: .7rem; letter-spacing: .18em; }
.pfd-body h2 { font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1; margin-bottom: .2rem; }
.pfd-def { color: var(--dim); font-size: .92rem; line-height: 1.6; margin-bottom: .5rem; }
.pfd-def:empty { display: none; }
.pfd-colournote {
  color: var(--amber-soft); font-size: .82rem; line-height: 1.5; font-style: italic;
  margin: -.2rem 0 .4rem;
}
.pfd-colournote:empty { display: none; }
.pfd-specs { display: grid; gap: 0; margin: .4rem 0 1.2rem; }
.pfd-specs > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
}
.pfd-specs dt {
  font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--faint);
}
.pfd-specs dd { font-size: .92rem; color: var(--star); text-align: right; }
.pfd-specs .pfd-price dd { color: var(--amber); font-size: .8rem; letter-spacing: .06em; }
.pfd-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.pfd-close {
  position: absolute; top: .9rem; right: .9rem; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.4rem; line-height: 1; color: var(--star);
  background: rgba(5, 7, 13, .55); border: 1px solid var(--line-strong);
  cursor: pointer; backdrop-filter: blur(6px);
  transition: color .3s ease, border-color .3s ease, transform .3s ease;
}
.pfd-close:hover { color: var(--amber); border-color: rgba(255, 160, 40, .55); transform: rotate(90deg); }
.pf-dialog[open] .pfd-inner { animation: pfd-in .55s var(--ease-out); }
@keyframes pfd-in {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- contact frame chip ---------- */
.frame-chip {
  display: flex; align-items: center; gap: .85rem;
  padding: .7rem .9rem; margin-bottom: 1.1rem;
  background: rgba(255, 160, 40, .06); border: 1px solid rgba(255, 160, 40, .35);
  border-radius: 12px;
}
.frame-chip img { width: 52px; height: 40px; object-fit: cover; border-radius: 7px; }
.frame-chip .fc-text { flex: 1; display: grid; gap: .1rem; }
.frame-chip .fc-label {
  font-size: .62rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--amber-soft);
}
.frame-chip .fc-frame { font-size: .92rem; color: var(--star); }
.frame-chip .fc-remove {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  color: var(--dim); background: transparent; border: 1px solid var(--line-strong);
  font-size: 1.05rem; line-height: 1; cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}
.frame-chip .fc-remove:hover { color: var(--amber); border-color: rgba(255, 160, 40, .55); }

.frame-chip .fc-plate {
  width: 52px; height: 40px; border-radius: 7px; flex: 0 0 auto;
  background: linear-gradient(145deg, var(--sw), var(--sw2));
  box-shadow: inset 0 0 0 1px rgba(158, 182, 226, .22);
}

/* ---------- Awaiting photography ----------
   A colourway is catalogued as soon as the client confirms the finish. Until
   the studio shot lands, the card holds its place as a plate tinted with that
   finish, so the set still reads as one frame in three colourways. */
/* the plate is the colour dot at card scale: the same 140deg split, so the
   finish itself is what the visitor sees while the photograph is pending */
.pf-media--pending, .pfd-media.is-pending, .pfd-way-img--pending {
  background: linear-gradient(140deg, var(--sw) 0 32%, var(--sw2) 68% 100%);
}
.pf-media--pending {
  position: relative; display: grid; place-items: center;
  padding-bottom: 3.4rem;
}
.pf-media--pending::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(5, 7, 13, .34), rgba(5, 7, 13, .76));
}
.pf-pending-cap {
  position: relative; z-index: 1; text-align: center;
  font-family: var(--font-body);
  font-size: .64rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase;
  line-height: 1.5; color: var(--amber-soft);
  padding: .5rem .95rem; border-radius: 999px;
  background: rgba(5, 7, 13, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 160, 40, .28);
}
.pf-open:hover .pf-media--pending::before { background: linear-gradient(185deg, rgba(5, 7, 13, .26), rgba(5, 7, 13, .72)); }

.pfd-media.is-pending {
  position: relative; display: grid; place-items: center; min-height: 420px;
}
.pfd-media.is-pending::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(5, 7, 13, .3), rgba(5, 7, 13, .7));
}
.pfd-pending {
  position: relative; z-index: 1; margin: 0; max-width: 19rem;
  text-align: center; font-size: .84rem; line-height: 1.65;
  color: var(--amber-soft);
  padding: 1rem 1.3rem; border-radius: 16px;
  background: rgba(5, 7, 13, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 160, 40, .26);
}
.pfd-way-img--pending { box-shadow: inset 0 0 0 1px rgba(158, 182, 226, .2); }

@media (max-width: 900px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-span-7, .pf-span-6, .pf-span-5, .pf-span-4 { grid-column: 1 / -1; }
  .pf-span-7 .pf-media, .pf-span-4 .pf-media, .pf-media { aspect-ratio: 4 / 2.9; }
  .pf-bar { flex-direction: column; align-items: flex-start; }
  .pfd-inner { grid-template-columns: 1fr; max-height: calc(100dvh - 3rem); overflow: auto; }
  /* stacked, the media is its own row: height:100% against an auto-sized grid
     row resolves to 0, which collapsed the photograph away entirely */
  .pfd-media { min-height: 0; }
  .pfd-media img { height: auto; min-height: 0; aspect-ratio: 4 / 2.7; }
  /* min-height, not aspect-ratio: only min-height feeds the auto row track,
     so the plate keeps its own row instead of overflowing onto the words */
  .pfd-media.is-pending { min-height: min(60vw, 320px); aspect-ratio: auto; }
  .pf-counts { flex-wrap: wrap; gap: .7rem; }
}

/* ---------- Milan campaign: editorial tiles in the register ---------- */
.pf-edit { position: relative; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.pf-edit img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); transition: transform 1.4s var(--ease-out); transform: scale(1.01); }
.pf-edit:hover img { transform: scale(1.04); }
.pf-edit::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(185deg, rgba(5, 7, 13, 0) 60%, rgba(5, 7, 13, .55) 96%);
}
.pf-edit .pf-edit-cap {
  position: absolute; left: 1.1rem; bottom: .9rem; z-index: 2;
  font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber-soft);
}
.pf-span-12 { grid-column: 1 / -1; }
.pf-edit.pf-span-12 { aspect-ratio: 16 / 7.2; }
.pf-card.pf-span-12:not(.pf-edit) .pf-media { aspect-ratio: 16 / 6.4; }
.pf-edit.pf-span-7 { aspect-ratio: 16 / 9.4; }
.pf-edit.pf-span-6 { aspect-ratio: 3 / 2.1; }
.pf-edit.pf-span-5 { aspect-ratio: 11 / 10; }

/* ---------- the Milan film ---------- */
.pf-cinema { background: var(--void); isolation: isolate; overflow: hidden; }
.pfc-grid {
  display: grid; grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(2.4rem, 6vw, 5rem); align-items: center;
}
.pfc-frame {
  position: relative; margin: 0; aspect-ratio: 9 / 16; width: 100%;
  border-radius: 22px;
}
.pfc-orbit { inset: -14% -26%; opacity: .5; z-index: -1; }
.pfc-video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 34px 90px rgba(0, 0, 0, .55), 0 0 110px rgba(255, 160, 40, .07);
  background: var(--ink);
}
.pfc-play {
  position: absolute; left: 50%; bottom: 1.1rem; translate: -50% 0; z-index: 3;
  display: inline-flex; align-items: center;
  font-family: var(--font-body); font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--star); white-space: nowrap;
  padding: .7rem 1.2rem; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(5, 7, 13, .55); backdrop-filter: blur(8px); cursor: pointer;
  transition: color .3s ease, border-color .3s ease, background .3s ease;
}
.pfc-play:hover { color: var(--amber); border-color: rgba(255, 160, 40, .6); background: rgba(5, 7, 13, .75); }
.pfc-play-ico { color: var(--amber); font-size: .66rem; }
.pfc-frame.is-full .pfc-play { display: none; }
.pfc-copy .copy { max-width: 46ch; }
.pfc-stills { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.6rem; max-width: 440px; }
.pfc-stills img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.pfc-note {
  margin-top: 1.4rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Milan filmstrip ---------- */
.pf-strip { overflow: hidden; background: var(--void); padding: clamp(1rem, 3vh, 2rem) 0 clamp(2.2rem, 6vh, 3.6rem); }
.strip-track { display: flex; width: max-content; animation: strip-roll 48s linear infinite; }
.strip-run { display: flex; gap: .9rem; padding-right: .9rem; }
.strip-run img {
  height: clamp(150px, 22vh, 230px); aspect-ratio: 52 / 68;
  object-fit: cover; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: .92;
}
@keyframes strip-roll { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .pfc-grid { grid-template-columns: 1fr; }
  .pfc-frame { max-width: 320px; margin-inline: auto; }
  .pfc-copy { text-align: center; }
  .pfc-copy .copy, .pfc-stills { margin-inline: auto; }
  .pf-edit.pf-span-12, .pf-edit.pf-span-7, .pf-edit.pf-span-6, .pf-edit.pf-span-5 { aspect-ratio: 4 / 2.9; }
}

/* ---------- contact form: direct send ---------- */
.hp-field {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.contact-form.is-sent .field, .contact-form.is-sent .form-foot, .contact-form.is-sent .frame-chip { display: none; }
.sent-note {
  display: grid; gap: .4rem; justify-items: start;
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(255, 160, 40, .4); border-radius: 14px;
  background: rgba(255, 160, 40, .06);
}
.sent-note .spark { color: var(--amber); font-size: 1.1rem; }
.sent-note strong { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--star); }
.sent-note p { color: var(--dim); }

/* ---------- newsletter inline confirmation ---------- */
.notify-done {
  display: flex; align-items: center; gap: .55rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(255, 160, 40, .4); border-radius: 10px;
  background: rgba(255, 160, 40, .06);
  color: var(--star); font-size: .92rem;
}
.notify-done .spark { color: var(--amber); }
