/* ===========================================================================
   ARIZONA COMPUTER GURU - "Bold"
   Hand-built. Premium brutalist: Anton headlines, signal orange, refined edges.
   Baseline grid: 24px. Radius: 2px. Documentary grayscale photography.
   =========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --paper:      #F4EDE1;
  --surface:    #FBF7F0;
  --surface-2:  #EAE2D4;
  --ink:        #16120F;
  --ink-2:      #46403A;
  --ink-3:      #5C544B;   /* AA for small muted text on bone (~5:1)          */
  --rule:       rgba(22, 18, 15, 0.22);
  --rule-soft:  rgba(22, 18, 15, 0.10);
  --accent:     #E24A12;   /* signal orange, deepened for bone (button fill)  */
  --accent-ink: #C23A0A;   /* orange TEXT on bone (AA ~5.3:1)                 */
  --on-accent:  #16120F;   /* dark ink on the orange fill clears AA (~4.8:1)  */
  --good:       #1F7A4A;

  --maxw: 1140px;
  --base: 24px;            /* baseline unit */

  --f-display: "Anton", "Arial Narrow Bold", system-ui, sans-serif;
  --f-body:    "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --shadow: 0 1px 0 var(--rule), 0 24px 44px -30px rgba(22, 18, 15, 0.4);

  /* Timing & easing for controlled mechanical motion */
  --t-fast: 80ms;
  --t-med: 140ms;
  --t-slow: 220ms;
  --ease: cubic-bezier(0.21, 0.92, 0.2, 1);
  --ease-snap: cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="dark"] {
  --paper:      #0C0A09;
  --surface:    #16120F;
  --surface-2:  #1E1814;
  --ink:        #F4EDE1;
  --ink-2:      #C9C1B5;
  --ink-3:      #9A9082;
  --rule:       rgba(244, 237, 225, 0.20);
  --rule-soft:  rgba(244, 237, 225, 0.08);
  --accent:     #FF5A1F;
  --accent-ink: #FF8A4D;   /* orange text on near-black (AA)                  */
  --on-accent:  #0C0A09;
  --good:       #8FD0A0;
  --shadow: 0 1px 0 var(--rule), 0 24px 50px -30px rgba(0, 0, 0, 0.85);
}

/* ---- Skin: Midnight Concierge (cool dark-premium) ----------------------- */
html[data-skin="midnight"] {              /* Midnight, light mode (cool slate-grey) */
  --paper:      #F2F4F7;
  --surface:    #E6EAEF;
  --surface-2:  #DBE1E9;
  --ink:        #1A222E;
  --ink-2:      #46505E;
  --ink-3:      #5F6977;   /* AA on cool light (~5:1)                         */
  --rule:       rgba(40, 55, 75, 0.16);
  --rule-soft:  rgba(40, 55, 75, 0.07);
  --accent:     #E4831A;   /* amber, deepened a touch for cool light fills    */
  --accent-ink: #A8530A;   /* amber TEXT on cool light (AA ~5:1)              */
  --on-accent:  #14202C;
  --good:       #2F7D55;
  --shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(20, 30, 45, 0.35);
}
html[data-skin="midnight"][data-theme="dark"] {   /* Midnight, dark (the primary mood) */
  --paper:      #10151C;
  --surface:    #1B2430;
  --surface-2:  #232E3C;
  --ink:        #E7ECF2;
  --ink-2:      #AAB4C2;
  --ink-3:      #7E8A9A;
  --rule:       rgba(180, 200, 225, 0.15);
  --rule-soft:  rgba(180, 200, 225, 0.07);
  --accent:     #F2A24E;
  --accent-ink: #F4AC62;   /* amber text on deep slate (AA)                  */
  --on-accent:  #10151C;
  --good:       #6FC08C;
  --shadow: 0 1px 0 var(--rule), 0 24px 50px -30px rgba(0, 0, 0, 0.8);
}

