/* filename: style.css */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@600&display=swap');
@import url('https://fonts.cdnfonts.com/css/alte-haas-grotesk');

:root {
  --shadow-forest: #3A5743;
  --void-black: #1C1C1C;
  --ghost-linen: #F5F4F0;
  --wrath-crimson: #7B1E1E;
  --battle-leather: #5A3E2B;
  --molten-core: #C85A17;
  --font-sans: 'Almarai', 'Alte Haas Grotesk', 'Helvetica Neue', sans-serif;
  --font-alt: 'Alte Haas Grotesk', 'Almarai', sans-serif;
  --glow: rgba(200, 90, 23, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, rgba(58, 87, 67, 0.08), transparent 45%), #0b0b0b;
  color: var(--ghost-linen);
  font-family: var(--font-alt);
  letter-spacing: 0.02em;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, transparent 15%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: screen;
  opacity: 0.7;
  z-index: -1;
}

/* simplified theme handling; moods removed for clarity */


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

button {
  font-family: inherit;
  letter-spacing: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.35s ease;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-phalanx {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(5, 5, 5, 0.55);
  border-bottom: 1px solid rgba(200, 90, 23, 0.15);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.4rem;
}

.nav-brand__glyph {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  padding: 6px;
  background: rgba(12, 12, 12, 0.65);
  filter: drop-shadow(0 0 12px rgba(200, 90, 23, 0.35));
}

.nav-brand .glyph {
  color: var(--molten-core);
  font-size: 1.6rem;
}

.wordmark {
  font-family: var(--font-sans);
  font-size: 1.05rem;
}

.glitch {
  position: relative;
  text-transform: uppercase;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  mix-blend-mode: lighten;
  opacity: 0.4;
  animation: glitch 2.8s infinite;
}

.glitch::before {
  color: var(--wrath-crimson);
  transform: translate(0.5px, 0.5px);
}

.glitch::after {
  color: var(--shadow-forest);
  transform: translate(-0.5px, -0.5px);
  animation-delay: 1.2s;
}

@keyframes glitch {
  0%, 20%, 100% { opacity: 0.25; }
  10% { opacity: 0.6; transform: translate(1px, -1px); }
  12% { opacity: 0.2; transform: translate(-1px, 1px); }
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  font-size: 0.75rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.6rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 0;
  height: 2px;
  background: var(--molten-core);
  transition: width 0.35s ease, left 0.35s ease;
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
  box-shadow: 0 0 6px var(--glow);
}

.nav-cta .cta {
  font-size: 0.7rem;
  padding: 0.6rem 1.4rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8rem 2.8rem 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.1);
}

.media-texture {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(5, 5, 5, 0.05), transparent 60%);
  mix-blend-mode: overlay;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.78), rgba(58, 87, 67, 0.55));
  z-index: 0;
}

.hero__content {
  max-width: 820px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  position: relative;
  z-index: 3; /* ensure content sits above the video/veil */
}

.hero__logo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(245, 244, 240, 0.18);
  padding: 0.65rem 1.1rem;
  width: fit-content;
  mix-blend-mode: lighten;
}

.hero__logo img {
  width: 70px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(200, 90, 23, 0.35));
}

.hero__logo span {
  letter-spacing: 0.28rem;
  font-size: 0.62rem;
  color: rgba(245, 244, 240, 0.92);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(245, 244, 240, 0.35);
  background: rgba(20, 20, 20, 0.72);
  color: rgba(245,244,240,0.92);
  width: fit-content;
}

.hero__title {
  font-size: clamp(3.4rem, 8vw, 5.8rem);
  margin: 0;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  color: var(--ghost-linen);
  text-shadow: 0 6px 24px rgba(0,0,0,0.6), 0 1px 0 rgba(200,90,23,0.06);
}

