/* ==========================================================================
   GAMCS — base, layout and shared components
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--c-bg);
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  text-rendering: optimizeLegibility;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.05; font-weight: 800; overflow-wrap: break-word; }
p { text-wrap: pretty; }
::selection { background: var(--c-amber); color: #000; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* film grain — very low opacity, static (no animation cost) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  left: 12px; top: 12px;
  z-index: 3000;
  padding: .75rem 1.1rem;
  background: var(--c-amber);
  color: #000;
  font-weight: 700;
  border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: none; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: calc(var(--sec-y) * .6); }
/* skip layout/paint of off-screen sections until they approach the viewport */
main > .section:not(:first-child), main > .cta-band, main > div > .cta-band, .marquee--giant, .site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.section--raised { background: var(--c-bg-2); }
.section--lines { isolation: isolate; }
.section--lines::before {
  /* visible hairline column grid accent (4 cols mobile / 12 cols desktop) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  --cols: 4;
  background-image: linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: calc((min(100%, var(--maxw)) - 2 * var(--gutter)) / var(--cols)) 100%;
  background-position: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))) 0;
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  opacity: .55;
}
@media (min-width: 900px) { .section--lines::before { --cols: 12; } }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}
@media (min-width: 900px) { .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

.stack > * + * { margin-top: var(--stack, 1rem); }
.measure { max-width: 64ch; }

/* ---------- typography ---------- */
.display {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .92;
}
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-family: var(--f-display); font-stretch: 112%; font-size: var(--fs-h3); font-weight: 800; letter-spacing: -.005em; }
.h4 { font-family: var(--f-display); font-stretch: 105%; font-size: var(--fs-h4); font-weight: 750; }
.lead { font-size: var(--fs-lg); color: var(--c-chrome-2); line-height: 1.55; }
.muted { color: var(--c-muted); }
.mono { font-family: var(--f-mono); font-feature-settings: "zero" 1; }

.chrome-text {
  color: var(--c-chrome-1);
  background: var(--g-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 244, 246, .32);
}

.index {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  color: var(--c-amber);
}
.index::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.index b { font-weight: 700; color: var(--c-amber); }
.index span { color: var(--c-muted); }

.sec-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.25rem, 4vw, 4rem); }
.sec-head--split { align-items: end; }
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: 1.3fr 1fr; gap: 3rem; }
}
.sec-head .lead { max-width: 52ch; }

.prose p + p { margin-top: 1em; }
.prose a, .text-link {
  color: var(--c-chrome-1);
  text-decoration: underline;
  text-decoration-color: var(--c-amber);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
  transition: color var(--t-fast);
}
.prose a:hover, .text-link:hover { color: var(--c-amber); }