/* ---- Skin: Verdigris Gate (Grok-designed) ------------------------------- */
html[data-skin="verdigris"] {             /* fonts (both modes) + light palette */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body:    "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --grain:      rgba(0, 0, 0, 0.035);
  --paper:      #E9EDEA;
  --surface:    #FFFFFF;
  --surface-2:  #DFE5E1;
  --ink:        #1C2421;
  --ink-2:      #3F4F49;
  --ink-3:      #4A5853;   /* AA on surface-2 band too (~5.8:1)               */
  --rule:       rgba(28, 36, 33, 0.14);
  --rule-soft:  rgba(28, 36, 33, 0.07);
  --accent:     #2F7A6B;   /* verdigris */
  --accent-ink: #1F5F52;   /* verdigris TEXT on plaster (AA)                  */
  --on-accent:  #FFFFFF;   /* white on the teal fill clears AA (button label)*/
  --good:       #2F7A6B;
  --shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(28, 40, 36, 0.4);
}
html[data-skin="verdigris"][data-theme="dark"] {   /* Verdigris, dark (wet courtyard) */
  --grain:      rgba(255, 255, 255, 0.05);
  --paper:      #141A18;
  --surface:    #1C2421;
  --surface-2:  #25302C;
  --ink:        #E4EBE8;
  --ink-2:      #A8B5AF;
  --ink-3:      #8FA098;   /* AA on surface-2 band in dark (~5:1)             */
  --rule:       rgba(228, 235, 232, 0.12);
  --rule-soft:  rgba(228, 235, 232, 0.06);
  --accent:     #4DA896;
  --accent-ink: #6BC4B0;   /* verdigris text on dark (AA)                    */
  --on-accent:  #0D1614;
  --good:       #6BC4B0;
  --shadow: 0 1px 0 var(--rule), 0 24px 50px -30px rgba(0, 0, 0, 0.8);
}

/* Verdigris signature treatments */
html[data-skin="verdigris"] .site-header {
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(90deg, transparent, transparent 2px,
    var(--grain) 2px, var(--grain) 3px);
  backdrop-filter: none;
}
html[data-skin="verdigris"] .calc__shell,
html[data-skin="verdigris"] .rate-card,
html[data-skin="verdigris"] .contact__form {
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--rule), var(--shadow);
}
html[data-skin="verdigris"] .contact__form {
  border: 1px solid var(--rule); background: var(--surface);
  padding: calc(var(--base) * 1.25);
}
html[data-skin="verdigris"] .nav__link:hover {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 3px; color: var(--ink);
}
html[data-skin="verdigris"] h1, html[data-skin="verdigris"] h2 { letter-spacing: -0.005em; }

/* ---- Skin: Bold (dialed-back radical) ----------------------------------- */
/* ---- Base signature treatments (Bold design) ---------------------------- */
/* Bold design has no ledger background rulings */
h1, h2, .tier__name, .brand__name {
  text-transform: uppercase; letter-spacing: 0.005em; font-weight: 400;
}
/* functional labels stay sentence-case in the body face (Anton caps smear at UI sizes) */
.svc__name, .faq__q {
  font-family: var(--f-body); font-weight: 700; text-transform: none; letter-spacing: 0;
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 0.9; }
.hero h1 .amp { -webkit-text-stroke: 0; }
h2 { line-height: 0.95; }
/* hard borders */
.site-header { border-bottom: 1px solid var(--ink); backdrop-filter: none;
  background: var(--paper); }
.trust { border-block: 1px solid var(--ink); }
.rate-card, .calc__shell { border: 1px solid var(--ink); }
.rate-card { background: var(--ink); gap: 1px; }  /* inner dividers match the frame */
.pricing, .faq, .home-pricing,
.home-services, .cta-band { border-block: 1px solid var(--ink); }
/* poster numerals via Anton */
.tier__price { font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.25rem); letter-spacing: 0.01em; }
.trust__num { font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; }
.calc__total .tnum { font-family: var(--f-display); font-weight: 400; }
/* premium softening: keep the base 2px radius (not zero) + a little more air */
.tier { padding: calc(var(--base) * 1.75) 1.75rem; }
.calc__inputs, .calc__out { padding: calc(var(--base) * 1.75); }
.svc { padding-block: calc(var(--base) * 1.05); }
/* monochrome documentary photos to match the palette (scoped to photo frames only,
   so future logos / badges / UI images are never desaturated) */
