/* ==========================================================================
   FOREVER LoRa
   Change the colors and fonts here and they update across the whole site.
   ========================================================================== */
:root {
  --black: #000;
  --panel: #030a03;
  --lime: #7dff5c;       /* headings, buttons */
  --text: #c4ffb4;       /* body copy: softer, easier to read at length */
  --dim: #5fb84c;        /* labels and secondary text */
  --line: #2f8f22;       /* borders */
  --alert: #ff5a3c;      /* damage warnings; matches the red cases */
  --glow: 0 0 8px rgba(125, 255, 92, .55);
  --display: "VT323", "Courier New", monospace;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font: 400 16px/1.65 var(--mono);
  overflow-x: hidden;
}

/* While the boot screen runs, hide the page behind it */
html.boot .page { visibility: hidden; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--lime); }
a:hover { color: #fff; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--lime); text-shadow: var(--glow); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 8px 12px; background: var(--lime); color: #000;
}
.skip:focus { top: 12px; }

/* ---------- CRT layers: these sit above everything but ignore clicks ---------- */
#bg-mesh { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .3; }

.crt {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.2) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.6) 100%);
  animation: flicker 7s steps(1) infinite;
}
.roll {
  position: fixed; left: 0; right: 0; top: -20vh; height: 20vh; z-index: 49; pointer-events: none;
  background: linear-gradient(transparent, rgba(125,255,92,.05), transparent);
  animation: roll 9s linear infinite;
}
.crack {
  position: fixed; top: 0; right: 0; width: min(55vw, 560px); height: auto; z-index: 1; pointer-events: none;
  fill: none; stroke: var(--lime); stroke-width: 1; opacity: .24;
}

@keyframes flicker { 0%, 100% { opacity: 1; } 42% { opacity: .9; } 43% { opacity: 1; } 71% { opacity: .95; } 72% { opacity: 1; } }
@keyframes roll { to { transform: translateY(125vh); } }

/* ---------- Layout ---------- */
.page { position: relative; z-index: 2; }
main, .topbar, .footer { width: min(1120px, 100%); margin-inline: auto; padding-inline: 20px; }

.section { padding-block: 44px; scroll-margin-top: 64px; }
.section h2 { margin: 0; font-size: clamp(42px, 7vw, 64px); line-height: 1; }
.lede { max-width: 66ch; margin: 12px 0 30px; }
.note { margin: 12px 0 0; color: var(--dim); font-size: 14px; }
.eyebrow { margin: 0 0 6px; color: var(--dim); font-size: 14px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px;
  background: #000;
  border-bottom: 1px dashed var(--line);
}
.brand { font: 28px/1 var(--display); color: var(--lime); text-decoration: none; text-shadow: var(--glow); white-space: nowrap; }
.brand span { color: var(--alert); animation: blink 2.3s steps(1) infinite; }
.status { display: flex; gap: 18px; margin: 0; font-size: 12px; white-space: nowrap; }
.status .bad { color: var(--alert); }
.status .good { color: var(--lime); }
.status .good::before { content: "\25CF  "; animation: blink 1.4s steps(1) infinite; }
nav { display: flex; gap: 18px; }
nav a { text-decoration: none; font-size: 14px; }
nav a::before { content: "/"; color: var(--dim); }
nav a:hover { text-decoration: underline; }