/* placeholder chip — marks data the club still has to provide */
.ph {
  display: inline-block;
  padding: .05em .45em;
  border: 1px dashed var(--c-amber);
  border-radius: var(--r-xs);
  font-family: var(--f-mono);
  font-size: .85em;
  color: var(--c-amber);
  background: rgba(212, 146, 44, .07);
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-text);
  --btn-bd: var(--c-line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.4rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out);
  -webkit-user-select: none;
  user-select: none;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn::after {
  /* chrome sheen sweep */
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.97); }
.btn--primary { --btn-bg: var(--c-red); --btn-bd: var(--c-red); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: #E2262B; --btn-bd: #E2262B; }
.btn--ghost { --btn-bg: rgba(255, 255, 255, .04); --btn-bd: rgba(242, 244, 246, .3); }
.btn--ghost:hover { --btn-bd: var(--c-chrome-1); --btn-bg: rgba(255, 255, 255, .08); }
.btn--donate { --btn-bd: var(--c-red); --btn-fg: #fff; --btn-bg: rgba(209, 26, 31, .1); }
.btn--donate:hover { --btn-bg: var(--c-red); }
.btn--amber { --btn-bg: var(--c-amber); --btn-bd: var(--c-amber); --btn-fg: #120a00; }
.btn--amber:hover { --btn-bg: #E5A443; }
.btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  color: var(--c-chrome-1);
  border-bottom: 1px solid var(--c-line-2);
  padding-block: .35rem;
  transition: color var(--t-fast), border-color var(--t-fast), gap var(--t-fast) var(--ease-out);
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { color: var(--c-amber); border-color: var(--c-amber); gap: .8rem; }

/* ---------- icons / gear ---------- */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gear-bg {
  position: absolute;
  pointer-events: none;
  color: var(--c-chrome-3);
  opacity: .18;
  width: min(70vw, 680px);
  aspect-ratio: 1;
  z-index: 0;
}
.gear-bg svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: .6; }
.gear-spin { animation: spin 60s linear infinite; }
[data-gear-scroll] { will-change: transform; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- crosshair corner marks ---------- */
.xmarks { position: relative; }
.xmarks::before, .xmarks::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  border-color: var(--c-chrome-3);
  border-style: solid;
  transition: border-color var(--t-fast), transform var(--t-med) var(--ease-out);
}
.xmarks::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.xmarks::after { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }
.xmarks:hover::before { transform: translate(-3px, -3px); border-color: var(--c-amber); }
.xmarks:hover::after { transform: translate(3px, 3px); border-color: var(--c-amber); }

/* ---------- card ---------- */
.card {
  position: relative;
  background: var(--c-bg-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--t-med), transform var(--t-med) var(--ease-out), background-color var(--t-med);
}
.card::marker { content: none; }
.card .sheen {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .06) 48%, rgba(255, 255, 255, .12) 50%, transparent 66%);
  transform: translateX(-110%);
  transition: transform 1s var(--ease-out);
  pointer-events: none;
}
.card:hover { border-color: var(--c-line-2); }
.card:hover .sheen { transform: translateX(110%); }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--c-line-2);
  color: var(--c-amber);
  margin-bottom: 1.25rem;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .08), transparent 70%);
}
.card__icon .icon { width: 24px; height: 24px; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--c-chrome-2); }

/* press-scale feedback (app feel) */
@media (hover: none) {
  .pressable { transition: transform .18s var(--ease-out); }
  .pressable:active { transform: scale(.975); }
}

/* ---------- spec sheet rows ---------- */
.spec { display: grid; border-top: 1px solid var(--c-line-2); }
.spec__row {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr minmax(0, auto);
  align-items: baseline;
  gap: .9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-line);
}
.spec__row dt, .spec__label {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.spec__row > :first-child { grid-column: 1; grid-row: 1; }
.spec__row > :last-child { grid-column: 3; grid-row: 1; }
.spec__row::after {
  /* dotted leader between label and value (a grid item, so the <dl> markup stays valid) */
  content: "";
  grid-column: 2;
  grid-row: 1;
  height: 1px;
  align-self: center;
  background-image: linear-gradient(90deg, var(--c-chrome-3) 1px, transparent 1px);
  background-size: 6px 1px;
  opacity: .6;
}
.spec__row dd, .spec__value {
  text-align: right;
  font-weight: 600;
  color: var(--c-text);
  overflow-wrap: anywhere;
}
.spec__value.mono { font-weight: 500; }
@media (max-width: 479px) {
  .spec__row { grid-template-columns: 1fr; gap: .3rem; }
  .spec__row > :last-child { grid-column: 1; grid-row: 2; }
  .spec__row::after { display: none; }
  .spec__row dd, .spec__value { text-align: left; }
}

/* ---------- scroll progress ---------- */
.progress-line {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--g-amber);
  pointer-events: none;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: var(--nav-h);
  transition: transform .5s var(--ease-out), background-color .35s, border-color .35s, -webkit-backdrop-filter .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, .62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--c-line);
}
.site-header.is-hidden { transform: translateY(-105%); }
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand img { width: 52px; height: 52px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5)); transition: transform .6s var(--ease-out); }
.brand:hover img { transform: rotate(-8deg) scale(1.04); }
.brand__text { display: grid; line-height: 1.1; }
.brand__text b { font-family: var(--f-display); font-stretch: 125%; font-weight: 850; font-size: 1.05rem; letter-spacing: .04em; }
.brand__text small { font-family: var(--f-mono); font-size: .62rem; color: var(--c-muted); letter-spacing: .04em; }

