/* Ztronix.ca — site styles
   File: style.css
   Version: v2.1
   Updated: 2026-09-29
   Notes: brand refresh (.ca), self-hosted icon sprite, pixel-art icons, vector map
*/

/* ===== Fonts (self-hosted, SIL Open Font License) ===== */
@font-face { font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/press-start-2p-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ===== Tokens ===== */
:root {
  --bg: #0a1020;
  --bg-alt: #0c1428;
  --panel: #101a33;
  --panel-2: #0d1630;
  --line: #1e2b48;
  --line-strong: #2a3a5e;

  --text: #e6eaf2;
  --text-strong: #ffffff;
  --muted: #b8c2d6;
  --muted-2: #8e9ab2;

  --pink: #fb017b;          /* taken from the Ztronix star */
  --pink-hi: #ff4fa3;
  --pink-ink: #1a0010;
  --blue: #3ab0ff;
  --green: #16c79a;
  --amber: #f5a524;

  --font-display: "Press Start 2P", "Courier New", monospace;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 76rem;
  --pad-x: clamp(1.25rem, 4vw, 2rem);
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 6px;

  --header-h: 72px;
  --section-y: clamp(4rem, 8vw, 6.5rem);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, dl, dd { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }

section[id], #top { scroll-margin-top: var(--header-h); }

:focus-visible {
  outline: 2px solid var(--pink-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  z-index: 10001;
  background: var(--pink);
  color: var(--pink-ink);
  font-weight: 700;
  padding: .5rem .9rem;
  border-radius: var(--r-sm);
  transition: top 150ms ease;
}
.skip-link:focus { top: 1rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.icon {
  width: 1.125em;
  height: 1.125em;
  flex: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 42px;
  padding: .6rem 1.05rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 48px; padding: .75rem 1.3rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-pink {
  background: var(--pink);
  color: var(--pink-ink);
  box-shadow: 0 0 0 1px rgba(251, 1, 123, .35), 0 12px 32px -12px rgba(251, 1, 123, .7);
}
.btn-pink:hover { background: var(--pink-hi); }

.btn-ghost {
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--text-strong);
}
.btn-ghost:hover { border-color: var(--pink); }
.btn-ghost .icon { color: var(--pink-hi); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-strong);
  margin-right: auto;
}
.brand-star { width: 30px; height: 30px; }
.brand-wordmark { height: 15px; width: auto; aspect-ratio: 1606 / 154; }
.brand:hover .brand-star { transform: rotate(45deg) scale(.9); }
.brand-star { transition: transform 400ms cubic-bezier(.22, 1, .36, 1); }

.primary-nav { display: flex; align-items: center; gap: 1.75rem; }
.primary-nav a {
  font-size: .9375rem;
  color: var(--muted);
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.primary-nav a:hover { color: var(--text-strong); }
.primary-nav a.is-current { color: var(--text-strong); border-bottom-color: var(--pink); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--panel);
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding-block: .75rem 1.25rem;
}
.mobile-menu-links a:not(.btn) {
  padding: .8rem 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
}
.mobile-menu-links a:not(.btn):hover { color: var(--text-strong); }
.mobile-menu-links .btn { margin-top: 1rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

/* Pixel grid backdrop echoing the wordmark, fading out toward the edges */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(42, 58, 94, .35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 58, 94, .35) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 3rem;
  padding-block: 4rem 6rem;
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--muted);
  font-size: .875rem;
}
.hero-badge .icon { color: var(--pink-hi); width: 15px; height: 15px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400; /* Press Start 2P has one weight; never let the browser fake-bold it */
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.3;
  color: var(--text-strong);
  max-width: 18ch;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  padding-top: .5rem;
  color: var(--muted-2);
  font-size: .9375rem;
}
.hero-facts li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-facts .icon { color: var(--green); width: 17px; height: 17px; }

.hero-mark {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  aspect-ratio: 400 / 390;
}
.hero-mark-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 1, 123, .45), rgba(251, 1, 123, 0) 68%);
  filter: blur(30px);
}
.hero-stars { position: relative; width: 100%; height: 100%; overflow: visible; }
.hero-stars .star { transform-box: fill-box; transform-origin: center; }
.hero-stars .star-big { filter: drop-shadow(0 0 22px rgba(251, 1, 123, .55)); }
.hero-stars .star-small { filter: drop-shadow(0 0 10px rgba(251, 1, 123, .6)); }

/* One orchestrated load moment: stars pop in, then the small ones twinkle gently */
@media (prefers-reduced-motion: no-preference) {
  .hero-stars .star { animation: starIn 900ms cubic-bezier(.22, 1.4, .36, 1) both; }
  .hero-stars .star-a { animation: starIn 800ms 250ms cubic-bezier(.22, 1.4, .36, 1) both, twinkle 3.6s 1.4s ease-in-out infinite; }
  .hero-stars .star-b { animation: starIn 800ms 420ms cubic-bezier(.22, 1.4, .36, 1) both, twinkle 4.2s 2.2s ease-in-out infinite; }
}
@keyframes starIn {
  from { opacity: 0; transform: scale(.2) rotate(-45deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes twinkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(.82); opacity: .75; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: color 150ms ease, border-color 150ms ease;
}
.scroll-cue:hover { color: var(--text-strong); border-color: var(--pink); }

/* ===== Sections ===== */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }

.section-head { display: grid; gap: .9rem; max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head-split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
}
.section-head-split > div { display: grid; gap: .9rem; max-width: 46rem; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.125rem, 2.1vw, 1.5rem);
  line-height: 1.4;
  color: var(--text-strong);
  text-wrap: balance;
}
.section-lead { color: var(--muted); font-size: 1.0625rem; max-width: 42rem; }

