/* ==========================================================================
   LOFINK LABS — VOLUMETRIC COSMOS & PRECISION ARCHITECTURE SYSTEM
   Seamless dark-space depth, 3D glass choreography, and proximity light beams
   ========================================================================== */

:root {
  --bg-void: #04060b;
  --bg-deep: #070b14;
  --glass-top: rgba(18, 26, 42, 0.68);
  --glass-bot: rgba(8, 12, 22, 0.84);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-rim: rgba(255, 255, 255, 0.16);

  --text-bright: #f8fafc;
  --text-body: #94a3b8;
  --text-dim: #64748b;

  --ember: #fb923c;
  --ember-deep: #ea580c;
  --ice: #7dd3fc;
  --emerald: #34d399;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background-color: var(--bg-void);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body.cosmos-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(30, 41, 69, 0.38) 0%, transparent 70%),
    var(--bg-void);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-bright);
  font-family: var(--font-display);
  letter-spacing: -0.034em;
  line-height: 1.12;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.18em 0.45em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ember);
  color: #04060b;
  font-weight: 700;
  font-size: 0.85rem;
  transition: top 0.2s var(--ease-out-expo);
}

.skip-link:focus {
  top: 18px;
}

/* ==========================================================================
   ATMOSPHERIC CANVAS & FILM GRAIN
   ========================================================================== */
.cosmos-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ambient-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.container {
  width: min(var(--max-w), calc(100% - 44px));
  margin-inline: auto;
}

.narrow-stage {
  width: min(920px, calc(100% - 44px));
  margin-inline: auto;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 18px;
}

/* ==========================================================================
   FLOATING VOLUMETRIC GLASS NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 120;
  pointer-events: none;
}

.header-capsule {
  pointer-events: auto;
  width: min(980px, calc(100% - 32px));
  margin-inline: auto;
  height: 58px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: rgba(9, 13, 24, 0.56);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled .header-capsule {
  background: rgba(7, 10, 19, 0.84);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 48px rgba(0, 0, 0, 0.65);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(251, 146, 60, 0.28), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(251, 146, 60, 0.42);
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.2);
}

.brand-mark svg {
  width: 16px;
  height: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a.nav-cta {
  margin-left: 6px;
  padding: 8px 18px;
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.22), rgba(234, 88, 12, 0.12));
  border: 1px solid rgba(251, 146, 60, 0.48);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 20px rgba(234, 88, 12, 0.2);
  transition: transform 0.2s var(--ease-out-expo), border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a.nav-cta:hover {
  border-color: #fdba74;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 28px rgba(251, 146, 60, 0.38);
}

.nav-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-menu-toggle span {
  display: block;
  width: 16px;
  height: 1.6px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

/* ==========================================================================
   SHARED LUMINOUS & GLASS BUTTONS
   ========================================================================== */
.btn-luminous {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(254, 215, 170, 0.55);
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 30px rgba(234, 88, 12, 0.42);
  transition: transform 0.22s var(--ease-out-expo), box-shadow 0.22s ease, filter 0.2s ease;
}

.btn-luminous:hover {
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 12px 40px rgba(251, 146, 60, 0.58);
}