.hero__title .title-sub {
  display: block;
  font-size: clamp(1.1rem, 2.6vw, 1.9rem);
  letter-spacing: 0.6rem;
  color: rgba(245, 244, 240, 0.85);
  text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.hero__manifesto {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.typed-line {
  font-size: 0.95rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(24px);
  letter-spacing: 0.28rem;
  line-height: 1.5;
  color: rgba(245, 244, 240, 0.78);
}

.typed-line.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.hero__shot {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 244, 240, 0.12);
  background: rgba(10, 10, 10, 0.5);
}

.hero__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.hero__shot:hover img {
  transform: scale(1.03);
  filter: saturate(1.1);
}

.hero__shot figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.7rem 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  font-size: 0.58rem;
  letter-spacing: 0.32rem;
  text-transform: uppercase;
}

.cta {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.35rem;
  padding: 0.9rem 1.8rem;
  font-size: 0.72rem;
}

.cta.solid {
  background: var(--molten-core);
  color: #fff;
  box-shadow: 0 6px 28px rgba(200, 90, 23, 0.22), 0 0 8px rgba(0,0,0,0.35) inset;
}

.cta.solid:hover {
  background: rgba(200, 90, 23, 1);
  transform: translateY(-2px);
}

.cta.ghost {
  border: 1px solid rgba(245, 244, 240, 0.35);
  background: transparent;
  color: var(--ghost-linen);
}

.cta.ghost:hover {
  border-color: var(--molten-core);
  color: var(--molten-core);
}

/* Drawer / modal and shop UI */
.product-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12,12,12,0.95);
  backdrop-filter: blur(12px);
  z-index: 40;
  padding: 2rem;
}

.product-modal .product-card {
  background: rgba(28,28,28,0.98);
  padding: 2rem;
  border-radius: 4px;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.product-modal img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.cart-drawer { position: fixed; right: 0; top: 0; width: 420px; height: 100vh; background: #070707; z-index: 90; box-shadow: -12px 0 32px rgba(0,0,0,0.6); display:flex; flex-direction:column; transform: translateX(110%); transition: transform 0.28s ease; }
.cart-drawer--hidden { transform: translateX(110%); pointer-events: none; }
.cart-head { padding: 1rem; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid rgba(255,255,255,0.04);} 
.cart-body { padding: 1rem; overflow:auto; flex:1; }
.cart-foot { padding: 1rem; border-top:1px solid rgba(255,255,255,0.04); }
.cart-item { display:flex; gap:0.9rem; padding:0.9rem 0; border-bottom:1px dashed rgba(255,255,255,0.03);} 
.cart-item img{ width:64px; height:64px; object-fit:cover; border-radius:6px; }
.cart-summary{ display:flex; justify-content:space-between; align-items:center; gap:1rem; }

.overlay { position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:70; opacity:0; transition: opacity 0.28s ease; pointer-events:none; }
.overlay--hidden{ opacity:0; pointer-events:none; }
.overlay:not(.overlay--hidden){ opacity:1; pointer-events:auto; }

.categories-grid{ display:flex; flex-wrap:wrap; gap:0.6rem; padding:1.2rem 1.4rem 3rem; }
.category-btn{ background:transparent; border:1px solid rgba(255,255,255,0.06); padding:0.8rem 1rem; color:var(--ghost-linen); cursor:pointer; border-radius:6px; }
.category-btn:hover{ background:rgba(255,255,255,0.02); border-color:var(--molten-core); color:var(--molten-core);} 

.product-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap:1rem; }
.product-card{ background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06)); padding:0.8rem; border:1px solid rgba(255,255,255,0.03); border-radius:8px; }
.product-card h4{ margin:0.4rem 0 0.6rem; font-size:0.95rem; }
.product-card p{ font-size:0.82rem; opacity:0.85; }
.product-actions{ display:flex; gap:0.6rem; margin-top:0.6rem; align-items:center; }
.price{ font-weight:700; }

/* small helpers */
.hidden{ display:none !important; }

