/* ═══════════════════════════════════════════════════════════════════════════
   Hypergalaxy Mac Classic  -  a 1984-87 Macintosh desktop (System 1 to 4)
   Rules of the house:
     - 1-bit only: ink + paper, no greys, no gradients, no blur, no radius
       bigger than a button, nothing from Platinum or later.
     - Everything sits on a 2px "pixel" so it reads as a Mac screen at 2x.
     - Greys are dithers (checker pattern), never real greys.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --ink: #000;
    --paper: #fff;
    --bar: 30px;

    /* One family for everything: Geneva/Monaco on Macs, Courier Prime elsewhere. Headings and UI are just bold. */
    --f-display: var(--f-text);
    --f-ui:   var(--f-text);
    --f-text: 'Geneva', 'Monaco', 'Courier Prime', 'Courier New', monospace;
    --f-mono: 'VT323', 'Monaco', 'Courier New', monospace;

    /* 50% dither: 2px squares on a 4px tile */
    --checker: conic-gradient(var(--ink) 25%, var(--paper) 0 50%, var(--ink) 0 75%, var(--paper) 0);
    /* Active title bar: six 2px pinstripes */
    --stripes: repeating-linear-gradient(to bottom, var(--paper) 0 2px, var(--ink) 2px 4px);
}