.btn-luminous.btn-compact {
  padding: 11px 20px;
  font-size: 0.86rem;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  color: var(--text-bright);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
   ACT I — ARRIVAL HERO
   ========================================================================== */
.arrival-hero {
  position: relative;
  min-height: 100svh;
  padding: 148px 0 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arrival-inner {
  max-width: 960px;
  text-align: center;
}

.arrival-headline {
  margin-top: 0;
  font-size: clamp(2.65rem, 6.2vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.042em;
  line-height: 1.04;
}

.headline-metallic {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.headline-ember {
  display: block;
  margin-top: 4px;
  padding-bottom: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #fed7aa 42%, #fb923c 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.arrival-sub {
  margin: 26px auto 0;
  max-width: 56ch;
  font-size: clamp(1.04rem, 1.5vw, 1.22rem);
  font-weight: 400;
  color: #94a3b8;
  line-height: 1.65;
}

.arrival-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Staggered Entrance Choreography */
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-stagger-1 {
  animation: heroRise 0.9s var(--ease-out-expo) 0.05s both;
}
.hero-stagger-2 {
  animation: heroRise 1s var(--ease-out-expo) 0.16s both;
}
.hero-stagger-3 {
  animation: heroRise 1s var(--ease-out-expo) 0.28s both;
}
.hero-stagger-4 {
  animation: heroRise 1s var(--ease-out-expo) 0.4s both;
}

.scroll-filament {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.scroll-filament:hover {
  opacity: 1;
}

.filament-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
}

.filament-line {
  position: relative;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent);
  overflow: hidden;
}

.filament-photon {
  position: absolute;
  top: -14px;
  left: 0;
  width: 1px;
  height: 14px;
  background: linear-gradient(180deg, transparent, var(--ember), #ffffff);
  animation: photonDrop 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes photonDrop {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(58px);
    opacity: 0;
  }
}

/* ==========================================================================
   ACT II — SCROLL-ILLUMINATED MANIFESTO
   ========================================================================== */
.manifesto-section {
  padding: 130px 0 110px;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.1vw, 2.5rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.028em;
  color: var(--text-bright);
}

.manifesto-text .m-word {
  opacity: 0.17;
  transition: opacity 0.12s linear;
  will-change: opacity;
}

.manifesto-text.is-fully-lit .m-word {
  opacity: 1;
}

/* ==========================================================================
   ACT III — PINNED 3D REACTOR TRANSFORMATION STAGE
   ========================================================================== */
.reactor-scroll-track {
  position: relative;
  min-height: 245vh;
  padding: 40px 0;
}

.reactor-sticky-frame {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 88px 0 48px;
}

.reactor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reactor-chapter {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 18, 32, 0.34);
  opacity: 0.54;
  cursor: pointer;
  user-select: none;
  transition:
    opacity 0.48s var(--ease-out-expo),
    padding 0.48s var(--ease-out-expo),
    background-color 0.48s var(--ease-out-expo),
    border-color 0.48s var(--ease-out-expo),
    box-shadow 0.48s var(--ease-out-expo),
    transform 0.48s var(--ease-out-expo);
}

.reactor-chapter:hover {
  opacity: 0.84;
  border-color: rgba(255, 255, 255, 0.14);
}

.reactor-chapter.is-active {
  padding: 22px 24px;
  opacity: 1;
  background: linear-gradient(180deg, rgba(20, 29, 48, 0.78), rgba(10, 15, 26, 0.88));
  border-color: rgba(251, 146, 60, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 20px 50px rgba(0, 0, 0, 0.48);
  transform: translateX(6px);
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ember);
  padding-top: 4px;
}

.chapter-body h2 {
  font-size: 1.32rem;
  margin-bottom: 0;
  transition: color 0.35s ease;
}

.chapter-collapse {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition:
    grid-template-rows 0.52s var(--ease-out-expo),
    opacity 0.38s ease,
    margin-top 0.52s var(--ease-out-expo);
}

.reactor-chapter.is-active .chapter-collapse {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 10px;
}

.chapter-collapse-inner {
  overflow: hidden;
  min-height: 0;
}

.chapter-body p {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* 3D Isometric Glass Reactor */
.reactor-visual-wrap {
  position: relative;
  height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reactor-aura {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.16) 0%, rgba(56, 189, 248, 0.08) 45%, transparent 72%);
  filter: blur(24px);
  pointer-events: none;
  transition: transform 0.8s var(--ease-out-expo);
}

.reactor-stage {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reactor-axis-beam {
  position: absolute;
  z-index: 4;
  width: 2px;
  height: 300px;
  background: linear-gradient(180deg, transparent, rgba(251, 146, 60, 0.25), rgba(125, 211, 252, 0.4), transparent);
  opacity: 0.35;
  transition: opacity 0.6s ease, height 0.7s var(--ease-out-expo), box-shadow 0.6s ease;
  pointer-events: none;
}

.reactor-stage[data-reactor-stage="1"] .reactor-axis-beam,
.reactor-stage[data-reactor-stage="2"] .reactor-axis-beam {
  opacity: 1;
  height: 260px;
  background: linear-gradient(180deg, transparent, #fb923c, #ffffff, #38bdf8, transparent);
  box-shadow: 0 0 24px rgba(251, 146, 60, 0.7);
}

.iso-plane {
  position: absolute;
  width: 330px;
  height: 206px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(22, 32, 54, 0.8), rgba(8, 12, 22, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 28px 60px rgba(0, 0, 0, 0.65);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.9s var(--ease-out-expo),
    border-color 0.6s ease,
    box-shadow 0.6s ease;
  will-change: transform;
}

.plane-top {
  z-index: 5;
}

.plane-mid {
  z-index: 3;
}

.plane-bot {
  z-index: 2;
}

.plane-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #cbd5e1;
  opacity: 0.85;
}

.plane-svg {
  width: 100%;
  height: 142px;
}

/* Stage 0: Expanded Entropy */
.reactor-stage[data-reactor-stage="0"] .plane-top {
  transform: translateY(-110px) rotateX(calc(57deg + var(--tilt-x, 0deg))) rotateZ(calc(-36deg + var(--tilt-y, 0deg)));
}
.reactor-stage[data-reactor-stage="0"] .plane-mid {
  transform: translateY(0px) rotateX(calc(57deg + var(--tilt-x, 0deg))) rotateZ(calc(-31deg + var(--tilt-y, 0deg)));
}
.reactor-stage[data-reactor-stage="0"] .plane-bot {
  transform: translateY(110px) rotateX(calc(57deg + var(--tilt-x, 0deg))) rotateZ(calc(-27deg + var(--tilt-y, 0deg)));
}

.svg-entropy {
  opacity: 1;
  transition: opacity 0.6s ease;
}
.svg-order {
  opacity: 0.12;
  transition: opacity 0.6s ease;
}

/* Stage 1: Coaxial Compression & Subtraction */
.reactor-stage[data-reactor-stage="1"] .plane-top {
  transform: translateY(-38px) rotateX(calc(55deg + var(--tilt-x, 0deg))) rotateZ(calc(-34deg + var(--tilt-y, 0deg)));
  border-color: rgba(251, 146, 60, 0.58);
}
.reactor-stage[data-reactor-stage="1"] .plane-mid {
  transform: translateY(0px) rotateX(calc(55deg + var(--tilt-x, 0deg))) rotateZ(calc(-34deg + var(--tilt-y, 0deg)));
  border-color: rgba(125, 211, 252, 0.55);
}
.reactor-stage[data-reactor-stage="1"] .plane-bot {
  transform: translateY(38px) rotateX(calc(55deg + var(--tilt-x, 0deg))) rotateZ(calc(-34deg + var(--tilt-y, 0deg)));
}
.reactor-stage[data-reactor-stage="1"] .svg-entropy,
.reactor-stage[data-reactor-stage="2"] .svg-entropy {
  opacity: 0;
}
.reactor-stage[data-reactor-stage="1"] .svg-order,
.reactor-stage[data-reactor-stage="2"] .svg-order {
  opacity: 1;
}

/* Stage 2: Synchronized Output & Compounding Margin */
.reactor-stage[data-reactor-stage="2"] .plane-top {
  transform: translateY(-78px) rotateX(calc(54deg + var(--tilt-x, 0deg))) rotateZ(calc(-34deg + var(--tilt-y, 0deg)));
  border-color: rgba(251, 146, 60, 0.6);
}
.reactor-stage[data-reactor-stage="2"] .plane-mid {
  transform: translateY(0px) rotateX(calc(54deg + var(--tilt-x, 0deg))) rotateZ(calc(-34deg + var(--tilt-y, 0deg)));
  border-color: rgba(125, 211, 252, 0.65);
}
.reactor-stage[data-reactor-stage="2"] .plane-bot {
  transform: translateY(78px) rotateX(calc(54deg + var(--tilt-x, 0deg))) rotateZ(calc(-34deg + var(--tilt-y, 0deg)));
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 40px rgba(52, 211, 153, 0.22),
    0 28px 60px rgba(0, 0, 0, 0.65);
}

.svg-pulse-ring {
  transform-origin: 140px 90px;
  animation: spinSlow 7s linear infinite;
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

.reactor-status-pill {
  position: absolute;
  bottom: 8px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(9, 13, 24, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #e2e8f0;
}

.status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

/* ==========================================================================
   ACT IV — VOLUMETRIC SPOTLIGHT BENTO ARCHITECTURE
   ========================================================================== */
.capabilities-section {
  padding: 120px 0;
}

.bento-header {
  max-width: 680px;
  margin-bottom: 52px;
}

.bento-header h2 {
  font-size: clamp(2rem, 3.8vw, 3.05rem);
  margin-bottom: 16px;
}

.bento-sub {
  font-size: 1.06rem;
  color: var(--text-body);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.bento-span-7 {
  grid-column: span 7;
}

.bento-span-5 {
  grid-column: span 5;
}

/* Volumetric Glass Card + Cursor Border-Beam */
.bento-card {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--glass-top) 0%, var(--glass-bot) 100%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 64px -16px rgba(0, 0, 0, 0.72);
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

/* 1px Proximity Border Beam */
[data-spotlight-card]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    420px circle at var(--mx, -600px) var(--my, -600px),
    rgba(251, 146, 60, 0.72),
    rgba(125, 211, 252, 0.28) 42%,
    transparent 72%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

/* Subtle Surface Sheen */
[data-spotlight-card]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    520px circle at var(--mx, -600px) var(--my, -600px),
    rgba(255, 255, 255, 0.042),
    transparent 68%
  );
  pointer-events: none;
  z-index: 1;
}

.bento-card > * {
  position: relative;
  z-index: 2;
}

.bento-visual {
  min-height: 196px;
  border-radius: 16px;
  background: rgba(4, 7, 14, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.bento-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 10px;
}

.bento-copy h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.bento-copy p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.62;
}

/* Bento 1: Animated Funnel Beams */
.funnel-svg {
  width: 100%;
  height: auto;
  display: block;
}

.stream-path {
  stroke-dasharray: 12 10;
  animation: streamFlow 3.4s linear infinite;
}
.stream-path.s2 {
  animation-duration: 2.9s;
}
.stream-path.s4 {
  animation-duration: 3.8s;
}

@keyframes streamFlow {
  to {
    stroke-dashoffset: -88;
  }
}

/* Bento 2: 3D Fanned Command Stack */
.fanned-deck {
  position: relative;
  width: 260px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-card {
  position: absolute;
  width: 240px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(24, 35, 58, 0.9), rgba(10, 15, 26, 0.95));
  padding: 13px 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s var(--ease-out-expo), border-color 0.4s ease;
}

.deck-back {
  transform: translateY(-34px) scale(0.88);
  opacity: 0.55;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}

.deck-mid {
  transform: translateY(-17px) scale(0.94);
  opacity: 0.8;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: #cbd5e1;
}

.deck-front {
  transform: translateY(10px) scale(1);
  border-color: rgba(125, 211, 252, 0.4);
}

.bento-card:hover .deck-back {
  transform: translateY(-48px) scale(0.88);
}
.bento-card:hover .deck-mid {
  transform: translateY(-22px) scale(0.94);
}
.bento-card:hover .deck-front {
  transform: translateY(16px) scale(1.02);
  border-color: var(--ember);
}

.deck-front-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.deck-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.deck-front-row strong {
  font-size: 0.84rem;
  color: #ffffff;
}

.deck-bars {
  display: flex;
  gap: 8px;
}

.deck-bars span {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  flex: 1;
}

.deck-bars span:first-child {
  background: linear-gradient(90deg, var(--ember), var(--ice));
  flex: 1.6;
}

/* Bento 3: Interactive Optical Lens */
.visual-lens canvas {
  width: 100%;
  height: 196px;
  display: block;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: crosshair;
}

.lens-hint {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  pointer-events: none;
}

/* Bento 4: Ownership Metrics & Benchmark Plate */
.ownership-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-tile {
  padding: 20px 18px;
  border-radius: 15px;
  background: rgba(4, 7, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.metric-val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-lbl {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.benchmark-plate {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.benchmark-plate span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.benchmark-plate a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-bright);
  transition: color 0.18s ease;
}

.benchmark-plate a:hover {
  color: var(--ember);
}

.benchmark-plate i {
  font-style: normal;
  color: var(--ember);
}

/* ==========================================================================
   ACT V — HORIZON-LIT CONCIERGE DIALOGUE
   ========================================================================== */
.inquire-portal {
  position: relative;
  padding: 120px 0 140px;
  overflow: hidden;
}

.horizon-glow {
  position: absolute;
  bottom: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 130vw);
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(234, 88, 12, 0.18) 0%, rgba(56, 189, 248, 0.07) 45%, transparent 72%);
  filter: blur(40px);
  pointer-events: none;
}

.portal-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: start;
}

.portal-copy h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-bottom: 18px;
}

.portal-lead {
  font-size: 1.06rem;
  color: var(--text-body);
  max-width: 50ch;
}

.founder-plate {
  margin-top: 36px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(12, 18, 32, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.founder-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 8px;
}

.founder-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--text-bright);
  transition: color 0.18s ease;
}

.founder-email.small {
  font-size: 1.15rem;
}

.founder-email:hover {
  color: var(--ember);
}

.founder-meta {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* Concierge Form Controls */
.portal-form-card {
  padding: 34px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.intent-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.intent-fieldset legend {
  font-size: 0.83rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.intent-fieldset legend span,
.portal-field > span span {
  color: var(--text-dim);
  font-weight: 400;
}

.intent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intent-pill {
  position: relative;
  cursor: pointer;
}

.intent-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.intent-pill span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--text-body);
  transition: all 0.18s ease;
}

.intent-pill:hover span {
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--text-bright);
}

.intent-pill input:checked + span {
  background: rgba(251, 146, 60, 0.18);
  border-color: var(--ember);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.22);
}

.intent-pill input:focus-visible + span {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

.portal-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.portal-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.portal-field > span {
  font-size: 0.83rem;
  font-weight: 500;
  color: #cbd5e1;
}

.portal-field em {
  font-style: normal;
  color: var(--ember);
}

.portal-field input,
.portal-field textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(4, 7, 14, 0.65);
  color: var(--text-bright);
  font-size: 0.94rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.portal-field input::placeholder,
.portal-field textarea::placeholder {
  color: #475569;
}

.portal-field textarea {
  resize: vertical;
  min-height: 112px;
}

.portal-field input:focus,
.portal-field textarea:focus {
  outline: none;
  background: rgba(6, 10, 20, 0.9);
  border-color: rgba(251, 146, 60, 0.65);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.14);
}

.portal-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 6px;
}

.portal-privacy-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.form-feedback {
  display: none;
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.form-feedback.is-visible {
  display: block;
}

.success-message {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
}

.error-message {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

/* ==========================================================================
   SUBPAGES: CONTACT.HTML & LEGAL.HTML
   ========================================================================== */
.subpage-stage {
  padding: 142px 0 110px;
}

.subpage-header {
  max-width: 780px;
  margin-bottom: 56px;
}

.subpage-title {
  font-size: clamp(2.25rem, 4.6vw, 3.65rem);
  margin-bottom: 18px;
}

.contact-side-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-channel-card {
  padding: 24px 26px;
  gap: 8px;
}

.channel-desc {
  font-size: 0.9rem;
  color: var(--text-body);
}

.inline-glow-link {
  color: var(--ember);
  text-decoration: underline;
}

.cadence-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.cadence-list strong {
  color: var(--text-bright);
}

/* Legal Layout */
.legal-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 96px;
  padding: 24px;
  gap: 16px;
}

.legal-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-nav a {
  display: block;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 0.85rem;
  color: var(--text-body);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.legal-nav a:hover,
.legal-nav a.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-bright);
  font-weight: 600;
}

.legal-sidebar-contact {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-sidebar-contact a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-bright);
}

