/* Future Computing Solutions, Inc. — layout, type and components.
   Colours live in palette.css, which is loaded before this file.
   To change the colour scheme, swap that one file. Nothing here changes. */

/* ============================================================
   Future Computing Solutions, Inc. — static site
   assets/css/style.css
   Palette, type scale and components all live in this one file.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: 24px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06), 0 4px 12px rgba(11, 18, 32, .05);
  --shadow-md: 0 12px 34px rgba(11, 18, 32, .14);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  min-width: 320px;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe, video, canvas { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .5em; }

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

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right));
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-900); color: #dbe4f5; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: #fff; padding: 12px 18px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Eyebrow / console label ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--blue);
  display: inline-block;
}
.section--navy .eyebrow { color: var(--mint); }
.section--navy .eyebrow::before { background: var(--mint); }

.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section--navy .section-head p { color: var(--muted-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--ghost {
  background: transparent; color: var(--white);
  border-color: rgba(255, 255, 255, .3);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-600); }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-more {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue-600);
}
.link-more:hover { text-decoration: none; }
.link-more span { transition: transform .18s var(--ease); }
.link-more:hover span { transform: translateX(4px); }

/* ============================================================
   Header
   ============================================================ */
.topbar {
  background: var(--navy-900);
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--line-dark);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 44px; flex-wrap: wrap;
}
.topbar-contact { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar-contact span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-contact .ico { width: 14px; height: 14px; stroke: var(--mint); }
.topbar a { color: var(--muted-dark); }
.topbar a:hover { color: var(--white); }
.topbar-social { display: flex; gap: 8px; align-items: center; }
.topbar-social a {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.topbar-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.topbar-social svg { width: 13px; height: 13px; fill: currentColor; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}

/* Logo lockup */
.logo { display: flex; align-items: center; gap: 13px; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 42px; height: 42px; flex: none; border-radius: 50%; }
.logo-type { display: flex; flex-direction: column; line-height: 1.05; }
.logo-type b {
  font-family: var(--display); font-weight: 700; font-size: 1.04rem;
  letter-spacing: -0.02em; color: var(--navy-900); white-space: nowrap;
}
.logo-type small {
  font-family: var(--mono); font-size: .56rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

/* Primary nav */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--text);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.nav > ul > li { margin: 0; position: relative; }
.nav > ul > li > a {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--display);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--navy-800);
  padding: 12px 14px; border-radius: 8px;
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav > ul > li > a:hover { color: var(--blue-600); background: var(--blue-100); text-decoration: none; }
.nav > ul > li.is-current > a { color: var(--blue-600); }
.nav > ul > li.is-current > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--blue); border-radius: 2px;
}
.has-sub > a .caret { width: 9px; height: 9px; fill: currentColor; opacity: .55; }

.subnav {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 292px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav li { margin: 0; }
.subnav a {
  display: block; padding: 10px 14px; border-radius: 9px;
  font-size: .92rem; color: var(--text);
}
.subnav a:hover { background: var(--paper); color: var(--blue-600); text-decoration: none; }

/* Grouped subnav — Solutions is organised into Infrastructure / Security &
   Compliance / Cloud & AI rather than one flat list. */
.subnav--grouped { min-width: 560px; columns: 3; column-gap: 6px; padding: 14px; }
.subnav-group { break-inside: avoid; margin-bottom: 4px; }
.subnav-label {
  display: block; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 6px 14px 4px;
}
.subnav-group ul { list-style: none; margin: 0; padding: 0; }

.header-cta { display: inline-flex; flex: none; padding: 12px 22px; font-size: .88rem; }

/* ============================================================
   Hero — the convergence stack (signature element)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 78% 8%, var(--navy-700) 0%, var(--navy-900) 58%);
  color: #dbe4f5;
  padding: clamp(64px, 9vw, 116px) 0 clamp(64px, 9vw, 108px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 0%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: .35em; max-width: 15ch; }
.hero-lead { font-size: 1.12rem; color: var(--muted-dark); max-width: 46ch; }
.hero .eyebrow { color: var(--mint); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-facts {
  display: flex; gap: 34px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 26px;
  border-top: 1px solid var(--line-dark);
}
.hero-facts div { min-width: 108px; }
.hero-facts div strong {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 1.55rem; color: var(--white); letter-spacing: -0.02em;
}
.hero-facts div span {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted-dark);
}

/* Layer stack graphic */
.stack { position: relative; }
.stack-caption {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted-dark);
  display: flex; align-items: center; gap: 9px; margin-bottom: 16px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, .55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 220, 151, .5); }
  70%  { box-shadow: 0 0 0 12px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

.layer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--layer-bg);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transform: translateX(38px);
  opacity: 0;
  animation: slot .75s var(--ease) forwards;
}
.layer:nth-child(2) { animation-delay: .10s; }
.layer:nth-child(3) { animation-delay: .22s; }
.layer:nth-child(4) { animation-delay: .34s; }
.layer:nth-child(5) { animation-delay: .46s; }
.layer:last-child {
  background: var(--layer-bg-final);
  border-color: rgba(61, 220, 151, .4);
}
@keyframes slot { to { transform: translateX(0); opacity: 1; } }

