/* Packaging Studio · shared components. Board px x2 = desktop px at 1920 (written as N * var(--u)). */

/* ---------- glass nav (A-S1) ---------- */
.nav {
  position: fixed; z-index: 50; left: var(--m); right: var(--m); top: var(--nav-top); height: var(--nav-h);
  display: flex; align-items: center; border-radius: max(6px, calc(8 * var(--u)));
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 0 0 1px var(--hair-soft);
  transition: transform .24s var(--ease-land), opacity .24s var(--ease-land);
}
.nav.is-hidden { transform: translate3d(0, calc(-100% - var(--nav-top) - 8px), 0); }
.nav__brand { display: flex; align-items: center; gap: max(10px, calc(14 * var(--u))); padding-left: max(14px, calc(22 * var(--u))); min-width: 0; }
.nav__mark { flex: none; width: max(26px, calc(40 * var(--u))); height: auto; }   /* the gold mark, unchanged; beside the lockup as on the board's own strip */
.nav__lock { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.nav__word { font: 500 max(17px, calc(24 * var(--u)))/1 var(--f-display); letter-spacing: .32em; color: var(--ivory); white-space: nowrap; text-transform: uppercase; }
.nav__credit { margin-top: max(5px, calc(8 * var(--u))); font: 500 max(8px, calc(10 * var(--u)))/1 var(--f-ui); letter-spacing: .42em; color: var(--stone); text-transform: uppercase; white-space: nowrap; }
.nav__links { position: absolute; left: calc(31.25vw - var(--m)); top: 0; bottom: 0; display: flex; align-items: center; gap: max(18px, 2.1vw); }   /* board x 300; equal gaps between the words (B60: fixed 58-unit steps left "Collection" touching "Builder") */
.nav__link { position: relative; font: 400 var(--fs-nav)/1 var(--f-ui); letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; transition: color var(--t-hover) var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--ivory); }
.is-soon { opacity: .42; cursor: default; }                    /* B64: a page not built yet: the words stay, the link waits */
.nav__link.is-soon:hover { color: var(--ink-3); }
.nav__link.is-active::before { content: '+'; position: absolute; right: 100%; margin-right: .45em; color: var(--gold); }   /* hangs left of the word, so the words keep their places (B60) */
.nav__cta { margin-left: auto; margin-right: max(8px, calc(12 * var(--u))); }
.nav__menu { display: none; }