.cta.hollow {
  border: 1px solid rgba(200, 90, 23, 0.55);
  background: rgba(0, 0, 0, 0.4);
  color: var(--molten-core);
}

.cta.hollow:hover {
  border-color: var(--ghost-linen);
  color: var(--ghost-linen);
}

.cta.underline {
  background: transparent;
  padding: 0.4rem 0;
  letter-spacing: 0.3rem;
}

.cta.underline::after {
  content: "";
  display: block;
  height: 2px;
  width: 45%;
  margin-top: 0.4rem;
  background: rgba(200, 90, 23, 0.6);
  transition: width 0.3s ease;
}

.cta.underline:hover::after {
  width: 100%;
  box-shadow: 0 0 8px var(--glow);
}

.hero__motif {
  position: absolute;
  right: 3rem;
  bottom: 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  letter-spacing: 0.5rem;
  font-size: 0.62rem;
  opacity: 0.65;
}

.scroll-sigil {
  position: absolute;
  left: 3rem;
  bottom: 2.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  letter-spacing: 0.4rem;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.sigil-line {
  flex: 1;
  height: 1px;
  background: rgba(245, 244, 240, 0.2);
  position: relative;
  overflow: hidden;
}

.sigil-line::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 90, 23, 0.6), transparent);
  animation: pulse 2.4s linear infinite;
}

@keyframes pulse {
  0% { transform: translateX(-60px); }
  100% { transform: translateX(100%); }
}

.hero-pip {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 240px;
  aspect-ratio: 16 / 9;
  background: rgba(12, 12, 12, 0.8);
  border: 1px solid rgba(200, 90, 23, 0.35);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.8rem;
  gap: 0.4rem;
  z-index: 50;
}

.hero-pip video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  border-radius: 4px;
}

.hero-pip .pip-frame {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200, 90, 23, 0.4);
  mix-blend-mode: screen;
}

.hero-pip span {
  position: relative;
  font-size: 0.55rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.25rem 0.4rem;
  width: fit-content;
}

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

section {
  padding: 6.5rem 2.8rem;
  position: relative;
}

.section-head {
  text-transform: uppercase;
  letter-spacing: 0.32rem;
  margin-bottom: 3.2rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.7rem);
  letter-spacing: 0.45rem;
}

.section-sub {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: rgba(245, 244, 240, 0.55);
}

.new-drop {
  background: linear-gradient(135deg, rgba(12, 12, 12, 0.95), rgba(58, 87, 67, 0.42));
  border-top: 1px solid rgba(245, 244, 240, 0.08);
  border-bottom: 1px solid rgba(245, 244, 240, 0.08);
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.rail__controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: flex-end;
}

.rail-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(245, 244, 240, 0.15);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(245, 244, 240, 0.75);
  font-size: 1.3rem;
  display: grid;
  place-items: center;
}

.rail-button:hover {
  border-color: rgba(200, 90, 23, 0.5);
  color: var(--molten-core);
  box-shadow: 0 0 12px rgba(200, 90, 23, 0.2);
}

.rail-button.is-disabled {
  opacity: 0.25;
  pointer-events: none;
}

.rail-progress {
  flex: 1;
  height: 2px;
  background: rgba(245, 244, 240, 0.1);
  position: relative;
  overflow: hidden;
}

.rail-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(200, 90, 23, 0.7);
  transition: width 0.35s ease;
}

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.rail-track::-webkit-scrollbar {
  display: none;
}

.drop-card {
  border: 1px solid rgba(245, 244, 240, 0.12);
  background: rgba(14, 14, 14, 0.68);
  display: grid;
  grid-template-rows: 320px auto;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

.drop-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

.drop-card__body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.drop-card__body h3 {
  margin: 0;
  letter-spacing: 0.36rem;
  font-size: 0.9rem;
}

.drop-card__body p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(245, 244, 240, 0.62);
  line-height: 1.7;
}