.legal-sheet {
  padding: 38px;
  gap: 0;
}

.legal-doc-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-meta-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.doc-meta-item strong,
.doc-meta-item a {
  font-size: 0.93rem;
  color: var(--text-bright);
}

.legal-clause {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-clause:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.clause-heading {
  margin-bottom: 12px;
}

.clause-heading .section-index {
  margin-bottom: 6px;
}

.clause-heading h2 {
  font-size: 1.38rem;
}

.legal-clause p {
  font-size: 0.94rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.legal-clause p a,
.legal-list a {
  color: var(--ember);
  text-decoration: underline;
}

.legal-list {
  margin: 12px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.legal-list strong {
  color: #ffffff;
}

.verifier-shell {
  margin: 18px 0 22px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(4, 7, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.verifier-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.verifier-form input {
  flex: 1;
  min-width: 220px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 18, 32, 0.9);
  color: var(--text-bright);
}

.verifier-result {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  align-items: flex-start;
  gap: 12px;
}

.verifier-result.is-visible {
  display: flex;
}

.verifier-result.is-verified {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #d1fae5;
}

.verifier-result.is-unlisted {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fef3c7;
}

.verifier-badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--emerald);
  color: #04060b;
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verifier-badge-icon.warn {
  background: #fbbf24;
}

.verifier-result-copy strong {
  display: block;
  font-size: 0.9rem;
  color: #ffffff;
}

.verifier-result-copy p {
  margin: 2px 0 0;
  font-size: 0.84rem;
}

.registry-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.89rem;
}

.registry-table th,
.registry-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
}

.registry-table th {
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

.registry-table tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.status-live {
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

/* ==========================================================================
   MODAL, TOAST & FOOTER
   ========================================================================== */
.confirmation-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 6, 11, 0.78);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.confirmation-modal-backdrop.is-open {
  display: flex;
}

.confirmation-modal-card {
  background: linear-gradient(180deg, rgba(20, 29, 48, 0.96), rgba(9, 13, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 34px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75);
}

.confirmation-modal-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-modal-icon svg {
  width: 24px;
  height: 24px;
}

.confirmation-modal-body {
  margin: 10px 0 24px;
  font-size: 0.93rem;
  color: var(--text-body);
}

.confirmation-modal-btn {
  width: 100%;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 320;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.86rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

.site-footer {
  padding: 56px 0 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 6, 11, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 48px;
}

.footer-tagline {
  margin-top: 14px;
  max-width: 42ch;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-copy {
  margin-top: 18px;
  font-size: 0.78rem;
  color: #475569;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.86rem;
}

.footer-col a:hover {
  color: var(--text-bright);
}

/* ==========================================================================
   SCROLL REVEAL & REDUCED MOTION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-stagger-1,
  .hero-stagger-2,
  .hero-stagger-3,
  .hero-stagger-4,
  .filament-photon,
  .svg-pulse-ring,
  .stream-path {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 960px) {
  .reactor-scroll-track {
    min-height: auto;
    padding: 72px 0;
  }

  .reactor-sticky-frame {
    position: static;
    min-height: auto;
    padding: 0;
  }

  .reactor-grid,
  .portal-grid,
  .footer-inner,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .bento-span-7,
  .bento-span-5 {
    grid-column: span 12;
  }

  .legal-sidebar {
    position: static;
  }

  .reactor-visual-wrap {
    height: 410px;
  }
}

@media (max-width: 860px) {
  .nav-menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 86px;
    left: 16px;
    right: 16px;
    border-radius: 22px;
    background: rgba(9, 13, 24, 0.96);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s var(--ease-out-expo);
  }

  .site-header.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a.nav-cta {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .arrival-hero {
    padding: 128px 0 92px;
  }

  .manifesto-section,
  .capabilities-section,
  .inquire-portal {
    padding: 84px 0;
  }

  .iso-plane {
    width: 268px;
    height: 174px;
  }

  .bento-card,
  .portal-form-card,
  .legal-sheet {
    padding: 24px;
  }

  .ownership-metrics,
  .portal-row-2,
  .legal-doc-meta,
  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   DIRECT HARDWARE & GEAR INVENTORY SHOWCASE (FORSALE.HTML)
   ========================================================================== */
.inventory-main {
  position: relative;
  z-index: 2;
  padding: 132px 0 100px;
}

.inventory-hero {
  padding-bottom: 36px;
  text-align: center;
}

.inventory-hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: #6ee7b7;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.inventory-hero .pulse-emerald {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseBeacon 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.inventory-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-bright);
  margin: 0 auto 16px;
  max-width: 820px;
}

.inventory-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--text-body);
  max-width: 660px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Telemetry Capsule */
.telemetry-capsule {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  background: rgba(14, 21, 35, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-bright);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 12px;
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-available {
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

.dot-pending {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.7);
}

.telemetry-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.telemetry-sync {
  color: var(--text-dim);
}

.telemetry-sync .sync-icon {
  width: 14px;
  height: 14px;
}

/* Notice Banner */
.sheet-notice-banner {
  max-width: 760px;
  margin: 18px auto 0;
  padding: 12px 18px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 0.88rem;
  color: #fde68a;
}

.sheet-notice-banner .notice-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #fbbf24;
}

.sheet-notice-banner em {
  font-style: normal;
  font-weight: 600;
  color: #fff;
}

/* ==========================================================================
   INVENTORY CONTROLS & SEARCH BAR
   ========================================================================== */
.inventory-controls-panel {
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.72), rgba(8, 13, 24, 0.88));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--glass-rim);
}