/* phone sheet */
.sheet { position: fixed; inset: 0; z-index: 49; padding: calc(var(--nav-h) + var(--nav-top) + 32px) var(--m) 40px; background: rgba(11, 11, 11, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.sheet nav { display: grid; gap: 22px; }
.sheet a, .sheet nav > .is-soon { font: 300 34px/1.1 var(--f-display); color: var(--ivory); }

/* ---------- pills (Ref A primary with arrow disc + orbit light T3) ---------- */
.pill {
  position: relative; display: inline-flex; align-items: center; gap: max(10px, calc(16 * var(--u)));
  height: max(40px, calc(44 * var(--u))); padding: 0 max(8px, calc(12 * var(--u))) 0 max(18px, calc(24 * var(--u)));
  border-radius: var(--pill); font: 500 var(--fs-pill)/1 var(--f-ui); letter-spacing: .01em; white-space: nowrap; isolation: isolate;
  transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.pill i {
  display: grid; place-items: center; width: max(26px, calc(28 * var(--u))); height: max(26px, calc(28 * var(--u))); border-radius: 50%;
  background: var(--ebony); color: var(--gold); font: 500 max(13px, calc(15 * var(--u)))/1 var(--f-ui); font-style: normal;
  transition: transform var(--t-hover) var(--ease);
}
.pill:hover i, .pill:focus-visible i { transform: translate3d(var(--nudge), 0, 0); }
.pill--pri { background: var(--ivory); color: var(--ebony); }
.pill--pri:hover { background: #fffaf0; }
.pill--sec { padding: 0 max(18px, calc(24 * var(--u))); background: rgba(255, 255, 255, .04); color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(141, 132, 120, .45); }
.pill--sec:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.pill--orbit { box-shadow: 0 0 0 1.5px rgba(212, 180, 124, .25), 0 0 calc(20 * var(--u)) rgba(212, 180, 124, .35); }
.pill--orbit::after {
  content: ''; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--orbit-a), transparent 0deg 250deg, rgba(255, 242, 214, .35) 300deg, var(--light) 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ps-orbit var(--t-orbit) linear infinite;
}
@keyframes ps-orbit { to { --orbit-a: 360deg; } }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: max(8px, calc(12 * var(--u))); }
.chip {
  display: inline-flex; align-items: center; height: max(28px, calc(32 * var(--u))); padding: 0 max(12px, calc(16 * var(--u)));
  border-radius: var(--pill); font: 500 var(--fs-chip)/1 var(--f-ui); letter-spacing: .02em; color: var(--ink-3); white-space: nowrap;
  background: rgba(11, 11, 11, .4); box-shadow: inset 0 0 0 1px rgba(141, 132, 120, .4);
  transition: color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease);
}
.chip.is-on { background: var(--ivory); color: var(--ebony); box-shadow: none; }

/* ---------- rails and counters (left rail labels) ---------- */
.rail { position: absolute; left: calc(44 * var(--u)); font: 500 max(10px, calc(12 * var(--u)))/1 var(--f-ui); letter-spacing: .28em; color: var(--stone); text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.count { font: 500 max(11px, calc(14 * var(--u)))/1 var(--f-ui); letter-spacing: .2em; color: var(--gold); }

/* ---------- cursor ring (desktop pointer only; follows with 120 ms lag) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 1.5px var(--gold); opacity: 0; transform: translate3d(-100px, -100px, 0); transition: opacity var(--t-hover) var(--ease), width var(--t-hover) var(--ease), height var(--t-hover) var(--ease), margin var(--t-hover) var(--ease); }
.cursor b { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); font: 500 12px/1 var(--f-ui); letter-spacing: .12em; color: var(--gold); white-space: nowrap; text-transform: uppercase; opacity: 0; transition: opacity var(--t-hover) var(--ease); }
.cursor.is-on { opacity: 1; }
.cursor.has-label b { opacity: 1; }
.cursor.is-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- preloader (B-S12): the dieline draws itself ---------- */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--ebony); transition: opacity .4s var(--ease-leave), visibility 0s linear .4s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__ring { position: relative; width: calc(300 * var(--u)); height: calc(300 * var(--u)); min-width: 160px; min-height: 160px; }
.loader__ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loader__net { position: absolute; left: 50%; top: 50%; width: 56%; height: 66%; transform: translate(-50%, -50%); }
.loader__net svg { width: 100%; height: 100%; overflow: visible; }
.loader__label { position: absolute; left: 50%; top: calc(100% + 26px); transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; }
.loader__pct { font: 500 max(13px, calc(18 * var(--u)))/1 var(--f-ui); color: var(--stone); letter-spacing: .08em; }

/* ---------- scroll cue (T6): measured keyframes ---------- */
.cue { position: absolute; left: 50%; bottom: max(24px, calc(36 * var(--u))); width: 1px; height: max(40px, calc(56 * var(--u))); overflow: hidden; background: rgba(141, 132, 120, .25); }
.cue::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--gold); animation: ps-cue var(--t-cue) var(--ease-cue) infinite; }
@keyframes ps-cue { 0% { opacity: 0; transform: translateY(-100%); } 30% { opacity: 1; } to { opacity: 0; transform: translateY(240%); } }