.hero__frame img, .story__img img,
.page-head--img img, .office-figure img {
  filter: grayscale(1) contrast(1.08);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.5;                 /* 24px at 16px → on-grid */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s ease, color 0.4s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
::selection { background: var(--accent); color: var(--on-accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Layout primitives -------------------------------------------------- */
.wrap { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 3rem, 760px); margin-inline: auto; }

section { padding-block: clamp(2.75rem, 5.5vw, 4.25rem); }
.section-tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: var(--base);
}
.section-tag::before {            /* precision mark, not an icon font */
  content: ""; width: 28px; height: 0;
  border-top: 2px solid var(--accent);
}
.section-tag span { color: var(--ink-3); }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.04;
  letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: var(--base); }
h3 { font-size: 1.5rem; font-weight: 600; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* underline "ink" used on key phrases */
.ul { background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px; background-position: 0 92%; background-repeat: no-repeat;
  padding-bottom: 1px; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  font-family: var(--f-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.4rem; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; text-decoration: none;
  transition:
    transform var(--t-fast) var(--ease-snap),
    box-shadow var(--t-fast) ease,
    background var(--t-med) ease,
    border-color var(--t-med) ease,
    filter var(--t-fast) ease;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 var(--rule);
}
.btn:active {
  transform: translateY(1px) scale(0.985);
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover {
  color: var(--on-accent);
  filter: brightness(1.08);
}
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn .arrow { font-family: var(--f-mono); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem;
  min-height: calc(var(--base) * 3); }
.brand { display: flex; align-items: baseline; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand__mark { /* official ACG "G" askew-power-symbol mark; tints to the active skin accent */
  display: inline-flex; align-items: center; align-self: center;
  color: var(--accent); line-height: 0;
}
.brand__mark svg { width: 34px; height: 35px; }
.brand__name { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem;
  letter-spacing: 0.005em; }
.brand__since { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-family: var(--f-body); font-size: 0.92rem; color: var(--ink-2);
  text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav__link {
  position: relative;
  transition: color var(--t-fast);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--t-med) var(--ease);
}
.nav__link:hover::after {
  width: 100%;
}
.nav__link--cta { color: var(--accent-ink) !important; font-weight: 600; }
.nav__link--cta:hover { color: var(--accent) !important; }
.nav__link--cta::after { background: var(--accent); }
.nav__phone {
  font-family: var(--f-mono); color: var(--ink) !important; font-weight: 500;
  display: flex; align-items: center; gap: 0.5rem;
}
.radio-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
  background: var(--accent); color: var(--on-accent);
  padding: 1px 5px; border-radius: 2px;
  animation: pulse-subtle 2s ease-in-out infinite;
}
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
.theme-toggle, .nav__toggle {
  background: transparent; border: 1px solid var(--rule); border-radius: 2px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
  display: grid; place-items: center; font-size: 1.1rem; transition: border-color 0.2s;
}
.theme-toggle:hover, .nav__toggle:hover { border-color: var(--accent); }
.nav__toggle { display: none; font-family: var(--f-mono); line-height: 1; }

@media (max-width: 880px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow); padding: 0.5rem 0;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height 0.25s ease, visibility 0.25s ease;
  }
  .site-header.nav-open .nav__links { max-height: 80vh; overflow-y: auto; visibility: visible; }
  .nav__links a { padding: 0.85rem 1.5rem; font-size: 1.05rem;
    border-top: 1px solid var(--rule-soft); }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { padding-block: calc(var(--base) * 3) calc(var(--base) * 4); position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: calc(var(--base) * 2);
  align-items: center; }
.hero__eyebrow { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: var(--base); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
.hero h1 .amp { color: var(--accent-ink); }
.hero__sub { font-size: 1.3rem; color: var(--ink-2); margin-top: var(--base);
  max-width: 38ch; }
.hero__cta { display: flex; gap: 1rem; margin-top: calc(var(--base) * 1.5); flex-wrap: wrap; }
.hero__note { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-3);
  margin-top: var(--base); }
.hero__frame {
  border: 1px solid var(--rule); border-radius: 2px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--surface); position: relative;
}
.hero__frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__caption {
  font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2);
  padding: 0.6rem 0.9rem; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; background: var(--surface);
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__frame { order: -1; }
}

/* ---- Ledger ruling background - REMOVED (Bold design has no ledger lines) -- */