.search-and-sort-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  pointer-events: none;
}

.inventory-search-input {
  width: 100%;
  height: 46px;
  padding: 0 46px 0 42px;
  background: rgba(6, 10, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.inventory-search-input:focus {
  border-color: rgba(125, 211, 252, 0.6);
  background: rgba(6, 10, 18, 0.9);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.15);
}

.search-kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
}

.search-clear-btn:hover {
  color: var(--text-bright);
}

.filter-actions-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Toggle Pill */
.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.toggle-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  width: 38px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  position: relative;
  transition: background 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #cbd5e1;
  border-radius: 50%;
  transition: transform 0.25s var(--ease-out-expo), background 0.25s;
}

.toggle-pill input:checked + .toggle-track {
  background: rgba(52, 211, 153, 0.25);
  border-color: rgba(52, 211, 153, 0.4);
}

.toggle-pill input:checked + .toggle-track::after {
  transform: translateX(16px);
  background: #34d399;
}

.toggle-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-body);
}

/* Sort Select */
.sort-select-wrapper {
  position: relative;
}

.inventory-sort-select {
  appearance: none;
  -webkit-appearance: none;
  height: 46px;
  padding: 0 34px 0 14px;
  background: rgba(6, 10, 18, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.25s;
}

.inventory-sort-select:focus {
  border-color: rgba(125, 211, 252, 0.6);
}

/* Category Chips */
.category-chips-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-bright);
  border-color: rgba(255, 255, 255, 0.16);
}