.nav { position: relative; margin-left: auto; }
.nav__list { display: flex; gap: .25rem; list-style: none; padding: 0; }
.nav__link {
  position: relative;
  display: block;
  padding: .6rem .8rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-chrome-2);
  transition: color var(--t-fast);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--c-text); }
.nav__indicator {
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 2px;
  width: 0;
  background: var(--c-amber);
  border-radius: 2px;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .3s;
  opacity: 0;
  pointer-events: none;
}
.nav__donate { flex: none; }

.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--c-line-2);
  background: rgba(10, 10, 12, .4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.menu-btn span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .2s;
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 21px; right: 18px; }
.menu-btn span:nth-child(3) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1199px) {
  .nav__link { padding-inline: .55rem; }
  .brand__text small { display: none; }
}
@media (max-width: 899px) {
  .nav, .nav__donate { display: none; }
  .menu-btn { display: block; }
  .brand img { width: 42px; height: 42px; }
  .brand__text small { display: block; }
}

/* full-screen mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) calc(var(--tabbar-h) + 1.5rem + var(--safe-b));
  background: rgba(10, 10, 12, .97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  clip-path: circle(0% at calc(100% - 38px) 30px);
  visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu.is-open {
  clip-path: circle(150% at calc(100% - 38px) 30px);
  visibility: visible;
  transition: clip-path .7s var(--ease-io), visibility 0s;
}
.menu__list { list-style: none; padding: 0; display: grid; gap: .1rem; }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .45rem 0;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 850;
  font-size: clamp(1.9rem, 9vw, 3rem);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -.01em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), color var(--t-fast);
}
.menu__link small { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 400; color: var(--c-amber); letter-spacing: .05em; }
.menu__link[aria-current="page"] { color: var(--c-amber); }
.menu__link--donate { color: var(--c-red); }
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open li:nth-child(1) .menu__link { transition-delay: .12s; }
.menu.is-open li:nth-child(2) .menu__link { transition-delay: .17s; }
.menu.is-open li:nth-child(3) .menu__link { transition-delay: .22s; }
.menu.is-open li:nth-child(4) .menu__link { transition-delay: .27s; }
.menu.is-open li:nth-child(5) .menu__link { transition-delay: .32s; }
.menu.is-open li:nth-child(6) .menu__link { transition-delay: .37s; }
.menu.is-open li:nth-child(7) .menu__link { transition-delay: .42s; }
.menu.is-open li:nth-child(8) .menu__link { transition-delay: .47s; }
.menu__foot {
  margin-top: auto;
  padding-top: 2rem;
  display: grid;
  gap: 1rem;
  font-size: var(--fs-sm);
  color: var(--c-muted);
  opacity: 0;
  transition: opacity .5s .5s;
}
.menu.is-open .menu__foot { opacity: 1; }
.menu__foot .mono { font-size: var(--fs-xs); }

/* bottom tab bar (mobile) */
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(14, 15, 18, .82);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid var(--c-line);
}
.tabbar__list { list-style: none; padding: 0; height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar__item {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--c-muted);
  transition: color var(--t-fast);
}
.tabbar__item .icon { width: 22px; height: 22px; transition: transform .45s var(--ease-spring); }
.tabbar__item::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-amber);
  transform: scale(0);
  transition: transform .45s var(--ease-spring);
}
.tabbar__item[aria-current] { color: var(--c-text); }
.tabbar__item[aria-current] .icon { transform: translateY(2px) scale(1.08); color: var(--c-amber); }
.tabbar__item[aria-current]::after { transform: scale(1); }
.tabbar__item:active .icon { transform: scale(.86); }
.tabbar__item--donate { color: #ff6b6f; }
@media (max-width: 899px) {
  .tabbar { display: block; }
  body { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
}

/* ==========================================================================
   Floating action buttons — identical size + bottom offset, one line
   ========================================================================== */
.fab {
  position: fixed;
  bottom: var(--fab-bottom);
  z-index: 72;
  width: var(--fab);
  height: var(--fab);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(26, 28, 33, .88);
  border: 1px solid var(--c-line-2);
  color: var(--c-text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: transform .45s var(--ease-out), opacity .35s, border-color var(--t-fast), visibility 0s;
}
.fab:hover { border-color: var(--c-amber); }
.fab .icon { width: 22px; height: 22px; }
.fab--assistant { left: var(--gutter); }
.fab--top { right: var(--gutter); }
.fab--top:not(.is-visible) { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; visibility: hidden; transition: transform .45s var(--ease-out), opacity .35s, visibility 0s .45s; }
.fab__ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); pointer-events: none; }
.fab__ring circle { fill: none; stroke-width: 2; }
.fab__ring .track { stroke: transparent; }
.fab__ring .bar { stroke: var(--c-amber); stroke-linecap: round; }
.fab--assistant .gear-mini { width: 26px; height: 26px; color: var(--c-amber); transition: transform .8s var(--ease-out); }
.fab--assistant:hover .gear-mini { transform: rotate(90deg); }
.fab__pulse {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--c-amber);
  animation: pulse 2.6s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .7; }
  80%, 100% { transform: scale(1.55); opacity: 0; }
}
html:not(.js) .fab { display: none; }
body.assistant-open .fab--assistant { opacity: 0; pointer-events: none; transform: scale(.8); }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--fab-bottom) + var(--fab) + 16px);
  z-index: 2100;
  padding: .75rem 1.2rem;
  border-radius: var(--r-pill);
  background: var(--c-chrome-1);
  color: #0A0A0C;
  font-weight: 600;
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease-spring), opacity .3s;
}
.toast .icon { width: 18px; height: 18px; stroke: var(--c-amber-2); stroke-width: 2.2; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ==========================================================================
   Preloader + page transition
   ========================================================================== */
.preloader { display: none; }
html.show-preloader .preloader {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  background: var(--c-bg);
  clip-path: inset(0 0 0 0);
  animation: pre-out .75s 2.6s var(--ease-io) forwards; /* failsafe if JS breaks */
}
.preloader__badge { position: relative; width: min(46vw, 220px); aspect-ratio: 1; }
.preloader__gear {
  position: absolute;
  inset: -14%;
  color: var(--c-chrome-3);
  opacity: 0;
  transform: rotate(-120deg) scale(.7);
  animation: pre-gear 1.2s var(--ease-out) forwards;
}
.preloader__gear svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: .8; }
.preloader__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(.86);
  animation: pre-logo .9s .2s var(--ease-out) forwards;
}
.preloader__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.preloader__sweep::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: pre-sweep 1s .7s var(--ease-io) forwards;
}
.preloader__count {
  position: absolute;
  left: 50%;
  bottom: clamp(2rem, 8vh, 4rem);
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  color: var(--c-amber);
  letter-spacing: .2em;
}
.preloader__skip {
  position: absolute;
  right: var(--gutter);
  top: 1.25rem;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted);
  padding: .6rem .8rem;
  min-height: 44px;
}
.preloader.is-done { animation: pre-out .75s var(--ease-io) forwards; }
@keyframes pre-gear { to { opacity: .55; transform: rotate(0) scale(1); } }
@keyframes pre-logo { to { opacity: 1; transform: scale(1); } }
@keyframes pre-sweep { to { transform: translateX(120%); } }
@keyframes pre-out { to { clip-path: inset(50% 0 50% 0); } }