/* ---- Trust strip -------------------------------------------------------- */
.trust { border-block: 1px solid var(--rule); background: var(--surface); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule); }
.trust__cell { background: var(--surface); padding: calc(var(--base) * 1.25) 1.25rem; }
.trust__num { font-family: var(--f-mono); font-size: 1.9rem; font-weight: 600;
  color: var(--ink); line-height: 1; }
.trust__num .u { color: var(--accent-ink); }
.trust__label { font-size: 0.86rem; color: var(--ink-2); margin-top: 0.5rem; }
@media (max-width: 720px) { .trust .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ---- Concierge story ---------------------------------------------------- */
.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--base) * 2.2);
  align-items: center; }
.story__img { border: 1px solid var(--rule); border-radius: 2px; overflow: hidden;
  box-shadow: var(--shadow); }
.story__img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.story p + p { margin-top: var(--base); }
.story blockquote {
  font-family: var(--f-display); font-weight: 500; font-size: 1.7rem; line-height: 1.18;
  color: var(--ink); margin-top: calc(var(--base) * 1.5);
  padding-block: var(--base); border-block: 1px solid var(--rule);
}
.story blockquote::before {
  content: "\201C"; font-family: var(--f-display); color: var(--accent-ink);
  font-size: 2.4rem; line-height: 0; vertical-align: -0.4em; margin-right: 0.2rem;
}
@media (max-width: 820px) {
  .story .wrap { grid-template-columns: 1fr; }
  .story__img { order: -1; }
}

/* ---- Services (continuous ledger list, not cards) ----------------------- */
.svc-list {
  border-top: 1px solid var(--rule);
  margin-top: var(--base);
  margin-bottom: calc(var(--base) * 1.5);
}
.svc {
  display: grid; grid-template-columns: 2.4rem 1fr auto; gap: 1.25rem;
  align-items: baseline; padding-block: calc(var(--base) * 0.9);
  border-bottom: 1px solid var(--rule);
  transition:
    background-color var(--t-med) ease,
    border-color var(--t-fast) ease,
    transform var(--t-fast) var(--ease-snap);
}
.svc:hover {
  background: var(--surface);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.svc__no { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-3); }
.svc__name { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; }
.svc__desc { color: var(--ink-2); font-size: 0.98rem; margin-top: 0.25rem; max-width: 60ch; }
.svc__calc-link {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--accent-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.svc__calc-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.svc__meta { font-family: var(--f-mono); font-size: 0.82rem; color: var(--accent-ink);
  text-align: right; white-space: nowrap; }
@media (max-width: 680px) {
  .svc { grid-template-columns: 1.8rem 1fr; }
  .svc__meta { grid-column: 2; text-align: left; }
}

/* ---- Pricing rate card -------------------------------------------------- */
.pricing { background: var(--surface); border-block: 1px solid var(--rule); }
.rate-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.tier {
  background: var(--paper); padding: calc(var(--base) * 1.5) 1.5rem; position: relative;
  align-self: stretch;
  transition:
    background-color var(--t-med) ease,
    border-color var(--t-fast) ease,
    transform var(--t-fast) var(--ease-snap);
}
.tier:hover {
  background: var(--surface);
  transform: translateY(-1px);
}
.tier--pop {
  background: var(--surface-2);
  box-shadow: inset 0 3px 0 var(--accent);
}
.tier--pop:hover {
  border-color: var(--accent);
}
.tier__flag { position: absolute; top: 0; right: 0; font-family: var(--f-mono);
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent); padding: 0.25rem 0.6rem; }
.tier__name { font-family: var(--f-display); font-size: 1.7rem; font-weight: 600; }
.tier__price { font-family: var(--f-mono); font-size: 2.6rem; font-weight: 700;
  color: var(--ink); margin-top: 0.5rem; line-height: 1; }
.tier__price .per { font-size: 0.9rem; color: var(--ink-3); font-weight: 400; }
.tier__blurb { color: var(--ink-2); font-size: 0.92rem; margin-top: 0.75rem;
  padding-bottom: var(--base); border-bottom: 1px solid var(--rule); }