.chip-btn.is-active {
  background: rgba(125, 211, 252, 0.12);
  border-color: rgba(125, 211, 252, 0.45);
  color: #bae6fd;
}

.chip-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  opacity: 0.7;
}

/* Results Meta */
.inventory-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-dim);
}

.meta-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: color 0.2s;
}

.meta-refresh-btn:hover {
  color: var(--text-bright);
}

.meta-refresh-btn svg {
  width: 14px;
  height: 14px;
}

.meta-refresh-btn.is-spinning svg {
  animation: spin 1s linear infinite;
}

/* ==========================================================================
   INVENTORY GRID & CARDS
   ========================================================================== */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.inventory-card {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.7), rgba(7, 11, 20, 0.88));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 var(--glass-rim);
  transition: transform 0.35s var(--ease-out-expo), border-color 0.35s, box-shadow 0.35s;
  cursor: pointer;
}

.inventory-card:hover,
.inventory-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  outline: none;
}

.inventory-card.status-sold {
  opacity: 0.6;
}

.inventory-card.status-sold:hover {
  opacity: 0.85;
}

/* Card Media */
.card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #060912;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.inventory-card:hover .card-img {
  transform: scale(1.04);
}

.card-fallback-photo {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: radial-gradient(circle at 50% 50%, rgba(20, 30, 48, 0.4) 0%, rgba(6, 9, 18, 0.8) 100%);
}

