/* NoClipOS site. The OS's own DLNE palette (themes/dlne/theme.toml, branding/noclip/colors.js) in Raven Iron's
   shape: a floating island nav, blade-cut panels, carved capitals with diamonds, a mono stat strip. One dark look. */
:root {
  --night: #07090e;
  --night-2: #05070b;
  --panel: #0c1220;
  --card: #0a0e16;
  --hair: rgba(255, 255, 255, 0.12);
  --hair-cyan: rgba(0, 240, 255, 0.28);
  --cyan: #00f0ff;
  --cyan-deep: #0e7490;
  --purple: #c084fc;
  --pink: #ee4eb0;
  --ink: #ffffff;
  --muted: #94a3b8;
  --dim: #64748b;
  --ramp: linear-gradient(90deg, var(--cyan), var(--purple) 55%, var(--pink));
  --blade: 5vw;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Alegreya Sans", "Noto Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "DejaVu Sans Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--night); }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 1.125rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--ink); }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
kbd {
  font: 600 0.8em var(--mono); color: var(--cyan); padding: 0.1em 0.5em; border-radius: 6px;
  border: 1px solid var(--hair-cyan); background: rgba(0, 240, 255, 0.06);
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 {
  font: 800 clamp(2rem, 5vw, 3.6rem)/1.05 var(--serif); letter-spacing: 0.04em; text-transform: uppercase;
  text-shadow: 0 0 28px rgba(0, 240, 255, 0.18);
}
h3 { font: 800 1.35rem/1.2 var(--sans); }
p { margin: 0; }

/* ---- the orb (CSS, so it stays sharp): cyan core, iron rim, violet-cyan arc, pulse ring ---------------------- */
.orb {
  --s: 48px; position: relative; display: inline-block; width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 34% 30%, #ffffff 0 6%, #c9fbff 12%, rgba(201, 251, 255, 0) 30%),
    radial-gradient(circle at 50% 55%, #00f0ff 0%, #00c8d8 38%, #0b5966 70%, #04161c 100%);
  box-shadow: 0 0 0 calc(var(--s) * 0.05) #1b2333, 0 0 0 calc(var(--s) * 0.09) rgba(192, 132, 252, 0.55),
    0 0 calc(var(--s) * 0.6) rgba(0, 200, 216, 0.55), inset 0 calc(var(--s) * -0.12) calc(var(--s) * 0.25) rgba(0, 0, 0, 0.55);
  animation: breathe 4.5s ease-in-out infinite;
}
.orb-sm { --s: 30px; }
.orb-xl { --s: 150px; }
.orb-hero { --s: min(26vw, 330px); }
.orb-arc {
  position: absolute; inset: calc(var(--s) * -0.2); border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(0, 240, 255, 0.0) 62%, var(--cyan) 80%, var(--purple) 92%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - max(2px, calc(var(--s) * 0.035))), #000 calc(100% - max(2px, calc(var(--s) * 0.035))));
  mask: radial-gradient(farthest-side, transparent calc(100% - max(2px, calc(var(--s) * 0.035))), #000 calc(100% - max(2px, calc(var(--s) * 0.035))));
  animation: spin 9s linear infinite;
}
.orb-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(0, 240, 255, 0.6);
  animation: pulse 3.6s ease-out infinite;
}
.orb-ring.r2 { animation-delay: 1.8s; border-color: rgba(238, 78, 176, 0.5); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18) saturate(1.1); }
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---- buttons, pills, eyebrow ------------------------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em; cursor: pointer;
  font: 600 0.78rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  padding: 1rem 1.6rem; background: rgba(10, 14, 22, 0.8); border: 1px solid var(--hair-cyan);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn:hover { background: #0b2d3b; color: var(--ink); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.btn-hot { background: var(--ramp); color: var(--night); border: 0; font-weight: 700; }
.btn-hot:hover { color: var(--night); filter: brightness(1.12); background: var(--ramp); box-shadow: 0 0 30px rgba(0, 240, 255, 0.35); }
.pill {
  display: inline-block; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan);
  padding: 0.3em 0.8em; border: 1px solid var(--hair-cyan); border-radius: 999px; background: rgba(0, 240, 255, 0.05);
}
.eyebrow {
  display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem;
  font: 600 0.78rem/1 var(--serif); letter-spacing: 0.32em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow i { width: 7px; height: 7px; background: var(--pink); transform: rotate(45deg); box-shadow: 0 0 10px var(--pink); }
.eyebrow i:first-child { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ---- island nav (the OS taskbar, at the top) ------------------------------------------------------------------- */
.island {
  position: fixed; z-index: 50; top: max(12px, env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 1.4rem; padding: 0.45rem 0.55rem 0.45rem 0.6rem; width: max-content; max-width: calc(100% - 24px);
  background: rgba(10, 14, 22, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(192, 132, 252, 0.45); border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 10px 40px rgba(0, 0, 0, 0.55), 0 0 26px rgba(192, 132, 252, 0.18);
}
.island-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand-word { font: 800 0.95rem/1 var(--serif); letter-spacing: 0.16em; }
.brand-word b { color: var(--cyan); font-weight: 800; }
.island-nav { display: flex; gap: 1.2rem; }
.island-nav a {
  position: relative; font: 600 0.72rem/1 var(--serif); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 0.4rem 0;
}
.island-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ramp);
  transform: scaleX(0); transition: transform 0.25s;
}
.island-nav a:hover, .island-nav a.on { color: var(--ink); }
.island-nav a.on::after, .island-nav a:hover::after { transform: scaleX(1); }
.island-cta {
  font: 700 0.7rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--night);
  background: var(--ramp); padding: 0.65rem 1rem; border-radius: 999px;
}
.island-cta:hover { color: var(--night); filter: brightness(1.15); }

/* ---- hero ---------------------------------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(100svh, 960px); display: grid; align-items: center; overflow: hidden;
  padding: 120px var(--gutter-r) 140px var(--gutter);
  background:
    radial-gradient(60% 50% at 75% 45%, rgba(0, 200, 216, 0.16), transparent 70%),
    radial-gradient(45% 40% at 15% 85%, rgba(192, 132, 252, 0.14), transparent 70%),
    linear-gradient(180deg, #060810, var(--night));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--blade)), 0 100%);
}
.rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.chips { position: absolute; inset: 0; pointer-events: none; }
.chip { position: absolute; fill: none; stroke: rgba(0, 240, 255, 0.16); stroke-width: 1.4; }
.chip-a { width: 160px; left: 6%; top: 22%; animation: drift 26s ease-in-out infinite; }
.chip-b { width: 280px; right: 4%; bottom: 18%; stroke: rgba(192, 132, 252, 0.16); animation: drift 32s ease-in-out infinite reverse; }
.chip-c { width: 240px; left: 38%; top: 9%; stroke: rgba(238, 78, 176, 0.13); animation: drift 38s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(24px, -30px) rotate(4deg); }
}
.hero-inner {
  position: relative; z-index: 2; width: min(1240px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center;
}
.hero-copy { min-width: 0; }
.title {
  font: 900 clamp(3.2rem, 8.4vw, 7.4rem)/0.92 var(--serif); letter-spacing: 0.02em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 20%, #b8f6ff 60%, #7fd8ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title span { background: var(--ramp); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { margin-top: 1.4rem; font: 800 clamp(1.4rem, 2.6vw, 2.1rem)/1.2 var(--sans); }
.tagline em { font-style: normal; background: var(--ramp); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 1.2rem; max-width: 34rem; color: var(--muted); font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.tags li {
  font: 500 0.72rem/1 var(--mono); color: var(--muted); padding: 0.45rem 0.75rem; border: 1px solid var(--hair); border-radius: 999px;
  background: rgba(7, 9, 14, 0.6);
}
.hero-orb { display: grid; place-items: center; }

/* ---- stat strip -------------------------------------------------------------------------------------------------- */
.strip {
  position: relative; z-index: 3; width: min(1100px, calc(100% - 32px)); margin: -60px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.95), rgba(10, 14, 22, 0.95)); border: 1px solid var(--hair);
  border-top: 1px solid var(--hair-cyan); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.strip > div { position: relative; padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.strip > div + div { border-left: 1px solid var(--hair); }
.strip > div + div::before {
  content: ""; position: absolute; left: -5px; top: 50%; width: 9px; height: 9px; margin-top: -5px;
  background: var(--pink); transform: rotate(45deg); box-shadow: 0 0 10px var(--pink);
}
.label { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.val { font-size: 0.92rem; color: var(--ink); }

/* ---- sections -------------------------------------------------------------------------------------------------- */
.sect { position: relative; padding: clamp(64px, 8vw, 110px) var(--gutter-r) clamp(32px, 4vw, 56px) var(--gutter); }
.sect-head { width: min(1100px, 100%); margin: 0 auto 3rem; }
.sect-sub { margin-top: 1rem; max-width: 46rem; color: var(--muted); }
.foot-note { width: min(1100px, 100%); margin: 2rem auto 0; color: var(--dim); font-size: 0.98rem; max-width: 1100px; }

/* ---- class blades (Raven Iron's destinations, the Setup class cards) ------------------------------------------- */
.blades { display: flex; gap: 10px; width: min(1240px, 100%); margin: 0 auto; height: 520px; }
.blade {
  --c: var(--cyan); position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: default;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6rem; padding: 2rem 1.6rem 1.8rem 2.2rem;
  clip-path: polygon(28px 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
  background:
    radial-gradient(90% 55% at 50% 22%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, #0a0e16), #07090e 75%);
  transition: flex-grow 0.45s cubic-bezier(.2,.8,.2,1), filter 0.3s;
}
.blade::before { content: ""; position: absolute; inset: 0; border-top: 2px solid var(--c); opacity: 0.8; }
.blade svg {
  position: absolute; top: 14%; left: 50%; width: 120px; transform: translateX(-50%);
  fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 14px var(--c)); transition: transform 0.45s;
}
.blade .pill { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, transparent); align-self: flex-start; }
.blade h3 { font: 800 1.7rem/1 var(--serif); letter-spacing: 0.06em; text-transform: uppercase; }
.blade-sub { color: var(--muted); font-size: 1rem; }
.loadout {
  font: 400 0.78rem/1.6 var(--mono); color: color-mix(in srgb, var(--c) 70%, white); max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.45s, opacity 0.35s;
}
.blade:hover, .blade:focus-within { flex-grow: 2.2; }
.blade:hover svg { transform: translateX(-50%) scale(1.08); }
.blade:hover .loadout { max-height: 12rem; opacity: 1; }
.blades:hover .blade:not(:hover) { filter: saturate(0.6) brightness(0.75); }
.c1 { --c: #00f0ff; } .c2 { --c: #5aa8ff; } .c3 { --c: #c084fc; } .c4 { --c: #d55fd6; } .c5 { --c: #ee4eb0; }

/* ---- split layouts ---------------------------------------------------------------------------------------------- */
.split { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.rev { grid-template-columns: 1fr 1fr; }
.split-copy { min-width: 0; }
.split-copy > p { margin-top: 1.2rem; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.9rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; transform: rotate(45deg);
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
.ticks b { color: var(--ink); }
.duka { background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.04) 40%, transparent); }

.shot { margin: 0; border: 1px solid var(--hair-cyan); background: var(--card); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 240, 255, 0.08); }
.tilt { transform: perspective(1400px) rotateY(-9deg) rotateX(2deg); }
.tilt-r { transform: perspective(1400px) rotateY(9deg) rotateX(2deg); }
.duka-stage { position: relative; min-width: 0; }
.dukabar {
  position: absolute; left: 14%; right: 14%; top: 26%; display: flex; align-items: center; gap: 0.9rem;
  padding: 0.7rem 1.1rem; background: rgba(15, 23, 42, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.4); border-radius: 14px; box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), 0 20px 40px rgba(0, 0, 0, 0.5);
}
.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--cyan); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -0.9s; } .wave i:nth-child(3) { animation-delay: -0.7s; background: var(--purple); }
.wave i:nth-child(4) { animation-delay: -0.5s; } .wave i:nth-child(5) { animation-delay: -0.3s; background: var(--pink); }
.wave i:nth-child(6) { animation-delay: -0.15s; } .wave i:nth-child(7) { animation-delay: -0.6s; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.said { font-size: 0.95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.said::after { content: "▍"; color: var(--cyan); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- modes ----------------------------------------------------------------------------------------------------- */
.modes { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mode {
  position: relative; display: flex; flex-direction: column; gap: 0.8rem; padding: 2.2rem 2.4rem 2.6rem; min-width: 0;
  background: linear-gradient(180deg, #0c1220, #080b12); border: 1px solid var(--hair);
}
.mode-duka { clip-path: polygon(0 0, 100% 0, calc(100% - 34px) 100%, 0 100%); border-top: 2px solid var(--cyan); }
.mode-desk { clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%); border-top: 2px solid var(--pink); padding-left: 3.6rem; }
.mode-desk .pill { color: var(--pink); border-color: rgba(238, 78, 176, 0.45); }
.mode h3 { font: 800 2rem/1 var(--serif); letter-spacing: 0.05em; text-transform: uppercase; }
.mode p:not(.pill) { color: var(--muted); }
.mode .pill { align-self: flex-start; }
.mode-art, .mode-shot { margin: 0 0 1rem; aspect-ratio: 16 / 10; border: 1px solid var(--hair); overflow: hidden; }
.mode-shot img { width: 100%; height: 100%; object-fit: cover; }
.mode-art {
  display: grid; place-items: center; position: relative;
  background:
    radial-gradient(50% 60% at 50% 50%, rgba(0, 240, 255, 0.22), transparent 70%),
    repeating-linear-gradient(0deg, rgba(0, 240, 255, 0.05) 0 1px, transparent 1px 4px),
    #05080d;
}
.pad svg { width: 140px; fill: none; stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 18px var(--cyan)); animation: breathe 4s ease-in-out infinite; }

/* ---- setup reel -------------------------------------------------------------------------------------------------- */
.reel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 82vw); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  width: min(1240px, 100%); margin: 0 auto; padding-bottom: 1rem; scrollbar-color: var(--cyan-deep) transparent;
}
.frame { margin: 0; scroll-snap-align: start; }
.frame figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 1rem; }
.frame figcaption .mono { color: var(--cyan); margin-right: 0.6rem; font-size: 0.8rem; }
.zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--hair); background: none; cursor: zoom-in; transition: border-color 0.2s, transform 0.2s; }
.zoom:hover { border-color: var(--cyan); }
.zoom:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.zoom img { width: 100%; height: auto; }

