:root {
  --ink: #030710;
  --panel: #08101c;
  --panel-2: #0b1422;
  --line: rgba(128, 174, 201, 0.16);
  --muted: #8993a4;
  --text: #eef8ff;
  --cyan: #06f7e8;
  --blue: #1684ff;
  --violet: #9a55ff;
  --hot: #fa47df;
  --display: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

body::selection { background: var(--cyan); color: var(--ink); }

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

button, a { -webkit-tap-highlight-color: transparent; }

img { display: block; max-width: 100%; }

.section { width: min(1360px, calc(100% - 80px)); margin-inline: auto; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 44px;
  background: rgba(3, 7, 16, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 13px; width: max-content; font: 800 15px/1 var(--mono); letter-spacing: .22em; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  aspect-ratio: 1;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
  box-shadow: 0 0 28px rgba(6, 247, 232, .45);
}

.topbar nav { display: flex; height: 100%; }

.topbar nav a {
  display: grid;
  place-items: center;
  padding: 0 24px;
  color: #adb6c5;
  font: 600 11px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  transition: .25s ease;
}

.topbar nav a:hover, .topbar nav a:focus-visible { color: var(--cyan); border-color: var(--line); background: rgba(6, 247, 232, .04); outline: 0; }

.system-status { justify-self: end; color: #a9b4c2; font: 700 10px/1 var(--mono); letter-spacing: .14em; }

.system-status i { display: inline-block; width: 7px; aspect-ratio: 1; margin-right: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(470px, .8fr);
  align-items: center;
  gap: clamp(50px, 8vw, 140px);
  padding: 130px max(6vw, 48px) 90px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 80% 45%, rgba(20, 83, 178, .23), transparent 29%),
    radial-gradient(circle at 48% 85%, rgba(110, 47, 205, .12), transparent 30%),
    linear-gradient(120deg, #030710 0%, #050b14 55%, #04101c 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, transparent 49.9%, rgba(6, 247, 232, .045) 50%, transparent 50.1%);
}

.hero-grid, .stage-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .23;
  background-image:
    linear-gradient(rgba(84, 147, 180, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 147, 180, .12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, rgba(0,0,0,.8), transparent 76%);
}

.hero-copy { position: relative; z-index: 2; max-width: 750px; }

.eyebrow { margin: 0 0 22px; color: var(--cyan); font: 700 11px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; }

.eyebrow span { color: #778395; margin-right: 14px; }

.hero h1 {
  margin: 0 0 13px -7px;
  font: 900 clamp(84px, 10.5vw, 180px)/.76 var(--display);
  letter-spacing: -.075em;
  background: linear-gradient(100deg, #fff 5%, #b9eeff 48%, #7759ff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 35px rgba(30, 145, 255, .16));
}

.hero-kicker { margin: 28px 0 20px; font: 700 clamp(29px, 3vw, 49px)/1.06 var(--display); letter-spacing: -.035em; }

.hero-description { max-width: 590px; margin: 0; color: #9da9b9; font-size: 16px; line-height: 1.75; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 35px; padding: 0 22px; font: 800 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }

.button-primary { color: #001714; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 28px rgba(6, 247, 232, .14); }

.button-ghost { color: #c8d5e2; background: rgba(255,255,255,.025); }

.button:hover, .button:focus-visible { transform: translateY(-3px); outline: 0; box-shadow: 0 0 32px rgba(6,247,232,.25); }

.hero-stats { display: flex; gap: clamp(32px, 5vw, 72px); margin: 45px 0 0; }

.hero-stats div { position: relative; }
.hero-stats div:not(:last-child)::after { content: ""; position: absolute; top: 2px; right: clamp(-36px, -2.5vw, -16px); height: 35px; border-right: 1px solid var(--line); }
.hero-stats dt { font: 800 19px/1 var(--mono); color: #fff; }
.hero-stats dd { margin: 8px 0 0; color: #647185; font: 700 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }

.hero-visual { position: relative; justify-self: center; width: min(34vw, 500px); min-width: 410px; height: min(72vh, 720px); }

.hero-photo {
  position: absolute;
  inset: 2% 9% 0 8%;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(8% 0, 100% 0, 100% 93%, 90% 100%, 0 100%, 0 8%);
  background: #070d17;
  border: 1px solid rgba(74, 159, 221, .34);
  box-shadow: 0 0 90px rgba(20, 95, 232, .17), inset 0 0 40px rgba(4, 11, 20, .75);
}

.hero-photo::before { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(180deg, rgba(3,7,16,.06), transparent 50%, rgba(3,7,16,.25)); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; filter: contrast(1.08) saturate(1.16) brightness(.82); }

.hero-orbit { position: absolute; border: 1px solid rgba(24, 133, 255, .18); border-radius: 50%; animation: rotate 18s linear infinite; }
.orbit-one { inset: 12% -6% 10% 1%; }
.orbit-two { inset: 20% 3% 18% -14%; border-style: dashed; animation-direction: reverse; animation-duration: 25s; }
.hero-orbit::before { content: ""; position: absolute; top: 12%; left: 7%; width: 7px; aspect-ratio: 1; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); border-radius: 50%; }

.visual-label { position: absolute; z-index: 4; min-width: 146px; padding: 12px 15px; border-left: 2px solid var(--cyan); background: rgba(5, 12, 22, .86); box-shadow: 0 8px 34px rgba(0,0,0,.4); backdrop-filter: blur(10px); }
.visual-label span { display: block; margin-bottom: 6px; color: #647488; font: 700 8px/1 var(--mono); letter-spacing: .15em; }
.visual-label b { font: 700 12px/1 var(--mono); color: #eafaff; }
.label-top { top: 15%; right: -2%; }
.label-bottom { bottom: 13%; left: -5%; border-color: var(--violet); }
.hero-serial { position: absolute; z-index: 4; right: -49px; bottom: 20%; margin: 0; color: #465669; font: 700 8px/1 var(--mono); letter-spacing: .18em; transform: rotate(90deg); }

.scroll-cue { position: absolute; left: max(6vw,48px); bottom: 28px; display: flex; align-items: center; gap: 17px; color: #596779; font: 700 8px/1 var(--mono); letter-spacing: .18em; }
.scroll-cue i { display: block; width: 46px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }

.signal-strip { min-height: 48px; display: flex; align-items: center; justify-content: space-around; gap: 22px; padding: 0 25px; overflow: hidden; white-space: nowrap; color: #071315; background: linear-gradient(90deg, var(--cyan), #74fff3 45%, #49bdff); font: 900 10px/1 var(--mono); letter-spacing: .12em; }
.signal-strip i { font-style: normal; opacity: .45; }

.manifesto { position: relative; min-height: 710px; display: grid; grid-template-columns: 120px 1fr minmax(300px, .55fr); align-items: center; gap: 35px; padding-block: 130px; }
.manifesto::before { content: ""; position: absolute; left: 120px; right: 0; bottom: 0; border-bottom: 1px solid var(--line); }
.section-index { align-self: start; margin-top: 15px; color: #566375; font: 700 10px/1 var(--mono); letter-spacing: .14em; }
.manifesto h2, .section-header h2, .gallery-heading h2 { margin: 0; font: 700 clamp(44px, 5.5vw, 84px)/1.02 var(--display); letter-spacing: -.055em; }
.manifesto h2 em { color: transparent; -webkit-text-stroke: 1px #5c7692; font-style: normal; }
.manifesto-body { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; max-width: 820px; margin-top: 45px; color: #8490a0; font-size: 15px; line-height: 1.75; }
.manifesto-body p { margin: 0; }
.manifesto-number { justify-self: end; color: #0a1421; font: 900 clamp(90px, 11vw, 170px)/.75 var(--display); letter-spacing: -.08em; text-shadow: 0 0 1px #21334b; writing-mode: vertical-rl; transform: rotate(180deg); }
.manifesto-number span { color: var(--violet); font-size: .22em; letter-spacing: .06em; text-shadow: none; }

.architecture { padding-block: 125px 140px; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 60px; }
.section-header > p { max-width: 440px; margin: 0 0 7px; color: #798697; font-size: 14px; line-height: 1.65; }

.component-console { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, .65fr); min-height: 660px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 45px 100px rgba(0,0,0,.22); }
.component-stage { position: relative; min-height: 660px; display: grid; grid-template-columns: .72fr 1fr; align-items: center; overflow: hidden; padding: 60px 30px 60px 60px; border-right: 1px solid var(--line); isolation: isolate; }
.component-stage::before { content: ""; position: absolute; z-index: -1; width: 430px; aspect-ratio: 1; right: 6%; top: 16%; border-radius: 50%; background: radial-gradient(circle, rgba(39,107,255,.25), rgba(85,44,176,.08) 48%, transparent 70%); filter: blur(12px); }
.stage-grid { mask-image: radial-gradient(circle at 72% 50%, #000, transparent 70%); opacity: .5; }
.stage-copy { position: relative; z-index: 3; }
.component-brand { margin: 0 0 18px; color: #8391a3; font: 700 9px/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.component-code { display: inline-block; margin-bottom: 22px; padding: 7px 10px; color: var(--cyan); border: 1px solid rgba(6,247,232,.35); font: 700 9px/1 var(--mono); letter-spacing: .12em; }
.stage-copy h3 { margin: 0; font: 800 clamp(35px, 4vw, 66px)/.96 var(--display); letter-spacing: -.055em; }
.stage-copy strong { display: block; margin: 18px 0; color: var(--cyan); font: 700 14px/1 var(--mono); letter-spacing: .05em; }
.stage-copy > p:last-child { max-width: 430px; margin: 0; color: #8591a3; font-size: 14px; line-height: 1.7; }
.stage-image-wrap { position: relative; z-index: 2; height: 490px; display: grid; place-items: center; }
.stage-image-wrap::after { content: ""; position: absolute; left: 10%; right: 4%; bottom: 9%; height: 12%; border-radius: 50%; background: rgba(0,0,0,.82); filter: blur(20px); }
.stage-image-wrap img { position: relative; z-index: 2; width: 100%; max-height: 440px; object-fit: contain; filter: drop-shadow(0 35px 35px rgba(0,0,0,.5)); animation: reveal .55s ease both; }
.scanline { position: absolute; z-index: 3; inset: 5% 0; border-top: 1px solid rgba(6,247,232,.35); background: linear-gradient(180deg, rgba(6,247,232,.05), transparent 20%); animation: scan 4s ease-in-out infinite; pointer-events: none; }
.stage-corner { position: absolute; width: 28px; aspect-ratio: 1; border-color: var(--cyan); opacity: .65; }
.corner-tl { top: 18px; left: 18px; border-top: 1px solid; border-left: 1px solid; }
.corner-br { right: 18px; bottom: 18px; border-right: 1px solid; border-bottom: 1px solid; }

.component-selector { display: flex; flex-direction: column; }
.component-tab { flex: 1; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; min-height: 92px; padding: 15px 24px; color: #8793a3; background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; transition: .25s ease; }
.component-tab:last-child { border-bottom: 0; }
.component-tab:hover, .component-tab:focus-visible { color: #fff; background: rgba(255,255,255,.025); outline: 0; }
.component-tab.active { color: #fff; background: linear-gradient(90deg, rgba(6,247,232,.11), transparent); box-shadow: inset 2px 0 var(--cyan); }
.tab-index { color: #536174; font: 700 9px/1 var(--mono); }
.tab-info small { display: block; margin-bottom: 8px; color: #667486; font: 700 8px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.tab-info b { display: block; font: 700 13px/1.1 var(--display); }
.tab-arrow { color: transparent; font-size: 18px; transition: .2s ease; }
.component-tab.active .tab-arrow, .component-tab:hover .tab-arrow { color: var(--cyan); }

.memory-section { padding-block: 120px 145px; }
.section-header.compact { align-items: center; }
.memory-total { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 30px; margin: 70px 0 35px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.memory-total > span { padding-bottom: 8px; color: #667486; font: 700 9px/1 var(--mono); letter-spacing: .16em; }
.memory-total strong { font: 800 clamp(70px, 9vw, 130px)/.7 var(--display); letter-spacing: -.075em; }
.memory-total strong small { margin-left: 8px; color: var(--cyan); font: 800 18px/1 var(--mono); }
.memory-meter { display: flex; justify-content: flex-end; gap: 5px; padding-bottom: 7px; }
.memory-meter i { display: block; width: 48px; height: 7px; background: var(--cyan); box-shadow: 0 0 14px rgba(6,247,232,.22); }
.memory-meter i:nth-child(3), .memory-meter i:nth-child(4) { background: var(--blue); }
.storage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.storage-card { position: relative; min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; overflow: hidden; background: linear-gradient(145deg, #0a1421, #07101b); border: 1px solid var(--line); transition: transform .3s ease, border-color .3s ease; }
.storage-card:hover { transform: translateY(-8px); border-color: rgba(6,247,232,.38); }
.storage-card::after { content: ""; position: absolute; inset: auto -20% -45% 10%; height: 220px; border-radius: 50%; background: rgba(40, 105, 255, .12); filter: blur(45px); }
.storage-top { display: flex; justify-content: space-between; color: #536277; font: 700 8px/1 var(--mono); letter-spacing: .1em; }
.storage-top b { color: var(--cyan); font-weight: 700; }
.storage-card img { position: relative; z-index: 1; width: 100%; height: 180px; object-fit: contain; mix-blend-mode: screen; filter: drop-shadow(0 20px 18px rgba(0,0,0,.5)); transition: transform .35s ease; }
.storage-card:hover img { transform: scale(1.05) rotate(-2deg); }
.storage-info { position: relative; z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.storage-info h3 { margin: 0; font: 700 18px/1.1 var(--display); }
.storage-info strong { color: #fff; font: 800 15px/1 var(--mono); }

.gallery-section { padding-block: 120px; background: #060b13; border-block: 1px solid var(--line); }
.gallery-heading { margin-bottom: 70px; }
.build-gallery { display: grid; grid-template-columns: 1.12fr .72fr; grid-template-rows: 460px 370px; gap: 18px; }
.build-gallery figure { position: relative; margin: 0; overflow: hidden; background: #08101a; border: 1px solid var(--line); }
.build-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1), filter .4s ease; }
.build-gallery figure:hover img { transform: scale(1.035); filter: saturate(1.15); }
.gallery-main { grid-row: 1 / 3; }
.gallery-main img { object-position: center 54%; }
.gallery-detail img { object-position: center 47%; }
.build-gallery figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center; padding: 20px 23px; background: linear-gradient(0deg, rgba(3,7,16,.95), rgba(3,7,16,.1)); }
.build-gallery figcaption span { color: var(--cyan); font: 700 8px/1 var(--mono); letter-spacing: .14em; }
.build-gallery figcaption b { font: 700 11px/1 var(--mono); letter-spacing: .1em; }
.gallery-quote { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 50px; overflow: hidden; background: linear-gradient(135deg, #0a1725, #0a0e1b); border: 1px solid var(--line); }
.gallery-quote::after { content: "HELIOS"; position: absolute; right: -22px; bottom: -12px; color: rgba(94, 77, 197, .08); font: 900 100px/1 var(--display); letter-spacing: -.06em; }
.quote-mark { height: 44px; color: var(--cyan); font: 700 72px/1 Georgia, serif; }
.gallery-quote p { position: relative; z-index: 1; max-width: 540px; margin: 15px 0 30px; font: 600 clamp(25px, 2.5vw, 38px)/1.15 var(--display); letter-spacing: -.035em; }
.gallery-quote small { color: #5f6c7f; font: 700 8px/1 var(--mono); letter-spacing: .15em; }

.finale { position: relative; min-height: 660px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.finale-glow { position: absolute; width: min(62vw, 820px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(30,97,255,.22), rgba(115,37,204,.08) 35%, transparent 67%); filter: blur(12px); }
.finale > *:not(.finale-glow) { position: relative; z-index: 2; }
.finale h2 { margin: 3px 0 15px; font: 900 clamp(70px, 10vw, 145px)/.76 var(--display); letter-spacing: -.07em; }
.finale h2 span { color: transparent; -webkit-text-stroke: 1px var(--cyan); text-shadow: 0 0 35px rgba(6,247,232,.18); }
.finale > p:not(.eyebrow) { color: #7f8b9d; font-size: 14px; }
.finale > a { margin-top: 30px; padding-bottom: 9px; border-bottom: 1px solid var(--cyan); font: 700 10px/1 var(--mono); letter-spacing: .14em; }
.finale > a span { margin-left: 20px; color: var(--cyan); }

footer { min-height: 110px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 0 44px; border-top: 1px solid var(--line); color: #5e6b7b; }
footer p { font-size: 11px; }
footer > span { justify-self: end; font: 700 8px/1 var(--mono); letter-spacing: .13em; }
footer .brand { color: #c8d1dc; }

@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 3px var(--cyan); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes reveal { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes scan { 0%, 100% { transform: translateY(0); opacity: 0; } 20%, 80% { opacity: 1; } 50% { transform: translateY(390px); } }

@media (max-width: 1100px) {
  .topbar { padding-inline: 26px; }
  .topbar nav a { padding-inline: 14px; }
  .hero { grid-template-columns: 1fr .7fr; gap: 30px; padding-inline: 45px; }
  .hero-visual { min-width: 340px; width: 35vw; }
  .manifesto { grid-template-columns: 70px 1fr; }
  .manifesto-number { display: none; }
  .component-console { grid-template-columns: 1fr; }
  .component-stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .component-selector { display: grid; grid-template-columns: repeat(3, 1fr); }
  .component-tab { border-right: 1px solid var(--line); }
  .storage-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section { width: min(100% - 36px, 600px); }
  .topbar { height: 62px; grid-template-columns: 1fr auto; padding-inline: 18px; }
  .topbar nav { display: none; }
  .system-status { font-size: 8px; }
  .brand { font-size: 12px; }
  .brand-mark { width: 29px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 118px 18px 70px; }
  .hero h1 { font-size: clamp(75px, 25vw, 118px); }
  .hero-kicker { font-size: 30px; }
  .hero-description { font-size: 14px; }
  .hero-stats { gap: 33px; }
  .hero-stats div:not(:last-child)::after { right: -17px; }
  .hero-visual { width: calc(100vw - 54px); min-width: 0; height: 590px; margin-top: 25px; }
  .visual-label { min-width: 125px; }
  .hero-serial { right: -58px; }
  .scroll-cue { display: none; }
  .signal-strip { justify-content: flex-start; overflow: hidden; }
  .manifesto { min-height: auto; display: block; padding-block: 90px; }
  .manifesto::before { left: 0; }
  .section-index { margin: 0 0 40px; }
  .manifesto h2, .section-header h2, .gallery-heading h2 { font-size: 44px; }
  .manifesto-body { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
  .architecture, .memory-section { padding-block: 90px; }
  .section-header { display: block; margin-bottom: 40px; }
  .section-header > p { margin-top: 22px; }
  .component-stage { min-height: 690px; grid-template-columns: 1fr; align-content: center; padding: 45px 24px 28px; }
  .stage-copy { align-self: end; }
  .stage-copy h3 { font-size: 38px; }
  .stage-image-wrap { grid-row: 1; height: 310px; }
  .stage-image-wrap img { max-height: 290px; }
  .component-selector { grid-template-columns: 1fr 1fr; }
  .component-tab { min-height: 92px; padding: 14px 12px; grid-template-columns: 26px 1fr; }
  .tab-arrow { display: none; }
  .tab-info b { font-size: 11px; }
  .memory-total { grid-template-columns: 1fr auto; }
  .memory-meter { display: none; }
  .storage-grid { grid-template-columns: 1fr; }
  .storage-card { min-height: 330px; }
  .gallery-section { padding-block: 90px; }
  .build-gallery { grid-template-columns: 1fr; grid-template-rows: 570px 490px auto; }
  .gallery-main { grid-row: auto; }
  .gallery-quote { min-height: 330px; padding: 35px; }
  .finale { min-height: 530px; }
  .finale h2 { font-size: clamp(64px, 22vw, 95px); }
  footer { grid-template-columns: 1fr auto; padding: 24px 18px; }
  footer p { display: none; }
}

@media (max-width: 410px) {
  .system-status { display: none; }
  .topbar { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-stats div:not(:last-child)::after { display: none; }
  .hero-stats dt { font-size: 15px; }
  .hero-visual { height: 520px; }
  .button { width: 100%; }
  .component-selector { grid-template-columns: 1fr; }
  .memory-total strong { font-size: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* PHP gallery and image viewer */
.gallery-heading { position: relative; }
.gallery-intro { max-width: 620px; margin: 24px 0 0; color: #7f8b9d; font-size: 14px; line-height: 1.7; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 190px;
  gap: 16px;
}

.gallery-card {
  position: relative;
  grid-column: span 6;
  grid-row: span 2;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #08101a;
  border: 1px solid var(--line);
  cursor: zoom-in;
  text-align: left;
}

.gallery-card--portrait { grid-column: span 4; grid-row: span 3; }
.gallery-card--wide { grid-column: span 8; }
.gallery-card:nth-child(4), .gallery-card:nth-child(5) { grid-column: span 6; }
.gallery-card:nth-child(6) { grid-column: span 12; grid-row: span 3; }

.gallery-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(3,7,16,.93)); pointer-events: none; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1), filter .35s ease; }
.gallery-card--portrait img { object-position: center 50%; }
.gallery-card:nth-child(2) img { object-position: center 45%; }
.gallery-card:nth-child(6) img { object-position: center 52%; }
.gallery-card:hover img, .gallery-card:focus-visible img { transform: scale(1.035); filter: saturate(1.15) contrast(1.03); }
.gallery-card:focus-visible { outline: 1px solid var(--cyan); outline-offset: 3px; }
.gallery-card > span { position: absolute; z-index: 2; inset: auto 22px 20px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.gallery-card small { color: var(--cyan); font: 700 8px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.gallery-card b { font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.gallery-section > .gallery-quote { min-height: 340px; margin-top: 16px; }

.lightbox {
  width: min(94vw, 1500px);
  height: min(92vh, 1000px);
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: rgba(3,7,16,.98);
  border: 1px solid rgba(6,247,232,.38);
  box-shadow: 0 0 90px rgba(6,247,232,.12);
}

.lightbox::backdrop { background: rgba(0, 3, 8, .9); backdrop-filter: blur(14px); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox p { position: absolute; inset: auto 24px 20px; margin: 0; color: #c7d4df; font: 700 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 2px 10px #000; }
.lightbox-close { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #061017; background: var(--cyan); border: 0; font-size: 27px; line-height: 1; cursor: pointer; }
.component-image-reveal { animation: reveal .55s ease both; }

@media (max-width: 900px) {
  .photo-grid { grid-auto-rows: 165px; }
  .gallery-card, .gallery-card--wide, .gallery-card--portrait, .gallery-card:nth-child(4), .gallery-card:nth-child(5) { grid-column: span 6; grid-row: span 2; }
  .gallery-card:nth-child(6) { grid-column: span 12; grid-row: span 2; }
}

@media (max-width: 600px) {
  .photo-grid { display: flex; flex-direction: column; }
  .gallery-card, .gallery-card--wide, .gallery-card--portrait, .gallery-card:nth-child(6) { width: 100%; height: 390px; }
  .gallery-card:nth-child(2), .gallery-card:nth-child(4), .gallery-card:nth-child(5), .gallery-card:nth-child(6) { height: 250px; }
  .gallery-card > span { inset: auto 16px 16px; display: block; }
  .gallery-card b { display: block; margin-top: 8px; }
  .gallery-section > .gallery-quote { min-height: 330px; margin-top: 16px; }
}