.card-fallback-photo svg {
  width: 36px;
  height: 36px;
  opacity: 0.45;
}

/* Badges */
.card-badges-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.card-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card-status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.card-status-pill.status-available {
  background: rgba(6, 78, 59, 0.8);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}

.card-status-pill.status-available .dot {
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.card-status-pill.status-pending {
  background: rgba(120, 53, 15, 0.8);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.card-status-pill.status-pending .dot {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}

.card-status-pill.status-sold {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

.card-status-pill.status-sold .dot {
  background: #94a3b8;
}

.photo-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #f1f5f9;
}

.photo-count-badge svg {
  width: 12px;
  height: 12px;
}

.card-condition-pill {
  position: absolute;
  bottom: 10px;
  left: 12px;
  padding: 3px 9px;
  background: rgba(8, 12, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #93c5fd;
  letter-spacing: 0.02em;
}

/* Card Body */
.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-category {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-bright);
  margin: 0 0 12px;
}

.card-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.card-price {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.card-trade-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fdba74;
}

.card-trade-pill svg {
  width: 12px;
  height: 12px;
}

.card-description {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.55;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-card-details {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-card-details:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-card-details svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.btn-card-details:hover svg {
  transform: translateX(2px);
}

.btn-card-inquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-card-inquire:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
}

/* Empty State */
.inventory-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: rgba(14, 21, 35, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--text-dim);
}

.inventory-empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.inventory-empty-state p {
  color: var(--text-body);
  margin-bottom: 20px;
}

/* ==========================================================================
   POLICY SECTION
   ========================================================================== */
.inventory-policy-section {
  padding: 72px 0 32px;
}

.policy-card {
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.65), rgba(7, 11, 20, 0.85));
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 36px;
  position: relative;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--glass-rim);
}