.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 2400;
  pointer-events: none;
  background: var(--c-bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}
.page-wipe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--g-amber);
  clip-path: inherit;
}
.page-wipe.is-leaving { animation: wipe-in .42s var(--ease-io) forwards; }
html.is-entering .page-wipe { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); animation: wipe-out .55s .05s var(--ease-io) forwards; }
@keyframes wipe-in {
  from { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); }
  to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
@keyframes wipe-out {
  from { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  to { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
}

/* custom cursor (desktop, fine pointer only — enabled by JS) */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2300;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(242, 244, 246, .55);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: width .3s var(--ease-out), height .3s var(--ease-out), margin .3s var(--ease-out), border-color .3s, background-color .3s, opacity .3s;
  will-change: transform;
}
.cursor::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--c-amber);
}
.cursor.is-active { opacity: 1; }
.cursor.is-hover {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-color: var(--c-amber);
  background: rgba(212, 146, 44, .08);
}
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto; }

/* ==========================================================================
   Reveal system
   ========================================================================== */
html.js [data-reveal] { transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), clip-path 1.1s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0s); }
html.js [data-reveal="up"]:not(.is-in) { opacity: 0; transform: translateY(36px); }
html.js [data-reveal="fade"]:not(.is-in) { opacity: 0; }
html.js [data-reveal="scale"]:not(.is-in) { opacity: 0; transform: scale(.94); }
html.js [data-reveal="mask"]:not(.is-in) { clip-path: inset(0 0 100% 0); }
html.js [data-reveal="mask"] { clip-path: inset(0 0 0 0); }
html.js [data-reveal="mask-x"]:not(.is-in) { clip-path: inset(0 100% 0 0); }
html.js [data-reveal="mask-x"] { clip-path: inset(0 0 0 0); }