.layer-name {
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  color: var(--white); letter-spacing: -0.01em;
}
.layer-meta {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-dark);
}
.layer-bar {
  width: 66px; height: 6px; border-radius: 4px;
  background: rgba(255, 255, 255, .14); overflow: hidden; flex: none;
}
.layer-bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.layer:last-child .layer-bar i { background: var(--mint); }

/* ============================================================
   Page banner (interior pages)
   ============================================================ */
.page-banner {
  background: radial-gradient(110% 160% at 82% 0%, var(--navy-700) 0%, var(--navy-900) 60%);
  color: #dbe4f5;
  padding: clamp(48px, 7vw, 82px) 0 clamp(40px, 6vw, 66px);
}
.page-banner h1 { color: var(--white); margin-bottom: .2em; }
.page-banner p { color: var(--muted-dark); max-width: 60ch; margin-bottom: 0; }
.crumbs {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-dark);
  margin-bottom: 18px;
}
.crumbs a { color: var(--muted-dark); }
.crumbs a:hover { color: var(--white); }
.crumbs span { opacity: .5; margin: 0 8px; }

/* ============================================================
   Cards
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px 28px;
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-hover); }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.card .link-more { margin-top: 14px; }

/* Small layered glyph used instead of stock icons */
.glyph {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue-100);
  display: grid; place-items: center; margin-bottom: 20px;
}
.glyph svg { width: 22px; height: 22px; stroke: var(--blue-600); fill: none; stroke-width: 1.6; }

/* Market tiles */
.market {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 210px;
  padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: var(--white);
  border: 1px solid var(--line-dark);
  transition: transform .22s var(--ease);
}
.market:hover { transform: translateY(-4px); text-decoration: none; }
.market::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 100% 14px; opacity: .6;
}
.market-index {
  position: relative; font-family: var(--mono); font-size: .7rem;
  letter-spacing: .16em; color: var(--mint); margin-bottom: 8px;
}
.market h3 { position: relative; color: var(--white); margin-bottom: 6px; }
.market p { position: relative; color: var(--muted-dark); font-size: .9rem; margin: 0; }

/* Feature list with mint ticks */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li {
  position: relative; padding-left: 30px; margin-bottom: .7em;
  color: var(--muted); font-size: .97rem;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(61, 220, 151, .18);
  border: 1.5px solid var(--mint);
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: .82em;
  width: 6px; height: 3px;
  border-left: 1.6px solid #17a86c; border-bottom: 1.6px solid #17a86c;
  transform: rotate(-45deg);
}
.section--navy .ticks li { color: #c6d2e8; }

/* Numbered process (used only where order genuinely matters) */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px 22px 76px;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 26px; top: 26px;
  font-family: var(--mono); font-size: .82rem; font-weight: 500;
  color: var(--blue-600); letter-spacing: .06em;
}
.step h3 { font-size: 1.1rem; margin-bottom: .4em; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Split content block */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 66px); align-items: center;
}
/* Same fix as .detail: grid items otherwise take a content-based minimum
   width, letting a wide descendant (a form, a table, a long link) inflate
   the whole track past the viewport. */
