/* =====================================================================
   GEAR (section 05) — the kit, shown through a viewfinder
   Left: a "monitor" stage that draws each piece of kit on (line art) or
   shows its photo. Right: category counters + the item list that drives it.
   ===================================================================== */
.s-gear { position: relative; overflow: hidden; isolation: isolate; }

/* ambient backdrop: two slow orbs + a faint focus grid */
.g-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.g-bg__orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.38; }
.g-bg__orb--a { width: 620px; height: 620px; left: -160px; top: 18%; background: #7B3BAB; animation: g-drift 22s ease-in-out infinite alternate; }
.g-bg__orb--b { width: 520px; height: 520px; right: -140px; bottom: -120px; background: #C03E9E; opacity: 0.26; animation: g-drift 26s ease-in-out infinite alternate-reverse; }
.g-bg__grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000, transparent);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000, transparent);
}
@keyframes g-drift { to { transform: translate(120px, -60px) scale(1.15); } }

/* ---------- heading ---------- */
.g-head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: end; }
.g-title { max-width: 12ch; }
.g-intro { font-size: 15px; color: var(--muted); line-height: 1.9; letter-spacing: 0.04em; max-width: 46ch; }

.g-counts { display: flex; gap: 10px; margin-top: 34px; }
.g-count {
  flex: 1; text-align: left; cursor: pointer; background: none; color: inherit;
  border: 0; border-top: 1px solid var(--border); padding: 18px 4px 4px; position: relative;
  transition: border-color var(--dur-fast) var(--ease);
}
.g-count::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 2px; width: 0;
  background: var(--gradient-brand); transition: width 0.6s var(--ease-out);
}
.g-count.is-active::before { width: 100%; }
.g-count__n {
  display: block; font-family: var(--font-display); font-size: clamp(54px, 5.4vw, 84px); line-height: 0.9;
  color: rgba(255,255,255,0.16); transition: color var(--dur-fast) var(--ease);
}
.g-count.is-active .g-count__n, .g-count:hover .g-count__n {
  background: var(--gradient-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.g-count__l {
  display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
}
.g-count.is-active .g-count__l { color: var(--cream); }

/* ---------- rig: stage + list ---------- */
.g-rig { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; margin-top: 72px; align-items: stretch; }

.g-stage {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-xs);
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(123,59,171,0.22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(192,62,158,0.14), transparent 70%),
    var(--night-1);
  box-shadow: 0 40px 120px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.02);
}
/* scanlines */
.g-stage::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.025) 0 1px, transparent 1px 4px);
}
/* cut flash between shots */
.g-stage::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, rgba(240,237,232,0.16), transparent 70%);
}
.g-rig.is-cut .g-stage::after { animation: g-flash 0.5s var(--ease); }
@keyframes g-flash { 0% { opacity: 1; } 100% { opacity: 0; } }