.drop-card__tag {
  font-size: 0.62rem;
  letter-spacing: 0.4rem;
  color: rgba(200, 90, 23, 0.7);
}

.doctrine {
  background: rgba(9, 9, 9, 0.85);
  backdrop-filter: blur(10px);
}

.doctrine-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.doctrine-card {
  border: 1px solid rgba(245, 244, 240, 0.12);
  padding: 2.2rem;
  background: rgba(22, 22, 22, 0.68);
  position: relative;
  overflow: hidden;
}

.doctrine-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200, 90, 23, 0.18);
  transform: scale(0.92);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.doctrine-card:hover::after {
  opacity: 1;
}

.doctrine-card h3 {
  margin: 0 0 1.4rem;
  font-size: 1rem;
  letter-spacing: 0.32rem;
}

.doctrine-card p {
  margin: 0;
  color: rgba(245, 244, 240, 0.68);
  line-height: 1.7;
}

.arsenal {
  background: linear-gradient(135deg, rgba(28, 28, 28, 0.9), rgba(58, 87, 67, 0.46));
}

.arsenal-grid {
  display: grid;
  gap: 2.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.arsenal-card {
  border: 1px solid rgba(245, 244, 240, 0.08);
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 10, 0.6);
  box-shadow: inset 0 0 0 1px rgba(200, 90, 23, 0.08);
  position: relative;
  overflow: hidden;
}

.arsenal-card::before {
  content: attr(data-collection);
  position: absolute;
  top: 1rem;
  left: -4rem;
  transform: rotate(-90deg);
  letter-spacing: 0.4rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.13);
}

.card-media {
  height: 220px;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.2);
}

.card-body {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.card-body h3 {
  margin: 0;
  letter-spacing: 0.35rem;
  font-size: 0.95rem;
}

.card-body p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(245, 244, 240, 0.62);
  line-height: 1.7;
}

.arsenal-footer {
  margin-top: 3.4rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.accessory-pulse {
  background: linear-gradient(125deg, rgba(7, 7, 7, 0.88), rgba(123, 30, 30, 0.32));
  border-top: 1px solid rgba(245, 244, 240, 0.08);
}

.accessory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.2rem;
}

.accessory-card {
  border: 1px solid rgba(245, 244, 240, 0.12);
  background: rgba(14, 14, 14, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.accessory-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.accessory-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.1);
}

.accessory-card__body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.accessory-card__body span {
  font-size: 0.58rem;
  letter-spacing: 0.34rem;
  color: rgba(200, 90, 23, 0.65);
}

.accessory-card__body h3 {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.32rem;
}

.accessory-card__body p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(245, 244, 240, 0.6);
  line-height: 1.6;
}

/* modes removed — streamlined UI */

.code {
  color: var(--molten-core);
}

.gallery {
  background: linear-gradient(145deg, rgba(12, 12, 12, 0.95), rgba(90, 62, 43, 0.35));
}

.gallery-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-card {
  position: relative;
  overflow: hidden;
  filter: grayscale(0.1);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.gallery-card:hover img {
  filter: grayscale(1) sepia(0.6) hue-rotate(-20deg) saturate(2);
  transform: scale(1.05);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(123, 30, 30, 0);
  transition: background 0.4s ease;
  mix-blend-mode: screen;
}

.gallery-card:hover::after {
  background: rgba(123, 30, 30, 0.35);
}

.gallery-card figcaption {
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.28rem;
}

.undercurrent {
  padding-block: 5rem;
  background: radial-gradient(circle at center, rgba(58, 87, 67, 0.18), rgba(5, 5, 5, 0.92));
  border-top: 1px solid rgba(245, 244, 240, 0.08);
}

.undercurrent__banner {
  position: relative;
  border: 1px solid rgba(245, 244, 240, 0.12);
  overflow: hidden;
  max-width: 960px;
  margin-inline: auto;
  background: rgba(10, 10, 10, 0.6);
}

.undercurrent__banner img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: lighten;
}