.split-unit { display: inline-block; white-space: nowrap; }
.split-unit > span { display: inline-block; }
html.js [data-reveal="chars"] .split-unit > span,
html.js [data-reveal="words"] .split-unit > span {
  transition: transform .9s var(--ease-out), opacity .7s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--i) * var(--step, .028s));
}
html.js [data-reveal="chars"]:not(.is-in) .split-unit > span,
html.js [data-reveal="words"]:not(.is-in) .split-unit > span { transform: translateY(105%); opacity: 0; }
html.js [data-reveal="chars"] .split-unit,
html.js [data-reveal="words"] .split-unit { overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
html.js [data-reveal="lines"] > * { transition: transform 1s var(--ease-out), opacity .8s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--i, 0) * .08s); }
html.js [data-reveal="lines"]:not(.is-in) > * { opacity: 0; transform: translateY(24px); }

html.js [data-reveal="words"] { --step: .06s; }

/* page titles: letters rise on load via CSS only (painted at first frame — no JS gate on the LCP text) */
[data-reveal="chars-load"] .split-unit { overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
[data-reveal="chars-load"] .split-unit > span { animation: char-up 1s var(--ease-out) both; animation-delay: calc(var(--d, .1s) + var(--i) * .026s); }
@keyframes char-up { from { transform: translateY(105%); } }

/* progressive enhancement: scroll-driven parallax for marked images */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sd-drift { animation: sd-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes sd-drift { from { transform: translateY(6%) scale(1.08); } to { transform: translateY(-6%) scale(1.08); } }
  }
}

/* ==========================================================================
   Media frames
   ========================================================================== */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-bg-3);
  isolation: isolate;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 10; }