.tier ul { list-style: none; padding: 0; margin-top: var(--base); display: grid; gap: 0.5rem; }
.tier li { font-size: 0.92rem; color: var(--ink-2); padding-left: 1.4rem; position: relative; }
.tier li::before { content: "+"; position: absolute; left: 0; color: var(--accent-ink);
  font-family: var(--f-mono); font-weight: 700; }
.tier li.is-base::before { content: "\2713"; }
@media (max-width: 820px) { .rate-card { grid-template-columns: 1fr; } }

.plans { margin-top: calc(var(--base) * 2); }
.plan-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.plan-table caption { text-align: left; font-family: var(--f-mono); font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 0.75rem; }
.plan-table th, .plan-table td { text-align: left; padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rule); }
.plan-table thead th { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.plan-table td.num, .plan-table th.num { font-family: var(--f-mono); text-align: right;
  font-variant-numeric: tabular-nums; }
.plan-table tr:hover td { background: var(--surface); }
.plan-table .pop td { color: var(--ink); }
.plan-table .pop td:first-child::after { content: " \25C6"; color: var(--accent-ink); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plan-table { min-width: 460px; }

/* visible keyboard focus everywhere interactive */
.btn:focus-visible, a:focus-visible, button:focus-visible, .faq__q:focus-visible,
.theme-toggle:focus-visible, .nav__toggle:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px;
}

/* ---- Calculator (centerpiece) ------------------------------------------ */
.calc { position: relative; }
.calc__shell {
  border: 1px solid var(--rule); border-radius: 2px; box-shadow: var(--shadow);
  background: var(--paper); overflow: hidden;
}
.calc__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; }
.calc__inputs { padding: calc(var(--base) * 1.5); border-right: 1px solid var(--rule); }
.calc__row { display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 1rem; padding-block: calc(var(--base) * 0.6); border-bottom: 1px dashed var(--rule); }
.calc__row label { font-size: 0.98rem; color: var(--ink); }
.calc__row .hint { display: block; font-size: 0.78rem; color: var(--ink-3); margin-top: 0.15rem; }
.calc__control { display: flex; align-items: center; gap: 0.5rem; }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--rule);
  border-radius: 2px; overflow: hidden; }
.stepper button {
  width: 44px; min-height: 44px; border: 0; background: var(--surface);
  color: var(--ink); font-family: var(--f-mono); font-size: 1.2rem; cursor: pointer;
  transition: background var(--t-med), color var(--t-med), transform var(--t-fast);
}
.stepper button:hover { background: var(--accent); color: var(--on-accent); }
.stepper button:active { transform: scale(0.92); }
.stepper input { width: 64px; height: 44px; border: 0; text-align: center; background: var(--paper);
  color: var(--ink); font-family: var(--f-mono); font-size: 1.05rem; font-weight: 600;
  appearance: textfield; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0; }

select, .calc__control select {
  font-family: var(--f-body); font-size: 0.95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
  padding: 0.5rem 2rem 0.5rem 0.7rem; cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
select:focus, .stepper input:focus, input:focus { outline: 2px solid var(--accent);
  outline-offset: 1px; }

.toggle-row { display: flex; align-items: center; gap: 0.6rem; }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--surface-2);
  border: 1px solid var(--rule); border-radius: 2px; transition: background 0.2s; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  background: var(--ink-3); border-radius: 1px;
  transition: transform var(--t-med) var(--ease-snap), background var(--t-med); }
.switch input:checked + .track { background: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.switch input:checked + .track + .knob, .switch input:checked ~ .knob { transform: translateX(20px);
  background: var(--accent); }

/* ledger output side */
.calc__out { padding: calc(var(--base) * 1.5); background: var(--surface);
  display: flex; flex-direction: column; }
.calc__out h3 { font-size: 1.15rem; }
.ledger-lines { margin-top: var(--base); flex: 1; }
.lline { display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  font-family: var(--f-mono); font-size: 0.9rem; padding-block: 0.45rem;
  color: var(--ink-2); }
.lline .lcost { color: var(--ink); font-variant-numeric: tabular-nums; }
.lline.dots .lname { position: relative; }
.lline.is-zero { display: none; }
.calc__divider { border: 0; border-top: 1px solid var(--ink-3); margin-block: 0.75rem; }
.calc__total { display: grid; grid-template-columns: 1fr auto; align-items: end; }
.calc__total .tlabel { font-family: var(--f-display); font-size: 1.1rem; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--ink-2); }
.calc__total .tnum { font-family: var(--f-mono); font-size: 2.9rem; font-weight: 700;
  color: var(--ink); line-height: 1; }