.policy-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ice);
  margin-bottom: 24px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.policy-item .policy-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ice);
  margin-bottom: 16px;
}

.policy-item .policy-icon svg {
  width: 20px;
  height: 20px;
}

.policy-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.policy-item p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   DETAIL & PHOTO LIGHTBOX MODAL
   ========================================================================== */
.item-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.item-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.item-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  background: linear-gradient(180deg, rgba(20, 30, 48, 0.95), rgba(9, 14, 25, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow-y: auto;
  z-index: 2;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s, transform 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(90deg);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-body-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 36px;
}

.modal-gallery-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-main-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #060912;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-btn {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #060912;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn.is-active {
  border-color: var(--ice);
  transform: scale(0.96);
}

/* Modal Info */
.modal-info-pane {
  display: flex;
  flex-direction: column;
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.meta-tag-category {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.meta-tag-condition {
  padding: 2px 8px;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #7dd3fc;
}

.meta-status-badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.meta-status-badge.status-available {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
}

.meta-status-badge.status-pending {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.meta-status-badge.status-sold {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.modal-item-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-bright);
  margin: 0 0 16px;
}

.modal-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(6, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 20px;
}

.modal-price-val {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.modal-trade-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fdba74;
}

.modal-details-block {
  margin-bottom: 18px;
}

.details-heading {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 6px;
}

.modal-description-text,
.modal-location-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

.modal-action-row {
  margin-top: auto;
  display: flex;
  gap: 12px;
  padding-top: 20px;
}

.modal-inquire-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.modal-inquire-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.5);
}

.modal-inquire-btn svg {
  width: 16px;
  height: 16px;
}

.modal-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-share-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.modal-share-btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS FOR INVENTORY
   ========================================================================== */
@media (max-width: 860px) {
  .policy-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modal-body-layout {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .inventory-main {
    padding-top: 110px;
  }

  .telemetry-capsule {
    flex-direction: column;
    gap: 8px;
    border-radius: 16px;
    width: 100%;
  }

  .telemetry-divider {
    display: none;
  }

  .inventory-controls-panel {
    padding: 16px;
  }

  .search-and-sort-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-actions-group {
    justify-content: space-between;
  }

  .inventory-grid {
    grid-template-columns: 1fr;
  }

  .modal-action-row {
    flex-direction: column;
  }
}