/* ---------- ambient + drifts (T4, T5): measured keyframes ---------- */
@keyframes ps-ambient { 0% { transform: scale(1) translateX(0); } to { transform: scale(1.12) translateX(-4%); } }
@keyframes ps-drift-a { 0% { transform: translate(-4%, -2%) scale(1.04); } 50% { transform: translate(3%, 3%) scale(1.12); } to { transform: translate(5%, -3%) scale(1.06); } }
@keyframes ps-drift-b { 0% { transform: translate(-3%, -2%) scale(1.03); } 50% { transform: translate(2%, 2%) scale(1.09); } to { transform: translate(4%, -2%) scale(1.05); } }
@keyframes ps-drift-c { 0% { transform: translate(-2%, -1%) scale(1.02); } 50% { transform: translate(2%, 2%) scale(1.08); } to { transform: translate(3%, -2%) scale(1.04); } }
@keyframes ps-wall-up { 0% { transform: translateY(0); } to { transform: translateY(calc(-50% - clamp(7px, .8vw, 12px))); } }
@keyframes ps-wall-down { 0% { transform: translateY(calc(-50% - clamp(7px, .8vw, 12px))); } to { transform: translateY(0); } }

/* ---------- footer (A-S12, Forêt) ---------- */
.foot { position: relative; z-index: 2; overflow: hidden; background: radial-gradient(60% 70% at 50% 40%, #13493f, var(--foret) 55%, #082520); color: var(--ivory); padding: calc(140 * var(--u)) var(--m) calc(56 * var(--u)); }
.foot::before { content: ''; position: absolute; left: -10%; top: -30%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(212, 180, 124, .10), transparent); animation: ps-ambient var(--t-ambient) var(--ease-drift) infinite alternate; pointer-events: none; }
.foot__in { position: relative; display: grid; grid-template-columns: 1.2fr 2fr; gap: calc(80 * var(--u)); }
.foot__mark { display: block; width: max(56px, calc(84 * var(--u))); height: auto; margin-bottom: 22px; }
.foot__word { display: block; font: 500 max(30px, calc(52 * var(--u)))/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; }
.foot__credit { display: block; width: max-content; margin-top: 14px; font: 500 max(9px, calc(11 * var(--u)))/1 var(--f-ui); letter-spacing: .42em; color: var(--ink-3); text-transform: uppercase; }
.foot__line { margin-top: calc(40 * var(--u)); font: italic 400 max(18px, calc(26 * var(--u)))/1.45 var(--f-accent); color: var(--ivory); max-width: 18em; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(48 * var(--u)); }
.foot__cols div { display: grid; align-content: start; gap: 14px; }
.foot__cols a, .foot__cols .is-soon { color: var(--ink-2); width: max-content; transition: color var(--t-hover) var(--ease); }
.foot__cols a:hover, a.foot__credit:hover { color: var(--gold); }
.foot__cols .pill { margin-top: 10px; color: var(--ebony); }
.foot__cols .pill:hover { color: var(--ebony); }
.foot__ask { color: var(--ink-3); font-size: var(--fs-small); max-width: 22em; }
.foot__made { position: relative; margin-top: calc(110 * var(--u)); padding-top: 22px; border-top: 1px solid rgba(243, 237, 224, .14); font-size: max(12px, calc(14 * var(--u))); color: var(--stone); letter-spacing: .04em; }

/* narrow PC screens (1024-1279 px): the brand with its mark is wider than the board's x 300, so the links follow it
   in the row instead of sitting at a fixed place (they ran 44 px into the brand at 1024 px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__links { position: static; margin-left: 28px; gap: 16px; }
  .nav__word { letter-spacing: .24em; }
}

/* ---------- phone ---------- */
@media (max-width: 1023px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; align-items: center; margin-left: auto; margin-right: 8px; height: 40px; padding: 0 18px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px rgba(141, 132, 120, .45); font: 500 13px/1 var(--f-ui); letter-spacing: .08em; color: var(--ivory); }
  .foot__in { grid-template-columns: 1fr; gap: 48px; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .nav { left: 12px; right: 12px; top: 12px; }
  .nav__word { letter-spacing: .24em; font-size: 16px; }
  .foot { padding: 80px 20px 32px; }
  .foot__cols { grid-template-columns: 1fr; }
}

/* phone menu: the footer's own links, smaller (the Collection has no footer) */
.sheet a.sheet__small, .sheet .sheet__small.is-soon { font: 400 15px/1.4 var(--f-ui); color: var(--ink-3); }
.sheet nav > :not(.sheet__small) + .sheet__small { margin-top: 12px; }   /* the first small link (':first-of-type' never matched: the first link is Collection) */