h3 { font-size: 1.0625rem; font-weight: 600; color: var(--text-strong); line-height: 1.35; }

/* ===== About / pillars ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.pillar {
  padding: 1.75rem;
  display: grid;
  align-content: start;
  gap: .75rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel-2);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 20px 44px -22px rgba(58, 176, 255, .45);
}
.pillar p { color: var(--muted-2); }
.pixel-tile { transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease; }
.pillar:hover .pixel-tile {
  border-color: var(--pink);
  box-shadow: 0 0 18px rgba(251, 1, 123, .35);
  transform: scale(1.06);
}

.pixel-tile {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: .5rem;
  border-radius: var(--r-md);
  background: var(--panel);
  border: 1px solid var(--line-strong);
}
.pixel-icon { width: 40px; height: 40px; image-rendering: pixelated; }
.px-pink  { fill: var(--pink); }
.px-dim   { fill: #3a1030; }
.px-white { fill: #ffffff; }
.px-blue  { fill: var(--blue); }

/* ===== Services ===== */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.service {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel-2);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.service:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
  box-shadow: 0 20px 44px -22px rgba(251, 1, 123, .5);
}
.service-icon { transition: background-color 200ms ease, color 200ms ease; }
.service:hover .service-icon, .ops-list li:hover .service-icon { background: var(--pink); color: var(--pink-ink); }
.service p, .ops-list p { color: var(--muted-2); margin-top: .35rem; font-size: .9688rem; }

.service-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: rgba(251, 1, 123, .1);
  border: 1px solid rgba(251, 1, 123, .3);
  color: var(--pink-hi);
}
.service-icon .icon { width: 20px; height: 20px; }

/* ===== Hosting ===== */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { transition: border-color 150ms ease; }
.chips li:hover { border-color: var(--green); }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--muted);
  font-size: .875rem;
}
.chips .icon { color: var(--green); width: 15px; height: 15px; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
}
.plan { transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.plan:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 24px 50px -26px rgba(58, 176, 255, .45); }
.plan-featured:hover { border-color: var(--pink-hi); box-shadow: 0 28px 64px -26px rgba(251, 1, 123, .7); }
.plan-featured {
  border-color: var(--pink);
  background:
    linear-gradient(180deg, rgba(251, 1, 123, .09), rgba(251, 1, 123, 0) 55%),
    var(--panel-2);
  box-shadow: 0 24px 60px -30px rgba(251, 1, 123, .55);
}
.plan-flag {
  position: absolute;
  top: -.8rem; left: 1.5rem;
  padding: .15rem .65rem;
  border-radius: 999px;
  background: var(--pink);
  color: var(--pink-ink);
  font-size: .75rem;
  font-weight: 700;
}
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.plan-head h3 { font-family: var(--font-display); font-size: .9375rem; font-weight: 400; }
.plan-price { color: var(--muted-2); font-size: .9375rem; }
.plan-price span { color: var(--text-strong); font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; }
.plan-for { color: var(--muted-2); font-size: .9375rem; margin-top: -.5rem; }
.plan-list { display: grid; align-content: start; gap: .6rem; padding-block: 1rem; border-top: 1px solid var(--line); flex: 1; }
.plan-list li { display: flex; align-items: flex-start; gap: .55rem; color: var(--muted); font-size: .9375rem; }
.plan-list .icon { color: var(--green); width: 18px; height: 18px; margin-top: .15rem; }