.split > * { min-width: 0; }
.split-visual {
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  min-height: 340px; position: relative;
  border: 1px solid var(--line);
  display: grid; place-items: center; padding: 32px;
}
.split-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.split-visual-inner {
  position: relative; text-align: center; color: var(--white);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase;
}
.split-visual-inner b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.03em;
  margin-bottom: 8px; text-transform: none;
}

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--white); padding: 30px 26px; }
.stat strong {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 1.9rem; letter-spacing: -0.03em; color: var(--navy-900);
}
.stat span {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Icons (phone, fax, email, address, hours) ---------- */
.ico {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--lg { width: 20px; height: 20px; stroke: var(--mint); }
.ico--box {
  width: 38px; height: 38px; padding: 10px; border-radius: 11px;
  background: var(--blue-100); stroke: var(--blue-600); stroke-width: 1.6;
  box-sizing: border-box;
}

/* Contact strip */
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; background: var(--white);
  display: flex; align-items: flex-start; gap: 15px;
}
.contact-item > div { min-width: 0; }
.contact-item span {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px;
}
.contact-item strong {
  font-family: var(--display); font-size: 1.08rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--navy-900);
  overflow-wrap: anywhere;
}
.contact-item a { color: var(--navy-900); }

/* Gallery + articles */
.tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 240px; display: flex; align-items: flex-end;
  padding: 24px;
  background: linear-gradient(155deg, #16305d, var(--navy-900));
  border: 1px solid var(--line-dark);
  transition: transform .22s var(--ease);
}
.tile:hover { transform: translateY(-4px); text-decoration: none; }
.tile::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, var(--tile-tint) 0 2px, transparent 2px 12px);
  opacity: .7;
}
.tile h4 { position: relative; color: var(--white); margin: 0; font-size: 1.05rem; }

.article {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.article:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-thumb {
  height: 168px;
  background: linear-gradient(140deg, #1d3a70, var(--navy-900));
  position: relative;
}
.article-thumb::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 18px 100%;
}
.article-body { padding: 22px 24px 24px; }
.article-meta {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.article-body h4 { font-size: 1.08rem; margin-bottom: .5em; }
.article-body h4 a { color: var(--navy-900); }
.article-body p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Newsletter band */
.signup {
  background: var(--signup-bg);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 52px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  color: #fff;
}
.signup { color: var(--signup-text); }
.signup h2 { color: var(--signup-text); margin-bottom: 0; }
.signup p { color: var(--signup-text-soft); margin: .6em 0 0; }
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-form input {
  flex: 1 1 220px; min-width: 0;
  padding: 15px 18px; border-radius: 999px; border: 0;
  font-family: var(--body); font-size: 16px;
}
.signup-form button { background: var(--signup-btn); color: var(--signup-btn-text); }
.signup-form button:hover { filter: brightness(.85); }
.signup-form button:hover { background: #000; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 16px; color: var(--text);
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--white); transition: border-color .18s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); }
.field textarea { min-height: 148px; resize: vertical; }