.undercurrent__overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.85), transparent 60%);
  padding: 2rem 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
}

.undercurrent__overlay p {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.24rem;
  color: rgba(245, 244, 240, 0.7);
}

.oracle {
  background: rgba(5, 5, 5, 0.9);
}

.oracle-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid rgba(245, 244, 240, 0.15);
  padding: 2rem;
  background: rgba(12, 12, 12, 0.8);
}

.oracle-form label {
  font-size: 0.72rem;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
}

.oracle-form select {
  flex: 1;
  min-width: 220px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(245, 244, 240, 0.15);
  color: var(--ghost-linen);
  letter-spacing: 0.2rem;
}

.oracle-output {
  margin-top: 2rem;
  min-height: 80px;
  border-left: 2px solid rgba(200, 90, 23, 0.5);
  padding-left: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.2rem;
  color: rgba(245, 244, 240, 0.65);
}

.oracle-output .placeholder {
  color: rgba(245, 244, 240, 0.35);
}

.idle-wisdom {
  padding-block: 5rem;
  background: rgba(12, 12, 12, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
}

.wisdom-frame {
  border: 1px solid rgba(245, 244, 240, 0.12);
  padding: 2.8rem 3.6rem;
  text-align: center;
  letter-spacing: 0.4rem;
  background: rgba(0, 0, 0, 0.5);
  position: relative;
}

.wisdom-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200, 90, 23, 0.22);
  transform: scale(0.94);
}

.wisdom-frame h2 {
  margin: 0 0 1.6rem;
  font-size: 0.95rem;
}

.wisdom-frame p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(245, 244, 240, 0.78);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#idleQuote.fade {
  opacity: 0;
  transform: translateY(6px);
}

.citadel {
  padding: 3.2rem 2.8rem 3.6rem;
  border-top: 1px solid rgba(245, 244, 240, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  background: rgba(5, 5, 5, 0.95);
}

.citadel-brand {
  display: flex;
  gap: 0.8rem;
  letter-spacing: 0.35rem;
  font-size: 0.8rem;
  align-items: center;
}

.citadel-copy {
  font-size: 0.7rem;
  letter-spacing: 0.25rem;
  color: rgba(245, 244, 240, 0.5);
  max-width: 520px;
}

.citadel-copy .small {
  margin-top: 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.28rem;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.ember-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(200, 90, 23, 0.7), transparent 70%);
  filter: blur(1px);
  z-index: 1000;
  transform: translate(-50%, -50%);
}

@media (max-width: 1200px) {
  .hero__gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 7.2rem 2rem 4rem;
  }

  .hero__title {
    letter-spacing: 0.18rem;
  }

  .hero__manifesto {
    letter-spacing: 0.12rem;
  }

  .hero__motif,
  .scroll-sigil {
    display: none;
  }

  .hero__gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    scroll-snap-type: x mandatory;
  }

  .hero__shot {
    min-width: 180px;
    scroll-snap-align: start;
  }

  .hero__shot figcaption {
    letter-spacing: 0.22rem;
  }
}

@media (max-width: 768px) {
  .rail-track {
    grid-auto-columns: minmax(220px, 260px);
  }

  .rail-button {
    width: 42px;
    height: 42px;
  }

  .accessory-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .undercurrent__overlay {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-phalanx {
    padding: 1rem 1.6rem;
  }

  section {
    padding: 5.2rem 1.6rem;
  }

  .hero {
    padding: 7rem 1.6rem 4rem;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-pip {
    right: 1rem;
    bottom: 1rem;
    width: 180px;
  }

  .rail__controls {
    justify-content: center;
  }

  .rail-track {
    grid-auto-columns: minmax(200px, 1fr);
  }

  .accessory-card__body {
    padding: 1.4rem;
  }

  .undercurrent__overlay {
    padding: 1.6rem;
  }

  .citadel {
    padding: 2.4rem 1.6rem 3rem;
  }
}