.frame--square { aspect-ratio: 1; }
.frame__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: .35rem .6rem;
  border-radius: var(--r-xs);
  background: rgba(10, 10, 12, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--f-mono);
  font-size: var(--fs-2xs);
  letter-spacing: .06em;
  color: var(--c-chrome-2);
}
[data-parallax] { will-change: transform; }
.parallax-wrap { overflow: hidden; }
.parallax-wrap img { transform: scale(1.12); }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 70vh;
  min-height: max(460px, 70svh);
  padding-top: calc(var(--nav-h) + 3.5rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 899px) {
  .page-hero { min-height: 62vh; min-height: max(420px, 62svh); }
  .page-hero__coords { display: none; }
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s var(--ease-out) forwards; transform-origin: 60% 40%; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, .7) 0%, rgba(10, 10, 12, .15) 35%, rgba(10, 10, 12, .55) 70%, var(--c-bg) 100%),
    linear-gradient(90deg, rgba(10, 10, 12, .65), transparent 70%);
}
.page-hero__content { padding-bottom: clamp(2.5rem, 6vw, 5rem); width: 100%; }
.page-hero h1 { font-size: var(--fs-h1); max-width: 16ch; margin-top: 1rem; }
.page-hero--long h1 { font-size: clamp(2.1rem, 1.05rem + 4.4vw, 5.25rem); max-width: 19ch; }
.page-hero .lead { margin-top: 1.25rem; max-width: 56ch; color: var(--c-chrome-1); }
.page-hero .btn-row { margin-top: 1.75rem; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--c-chrome-3); }
.breadcrumb a:hover { color: var(--c-amber); }
.breadcrumb [aria-current] { color: var(--c-chrome-1); }
.page-hero__coords {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--nav-h) + 1.25rem);
  font-family: var(--f-mono);
  font-size: var(--fs-2xs);
  color: var(--c-chrome-2);
  text-align: right;
  letter-spacing: .06em;
  line-height: 1.7;
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1%, -1%); } }

/* ==========================================================================
   Marquees
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--c-line);
  background: var(--c-bg);
  padding-block: 1.1rem;
  -webkit-user-select: none;
  user-select: none;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1rem, .8rem + 1vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--c-chrome-2);
}
.marquee__item svg { width: 18px; height: 18px; color: var(--c-amber); }
.marquee--giant { border: 0; padding-block: clamp(1.5rem, 4vw, 3rem); }
.marquee--giant .marquee__item { font-size: clamp(3rem, 1rem + 9vw, 9rem); gap: 3rem; padding-right: 3rem; color: transparent; -webkit-text-stroke: 1px rgba(242, 244, 246, .22); }
.marquee--giant .marquee__item svg { width: clamp(28px, 4vw, 64px); height: clamp(28px, 4vw, 64px); color: var(--c-amber-2); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label, .field .label {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-chrome-2);
}
.field label .req { color: var(--c-amber); }
.input {
  width: 100%;
  min-height: 52px;
  padding: .85rem 1rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23BFC4CA' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.input::placeholder { color: #6a7078; }
.input:hover { border-color: rgba(255, 255, 255, .26); }
.input:focus { outline: none; border-color: var(--c-amber); box-shadow: 0 0 0 3px var(--c-amber-glow); background: var(--c-bg-2); }
.field.is-invalid .input { border-color: #ff5a5f; }
.field__error { min-height: 0; font-size: var(--fs-xs); color: #ff8a8d; }
.field__error:empty { display: none; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--c-chrome-2); }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-amber); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-status {
  display: none;
  padding: 1rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  border: 1px solid var(--c-line-2);
  background: var(--c-bg-2);
}
.form-status.is-visible { display: block; }
.form-status.is-success { border-color: rgba(92, 200, 130, .5); color: #b8f0c9; }
.form-status.is-error { border-color: rgba(255, 90, 95, .5); color: #ffc2c4; }
.form-status.is-info { border-color: rgba(212, 146, 44, .5); color: #f3d8ab; }
.form-status a { text-decoration: underline; }
.form .btn[aria-busy="true"] { pointer-events: none; opacity: .7; }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  visibility: hidden;
  transition: visibility 0s .4s;
}
.modal.is-open { visibility: visible; transition: visibility 0s; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); opacity: 0; transition: opacity .4s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100dvh - 2 * var(--gutter));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 4vw, 2.5rem);
  transform: translateY(30px) scale(.97);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .35s;
}
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-line-2);
}
.modal__close:hover { border-color: var(--c-amber); }
.modal h2 { margin-bottom: .5rem; padding-right: 3rem; }
.modal .lead { margin-bottom: 1.5rem; font-size: var(--fs-base); }
@media (max-width: 639px) {
  .modal { place-items: end center; padding: 0; }
  .modal__panel { border-radius: var(--r-lg) var(--r-lg) 0 0; width: 100%; max-height: 92dvh; padding-bottom: calc(1.5rem + var(--safe-b)); transform: translateY(100%); }
}
body.is-locked { overflow: hidden; }

/* ==========================================================================
   Map facade
   ========================================================================== */