.ops {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.terminal {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: #070c19;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.terminal { transition: border-color 200ms ease, box-shadow 200ms ease; }
.terminal:hover { border-color: var(--blue); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(58,176,255,.25); }
.terminal-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.terminal-bar span:nth-child(2) { background: var(--amber); }
.terminal-bar span:nth-child(3) { background: var(--green); }
.terminal-bar em { margin-left: .5rem; font-style: normal; font-family: var(--font-mono); font-size: .8125rem; color: var(--muted-2); }
.terminal pre {
  margin: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .8438rem;
  line-height: 1.7;
  color: #cfe3ff;
}
.t-prompt { color: var(--pink-hi); }
.t-key { color: var(--blue); }
.t-str { color: #ffd479; }
.t-num { color: #c3a6ff; }
.t-comment { color: #5f6f8f; }
.t-ok { color: var(--green); }
.t-cursor {
  display: inline-block;
  width: .55em; height: 1.1em;
  margin-left: .25em;
  vertical-align: -.2em;
  background: var(--pink);
}
@media (prefers-reduced-motion: no-preference) {
  .t-cursor { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

.ops-list { display: grid; gap: 1.5rem; }
.ops-list li { display: flex; gap: 1rem; }

/* ===== Global map ===== */
.map {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 50% 60% at 25% 30%, rgba(251, 1, 123, .08), transparent 70%),
    var(--panel-2);
  padding: clamp(1rem, 3vw, 2.25rem);
}
.map-canvas { position: relative; }
.map-canvas img { width: 100%; }

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0; height: 0;
}
.pin i {
  position: absolute;
  left: -5px; top: -5px;
  width: 10px; height: 10px;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(58, 176, 255, .8);
}
.pin-home i {
  left: -8px; top: -8px;
  width: 16px; height: 16px;
  background: var(--pink);
  box-shadow: 0 0 16px rgba(251, 1, 123, .9);
}
.pin-home i::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--pink);
}
@media (prefers-reduced-motion: no-preference) {
  .pin-home i::after { animation: pinPulse 2s ease-out infinite; }
}
@keyframes pinPulse {
  from { transform: scale(1); opacity: .9; }
  to   { transform: scale(3); opacity: 0; }
}
.pin b {
  position: absolute;
  left: 14px; top: -.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .625rem;
  line-height: 1.6;
  color: var(--text-strong);
  white-space: nowrap;
  padding: .1rem .45rem;
  background: rgba(10, 16, 32, .85);
  border: 1px solid var(--pink);
  border-radius: 4px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}
.stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: .5rem;
  padding: .25rem 1.5rem;
}
.stats > div + div { border-left: 1px solid var(--line); }
.stats > div:first-child { padding-left: 0; }
.stats dt { color: var(--muted-2); font-size: .9375rem; }
.stats dd { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.125rem, 2.2vw, 1.5rem); line-height: 1.4; color: var(--text-strong); }

/* ===== Contact ===== */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-intro { display: grid; gap: 1rem; }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: max-content;
  margin-top: .75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-strong);
  border-bottom: 2px solid var(--pink);
  padding-bottom: .15rem;
}
.contact-email .icon { color: var(--pink-hi); }
.contact-email:hover { color: var(--pink-hi); }

.socials { display: flex; gap: .6rem; margin-top: .5rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--muted);
  transition: color 150ms ease, border-color 150ms ease;
}
.socials a { transition: color 150ms ease, border-color 150ms ease, transform 150ms ease; }
.socials a:hover { color: var(--text-strong); border-color: var(--pink); transform: translateY(-2px); }
.socials .icon { width: 18px; height: 18px; }

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .875rem; font-weight: 500; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: .65rem .8rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text-strong);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}
.field textarea { resize: vertical; min-height: 140px; }
.field ::placeholder { color: #5f6f8f; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(251, 1, 123, .2);
}
.field [aria-invalid="true"] { border-color: #ff6b6b; }

.check-row { display: flex; align-items: flex-start; gap: .65rem; font-size: .9375rem; color: var(--muted); }
.check-row input { margin-top: .3rem; width: 17px; height: 17px; accent-color: var(--pink); flex: none; }
.check-row.is-invalid label { color: #ff8f8f; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.form-note { font-size: .875rem; color: var(--muted-2); }
.form-note.is-error { color: #ff8f8f; }
.form-note.is-ok { color: var(--green); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: #080d1a; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 2.25rem;
}
.brand-sm { margin-right: 0; }
.brand-sm .brand-star { width: 24px; height: 24px; }
.brand-sm .brand-wordmark { height: 12px; }
.footer-copy { color: var(--muted-2); font-size: .875rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); font-size: .875rem; }
.footer-links a:hover { color: var(--text-strong); }

/* ===== Scroll reveal (restored from v1): headings slide in from alternating sides,
   cards fade up with a short stagger ===== */
.js .reveal-on-scroll {
  opacity: 0;
  transform: translateX(var(--reveal-x, -28px)) translateY(6px);
  transition: opacity 800ms ease, transform 1400ms cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.js .reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease var(--reveal-delay, 0ms), transform 900ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms);
}
.js .reveal-on-scroll.is-revealed,
.js .reveal-up.is-revealed { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .primary-nav, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 3rem 5rem; gap: 2rem; }
  .scroll-cue { display: none; }
  .hero-mark { order: -1; width: min(60vw, 260px); justify-self: start; }

  .pillars { grid-template-columns: 1fr; }

  .plans { grid-template-columns: 1fr; max-width: 30rem; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 1rem; }
  .stats > div, .stats > div + div { padding: 0; border-left: 0; }
  .pin b { font-size: .6875rem; left: 11px; }
  .pin i { left: -3px; top: -3px; width: 6px; height: 6px; }
  .pin-home i { left: -6px; top: -6px; width: 12px; height: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .brand-wordmark { height: 13px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .js .reveal-on-scroll, .js .reveal-up { opacity: 1 !important; transform: none !important; }
}

/* ===== Print ===== */
@media print {
  .site-header, .scroll-cue, .hero-grid-bg, .hero-mark-glow, .contact-form, .socials { display: none !important; }
  body { background: #fff; color: #000; }
  .section-title, .hero-title, h3, .stats dd { color: #000; }
}