.calc__annual { font-family: var(--f-mono); font-size: 0.82rem; color: var(--ink-2);
  text-align: right; margin-top: 0.4rem; }
.calc__perep { font-family: var(--f-mono); font-size: 0.82rem; color: var(--accent-ink);
  margin-top: 0.2rem; text-align: right; }
.calc__cta { margin-top: var(--base); }
.calc__foot { font-size: 0.78rem; color: var(--ink-2); margin-top: 1rem; }
@media (max-width: 820px) {
  .calc__grid { grid-template-columns: 1fr; }
  .calc__inputs { border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* ---- FAQ ---------------------------------------------------------------- */
.faq { background: var(--surface); border-block: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q { width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: calc(var(--base) * 0.9) 0; display: flex; justify-content: space-between;
  gap: 1.5rem; align-items: center; color: var(--ink); font-family: var(--f-display);
  font-size: 1.25rem; font-weight: 600; }
.faq__q .pm { font-family: var(--f-mono); color: var(--accent-ink); font-size: 1.4rem;
  flex: none; transition: transform var(--t-slow) var(--ease); }
.faq__q[aria-expanded="true"] .pm { transform: rotate(45deg); }
.faq__a { overflow: hidden; max-height: 0; visibility: hidden;
  transition: max-height var(--t-slow) var(--ease), visibility var(--t-slow); }
.faq__q[aria-expanded="true"] + .faq__a { visibility: visible; }
.faq__a-inner { padding-bottom: calc(var(--base) * 1.1); color: var(--ink-2); max-width: 70ch; }

/* ---- Contact ------------------------------------------------------------ */
.contact { padding-block: calc(var(--base) * 4.5); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--base) * 2.5);
  align-items: start; }
.contact__lines { font-family: var(--f-mono); margin-top: var(--base); display: grid; gap: 0.6rem; }
.contact__lines .k { color: var(--ink-3); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; }
.contact__lines .v { color: var(--ink); font-size: 1.05rem; }
.contact__lines a { color: var(--ink); }
.contact__lines a:hover { color: var(--accent-ink); }
.form-field { margin-bottom: var(--base); }
.form-field label { display: block; font-size: 0.85rem; color: var(--ink-2);
  margin-bottom: 0.4rem; font-family: var(--f-mono); letter-spacing: 0.06em;
  text-transform: uppercase; }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
  padding: 0.65rem 0.8rem;
  transition: border-color var(--t-fast), background var(--t-med), outline var(--t-fast);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
  outline: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  outline-offset: -1px;
  background: var(--paper);
}
.form-field textarea { min-height: calc(var(--base) * 4); resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--ink-3); margin-top: 0.5rem; }
@media (max-width: 820px) { .contact .wrap { grid-template-columns: 1fr; } }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: calc(var(--base) * 1.5);
  background: var(--paper); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  align-items: center; }
.site-footer p { font-size: 0.84rem; color: var(--ink-3); font-family: var(--f-mono); }
.site-footer .disclaimer { width: 100%; font-size: 0.74rem; color: var(--ink-3);
  border-top: 1px dashed var(--rule); padding-top: 0.9rem; margin-top: 0.5rem; }

/* reveal-on-scroll (gated on .js so content is visible if JS fails to run) */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ===========================================================================
   MULTIPAGE additions
   =========================================================================== */

/* active nav */
.nav__link[aria-current="page"] {
  color: var(--ink);
  background-image: linear-gradient(var(--accent-ink), var(--accent-ink));
  background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 3px;
}
@media (max-width: 880px) {
  .nav__links a[aria-current="page"] { background: var(--surface);
    background-image: none; padding-bottom: 0.85rem; }
}

/* page header band (inner pages) */
.page-head { padding-block: calc(var(--base) * 2.75) calc(var(--base) * 1.75);
  border-bottom: 1px solid var(--rule); }