/* ---- games ---------------------------------------------------------------------------------------------------- */
.cards { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game {
  position: relative; display: flex; flex-direction: column; color: var(--ink); background: var(--card); border: 1px solid var(--hair);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); transition: transform 0.25s, border-color 0.25s;
}
.game img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; filter: saturate(0.9); transition: filter 0.3s; }
.game:hover { transform: translateY(-4px); border-color: var(--cyan); color: var(--ink); }
.game:hover img { filter: saturate(1.15) brightness(1.05); }
.game-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.2rem 1.4rem 1.8rem; }
.game-body .pill { align-self: flex-start; }
.game-body b { font: 800 1.4rem/1.1 var(--serif); letter-spacing: 0.04em; text-transform: uppercase; }
.game-body > span:last-child { color: var(--muted); font-size: 1rem; }

/* ---- inside grid ---------------------------------------------------------------------------------------------- */
.grid { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.cell { background: var(--night); padding: 2rem 1.8rem 2.2rem; display: flex; flex-direction: column; gap: 0.7rem; transition: background 0.3s; }
.cell:hover { background: #0b111c; }
.cell .k { color: var(--pink); font-size: 0.75rem; letter-spacing: 0.2em; }
.cell p { color: var(--muted); font-size: 1.02rem; }

/* ---- installer ------------------------------------------------------------------------------------------------ */
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 1.8rem; }
.installer .shot .zoom { border: 0; }

/* ---- get ------------------------------------------------------------------------------------------------------ */
.get-panel {
  position: relative; width: min(1000px, 100%); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(238, 78, 176, 0.14), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(0, 240, 255, 0.12), transparent 60%),
    var(--panel);
  border: 1px solid var(--hair-cyan); clip-path: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);
}
.reqs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 2rem; background: var(--hair); border: 1px solid var(--hair); }
.reqs > div { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.2rem; background: var(--card); min-width: 0; }