.g-stage__c { position: absolute; width: 26px; height: 26px; z-index: 5; border-color: rgba(240,237,232,0.55); border-style: solid; border-width: 0; }
.g-stage__c.tl { top: 18px; left: 18px; border-top-width: 1.5px; border-left-width: 1.5px; }
.g-stage__c.tr { top: 18px; right: 18px; border-top-width: 1.5px; border-right-width: 1.5px; }
.g-stage__c.bl { bottom: 18px; left: 18px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.g-stage__c.br { bottom: 18px; right: 18px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.g-stage__cross {
  position: absolute; left: 50%; top: 46%; width: 34px; height: 34px; z-index: 1; transform: translate(-50%, -50%); opacity: 0.18;
  background: linear-gradient(var(--cream), var(--cream)) center / 1px 100% no-repeat, linear-gradient(var(--cream), var(--cream)) center / 100% 1px no-repeat;
}

.g-stage__hud {
  position: absolute; left: 34px; right: 34px; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(240,237,232,0.7);
}
.g-stage__hud--top { top: 26px; }
.g-stage__hud--bot { bottom: 26px; }
.g-stage__rec { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); }
.g-stage__rec i { width: 8px; height: 8px; border-radius: 50%; background: #e0315f; box-shadow: 0 0 10px #e0315f; animation: g-blink 1.4s steps(2, jump-none) infinite; }
@keyframes g-blink { 50% { opacity: 0.2; } }
.g-stage__bar { width: 120px; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.g-stage__bar i { display: block; height: 100%; width: 100%; background: var(--gradient-brand); transform-origin: left; animation: g-meter 2.2s ease-in-out infinite alternate; }
@keyframes g-meter { from { transform: scaleX(0.35); } to { transform: scaleX(0.92); } }

/* each shot */
.g-shot { position: absolute; inset: 0; z-index: 2; margin: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(1.06); transition: opacity 0.6s var(--ease), transform 1.2s var(--ease-out); pointer-events: none; }
.g-shot.is-active { opacity: 1; transform: none; }
.g-shot .g-art { width: 74%; max-height: 64%; margin-top: -9%; color: var(--cream); overflow: visible; filter: drop-shadow(0 0 18px rgba(155,84,224,0.35)); }
.g-shot__img { max-width: 76%; max-height: 62%; margin-top: -9%; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6)); }

/* line-art draws itself on when its shot becomes active */
.g-art * { stroke-dasharray: 640; stroke-dashoffset: 0; }
.g-shot.is-active .g-art * { animation: g-draw 1.6s var(--ease-out) both; }
@keyframes g-draw { from { stroke-dashoffset: 640; } }
.g-art__soft { opacity: 0.45; }
.g-art__glass { fill: rgba(155,84,224,0.22); stroke: #C03E9E; }
.g-art__rec { fill: #e0315f; stroke: none; animation: g-blink 1.4s steps(2, jump-none) infinite !important; }
.g-art__orbit { stroke: #9B54E0; stroke-dasharray: 4 7 !important; opacity: 0.8; }
.g-shot.is-active .g-art__orbit { animation: g-orbit 6s linear infinite !important; }
@keyframes g-orbit { to { stroke-dashoffset: -220; } }
.g-shot.is-active .g-art__rotor { animation: g-spin 0.18s linear infinite !important; }
.g-art__rotor * { stroke: #9B54E0; }
@keyframes g-spin { 50% { transform: scaleX(0.25); } }

.g-shot__cap { position: absolute; left: 34px; bottom: 58px; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.g-shot__cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent-strong); }
.g-shot__name { font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 68px); line-height: 0.92; color: var(--cream); letter-spacing: 0.01em; }
.g-shot__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.g-shot.is-active .g-shot__name { animation: g-rise 0.8s var(--ease-out) both 0.1s; }
.g-shot.is-active .g-shot__role, .g-shot.is-active .g-shot__cat { animation: g-rise 0.8s var(--ease-out) both 0.22s; }
@keyframes g-rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- item list ---------- */
.g-lists { display: flex; flex-direction: column; }
.g-list { list-style: none; margin: 0; padding: 0; display: none; border-top: 1px solid var(--border); }
.g-list.is-active { display: block; animation: g-rise 0.6s var(--ease-out) both; }
.g-item {
  width: 100%; display: grid; grid-template-columns: 38px 1fr auto 24px; align-items: center; gap: 16px;
  padding: 22px 6px 22px 0; background: none; border: 0; border-bottom: 1px solid var(--border);
  color: var(--muted); text-align: left; cursor: pointer; position: relative;
  transition: color var(--dur-fast) var(--ease), padding var(--dur-fast) var(--ease);
}
.g-item::before {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
  background: var(--gradient-brand); transition: width 0.5s var(--ease-out);
}
.g-item:hover, .g-item.is-active { color: var(--cream); padding-left: 10px; }
.g-item.is-active::before { width: 100%; }
.g-item__n { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--accent-strong); }
.g-item__name { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 36px); line-height: 1; letter-spacing: 0.01em; }
.g-item__role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.g-item__arrow { opacity: 0; transform: translateX(-8px); transition: opacity var(--dur-fast), transform var(--dur-fast); color: var(--accent-strong); }
.g-item:hover .g-item__arrow, .g-item.is-active .g-item__arrow { opacity: 1; transform: none; }
.g-cta { margin-top: auto; padding-top: 36px; }

@media (max-width: 1024px) {
  .g-head, .g-rig { grid-template-columns: 1fr; gap: 40px; }
  .g-rig { margin-top: 48px; }
}
@media (max-width: 600px) {
  .g-counts { gap: 6px; }
  .g-item { grid-template-columns: 30px 1fr 18px; }
  .g-item__role { display: none; }
  .g-stage { aspect-ratio: 4 / 4.2; }
  .g-shot__cap { left: 24px; bottom: 52px; }
  .g-stage__hud { left: 24px; right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .g-bg__orb, .g-stage__bar i, .g-stage__rec i, .g-art *, .g-shot * { animation: none !important; }
}

/* =====================================================================
   LOGO — a soft, living shape *inside* the letters of "BEYOND"
   Two blurred brand-colour blobs drift slowly through the word; everything
   is clipped to the glyphs, so nothing shows outside the letters.
   ===================================================================== */
.s-logo__beyond {
  display: inline-block;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at center, rgba(155,84,224,0.95) 0, rgba(155,84,224,0) 32%),
    radial-gradient(circle at center, rgba(224,74,180,0.9) 0, rgba(224,74,180,0) 30%);
  background-size: 240% 260%, 220% 240%;
  background-repeat: no-repeat;
  background-position: -60% 50%, 160% 50%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: logo-flow 11s ease-in-out infinite;
}
@keyframes logo-flow {
  0%   { background-position: -60% 30%, 160% 70%; }
  25%  { background-position: 20% 80%, 90% 20%; }
  50%  { background-position: 110% 40%, -20% 60%; }
  75%  { background-position: 50% 10%, 40% 90%; }
  100% { background-position: -60% 30%, 160% 70%; }
}
@media (prefers-reduced-motion: reduce) {
  .s-logo__beyond { animation: none; background-position: 30% 50%, 80% 50%; }
}