@keyframes blink { 50% { opacity: .25; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 10px 14px;
  background: transparent; color: var(--lime);
  border: 1px solid var(--lime); border-radius: 0;
  font: 600 15px/1.2 var(--mono); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 0 12px rgba(125,255,92,.12);
}
.btn:hover { background: var(--lime); color: #000; }
.btn-small { padding: 8px 10px; font-size: 13px; }
.btn-alert { color: var(--alert); border-color: var(--alert); box-shadow: inset 0 0 12px rgba(255,90,60,.14); }
.btn-alert:hover { background: var(--alert); color: #000; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 5vw, 56px); align-items: center;
  padding-block: clamp(32px, 6vw, 72px);
}
.hero-logo { position: relative; animation: logo-jolt 8s steps(1) infinite; }
.hero-logo img { width: 100%; border-radius: 50%; box-shadow: 0 0 44px rgba(125,255,92,.28); }
.hero h1 { margin: 0; font-size: clamp(76px, 12vw, 136px); line-height: .84; }
.hero h1 .glitch { display: block; }
.tagline { margin: 16px 0; font: clamp(25px, 3.6vw, 34px)/1.15 var(--display); color: var(--lime); text-shadow: var(--glow); }
.hero-text p:not(.eyebrow, .tagline) { max-width: 58ch; }
.hero .btn { margin-top: 6px; }

@keyframes logo-jolt { 0%, 100% { transform: none; } 61% { transform: translate(-3px, 1px) skewX(-1.5deg); } 62% { transform: translate(3px, 0); } 63% { transform: none; } }

/* Glitch: two copies of the text flash with slices cut out of them. */
.glitch { position: relative; width: fit-content; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; pointer-events: none;
}
.glitch::before { color: var(--alert); text-shadow: none; animation: slice-a 5.5s steps(1) infinite; }
.glitch::after { color: #eaffe2; animation: slice-b 5.5s steps(1) infinite; }
.glitch-late::before, .glitch-late::after { animation-delay: -2.2s; }

@keyframes slice-a {
  0%, 89%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  90% { clip-path: inset(12% 0 62% 0); transform: translateX(-7px); }
  92% { clip-path: inset(60% 0 14% 0); transform: translateX(9px); }
  94% { clip-path: inset(36% 0 44% 0); transform: translateX(-4px); }
}
@keyframes slice-b {
  0%, 90%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  91% { clip-path: inset(44% 0 34% 0); transform: translateX(8px); }
  93% { clip-path: inset(8% 0 76% 0); transform: translateX(-10px); }
  95% { clip-path: inset(72% 0 6% 0); transform: translateX(5px); }
}

/* ---------- Broken divider ---------- */
.rule { display: flex; align-items: center; gap: 12px; color: var(--alert); font-size: 12px; letter-spacing: .08em; }
.rule b { flex: none; max-width: 76%; font-weight: 400; text-align: center; }
.rule span {
  flex: 1; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 34px, transparent 34px 41px, var(--line) 41px 62px, transparent 62px 88px);
}

/* ---------- Tiles ----------
   Each tile is a "subgrid" with four rows, so labels, headings, summaries, and
   buttons all line up with the tile beside it, even when one is opened. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }

.tile {
  --cut: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  position: relative; isolation: isolate;
  display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px;
  padding: 20px 22px 22px;
}
/* A jagged border: one lime shape, with a slightly smaller dark shape on top */
.tile::before, .tile::after { content: ""; position: absolute; z-index: -1; clip-path: var(--cut); }
.tile::before { inset: 0; background: var(--line); transition: background .15s; }
.tile::after { inset: 1px; background: var(--panel); }
.tile:hover::before, .tile:focus-within::before { background: var(--lime); }

/* Different damage on some of the tiles */
.tile:nth-child(2) { --cut: polygon(0 0, 44% 0, 47% 9px, 52% 2px, 56% 0, 100% 0, 100% calc(100% - 36px), calc(100% - 18px) calc(100% - 22px), calc(100% - 36px) 100%, 0 100%); }
.tile:nth-child(3) { --cut: polygon(26px 0, 100% 0, 100% 100%, 0 100%, 0 26px); }
.tile:nth-child(4) { --cut: polygon(0 0, 100% 0, 100% 42%, calc(100% - 8px) 45%, calc(100% - 2px) 48%, calc(100% - 7px) 52%, 100% 55%, 100% 100%, 34px 100%, 0 calc(100% - 34px)); }
.tile:nth-child(5) { --cut: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 62% 100%, 58% calc(100% - 8px), 54% calc(100% - 1px), 50% 100%, 0 100%); }
.tile:nth-child(6) { --cut: polygon(40px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 40px); }

/* A crack spreading from one corner */
.tile-holed {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%237dff5c' stroke-opacity='.38'%3E%3Cpath d='M120 0 92 22 96 40 70 54 62 80M92 22 70 16M96 40 118 58M70 54 44 50M62 80 76 100'/%3E%3C/svg%3E") top right / 120px no-repeat;
}

.file { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding-right: 22px; color: var(--dim); font-size: 12px; letter-spacing: .06em; }
.file .ok { color: var(--dim); }
.file .warn { color: var(--alert); animation: blink 3.1s steps(1) infinite; }

.tile h3 { margin: 0; font-size: clamp(30px, 3.5vw, 37px); line-height: 1.02; }
.gist { margin: 0; }

details summary {
  width: fit-content; padding: 7px 10px;
  color: var(--lime); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; cursor: pointer; list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "[+] "; }
details[open] summary::before { content: "[-] "; }
details summary:hover { background: var(--lime); color: #000; }

.more { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 15px; }
.more p { margin: 0 0 11px; }
.more p:last-child { margin-bottom: 0; }
.more strong { color: var(--lime); font-weight: 600; }
.uses { display: grid; gap: 7px; margin: 0 0 12px; padding: 0; list-style: none; }
.uses li::before { content: "> "; color: var(--dim); }

/* ---------- Simulator ---------- */
.sim { border: 1px solid var(--line); background: var(--panel); }
.stage { position: relative; }
#sim-canvas { display: block; width: 100%; height: clamp(440px, 52vw, 560px); cursor: crosshair; touch-action: manipulation; }
.sim-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
  padding: 12px 14px; border-top: 1px dashed var(--line);
}
.sim-readout { margin: 0; color: var(--lime); font-weight: 600; font-size: 14px; }
.sim-readout.fail { color: var(--alert); }
.sim-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Learn-more links inside the tiles ---------- */
.learn { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.learn p { margin: 0 0 6px; color: var(--lime); font-weight: 600; }
.learn ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.learn li { padding-left: 1.6em; text-indent: -1.6em; }
.learn li::before { content: ">> "; color: var(--dim); }

/* ---------- Mesh game controls ---------- */
.game-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; padding: 12px 14px; border-bottom: 1px dashed var(--line); }
.seg { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.seg-label { margin-right: 4px; color: var(--dim); font-size: 13px; }
.seg-btn { min-width: 38px; padding: 7px 10px; background: transparent; color: var(--lime); border: 1px solid var(--line); border-radius: 0; font: 600 13px var(--mono); cursor: pointer; }
.seg-btn:hover { border-color: var(--lime); }
.seg-btn[aria-pressed="true"] { background: var(--lime); color: #000; border-color: var(--lime); }
.hud { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 8px 14px; border-bottom: 1px dashed var(--line); color: var(--dim); font-size: 13px; }
.hud [hidden] { display: none; }
.hud b { color: var(--lime); }
.game-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px; background: rgba(0,0,0,.84); text-align: center; }
.game-over[hidden] { display: none; }
.game-over p { margin: 0 0 8px; }
.game-over b { color: var(--lime); }
.over-title { color: var(--alert); font: clamp(46px, 9vw, 72px)/1 var(--display); }
.sim-actions [hidden] { display: none; }

/* ---------- Phone simulator ---------- */
.phone-lab { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; align-items: start; }
.phone { position: relative; padding: 34px 10px 18px; background: #0a0f0a; border: 2px solid var(--lime); border-radius: 34px; box-shadow: 0 0 26px rgba(125,255,92,.24); }
.phone-notch { position: absolute; left: 50%; top: 13px; width: 70px; height: 9px; transform: translateX(-50%); border-radius: 9px; background: var(--line); }
.phone-screen { height: 590px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #000; font-size: 14px; line-height: 1.45; }
.ph-view { display: flex; flex-direction: column; height: 100%; }
.ph-status { display: flex; justify-content: space-between; padding: 5px 12px; color: var(--dim); font-size: 11px; }
.ph-bar { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; border-block: 1px solid var(--line); background: #041204; }
.ph-bar p { margin: 0; }
.ph-title { color: var(--lime); font: 26px/1 var(--display); }
.ph-sub { color: var(--dim); font-size: 12px; }
.ph-back { width: 36px; height: 36px; background: transparent; color: var(--lime); border: 1px solid var(--line); font: 600 16px var(--mono); cursor: pointer; }
.ph-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px; overflow-y: auto; }
.ph-copy { margin: 0; }
.ph-copy.small { color: var(--dim); font-size: 12px; }
.ph-channel { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px; background: #041204; color: var(--text); border: 1px solid var(--line); text-align: left; font: inherit; cursor: pointer; }
.ph-channel:hover { border-color: var(--lime); }
.ph-name { grid-row: 1; grid-column: 1; color: var(--lime); font-weight: 600; }
.ph-tag { grid-row: 1; grid-column: 2; padding: 0 5px; font-size: 11px; border: 1px solid; }
.ph-tag.open { color: var(--alert); }
.ph-tag.lock { color: var(--lime); }
.ph-preview { grid-column: 1 / -1; overflow: hidden; color: var(--dim); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.ph-action { padding: 11px; background: var(--lime); color: #000; border: 1px solid var(--lime); font: 600 14px var(--mono); cursor: pointer; }
.ph-action.alt { background: transparent; color: var(--lime); }
.ph-action:hover { background: #fff; color: #000; }
.ph-key { margin: 0; padding: 10px; border: 1px dashed var(--lime); color: #fff; font-size: 13px; overflow-wrap: anywhere; }
.ph-key.empty { color: var(--alert); border-color: var(--alert); text-align: center; }
.ph-code { display: block; width: 176px; max-width: 100%; margin-inline: auto; image-rendering: pixelated; }
.ph-messages { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px; overflow-y: auto; }
.ph-msg { align-self: flex-start; max-width: 86%; padding: 7px 10px; background: #0b1f0a; border: 1px solid var(--line); border-radius: 10px 10px 10px 0; }
.ph-msg p { margin: 0; overflow-wrap: anywhere; }
.ph-msg.mine { align-self: flex-end; background: #1b4a12; color: #fff; border-radius: 10px 10px 0 10px; }
.ph-from { color: var(--lime); font-size: 12px; font-weight: 600; }
.ph-msg .ph-meta { color: var(--dim); font-size: 11px; }
.ph-msg.mine .ph-meta { color: #baf5a9; }
.ph-phrases { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px 10px; border-top: 1px solid var(--line); background: #041204; }
.ph-hint { flex-basis: 100%; margin: 0; color: var(--dim); font-size: 11px; }
.ph-phrase { padding: 6px 8px; background: transparent; color: var(--lime); border: 1px solid var(--line); border-radius: 12px; font: 12px var(--mono); text-align: left; cursor: pointer; }
.ph-phrase:hover:not(:disabled) { background: var(--lime); color: #000; }
.ph-phrase:disabled { opacity: .45; cursor: wait; }
.next { animation: next-pulse 1.2s ease-in-out infinite; border-color: #fff !important; }
@keyframes next-pulse { 50% { box-shadow: 0 0 0 4px rgba(125,255,92,.55), 0 0 16px rgba(125,255,92,.8); } }

.lab-side { display: grid; gap: 18px; min-width: 0; }
.lab-panel { padding: 16px 18px; border: 1px solid var(--line); background: var(--panel); }
.lab-panel h3 { margin: 0 0 8px; font-size: 32px; line-height: 1; }
.coach { margin: 0 0 12px; padding: 9px 11px; border-left: 3px solid var(--lime); background: #082008; color: #fff; }
.coach.finished { border-left-color: #ffcf3c; }
.missions { display: grid; gap: 3px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 14px; color: var(--dim); }
.missions li::before { content: "[ ] "; }
.missions .now { color: #fff; font-weight: 600; }
.missions .now::before { content: "[>] "; color: var(--lime); }
.missions .done { color: var(--lime); }
.missions .done::before { content: "[x] "; }
.air-log { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.air-empty { color: var(--dim); font-size: 14px; }
.air-entry { padding: 10px; border: 1px dashed var(--line); font-size: 14px; }
.air-entry.is-open { border-color: var(--alert); }
.air-entry p { margin: 0 0 5px; overflow-wrap: anywhere; }
.air-entry p:last-child { margin-bottom: 0; }
.air-header { color: var(--dim); font-size: 12px; }
.air-row.good b { color: var(--lime); }
.air-row.bad b { color: var(--alert); }
.air-why { color: var(--dim); font-size: 13px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shot {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line); background: #111; text-decoration: none;
}
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .25s; }
.shot:hover img { transform: scale(1.04); }
.shot::after { /* the same scanlines as the screen, a little stronger over the photos */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px);
}
.shot span {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  padding: 3px 8px; background: #000; color: var(--lime); font-size: 12px;
}
.shot-main { grid-column: span 2; grid-row: span 2; }

.spec { margin-top: 18px; padding: 18px 20px; border: 1px dashed var(--line); background: var(--panel); }
.spec h3 { margin: 0 0 8px; font-size: 32px; line-height: 1; }
.spec ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.spec li::before { content: "+ "; color: var(--dim); }
.pending { margin: 14px 0 0; color: var(--alert); font-size: 15px; }

/* ---------- About ---------- */
.about { max-width: 72ch; margin-top: 24px; padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.about p { margin: 0 0 12px; }
.about p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.contact-card { padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.contact-card h3 { margin: 0 0 6px; font-size: 32px; line-height: 1; }
.contact-card p { margin: 0 0 12px; }
.email { font-size: clamp(15px, 2vw, 18px); font-weight: 600; overflow-wrap: anywhere; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-card .note { min-height: 1.6em; margin: 10px 0 0; }

/* ---------- Terminal ---------- */
.terminal { margin-block: 12px 40px; padding: 14px; border: 1px solid var(--line); background: #010401; font-size: 14px; }
.term-output { max-height: 260px; overflow-y: auto; }
.term-output p { margin: 0 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-output b { color: var(--lime); }
.term-output .cmd { color: var(--dim); }
.term-line { display: flex; align-items: center; gap: 8px; }
.term-line label { flex: none; color: var(--lime); }
.term-line input {
  flex: 1; min-width: 0; padding: 4px 0;
  background: transparent; border: 0; border-bottom: 1px dashed var(--line); border-radius: 0;
  color: #fff; caret-color: var(--lime); font: 16px var(--mono); outline: none;
}
.term-line input:focus { border-bottom-color: var(--lime); }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 24px;
  padding-block: 18px 26px; border-top: 1px dashed var(--line); color: var(--dim); font-size: 13px;
}
.footer p { margin: 0; }

/* ---------- Boot screen ---------- */
#boot {
  position: fixed; inset: 0; z-index: 40; overflow: hidden;
  display: flex; flex-direction: column; padding: clamp(18px, 5vw, 52px);
  background: #000; color: var(--lime);
  font: clamp(21px, 3.2vw, 30px)/1.25 var(--display); text-shadow: var(--glow);
}
#boot p { margin: 0; white-space: pre-wrap; }
#boot .bad { color: var(--alert); }
#boot button {
  position: absolute; right: 18px; bottom: 18px;
  background: #000; color: var(--lime); border: 1px solid var(--lime);
  font: 16px var(--mono); padding: 8px 12px; cursor: pointer;
}
#boot.out { animation: boot-out .32s steps(4) forwards; }
@keyframes boot-out { 40% { transform: scaleY(.04); filter: brightness(3); } 100% { transform: scaleY(0); opacity: 0; } }

/* ---------- Photo viewer ---------- */
.viewer { width: min(1000px, 94vw); max-height: 94vh; padding: 0; border: 1px solid var(--lime); background: #000; color: var(--text); }
.viewer::backdrop { background: rgba(0,0,0,.9); }
.viewer img { width: 100%; max-height: calc(94vh - 120px); object-fit: contain; background: #111; }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; }
.viewer-bar p { flex: 1; min-width: 140px; margin: 0; font-size: 14px; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 860px) {
  .status { display: none; }
  .phone-lab { grid-template-columns: minmax(0, 1fr); }
  .phone { width: min(100%, 340px); margin-inline: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-logo { width: min(74vw, 340px); margin-inline: auto; }
}
@media (max-width: 680px) {
  .tiles, .contact { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-main { grid-row: auto; }
  .shot:last-child { grid-column: span 2; }
  .spec ul { grid-template-columns: minmax(0, 1fr); }
  .topbar { flex-wrap: wrap; gap: 0 12px; padding-block: 6px; }
  nav { gap: 10px; }
  nav a { font-size: 13px; }
  nav a::before { content: none; }
  .brand { font-size: 23px; }
  .tile { padding-inline: 18px; }
  .rule { font-size: 11px; }
}

/* ---------- Respect "reduce motion": the page stays damaged, but holds still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .roll { display: none; }
}