.page-head.ledger { background-position: 0 0; }
.page-head .eyebrow { font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.75rem; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 700; max-width: 18ch; }
.page-head .lead { margin-top: var(--base); }
.page-head--img .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: calc(var(--base) * 2); align-items: center; }
.page-head--img figure { border: 1px solid var(--rule); border-radius: 2px; overflow: hidden;
  box-shadow: var(--shadow); }
.page-head--img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 820px) {
  .page-head--img .wrap { grid-template-columns: 1fr; }
  .page-head--img figure { order: -1; }
}

/* breadcrumb-ish kicker reused; group titles in services */
.svc-group { margin-top: calc(var(--base) * 2); }
.svc-group:first-of-type { margin-top: var(--base); }
.svc-group__title { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 0.75rem; }
.svc-group__title::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }

/* principle list (About) reuses .svc-list; quote callout */
.bigquote { font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.2; color: var(--ink);
  max-width: 24ch; }
.bigquote::before { content: "\201C"; color: var(--accent-ink); margin-right: 0.15rem; }
.signature { font-family: var(--f-mono); font-size: 0.85rem; color: var(--ink-2);
  margin-top: var(--base); }

/* simple price tables grid for hosting / voip / email on pricing page */
.price-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: calc(var(--base) * 1.5); margin-top: var(--base); }
.price-block h3 { font-size: 1.3rem; }
.price-block .table-wrap { margin-top: 0.75rem; }

/* CTA band */
.cta-band { background: var(--surface); border-block: 1px solid var(--rule); }
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr auto; gap: var(--base);
  align-items: center; }
.cta-band h2 { margin-bottom: 0.4rem; }
.cta-band p { color: var(--ink-2); max-width: 52ch; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
}

/* teaser link */
.more-link { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem;
  color: var(--accent-ink); text-decoration: none; display: inline-flex; gap: 0.4rem;
  align-items: center; margin-top: var(--base); }
.more-link:hover { color: var(--ink); }
.more-link .arrow { font-family: var(--f-mono); transition: transform 0.15s ease; }
.more-link:hover .arrow { transform: translateX(3px); }

/* home section spacing variety so pages don't feel templated */
.home-services { background: var(--surface); border-block: 1px solid var(--rule); }
.home-pricing .rate-card { margin-top: var(--base); }

/* contact: office figure */
.office-figure { border: 1px solid var(--rule); border-radius: 2px; overflow: hidden;
  box-shadow: var(--shadow); margin-top: var(--base); }
.office-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.office-figure figcaption { font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-2);
  padding: 0.6rem 0.9rem; border-top: 1px solid var(--rule); background: var(--surface);
  display: flex; justify-content: space-between; }

/* utilities + small-screen calculator stacking */
.inline-actions { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: var(--base); }
.contact__intro h1 { font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.04; }
@media (max-width: 440px) {
  .calc__row { grid-template-columns: 1fr; gap: 0.5rem; }
  .calc__row .calc__control { justify-self: start; }
}

/* skin switcher (Paper / Midnight) */
.skin-toggle { background: transparent; border: 1px solid var(--rule); border-radius: 2px;
  width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center;
  transition: border-color 0.2s; padding: 0; }
.skin-toggle:hover { border-color: var(--accent); }
.skin-toggle .sw { width: 18px; height: 18px; border: 1px solid var(--rule); border-radius: 1px;
  background: linear-gradient(135deg, var(--surface-2) 0 50%, var(--accent) 50% 100%); }
.skin-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .nav__phone { display: none; } }

/* ---- Custom Cursor - REMOVED (restored to normal system cursor) ------- */

/* ---- Instant State Changes (Hover Inversion for Buttons/Tiers) -------- */
.btn:hover,
.tier:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Service cards (.svc) have complex internal styling - no hover inversion */

.more-link:hover .arrow {
  transform: translateX(6px);
}

/* ---- Reveal Animations (Opacity + TranslateY with Stagger) ------------ */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes reveal-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    clip-path: inset(0 0 0 0);
    animation: none;
  }
}

/* ---- Field Intelligence Dispatch Board --------------------------------- */
.dispatch-board {
  background: var(--surface);
  border-block: 1px solid var(--rule);
}

.dispatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: var(--base);
  margin-bottom: calc(var(--base) * 1.5);
}