.map {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background:
    radial-gradient(circle at 50% 50%, rgba(212, 146, 44, .18), transparent 40%),
    repeating-linear-gradient(0deg, var(--c-line) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--c-line) 0 1px, transparent 1px 40px),
    var(--c-bg-2);
}
@media (max-width: 639px) { .map { aspect-ratio: 4 / 5; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.7) invert(.9) hue-rotate(180deg) contrast(.9); }
.map__facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
}
.map__pin {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-red);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(209, 26, 31, .18), 0 0 0 22px rgba(209, 26, 31, .08);
}
.map__pin .icon { width: 26px; height: 26px; }
.map__addr { font-weight: 700; font-size: var(--fs-lg); }
.map__coords { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--c-amber); letter-spacing: .06em; }
.map__note { font-size: var(--fs-xs); color: var(--c-muted); max-width: 40ch; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4rem, 9vw, 8rem);
  background:
    radial-gradient(60% 120% at 85% 50%, rgba(212, 146, 44, .16), transparent 60%),
    linear-gradient(180deg, var(--c-bg-2), var(--c-bg));
  border-block: 1px solid var(--c-line);
}
.cta-band .gear-bg { right: -12%; top: 50%; translate: 0 -50%; opacity: .22; color: var(--c-amber-2); }
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: 1.4fr auto; align-items: end; gap: 3rem; }
}
.cta-band h2 { font-size: var(--fs-h2); max-width: 16ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: 2rem;
  font-size: var(--fs-sm);
}
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.footer__brand img { width: 96px; height: 96px; }
.footer__brand p { color: var(--c-muted); max-width: 36ch; margin-top: 1rem; }
.footer__motto { margin-top: 1rem; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--c-amber); letter-spacing: .14em; }
.footer__title { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 1rem; font-weight: 500; }
.footer__links { list-style: none; padding: 0; display: grid; gap: .15rem; }
.footer__links a { display: inline-block; padding: .3rem 0; color: var(--c-chrome-2); transition: color var(--t-fast); }
.footer__links a:hover { color: var(--c-amber); }
.footer__data { display: grid; gap: .5rem; color: var(--c-chrome-2); font-style: normal; }
.footer__data .mono { font-size: var(--fs-xs); color: var(--c-muted); }
.footer__data a[href^="tel:"] { white-space: nowrap; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--c-line-2);
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.socials a:hover { border-color: var(--c-amber); color: var(--c-amber); transform: translateY(-2px); }
.socials .icon { width: 20px; height: 20px; }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.footer__bottom a { color: var(--c-chrome-2); text-decoration: underline; text-decoration-color: var(--c-line-2); text-underline-offset: .2em; }
.footer__bottom a:hover { color: var(--c-amber); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(6, 6, 8, .96);
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s, visibility 0s .35s;
}
.lightbox.is-open { visibility: visible; opacity: 1; transition: opacity .35s, visibility 0s; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--c-chrome-2); }
.lightbox__stage { position: relative; overflow: hidden; display: grid; place-items: center; touch-action: pan-y pinch-zoom; padding: 0 var(--gutter); }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); transition: transform .45s var(--ease-out), opacity .3s; }
.lightbox__caption { padding: 1rem var(--gutter) calc(1.25rem + var(--safe-b)); text-align: center; color: var(--c-chrome-2); font-size: var(--fs-sm); min-height: 3.5rem; }
.lightbox__btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--c-line-2);
  background: rgba(10, 10, 12, .6);
  transition: border-color var(--t-fast);
}
.lightbox__btn:hover { border-color: var(--c-amber); }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
@media (max-width: 639px) { .lightbox__nav { display: none; } }

/* ==========================================================================
   Assistant (chat)
   ========================================================================== */