/* Optional "screensaver" tint (Special menu): same 1-bit art, olive phosphor */
html[data-tint="olive"] {
    --ink: #25200a;
    --paper: #c4b04a;
}
/* Map 1-bit black/white images onto ink/paper with an exact colour table (see #hg-olive in footer.php) */
html[data-tint="olive"] img { filter: url(#hg-olive); }
html[data-tint="olive"] .menubar__brand:hover img { filter: invert(1) url(#hg-olive); }

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

html {
    scroll-padding-top: calc(var(--bar) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding-top: calc(var(--bar) + 28px);
    background-color: var(--paper);
    background-image: var(--checker);
    background-size: 4px 4px;
    color: var(--ink);
    font: 16px/1.6 var(--f-text);
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    overflow-x: hidden;
}

/* The one and only cursor: the classic arrow */
html, body, a, button, label, summary, [role="button"], [role="menuitem"], .win__bar {
    cursor: url("../img/cursor-arrow.svg") 0 0, default;
}
input, textarea { cursor: text; }

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

img { max-width: 100%; image-rendering: pixelated; }

/* ── Type ────────────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.18; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.8vw, 40px); }
h3 { font-size: 24px; margin-bottom: 10px; }
p  { margin: 0 0 1em; }
em { font-style: normal; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
strong { font-weight: 700; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--ink); color: var(--paper); }

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

/* "selected text": ink block, paper letters */
.sel { background: var(--ink); color: var(--paper); padding: 0 .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.caption {
    display: flex; gap: 8px; align-items: center;
    margin: 0 0 14px;
    font: 700 14px/1.2 var(--f-ui);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--paper); border: 2px solid var(--ink); padding: 8px 14px; font: 700 16px var(--f-ui); }
.skip-link:focus { left: 8px; top: 8px; }

/* ── Menu bar ────────────────────────────────────────────────────────────── */
.menubar {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--bar);
    display: flex; align-items: stretch;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    font: 700 16px/1 var(--f-ui);
}
.menubar a, .menubar .menu__btn {
    display: flex; align-items: center;
    padding: 0 14px;
    background: none; border: 0; border-radius: 0;
    color: var(--ink);
    font: inherit;
    text-decoration: none;
}
.menubar a:hover, .menubar .menu__btn:hover,
.menubar .menu.is-open > .menu__btn { background: var(--ink); color: var(--paper); }
.menubar__brand img { margin-right: 8px; }
.menubar__brand:hover img { filter: invert(1); }
.menubar__links { display: flex; }
.menubar__right { margin-left: auto; display: flex; align-items: stretch; }
.menubar__clock { display: flex; align-items: center; padding: 0 14px; min-width: 92px; justify-content: flex-end; }

.menu { position: relative; display: flex; }
.menu__list {
    display: none;
    position: absolute; top: 100%; right: 0;
    min-width: 260px;
    margin: 0; padding: 2px 0; list-style: none;
    background: var(--paper);
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
}
.menu.is-open > .menu__list { display: block; }
.menu__list li { margin: 0; }
.menu__list a, .menu__list button {
    position: relative;
    width: 100%; padding: 8px 18px 8px 32px;
    text-align: left; justify-content: flex-start;
    background: none; border: 0; color: var(--ink); font: inherit;
}
.menu__list a:hover, .menu__list button:hover { background: var(--ink); color: var(--paper); }
.menu__sep { height: 0; border-top: 2px dotted var(--ink); margin: 4px 0; }
.menu__check { position: absolute; left: 10px; font-family: var(--f-ui); }
[aria-checked="true"] > .menu__check::before { content: "\2713"; }   /* the classic check mark */
.menu--mobile { display: none; }

/* ── Desktop ─────────────────────────────────────────────────────────────── */
.desk {
    width: min(1000px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 48px;
    display: flex; flex-direction: column; gap: 44px;
}
.desk__section { display: flex; flex-direction: column; gap: 40px; min-width: 0; }

/* ── Windows ─────────────────────────────────────────────────────────────── */
.win {
    position: relative; min-width: 0;
    background: var(--paper);
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
}
.win__bar {
    position: relative;
    height: 26px;
    display: flex; align-items: center; justify-content: center;
    background: var(--paper);                 /* inactive = blank title bar */
    border-bottom: 2px solid var(--ink);
}
.win.is-active > .win__bar { background: var(--stripes); }   /* active = pinstripes */
.win__title {
    position: relative; z-index: 1;
    max-width: calc(100% - 90px);
    padding: 0 12px;
    background: var(--paper);
    font: 700 16px/26px var(--f-ui);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win__close {
    position: absolute; left: 10px; top: 4px; z-index: 2;
    width: 16px; height: 16px; padding: 0;
    background: var(--paper);
    border: 2px solid var(--ink); border-radius: 0;
    box-shadow: 0 0 0 2px var(--paper);       /* white margin cuts the stripes */
    opacity: 0;
}
.win.is-active .win__close, .win__close:focus-visible { opacity: 1; }
.win__close:active { background: var(--ink); }
.win__body { padding: clamp(18px, 3vw, 32px); }
.win__body--flush { padding: 0; }
.win__pad { padding: clamp(18px, 3vw, 32px) clamp(18px, 3vw, 32px) 24px; }
.win.is-collapsed .win__body { display: none; }
.win.is-collapsed > .win__bar { border-bottom: 0; }

/* ── Buttons (rounded rects, bold ring on the default one) ──────────────── */
.mac-btn {
    display: inline-flex; align-items: center; gap: .55em;
    min-height: 38px; padding: 8px 22px;
    background: var(--paper); color: var(--ink);
    border: 2px solid var(--ink); border-radius: 14px;
    font: 700 16px/1 var(--f-ui);
    text-decoration: none;
}
.mac-btn:hover, .mac-btn:active { background: var(--ink); color: var(--paper); }
.mac-btn--default { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); margin: 4px; }
.mac-btn--sm { min-height: 32px; padding: 6px 16px; font-size: 15px; }
.mac-btn:disabled { opacity: .5; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }

/* Pixel triangle (used by the expand button) */
.tri { width: 0; height: 0; border: 6px solid transparent; border-top: 8px solid currentColor; border-bottom: 0; margin-top: 2px; }
[aria-expanded="true"] > .tri { transform: rotate(180deg); }

/* ── Dialog boxes (alerts) ───────────────────────────────────────────────── */
.dialog {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 24px;
    background: var(--paper);
    border: 2px solid var(--ink); border-radius: 10px;
    box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 4px var(--ink), 4px 4px 0 var(--ink);
}
.dialog--col { flex-direction: column; gap: 0; align-items: stretch; }
.dialog--row { justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.dialog > img { flex: none; }
.dialog__text { margin: 0; font: 700 20px/1.35 var(--f-ui); }
.segs { display: flex; gap: 6px; margin-top: 18px; }
.segs i { width: 30px; height: 12px; border: 2px solid var(--ink); }
.segs i.on { background: var(--ink); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.hero__icon { width: 64px; height: 64px; margin-top: 4px; }
.hero__headline { max-width: 17ch; }
.lead { max-width: 58ch; margin: 24px 0 30px; font-size: 18px; }
.pair { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
.pair > * { min-width: 0; }

/* Terminal: inverse video */
.win--term .win__body { background: var(--ink); color: var(--paper); font: 22px/1.3 var(--f-mono); min-height: 168px; }
.win--term.is-active > .win__bar { background: var(--stripes); }
.hg-typewriter { display: flex; flex-direction: column; align-items: flex-start; }
.tw-line { display: inline-block; padding: 0 2px; }
.tw-line--ok { background: var(--paper); color: var(--ink); padding: 0 6px; margin-top: 4px; }
.hg-caret { display: inline-block; width: .55em; height: 1em; margin-left: 2px; background: currentColor; vertical-align: -.14em; animation: hg-blink 1s steps(1) infinite; }
@keyframes hg-blink { 50% { opacity: 0; } }

/* ── Studio / stats ──────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; margin-top: 28px; align-items: start; }
.split > * { min-width: 0; }
.stat { margin-bottom: 20px; }
.stat:last-child { margin-bottom: 0; }
.stat__row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.stat__num { font: 700 42px/1 var(--f-display); }
.stat__label { font-size: 16px; }
.meter { height: 16px; border: 2px solid var(--ink); background-color: var(--paper); background-image: var(--checker); background-size: 4px 4px; }
.meter i { display: block; height: 100%; width: var(--v, 50%); background: var(--ink); }

/* ── Cards (services, team) ──────────────────────────────────────────────── */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.head-row--stack { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: end; }
.head-row--stack p { margin: 0; }
.caption--hint { margin: 0; }

.cards, .team { display: grid; gap: 30px; margin-top: 34px; }
.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team  { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
    display: flex; flex-direction: column; min-width: 0;
    background: var(--paper);
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
}
.card__head {
    height: 26px; padding: 0 10px;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--stripes);
    border-bottom: 2px solid var(--ink);
}
.card--featured .card__head { background: var(--ink); }   /* selected: solid bar */
.plate { padding: 0 8px; background: var(--paper); font: 700 14px/22px var(--f-ui); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body > .mac-btn { margin-top: auto; align-self: flex-start; }
.bullets { list-style: none; margin: 0 0 22px; padding: 0; }
.bullets li { display: flex; align-items: center; gap: 12px; padding: 3px 0; }
.bullets li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--ink); }

.photo { margin: 0 0 16px; border: 2px solid var(--ink); line-height: 0; background: var(--paper); }
.photo img { width: 100%; height: auto; aspect-ratio: 1; }
.name { font: 700 22px/1.2 var(--f-ui); }
.role { margin-top: 4px; }
.contact { margin-top: 14px; padding-top: 12px; border-top: 2px dotted var(--ink); font-size: 15px; overflow-wrap: anywhere; }

/* ── Hosting ─────────────────────────────────────────────────────────────── */
.hosting { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
.hosting > * { min-width: 0; }
.hosting__intro { margin: 22px 0 28px; max-width: 56ch; }

/* Finder window, System 3 list view */
.finder { border: 2px solid var(--ink); background: var(--paper); }
.finder__info { display: flex; justify-content: space-between; gap: 12px; padding: 5px 12px; border-bottom: 2px solid var(--ink); font: 700 14px/1.3 var(--f-ui); }
.finder table { width: 100%; border-collapse: collapse; }
.finder th { padding: 6px 12px; border-bottom: 2px solid var(--ink); text-align: left; font: 700 14px/1.2 var(--f-ui); }
.finder td { padding: 10px 12px; border-bottom: 2px dotted var(--ink); }
.finder tr:last-child td { border-bottom: 0; }
.finder tbody tr:hover { background: var(--ink); color: var(--paper); }
.finder .r { text-align: right; }
.finder .num { font: 700 26px/1.1 var(--f-display); white-space: nowrap; }

.hosting-detail { display: none; margin-top: 36px; }
.hosting-detail.is-open { display: block; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.spec { border: 2px solid var(--ink); padding: 18px 20px 6px; background: var(--paper); }
.spec .caption { margin-bottom: 6px; }
.spec strong { display: block; margin-bottom: 8px; font-size: 18px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.acc { margin-top: 30px; border: 2px solid var(--ink); }
.acc__item + .acc__item { border-top: 2px solid var(--ink); }
.acc__btn {
    display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center;
    width: 100%; padding: 13px 16px;
    background: var(--paper); color: var(--ink);
    border: 0; border-radius: 0; text-align: left;
    font: 700 17px/1.3 var(--f-ui);
}
.acc__btn:hover, .hg-accordion__item--open .acc__btn { background: var(--ink); color: var(--paper); }
.acc__box { position: relative; width: 18px; height: 18px; border: 2px solid currentColor; }
.acc__box::before, .acc__box::after { content: ""; position: absolute; background: currentColor; }
.acc__box::before { left: 2px; right: 2px; top: 6px; height: 2px; }
.acc__box::after  { top: 2px; bottom: 2px; left: 6px; width: 2px; }
.hg-accordion__item--open .acc__box::after { display: none; }
.acc__num { opacity: .85; }
.acc__body { display: none; padding: 18px 22px 8px 62px; border-top: 2px solid var(--ink); background: var(--paper); }
.hg-accordion__item--open .acc__body { display: block; }

/* ── Scrapbook (testimonials) ────────────────────────────────────────────── */
.scrap { margin-top: 32px; border: 2px solid var(--ink); }
.scrap__page { position: relative; padding: 30px 34px 28px; min-height: 240px; }
.scrap__mark { position: absolute; left: 14px; top: 2px; font: 700 72px/1 var(--f-display); }
.scrap__text { margin: 0; padding-left: 22px; font: 700 clamp(19px, 2.6vw, 25px)/1.38 var(--f-ui); }
.scrap__meta { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-left: 22px; }
.avatar { width: 50px; height: 50px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 18px var(--f-ui); }
.scrap__name { font: 700 18px/1.2 var(--f-ui); }
.scrap__role { font-size: 15px; }
.scrap__bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-top: 2px solid var(--ink); font: 700 14px var(--f-ui); }
.arrow { position: relative; width: 30px; height: 26px; padding: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: 0; }
.arrow::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 6px solid transparent; }
.arrow--left::before  { border-right: 8px solid var(--ink); border-left: 0; }
.arrow--right::before { border-left: 8px solid var(--ink); border-right: 0; }
.arrow:hover, .arrow:active { background: var(--ink); }
.arrow--left:hover::before,  .arrow--left:active::before  { border-right-color: var(--paper); }
.arrow--right:hover::before, .arrow--right:active::before { border-left-color: var(--paper); }

/* ── Customers (icon view) ───────────────────────────────────────────────── */
.finder--icons { border-width: 2px 0 0; border-style: solid; border-color: var(--ink); }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 26px 12px; list-style: none; margin: 0; padding: 28px 24px 32px; }
.icon { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.icon span { padding: 1px 6px; font: 700 14px/1.25 var(--f-ui); }
.icon:hover span { background: var(--ink); color: var(--paper); }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-grid__intro { margin: 22px 0 0; max-width: 46ch; }
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.block { border: 2px solid var(--ink); padding: 14px 16px; }
.block .caption { margin-bottom: 6px; font-size: 13px; }
.block__val { font: 700 18px/1.25 var(--f-ui); overflow-wrap: anywhere; }
.block__sub { margin-top: 4px; font-size: 14px; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font: 700 15px/1.2 var(--f-ui); }
input[type="text"], input[type="email"], textarea {
    display: block; width: 100%;
    padding: 9px 12px;
    background: var(--paper); color: var(--ink);
    border: 2px solid var(--ink); border-radius: 0;
    box-shadow: inset 2px 2px 0 var(--ink);
    font: 16px/1.45 var(--f-text);
}
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
.hg-turnstile { margin: 4px 0 18px; min-height: 0; }
.form-feedback:empty { display: none; }
.form-feedback { margin-bottom: 18px; padding: 10px 14px; border: 2px solid var(--ink); font: 700 15px/1.35 var(--f-ui); }
.form-feedback.is-success { background: var(--ink); color: var(--paper); }

/* ── Footer + desktop furniture ──────────────────────────────────────────── */
.foot {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px;
    padding: 12px 18px;
    background: var(--paper);
    border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
    font: 700 15px var(--f-ui);
}
.foot__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }

.desktop-icons { position: fixed; z-index: 5; right: 14px; top: calc(var(--bar) + 26px); display: none; flex-direction: column; gap: 26px; }
.dicon {
    display: none; flex-direction: column; align-items: center; gap: 6px;
    width: 96px; padding: 0; background: none; border: 0; color: var(--ink); text-decoration: none;
}
.desktop-icons .dicon { display: flex; }
.dicon span { max-width: 100%; padding: 1px 6px; background: var(--paper); font: 700 13px/1.3 var(--f-ui); }
.dicon:hover { background: none; color: var(--ink); }
.dicon:hover span, .dicon:focus-visible span { background: var(--ink); color: var(--paper); }
.dicon--trash { position: fixed; z-index: 5; right: 14px; bottom: 22px; }
@media (min-width: 1260px) {
    .desktop-icons { display: flex; }
    .dicon--trash { display: flex; }
}

/* ── System error (bomb) dialog: the Trash easter egg and the 404 ────────── */
.sys {
    width: min(520px, calc(100% - 32px)); padding: 0;
    background: var(--paper); color: var(--ink);
    border: 2px solid var(--ink); border-radius: 12px;
    box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 5px var(--ink), 6px 6px 0 var(--ink);
}
dialog.sys::backdrop {
    background-color: #fff;
    background-image: conic-gradient(#000 25%, #fff 0 50%, #000 0 75%, #fff 0);
    background-size: 4px 4px;
}
.sys__body { display: flex; gap: 24px; align-items: center; padding: 34px 32px 22px; }
.sys__body p { margin: 0; font: 700 20px/1.3 var(--f-ui); }
.sys__body .sys__sub { margin-top: 6px; font: 16px/1.4 var(--f-text); }
.sys__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 32px 30px; }
.sys__id { font: 700 16px var(--f-ui); }
.sys--page { margin: 12vh auto 0; }
.desk--error { align-items: center; }

/* ── Mac scroll bars ─────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 22px; height: 22px; }
::-webkit-scrollbar-track { background-color: var(--paper); background-image: var(--checker); background-size: 4px 4px; border-left: 2px solid var(--ink); }
::-webkit-scrollbar-thumb { background: var(--paper); border: 2px solid var(--ink); }
::-webkit-scrollbar-button { display: block; width: 22px; height: 22px; background-color: var(--paper); background-repeat: no-repeat; background-position: center; background-size: 12px 12px; border: 2px solid var(--ink); }
::-webkit-scrollbar-button:vertical:start:decrement { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2L1 10h10z'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:vertical:end:increment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 10L1 2h10z'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:vertical:start:increment, ::-webkit-scrollbar-button:vertical:end:decrement { display: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .menubar__links, .menu--special { display: none; }
    .menu--mobile { display: flex; }
    .menu--mobile .menu__list { right: 0; min-width: min(280px, 100vw); }
    .pair, .split, .hosting, .contact-grid, .head-row--stack { grid-template-columns: 1fr; }
    .head-row--stack { gap: 16px; }
    .pair { gap: 36px; }
}
@media (max-width: 640px) {
    :root { --bar: 34px; }
    body { padding-top: calc(var(--bar) + 20px); }
    .desk { width: calc(100% - 24px); gap: 36px; }
    .desk__section { gap: 32px; }
    .hero { grid-template-columns: 1fr; gap: 14px; }
    .cards, .specs, .blocks { grid-template-columns: 1fr; }
    .menubar__clock { display: none; }
    .acc__body { padding-left: 22px; }
    .scrap__page { padding: 26px 18px 24px; }
    .dialog { padding: 20px 18px; }
    .dialog--row { gap: 18px; }
    .sys__body, .sys__foot { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .hg-caret { animation: none; }
}
