/* ==========================================================
   Technologic Security — public site
   Palette: midnight ink, ivory, brass. Type: Marcellus + Manrope.
   ========================================================== */

:root {
  --ink: #0b1422;
  --ink-2: #101c2e;
  --ink-3: #17263c;
  --ivory: #f2ede4;
  --mist: #a9b3c3;
  --brass: #c8a66a;
  --brass-hi: #e3c891;
  --signal: #d8433b;
  --ok: #7fbf8e;
  --line: rgba(200, 166, 106, 0.28);
  --line-soft: rgba(242, 237, 228, 0.1);
  --display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --head-h: 76px;
}

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

html { scroll-padding-top: var(--head-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; color: var(--mist); max-width: 68ch; }

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

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 48px); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--mist); max-width: 56ch; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--ink); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  font: 600 1rem/1.2 var(--body); text-decoration: none; letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn--brass { background: var(--brass); color: #0b1422; }
.btn--brass:hover { background: var(--brass-hi); }
.btn--line { border-color: rgba(242, 237, 228, 0.34); color: var(--ivory); background: transparent; }
.btn--line:hover { border-color: var(--brass); color: var(--brass-hi); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 0.94rem; }
.btn--wide { width: 100%; min-height: 60px; font-size: 1.08rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.textlink {
  color: var(--brass-hi); text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 6px; font-weight: 600; background: none; border: 0; padding: 0; font-family: inherit; font-size: 1rem; cursor: pointer;
}
.textlink:hover { text-decoration-color: var(--brass-hi); }
.textlink--back { display: inline-block; margin-bottom: 28px; }
.textlink--back::before { content: "‹ "; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100; height: var(--head-h);
  background: rgba(11, 20, 34, 0.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.masthead__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__name { font-family: var(--display); font-size: 1.45rem; line-height: 1; }
.brand__name small { display: block; font: 600 0.72rem/1 var(--body); letter-spacing: 0.34em; color: var(--brass); margin-top: 5px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav > a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.98rem; color: var(--mist); padding: 8px 0; border-bottom: 1px solid transparent; }
.nav > a:not(.btn):hover { color: var(--ivory); }
.nav > a:not(.btn)[aria-current] { color: var(--ivory); border-bottom-color: var(--brass); }
.menu-btn { display: none; background: none; color: var(--ivory); border: 1px solid var(--line-soft); border-radius: 2px; min-height: 44px; padding: 0 16px; font: 600 0.95rem var(--body); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 84px) 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 30%, rgba(200, 166, 106, 0.1), transparent 70%),
    radial-gradient(700px 500px at 0% 0%, rgba(40, 70, 115, 0.35), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy h1 { margin-bottom: 0.45em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* The four-channel wall */
.wall { border: 1px solid var(--line); background: var(--ink-2); position: relative; }
.wall::before, .wall::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--brass); pointer-events: none;
  animation: bracket 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.wall::before { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.wall::after { bottom: -9px; right: -9px; border-left: 0; border-top: 0; }
@keyframes bracket { from { opacity: 0; transform: scale(1.8); } }

.wall__bar {
  display: flex; align-items: center; gap: 22px; padding: 11px 18px;
  font-size: 0.82rem; font-weight: 600; color: var(--mist); letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.wall__live { display: inline-flex; align-items: center; gap: 8px; color: var(--ivory); }
.wall__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.wall__clock { margin-left: auto; }

.wall__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.feed {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(190px, 21vw, 262px); padding: 22px 24px 24px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2) 70%);
  text-decoration: none; overflow: hidden; isolation: isolate;
  transition: background-color 0.25s;
}
.feed::after { /* focus brackets, shown on hover like a camera locking on */
  content: ""; position: absolute; inset: 12px; pointer-events: none; opacity: 0; transform: scale(1.04);
  transition: opacity 0.2s, transform 0.25s;
  background:
    linear-gradient(var(--brass-hi), var(--brass-hi)) top left / 18px 1px,
    linear-gradient(var(--brass-hi), var(--brass-hi)) top left / 1px 18px,
    linear-gradient(var(--brass-hi), var(--brass-hi)) top right / 18px 1px,
    linear-gradient(var(--brass-hi), var(--brass-hi)) top right / 1px 18px,
    linear-gradient(var(--brass-hi), var(--brass-hi)) bottom left / 18px 1px,
    linear-gradient(var(--brass-hi), var(--brass-hi)) bottom left / 1px 18px,
    linear-gradient(var(--brass-hi), var(--brass-hi)) bottom right / 18px 1px,
    linear-gradient(var(--brass-hi), var(--brass-hi)) bottom right / 1px 18px;
  background-repeat: no-repeat;
}
.feed:hover::after, .feed:focus-visible::after { opacity: 1; transform: none; }
.feed:hover { background-color: var(--ink-3); }
.feed__ch { position: absolute; top: 20px; left: 24px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--brass); }
.feed__art { position: absolute; top: 14px; right: 10px; width: 46%; height: auto; color: var(--brass); opacity: 0.22; z-index: -1; stroke-width: 0.6; transition: opacity 0.25s; }
.feed:hover .feed__art { opacity: 0.4; }
.feed__title { font-family: var(--display); font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.12; color: var(--ivory); margin-bottom: 6px; }
.feed__text { color: var(--mist); font-size: 0.95rem; line-height: 1.45; max-width: 30ch; }
.feed--service { background: var(--brass); }
.feed--service:hover { background: var(--brass-hi); }
.feed--service .feed__title, .feed--service .feed__ch { color: #0b1422; }
.feed--service .feed__text { color: #3a2f18; }
.feed--service .feed__art { color: #0b1422; opacity: 0.18; }
.feed--service::after { filter: brightness(0.15); }

/* Figures under the hero */
.figures { position: relative; display: flex; flex-wrap: wrap; margin: clamp(48px, 7vw, 88px) 0 0; border-top: 1px solid var(--line-soft); }
.figures div { flex: 1 1 180px; padding: 26px 24px 30px 0; display: flex; flex-direction: column-reverse; }
.figures div + div { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.figures dd { margin: 0; font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.1; color: var(--brass-hi); font-variant-numeric: lining-nums; }
.figures dt { color: var(--mist); font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 124px) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section--panel { background: var(--ink-2); border-block: 1px solid var(--line-soft); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 { margin: 0; }
.empty { padding: 44px 28px; border: 1px dashed var(--line); color: var(--mist); max-width: none; }

.pagehead { padding: clamp(48px, 7vw, 96px) 0 clamp(20px, 3vw, 36px); position: relative; }
.pagehead::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 380px at 85% 0%, rgba(200, 166, 106, 0.09), transparent 70%); }
.pagehead .wrap { position: relative; }
.pagehead h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.notice { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); color: var(--brass-hi); font-size: 0.95rem; }

/* ---------- Project cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(22px, 3vw, 40px) clamp(18px, 2.4vw, 32px); }
.pcard { display: block; text-decoration: none; }
.pcard__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); position: relative; }
.pcard__media::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-soft); transition: border-color 0.25s, inset 0.25s; pointer-events: none; }
.pcard:hover .pcard__media::after, .pcard:focus-visible .pcard__media::after { border-color: var(--brass); inset: 10px; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__blank { display: grid; place-items: center; height: 100%; color: var(--brass); opacity: 0.35; }
.pcard__blank .icon { width: 30%; height: auto; stroke-width: 0.7; }
.pcard__body { display: block; padding-top: 16px; }
.pcard__cat { display: block; color: var(--brass); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em; }
.pcard__title { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.2; margin: 4px 0 6px; }
.pcard__loc { display: flex; align-items: center; gap: 6px; color: var(--mist); font-size: 0.95rem; }
.pcard__loc .icon { width: 1em; height: 1em; }

@media (min-width: 900px) {
  .pgrid--lead { grid-template-columns: 1.55fr 1fr; grid-template-rows: auto auto; }
  .pgrid--lead .pcard:first-child { grid-row: span 2; display: flex; flex-direction: column; }
  .pgrid--lead .pcard:first-child .pcard__media { flex: 1; aspect-ratio: auto; min-height: 420px; }
  .pgrid--lead .pcard:first-child .pcard__title { font-size: 2rem; }
  .pgrid--lead .pcard:only-child { grid-column: 1 / -1; }
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chips a { text-decoration: none; padding: 9px 18px; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--mist); font-size: 0.95rem; font-weight: 500; }
.chips a:hover { border-color: var(--brass); color: var(--ivory); }
.chips a[aria-current] { background: var(--brass); border-color: var(--brass); color: #0b1422; font-weight: 600; }

/* ---------- Home: two disciplines ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo__col { padding: 8px clamp(0px, 4vw, 64px) 8px 0; }
.duo__col + .duo__col { padding: 8px 0 8px clamp(24px, 4vw, 64px); border-left: 1px solid var(--line); }
.duo__icon { width: 64px; height: 64px; color: var(--brass); stroke-width: 0.8; margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 34px; }
.ticks li { padding: 13px 0 13px 30px; border-top: 1px solid var(--line-soft); position: relative; }
.ticks li:last-child { border-bottom: 1px solid var(--line-soft); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 1.35em; width: 12px; height: 6px; border-left: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: rotate(-45deg); }

/* ---------- Steps (a real sequence, so it is numbered) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 30px 28px 0 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line-soft); }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--brass); margin-bottom: 22px; }
.steps li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--brass); border-radius: 50%; }
.steps li + li::after { left: 28px; }
.steps p { margin: 0; font-size: 1rem; }

/* ---------- Bands ---------- */
.band { border-block: 1px solid var(--line); background: linear-gradient(120deg, var(--ink-3), var(--ink-2)); padding: clamp(48px, 6vw, 80px) 0; }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 56px; }
.band__inner > div:first-child { flex: 1 1 420px; }
.band h2 { margin-bottom: 0.35em; }
.band p { margin: 0; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- CCTV / Systems spec lists ---------- */
.spec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); padding-top: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line); }
.spec__intro h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.spec__list { margin: 0; }
.spec__list div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.spec__list div:first-child { padding-top: 0; }
.spec__list dt { font-family: var(--display); font-size: 1.28rem; line-height: 1.25; color: var(--ivory); }
.spec__list dd { margin: 0; color: var(--mist); }

/* ---------- Project detail ---------- */
.cover { margin: 0 0 clamp(32px, 5vw, 64px); border: 1px solid var(--line-soft); }
.cover img { width: 100%; max-height: 72vh; object-fit: cover; }
.pdetail { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.facts { margin: 0; align-self: start; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.facts dt { font-size: 0.88rem; color: var(--brass); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.25rem; }
.prose { color: #d0d6e0; font-size: 1.1rem; line-height: 1.75; max-width: 66ch; }
.gallery__title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding-bottom: clamp(56px, 8vw, 110px); }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery a:hover img { transform: scale(1.05); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 9, 16, 0.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; margin: 0 auto; }
.lightbox figcaption { color: var(--mist); padding-top: 12px; min-height: 2em; }
.lightbox button { position: fixed; background: rgba(11, 20, 34, 0.7); color: var(--ivory); border: 1px solid var(--line-soft); width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 1.8rem; line-height: 1; }
.lightbox button:hover { border-color: var(--brass); color: var(--brass-hi); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 34px; padding-bottom: 60px; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; }
.fieldset legend, .form > .field > label { font-family: var(--display); font-weight: 400; font-size: 1.5rem; padding: 0; margin-bottom: 14px; color: var(--ivory); display: block; }
.fieldset legend small { font: 500 0.9rem var(--body); color: var(--mist); margin-left: 8px; }
.hint { margin: -6px 0 0; font-size: 0.98rem; }
.field { display: grid; gap: 8px; }
.field-row label, .fieldset > .field > label { font-weight: 600; font-size: 0.98rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="date"], textarea, select {
  width: 100%; background: var(--ink-2); color: var(--ivory);
  border: 1px solid rgba(242, 237, 228, 0.2); border-radius: 2px;
  padding: 15px 16px; font: inherit; font-size: 1.0625rem; /* 17px: avoids zoom on iOS */
  transition: border-color 0.2s, background-color 0.2s;
}
textarea { resize: vertical; min-height: 140px; }
input::placeholder, textarea::placeholder { color: #6f7b8f; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brass); background: var(--ink-3); }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: flex; align-items: center; min-height: 56px; padding: 12px 16px 12px 46px; border: 1px solid rgba(242, 237, 228, 0.2); border-radius: 2px; position: relative; transition: border-color 0.2s, background-color 0.2s; }
.choice span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 1px solid var(--mist); border-radius: 50%; }
.choice input:checked + span { border-color: var(--brass); background: rgba(200, 166, 106, 0.1); }
.choice input:checked + span::before { border-color: var(--brass); background: radial-gradient(var(--brass) 45%, transparent 50%); }
.choice input:focus-visible + span { outline: 2px solid var(--brass-hi); outline-offset: 3px; }

.photo__buttons, .locate { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.photo__preview { margin-top: 16px; display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.photo__preview img { width: 220px; max-width: 60%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.locate__status { margin: 0; font-size: 0.98rem; }
.locate__status.is-ok { color: var(--ok); }
.locate__status.is-bad { color: #f0a59f; }

.form__errors { border: 1px solid rgba(216, 67, 59, 0.6); background: rgba(216, 67, 59, 0.1); padding: 18px 22px; }
.form__errors ul { margin: 8px 0 0; padding-left: 20px; color: #f3c6c2; }

.done-mark { display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid var(--brass); border-radius: 50%; color: var(--brass-hi); margin-bottom: 28px; }
.done-mark .icon { width: 32px; height: 32px; }
.reference { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--brass-hi); letter-spacing: 0.08em; margin: 8px 0 18px; }
.pagehead--done { padding-bottom: clamp(64px, 9vw, 120px); }

/* ---------- Footer ---------- */
.footer { padding: clamp(48px, 6vw, 80px) 0 0; background: #08101b; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer h2 { font: 600 0.95rem var(--body); color: var(--brass); margin-bottom: 16px; letter-spacing: 0.02em; }
.footer a:not(.brand) { display: block; color: var(--mist); text-decoration: none; padding: 5px 0; overflow-wrap: anywhere; }
.footer a:not(.brand):hover { color: var(--ivory); }
.footer p { font-size: 0.98rem; margin: 0; }
.footer__brand p { margin-top: 18px; max-width: 38ch; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; border-top: 1px solid var(--line-soft); font-size: 0.9rem; }
.footer__base a:not(.brand) { padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(3)::after { left: 0; }
  .steps li:nth-child(n + 3) { margin-top: 36px; border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .spec, .pdetail { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .wrap, .wrap--narrow { width: calc(100% - 36px); }
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: var(--head-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 8px 18px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; min-height: 50px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .feed { min-height: 168px; padding: 16px; }
  .feed__ch { top: 14px; left: 16px; }
  .feed__text { display: none; }
  .feed__title { font-size: 1.22rem; margin: 0; }
  .feed__art { width: 58%; }
  .wall__bar span:nth-child(2) { display: none; }
  .figures div { flex-basis: 50%; padding: 18px 12px 20px 0; }
  .figures div + div { padding-left: 16px; }
  .figures div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .figures div:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .duo { grid-template-columns: 1fr; }
  .duo__col, .duo__col + .duo__col { padding: 0; border: 0; }
  .duo__col + .duo__col { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 26px 0 0; border-left: 0; margin-top: 30px; border-top: 1px solid var(--line); }
  .steps li:first-child { margin-top: 0; border-top: 0; }
  .steps li::after, .steps li + li::after { left: 0; }
  .steps li::before { font-size: 2.6rem; margin-bottom: 12px; }
  .spec__list div { grid-template-columns: 1fr; gap: 4px; }
  .field-row { grid-template-columns: 1fr; }
  .band__actions, .band__actions .btn, .photo__buttons .btn, .locate .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