.assistant {
  position: fixed;
  left: var(--gutter);
  bottom: var(--fab-bottom);
  z-index: 85;
  width: min(400px, calc(100vw - 2 * var(--gutter)));
  height: min(620px, calc(100dvh - var(--fab-bottom) - var(--nav-h) - 24px));
  display: flex;
  flex-direction: column;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  overflow: hidden;
  transform-origin: 0 100%;
  transform: translateY(24px) scale(.92);
  opacity: 0;
  visibility: hidden;
  transition: transform .5s var(--ease-out), opacity .3s, visibility 0s .5s;
}
.assistant.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--ease-out), opacity .3s, visibility 0s; }
.assistant__handle { display: none; }
.assistant__head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--c-line);
  background: linear-gradient(180deg, var(--c-bg-3), var(--c-bg-2));
}
.assistant__head img { width: 40px; height: 40px; }
.assistant__head h2 { font-family: var(--f-display); font-stretch: 115%; font-size: 1rem; font-weight: 800; letter-spacing: .02em; }
.assistant__status { display: flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); color: var(--c-muted); }
.assistant__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
.assistant__close { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--c-line); }
.assistant__close:hover { border-color: var(--c-amber); }
.assistant__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: .7rem .95rem; border-radius: 16px; font-size: var(--fs-sm); line-height: 1.5; animation: msg-in .35s var(--ease-out); overflow-wrap: anywhere; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: .5rem; }
.msg ul { padding-left: 1.1rem; }
.msg a:not(.msg__action) { color: var(--c-amber); text-decoration: underline; text-underline-offset: .15em; }
.msg--bot { align-self: flex-start; background: var(--c-bg-3); border: 1px solid var(--c-line); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--c-amber); color: #140b00; border-bottom-right-radius: 4px; font-weight: 500; }
.msg__actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.msg__action {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 36px;
  padding: .4rem .75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-text);
  background: rgba(255, 255, 255, .03);
}
.msg__action:hover { border-color: var(--c-amber); color: var(--c-amber); }
.msg__account { display: block; margin-top: .4rem; font-family: var(--f-mono); font-size: .95rem; color: var(--c-chrome-1); letter-spacing: .03em; }
.msg--typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--c-chrome-3); animation: typing 1s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.assistant__chips { display: flex; gap: .4rem; padding: 0 1rem .7rem; overflow-x: auto; scrollbar-width: none; flex: none; }
.assistant__chips::-webkit-scrollbar { display: none; }
.chip-btn {
  flex: none;
  min-height: 36px;
  padding: .4rem .85rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(212, 146, 44, .45);
  color: var(--c-amber);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.chip-btn:hover { background: var(--c-amber); color: #140b00; }
.assistant__form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--c-line); background: var(--c-bg-2); }
.assistant__form .input { min-height: 46px; border-radius: var(--r-pill); padding-inline: 1.1rem; }
.assistant__send { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--c-amber); color: #140b00; }
.assistant__send .icon { width: 20px; height: 20px; stroke-width: 2; }
@media (max-width: 639px) {
  .assistant {
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 88dvh;
    height: 88vh;
    max-height: 88dvh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-bottom: 0;
    transform: translateY(100%);
    opacity: 1;
    padding-bottom: var(--safe-b);
  }
  .assistant.is-open { transform: translateY(var(--drag, 0px)); }
  .assistant.is-dragging { transition: none; }
  .assistant__handle { display: block; flex: none; height: 22px; position: relative; touch-action: none; cursor: grab; }
  .assistant__handle::before { content: ""; position: absolute; left: 50%; top: 9px; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: var(--c-chrome-3); }
  .assistant__head { padding-top: .4rem; touch-action: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .gear-spin, .fab__pulse { animation: none !important; }
  .page-hero__media img { animation: none; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  html.js [data-reveal] .split-unit > span { opacity: 1 !important; transform: none !important; }
  html.show-preloader .preloader.is-done { animation: none; opacity: 0; }
  .cursor { display: none; }
}

/* split text inside chrome headings: gradient applied per glyph so transformed
   spans keep their fill (background-clip:text does not reach composited children) */
.chrome-text .split-unit > span {
  background: var(--g-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