/* ---- footer --------------------------------------------------------------------------------------------------- */
.foot {
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center; color: var(--muted);
  padding: 3rem var(--gutter-r) calc(3rem + env(safe-area-inset-bottom, 0px)) var(--gutter); border-top: 1px solid var(--hair);
  background: var(--night-2); font-size: 1rem;
}
.foot-brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); }
.foot .mono { font-size: 0.75rem; }

/* ---- lightbox ------------------------------------------------------------------------------------------------- */
.lightbox { padding: 0; border: 1px solid var(--hair-cyan); background: var(--night); max-width: min(1280px, 94vw); }
.lightbox::backdrop { background: rgba(3, 5, 9, 0.85); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; height: auto; }
.lb-close {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  font: 400 1.6rem/1 var(--sans); color: var(--ink); background: rgba(7, 9, 14, 0.8); border: 1px solid var(--hair-cyan);
}

/* ---- reveal on scroll ------------------------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- the boot intro ------------------------------------------------------------------------------------------- */
.boot { display: none; }
html.intro { overflow: hidden; }
html.intro .boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #000;
  transition: opacity 0.7s ease, visibility 0.7s;
}
html.intro.booted .boot { opacity: 0; visibility: hidden; }
.boot-core { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.boot .orb-xl { transform: scale(0.2); opacity: 0; animation: wake 1.6s cubic-bezier(.2,.9,.2,1) 0.3s forwards, breathe 4.5s ease-in-out 2s infinite; }
@keyframes wake { to { transform: scale(1); opacity: 1; } }
.boot-word { display: flex; gap: 0.25em; font: 900 clamp(2rem, 7vw, 4rem)/1 var(--serif); letter-spacing: 0.2em; }
.boot-word span { opacity: 0; transform: translateY(10px); animation: letter 0.5s ease forwards; color: var(--ink); text-shadow: 0 0 22px rgba(0, 240, 255, 0.6); }
.boot-word span:nth-child(1) { animation-delay: 1.3s; } .boot-word span:nth-child(2) { animation-delay: 1.4s; }
.boot-word span:nth-child(3) { animation-delay: 1.5s; } .boot-word span:nth-child(4) { animation-delay: 1.6s; }
.boot-word span:nth-child(5) { animation-delay: 1.7s; } .boot-word span:nth-child(6) { animation-delay: 1.8s; }
@keyframes letter { to { opacity: 1; transform: none; } }
.boot-bar { width: min(420px, 70vw); height: 4px; background: #121722; border: 1px solid #1d2433; overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 0; background: var(--ramp); box-shadow: 0 0 12px var(--cyan); }
.boot-line { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); min-height: 1em; }
.skip {
  position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  font-size: 0.66rem; padding: 0.8rem 1.2rem; border-color: rgba(238, 78, 176, 0.6); color: var(--pink);
}

/* ---- small screens ---------------------------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner, .split, .split.rev, .modes { grid-template-columns: 1fr; }
  .hero-orb { order: -1; }
  .orb-hero { --s: min(52vw, 260px); }
  .blades { flex-direction: column; height: auto; }
  .blade { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); min-height: 180px; padding: 1.4rem 1.4rem 1.4rem 8.5rem; }
  .blade svg { top: 50%; left: 1.4rem; width: 84px; transform: translateY(-50%); }
  .blade:hover svg { transform: translateY(-50%) scale(1.05); }
  .blade { flex: none; }
  .loadout { max-height: none; opacity: 1; }
  .blades:hover .blade:not(:hover) { filter: none; }
  .cards { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .tilt, .tilt-r { transform: none; }
  .mode-duka, .mode-desk { clip-path: none; padding-left: 1.6rem; padding-right: 1.6rem; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > div:nth-child(3) { border-left: 0; }
  .strip > div:nth-child(3)::before { display: none; }
  .strip > div:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 720px) {
  .island { gap: 0.8rem; }
  .island-nav { display: none; }
  .grid, .reqs, .thumbs { grid-template-columns: 1fr; }
  .blade { padding-left: 6.6rem; }
  .blade svg { width: 64px; left: 1.1rem; }
  .dukabar { position: relative; left: auto; right: auto; bottom: auto; margin-top: 14px; }
  .hero { padding-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- 404 -------------------------------------------------------------------------------------------------------- */
.lost {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; text-align: center;
  padding: 2rem var(--gutter-r) 2rem var(--gutter);
  background: radial-gradient(50% 45% at 50% 40%, rgba(0, 200, 216, 0.14), transparent 70%), var(--night);
}
.lost .title { font-size: clamp(2.6rem, 9vw, 6rem); }
.lost .eyebrow { margin: 1.4rem 0 0; }