.dispatch-card {
  background: var(--paper);
  padding: 1rem 1.1rem 1.15rem;
  border-left: 1px solid var(--rule);
  position: relative;
  transition:
    background-color var(--t-med) ease,
    border-color var(--t-fast) ease,
    border-left-width var(--t-fast) var(--ease-snap),
    transform var(--t-fast) var(--ease-snap);
}
.dispatch-card:hover {
  background: var(--surface);
  border-left-color: var(--accent);
  border-left-width: 3px;
  transform: translateY(-1px);
}

.dispatch-card__label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--ink-3);
  text-transform: uppercase;
}

.dispatch-card__title {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0.35rem 0 0.45rem;
  text-transform: none;
  transition: color var(--t-med);
}
.dispatch-card:hover .dispatch-card__title {
  color: var(--accent-ink);
}

.dispatch-card__excerpt {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.35;
  margin-bottom: 0.7rem;
}

.dispatch-card__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}

.dispatch-card__date {
  font-family: var(--f-mono);
  color: var(--ink-3);
}

.dispatch-card__tag {
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.25rem 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .dispatch-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Radio Promo Bar (Thin Brutal Banner) ------------------------------ */
.radio-promo {
  border-block: 1px solid var(--rule);
  background: var(--surface);
  font-family: var(--f-mono);
  font-size: 0.82rem;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.radio-promo strong {
  font-family: var(--f-display);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: var(--accent-ink);
}
.radio-promo .time {
  background: var(--accent);
  color: var(--on-accent);
  padding: 1px 6px;
  font-weight: 700;
}

/* ---- 3-Step Funnel ---------------------------------------------------- */
.funnel-steps {
  padding-block: calc(var(--base) * 1.25);
  background: var(--surface);
  border-block: 1px solid var(--rule);
}
.funnel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
}
.funnel-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  min-width: 140px;
}
.funnel-step__num {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-ink);
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent);
  border-radius: 2px;
  display: grid;
  place-items: center;
  transition: background var(--t-med), color var(--t-med), transform var(--t-fast);
}
.funnel-step:hover .funnel-step__num {
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(-2px);
}
.funnel-step__label {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.funnel-step__link {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--accent-ink);
  text-decoration: none;
  transition: color var(--t-fast);
}
.funnel-step__link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.funnel-step__note {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
}
.funnel-connector {
  font-family: var(--f-mono);
  font-size: 1.5rem;
  color: var(--rule);
}
@media (max-width: 640px) {
  .funnel-connector {
    display: none;
  }
  .funnel-track {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ---- Radio Ticker Marquee (Pauseable on Hover) ------------------------- */
.radio-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--accent);
  height: 40px;
  overflow: hidden;
  z-index: 9999;
}

.radio-ticker__track {
  display: flex;
  align-items: center;
  height: 100%;
  animation: ticker-scroll 30s linear infinite;
}

.radio-ticker:hover .radio-ticker__track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.radio-ticker__item {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  padding: 0 3rem;
  color: var(--paper);
}

.radio-ticker__item strong {
  color: var(--accent);
  font-weight: 600;
}

.radio-ticker__item::before {
  content: "●";
  color: var(--accent);
  margin-right: 1rem;
}

/* ---- Exit Intent Banner (Subtle Slide-Down, Below Header) ------------- */
.exit-offer {
  position: fixed;
  top: 73px; /* Below header (72px min-height + 1px border) */
  left: 0;
  right: 0;
  background: var(--accent);
  color: var(--on-accent);
  z-index: 45; /* Below header (z-index: 50) but above content */
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  border-bottom: 1px solid var(--ink);
}

.exit-offer.show {
  transform: translateY(0);
}

.exit-offer__content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.exit-offer__message {
  flex: 1;
}

.exit-offer__message strong {
  font-family: var(--f-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.exit-offer__message p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.95;
}

.exit-offer__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.exit-offer__close {
  background: transparent;
  border: 1px solid var(--on-accent);
  color: var(--on-accent);
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
}

.exit-offer__close:hover {
  background: var(--on-accent);
  color: var(--accent);
}

.exit-offer .btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

.exit-offer .btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.exit-offer .btn--primary:hover {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 768px) {
  .exit-offer__content {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .exit-offer__actions {
    width: 100%;
    justify-content: center;
  }
}