/* Honeypot field — invisible to real visitors, present in the DOM for
   spam bots that auto-fill every field they find. Positioned off-screen
   rather than display:none, since some bots specifically skip
   display:none fields but still fill ones that are merely out of view. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; line-height: 0;
}
.map-frame iframe { width: 100%; height: clamp(260px, 42vw, 460px); border: 0; display: block; }

/* Sidebar for detail pages */
.detail {
  display: grid; grid-template-columns: 280px 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
/* Grid items default to a content-based minimum width, which lets a wide
   descendant (like the RTO/RPO diagram's min-width SVG) inflate the whole
   track even though it has its own overflow-x:auto. min-width:0 opts the
   items out of that so the diagram scrolls internally instead. */
.detail > .sidebar, .detail > .prose { min-width: 0; }
.sidebar {
  position: sticky; top: 96px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; background: var(--paper);
}
.sidebar h4 {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.sidebar ul { list-style: none; margin: 0 0 26px; padding: 0; }
.sidebar-group { margin-bottom: 4px; }
.sidebar-group span {
  display: block; font-family: var(--mono); font-size: .64rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 4px 12px 6px; opacity: .8;
}
.sidebar-group:first-child span { padding-top: 0; }
.sidebar-group ul { margin-bottom: 14px; }
.sidebar li { margin: 0; }
.sidebar li a {
  display: block; padding: 10px 12px; border-radius: 9px;
  font-size: .93rem; color: var(--text);
}
.sidebar li a:hover { background: var(--white); color: var(--blue-600); text-decoration: none; }
.sidebar li.is-current a { background: var(--white); color: var(--blue-600); font-weight: 600; box-shadow: var(--shadow-sm); }
.sidebar-cta {
  border-top: 1px solid var(--line); padding-top: 20px;
  font-size: .92rem; color: var(--muted);
}
.sidebar-cta strong { display: block; font-family: var(--display); color: var(--navy-900); font-size: 1.05rem; }

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose p { color: #35415e; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* ============================================================
   Footer
   ============================================================ */
.pre-footer { background: var(--navy-800); color: #c6d2e8; padding: 34px 0; }
.pre-footer .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pre-footer .wrap > div { display: flex; align-items: flex-start; gap: 13px; }
.pre-footer strong { overflow-wrap: anywhere; }
.pre-footer span {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-dark); display: block; margin-bottom: 4px;
}
.pre-footer strong { font-family: var(--display); font-size: 1.15rem; color: #fff; letter-spacing: -0.02em; }
.pre-footer a { color: #fff; }

.site-footer { background: var(--navy-900); color: #a9b8d4; padding: 62px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 44px; }
.site-footer h4 {
  color: #fff; font-family: var(--display); font-size: .95rem;
  letter-spacing: .04em; margin-bottom: 18px;
}
.site-footer p { font-size: .95rem; color: #a9b8d4; }
.site-footer a { overflow-wrap: anywhere; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6em; }
.site-footer a { color: #a9b8d4; }
.site-footer a:hover { color: #fff; }
.footer-logo { margin-bottom: 20px; }
.footer-logo .logo-mark { width: 44px; height: 44px; }
.footer-logo .logo-type b { color: #fff; }
.footer-logo .logo-type small { color: var(--muted-dark); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { margin-top: 5px; stroke: var(--mint); }
.footer-contact span { overflow-wrap: anywhere; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-dark); display: grid; place-items: center;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-bottom {
  margin-top: 52px; border-top: 1px solid var(--line-dark);
  padding: 22px 0; font-family: var(--mono); font-size: .74rem;
  letter-spacing: .05em; color: var(--muted-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}


/* ============================================================
   Call-to-action band — closes every page with one clear action
   ============================================================ */
.cta-band {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 56px) clamp(26px, 4vw, 52px);
  display: grid; grid-template-columns: 1.4fr auto;
  gap: 30px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 90% at 85% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 90% at 85% 20%, #000, transparent 75%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: var(--muted-dark); margin: 0; max-width: 54ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-phone {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  color: #fff; white-space: nowrap;
}
.cta-phone small {
  display: block; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark);
  font-weight: 400; margin-bottom: 3px;
}

/* ============================================================
   FAQ accordion — also emitted as FAQPage structured data
   ============================================================ */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  background: none;
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 44px 22px 0; position: relative;
  font-family: var(--display); font-weight: 600;
  font-size: 1.06rem; letter-spacing: -0.01em; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-right: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--blue-600); }
.faq .faq-body { padding: 0 44px 24px 0; color: var(--muted); font-size: .98rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ============================================================
   Related links at the foot of detail pages
   ============================================================ */
.related { border-top: 1px solid var(--line); padding-top: 30px; }
.related h4 {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.related-list { display: flex; flex-wrap: wrap; gap: 10px; }
.related-list a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: .92rem; color: var(--text);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.related-list a:hover { border-color: var(--blue); color: var(--blue-600); text-decoration: none; }

/* ============================================================
   Compact newsletter in the footer
   ============================================================ */
.footer-signup { margin-top: 22px; }
.footer-signup label {
  display: block; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted-dark); margin-bottom: 9px;
}
.footer-signup form { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-signup input {
  flex: 1 1 190px; min-width: 0;
  padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(255,255,255,.06);
  color: #fff; font-family: var(--body); font-size: 16px;
}
.footer-signup input::placeholder { color: var(--muted-dark); }
.footer-signup input:focus { border-color: var(--brand); outline: none; }
.footer-signup button {
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--blue); color: var(--on-accent);
  font-family: var(--display); font-weight: 600; font-size: .88rem;
  white-space: nowrap;
}
.footer-signup button:hover { background: var(--accent-hover); }
.footer-signup .form-note { color: var(--muted-dark); font-size: .8rem; }

/* ============================================================
   Anchored market sections
   ============================================================ */
.market-section {
  display: grid; grid-template-columns: 200px 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: 34px 0; border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.market-section:first-of-type { border-top: 0; padding-top: 0; }
.market-section h3 { margin-bottom: .3em; }
.market-section .market-index { color: var(--blue-600); display: block; margin-bottom: 8px; }
.market-section p { color: var(--muted); margin-bottom: 0; }
.market-section p a {
  color: var(--blue-600); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(0,95,136,.4);
  text-underline-offset: 2px; text-decoration-thickness: 1.5px;
  transition: text-decoration-color .15s var(--ease);
}
.market-section p a:hover { text-decoration-color: var(--blue-600); }

/* ============================================================
   404
   ============================================================ */
.notfound { text-align: center; padding: clamp(70px, 12vw, 140px) 0; }
.notfound .code {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 16px;
}
.notfound h1 { margin-bottom: .3em; }
.notfound p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.notfound .btn { margin-top: 26px; }

@media (max-width: 900px) {
  .cta-band { grid-template-columns: 1fr; }
  .market-section { grid-template-columns: 1fr; gap: 10px; }
}


/* ============================================================
   Social proof — rating summary + customer quotes
   ============================================================ */
.proof { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

.rating-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; background: var(--white); text-align: center;
  position: sticky; top: 100px;
}
.rating-score {
  font-family: var(--display); font-weight: 800; font-size: 3.4rem;
  line-height: 1; letter-spacing: -0.04em; color: var(--navy-900);
}
.stars { display: flex; justify-content: center; gap: 3px; margin: 12px 0 10px; }
.stars svg { width: 19px; height: 19px; fill: #f5a623; }
.rating-meta {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); line-height: 1.7;
}
.rating-card .link-more { margin-top: 16px; }

.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; }
/* An odd last card spans the row instead of leaving a gap. */
.quote:nth-child(odd):last-child { grid-column: 1 / -1; }
.quote {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px; background: var(--white);
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quote::before {
  content: "\201C"; font-family: var(--display); font-weight: 800;
  font-size: 2.6rem; line-height: .8; color: var(--brand);
  display: block; margin-bottom: 10px;
}
.quote blockquote {
  margin: 0 0 18px; font-size: 1.02rem; color: var(--text); flex: 1;
  line-height: 1.6;
}
.quote figcaption {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 14px;
}
.proof-point {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 24px; background: var(--white);
  border-left: 3px solid var(--brand);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.proof-point:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.proof-point h3 { font-size: 1.08rem; margin-bottom: .45em; }
.proof-point p { color: var(--muted); font-size: .96rem; margin: 0; }
/* An odd last card spans the row rather than leaving a gap. */
.proof-point:nth-child(odd):last-child { grid-column: 1 / -1; }

.quote figcaption strong {
  display: block; font-family: var(--display); font-size: .95rem;
  letter-spacing: -0.01em; color: var(--navy-900); text-transform: none;
  margin-bottom: 2px; font-weight: 600;
}

@media (max-width: 900px) {
  .proof { grid-template-columns: 1fr; }
  .rating-card { position: static; }
}
@media (max-width: 720px) {
  .quotes { grid-template-columns: 1fr; }
}


/* ============================================================
   RTO / RPO recovery timeline — signature diagram for the
   Disaster Recovery page
   ============================================================ */
.rto-rpo {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); padding: clamp(20px, 4vw, 40px);
  margin: 8px 0 30px;
}
.rto-rpo-scroll { overflow-x: auto; }
.rto-rpo svg { width: 100%; min-width: 560px; height: auto; display: block; }
.dr-label {
  font-family: var(--display); font-weight: 700; font-size: 17px;
  fill: var(--text);
}
.dr-label--incident { fill: var(--navy-900); }
.dr-sub {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  fill: var(--muted);
}
.dr-metric {
  font-family: var(--display); font-weight: 800; font-size: 26px;
  letter-spacing: -0.02em;
}
.dr-caption {
  font-family: var(--mono); font-size: 12px; letter-spacing: .03em;
  fill: var(--muted);
}
.rto-rpo-key {
  display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.rto-rpo-key div { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--muted); }
.rto-rpo-key i { width: 22px; height: 6px; border-radius: 3px; display: inline-block; flex: none; }


/* ============================================================
   Grid-item minimum-width safety net.
   By default a CSS grid item's automatic minimum size is based on
   its content's min-content width — a wide descendant (a diagram,
   a form, a long link) can silently inflate the whole track past
   the viewport even when that descendant has its own overflow-x:
   auto. min-width:0 opts every grid item out of that so normal
   text wrapping and internal scrolling work as expected. Found via
   the RTO/RPO diagram exposing it on .detail; applied everywhere
   a grid holds arbitrary content, to prevent the same class of bug
   turning up in any of these elsewhere.
   ============================================================ */
.grid > *, .hero-grid > *, .signup > *, .form-grid > *, .stats > *,
.contact-strip > *, .pre-footer .wrap > *, .footer-grid > *,
.cta-band > *, .market-section > *, .quotes > *, .proof > *,
.steps > *, .hero-facts > * {
  min-width: 0;
}


/* ============================================================
   Repair service — walk-in hours callout and brand badges
   ============================================================ */
.hours-panel {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: center;
  background: var(--navy-900); color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin: 8px 0 30px;
}
.hours-panel-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center;
}
.hours-panel-icon .ico { width: 26px; height: 26px; stroke: var(--brand-on-dark); }
.hours-panel h3 { color: #fff; margin-bottom: .25em; font-size: 1.15rem; }
.hours-panel p { color: var(--muted-dark); margin: 0; font-size: .93rem; }
.hours-panel strong { color: #fff; font-weight: 600; }

.brand-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.2em; }
.brand-badges span {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em;
  color: var(--text); font-weight: 500;
}

@media (max-width: 600px) {
  .hours-panel { grid-template-columns: auto 1fr; }
  .hours-panel > .btn { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
}

/* ============================================================
   Responsive — a ladder from 320px phones up to 4K displays.
   Breakpoints are placed where the layout actually breaks,
   not at device names.
   ============================================================ */

/* ---------- Large desktops and above: use the extra room ---------- */
@media (min-width: 1440px) {
  :root { --wrap: 1320px; --gutter: 40px; }
  body { font-size: 18px; }
}

@media (min-width: 1800px) {
  :root { --wrap: 1440px; }
  .hero { padding-block: 132px 120px; }
}

/* Cap the very largest screens so line length stays readable. */
@media (min-width: 2200px) {
  :root { --wrap: 1520px; }
}

/* ---------- Small desktop / large tablet landscape ---------- */
/* The real webfonts load from a CDN and have slightly different metrics
   to the fallbacks. These rules keep the header comfortable either way. */
.logo { flex: 0 1 auto; min-width: 0; }
.nav { min-width: 0; }

@media (min-width: 1025px) and (max-width: 1439px) {
  /* The tagline nearly doubled in length ("Information Technology
     Solutions Partner" vs the old "Advanced Technology Partner"), so the
     hide-range now extends through 1439px to keep the same safety margin
     against real-webfont metrics this environment cannot test directly. */
  .logo-type small { display: none; }
  .nav > ul > li > a { padding: 12px 9px; font-size: .76rem; }
  .subnav { min-width: 262px; }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  .nav > ul > li > a { padding: 12px 11px; font-size: .78rem; }
  .subnav { min-width: 268px; }
}

@media (max-width: 1140px) {
  /* The header CTA is the first thing to go — the nav needs the room. */
  .header-cta { display: none; }
}

/* ---------- Tablet: collapse the nav before it wraps ---------- */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .nav.is-open { max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav > ul {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  }
  .nav > ul > li > a {
    padding: 15px 6px; font-size: .88rem;
    min-height: 48px; /* comfortable touch target */
  }
  .nav > ul > li.is-current > a::after { display: none; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 0 0 8px 8px; padding: 0 0 0 10px; min-width: 0;
  }
  .subnav a { padding: 12px 14px; min-height: 44px; display: flex; align-items: center; }
  .has-sub > a .caret { display: none; }
  .subnav--grouped { columns: 1; min-width: 0; padding: 4px 0; }
  .subnav-label { padding-top: 12px; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar-group ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
}

/* ---------- Tablet portrait ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .signup { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pre-footer .wrap { grid-template-columns: 1fr; gap: 18px; }
  .split-visual { min-height: 240px; }
  .hero .stack { max-width: 560px; }
}

/* ---------- Large phone / small tablet ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --gutter: 20px; --radius-lg: 18px; }

  .grid-2, .grid-3, .grid-4, .contact-strip, .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .sidebar ul { grid-template-columns: 1fr; }

  .topbar .wrap { justify-content: center; min-height: 0; padding-block: 9px; }
  .topbar-contact { gap: 8px 20px; justify-content: center; }
  .topbar-social { display: none; } /* duplicated in the footer */

  .site-header .wrap { min-height: 68px; }

  .hero-facts { gap: 18px 28px; }
  .hero-facts div { min-width: 88px; }
  .hero-facts div strong { font-size: 1.35rem; }

  .card { padding: 26px 22px 24px; }
  .market { min-height: 178px; padding: 22px; }
  .tile { min-height: 190px; }
  .step { padding: 24px 22px 20px 66px; }
  .step::before { left: 22px; top: 24px; }

  .btn { padding: 14px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ---------- Standard phones ---------- */
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 22px 20px; }

  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  /* Keep the three facts in even columns rather than an orphaned wrap. */
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-facts div { min-width: 0; }
  .hero-facts div span { letter-spacing: .08em; font-size: .62rem; }
  .signup-form { flex-direction: column; }
  .signup-form .btn { justify-content: center; }

  .layer { padding: 15px 17px; }
  .layer-bar { width: 48px; }
  .split-visual { min-height: 200px; padding: 24px; }
}

/* ---------- Small phones (iPhone SE, 320-360px) ---------- */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-type b { font-size: .92rem; }
  .logo-type small { font-size: .48rem; letter-spacing: .09em; }
  .topbar { font-size: .72rem; }
  .hero-facts div { min-width: 0; flex: 1 1 40%; }
  .contact-item { padding: 18px; gap: 12px; }
  .ico--box { width: 34px; height: 34px; padding: 9px; }
}

/* ---------- Very narrow (older Android, 320px) ---------- */
@media (max-width: 340px) {
  .logo-type small { display: none; } /* last resort to keep the header on one line */
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Phone in landscape: don't waste the short viewport ---------- */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding-block: 44px 40px; }
  .page-banner { padding-block: 34px 28px; }
  .section { padding-block: 44px; }
  .nav.is-open { max-height: calc(100vh - 80px); }
}

/* ---------- Pointer-based refinements ---------- */
/* ---------- Touch: grow inline link hit areas ---------- */
@media (pointer: coarse) {
  .topbar-contact a,
  .footer-contact a,
  .contact-item a,
  .pre-footer a,
  .crumbs a,
  .article-body h4 a {
    display: inline-block;
    padding-block: 10px;
  }
  .link-more { padding-block: 10px; }
  .cta-phone a { display: inline-block; padding-block: 10px; }
  .footer-contact li { align-items: center; }
  .footer-contact .ico { margin-top: 0; }
  .site-footer li a { display: inline-block; padding-block: 6px; }
}

@media (hover: none) {
  /* Hover lifts do nothing useful on touch and can leave cards stuck. */
  .card:hover, .article:hover, .market:hover, .tile:hover, .btn:hover {
    transform: none;
  }
}

@media print {
  .topbar, .site-header, .footer-social, .signup, .nav-toggle { display: none; }
  .hero, .page-banner, .section--navy { background: none; color: #000; }
  .hero h1, .page-banner h1, .section--navy h2 { color: #000; }
  body { font-size: 12pt; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .layer { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .dot { animation: none; }
}
