/* ===========================================================
   Hyve AI — homepage stylesheet  (v2 redesign, 2026-09-09)
   Shared across index / capabilities / work / contact.

   Palette: warm off-white paper + ink-navy anchor, one amber
   accent (kept per TRACKER.md — hyve.ae already owns blue, so
   the accent here is deliberately NOT blue). Full rationale in
   TRACKER.md's 2026-09-09 "homepage redesign" entry.

   Progressive enhancement: scroll-reveal animations only apply
   when <html> has the `.js` class (added by site.js). With JS
   off, everything is visible and static.
   =========================================================== */

:root {
  --ink:         #0a1533;   /* near-black navy — headings, nav, footer */
  --navy:        #12388a;   /* primary navy panel */
  --navy-deep:   #0e2d6e;   /* deeper navy — hovers, gradient ends */
  --paper:       #fbfaf7;   /* warm off-white — page background */
  --surface:     #ffffff;   /* cards, form fields */
  --tint:        #eef0f7;   /* pale navy-tint — alternating sections */
  --line:        #e3e6f0;   /* hairlines, borders */
  --text:        #23293c;   /* body copy on light */
  --muted:       #5b6478;   /* secondary copy on light */
  --on-navy:     rgba(255, 255, 255, 0.92);
  --on-navy-dim: rgba(255, 255, 255, 0.60);
  --accent:      #f0a500;   /* amber — the one accent */
  --accent-hi:   #ffb525;   /* amber, lighter — button hover */
  --accent-ink:  #8a5a08;   /* amber for text/links on light (contrast-safe) */
  --accent-050:  #fff6e5;   /* amber wash — icon tiles */
  --accent-100:  #fce2b6;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(10, 21, 51, 0.04), 0 10px 30px rgba(10, 21, 51, 0.06);
  --shadow-lg: 0 24px 60px rgba(10, 21, 51, 0.16);
  --glow:      0 0 0 1px var(--accent), 0 20px 44px rgba(240, 165, 0, 0.16);

  --max:   1160px;
  --nav-h: 64px;

  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:    "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;   /* kill stray h-scroll without creating a scroll
                         container (so position:sticky keeps working) */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
a { color: inherit; }

/* long single words (e.g. "AI-powered") must never force h-scroll on phones */
h1, h2, h3 { overflow-wrap: break-word; }

img, svg { max-width: 100%; display: block; }

/* anchored sections clear the sticky nav */
[id] { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

/* ---------- shared label styles ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
@media (max-width: 560px) {
  .eyebrow { font-size: 0.66rem; letter-spacing: 0.1em; }
}
.kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.85rem;
}
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.65rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover {
  background: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(240, 165, 0, 0.34);
}
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.06); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  margin-top: auto;
}
.arrow-link span { transition: transform 0.15s ease; }
.arrow-link:hover { color: var(--accent-ink); }
.arrow-link:hover span { transform: translateX(3px); }

/* ===========================================================
   NAV  (markup injected by site.js into <header class="nav">)
   =========================================================== */
/* NOTE: no `backdrop-filter` / `filter` / `transform` on .nav — any of
   those would make .nav the containing block for the position:fixed
   mobile drawer inside it, trapping the drawer inside the 64px bar. */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: min-height 0.2s ease;
}
@media (min-width: 861px) {
  .nav.scrolled,
  .nav.scrolled .nav-inner { min-height: 54px; }
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand svg { width: 28px; height: 28px; }
.brand-accent { color: var(--accent); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a:not(.btn) {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  transition: color 0.15s ease;
}
.nav-menu a:not(.btn):hover,
.nav-menu a.active { color: #fff; }
.nav-menu a.active { box-shadow: inset 0 -2px 0 var(--accent); }

.nav-menu .in-menu { display: none; }   /* CTA only shows in the mobile drawer */
.nav .on-desktop { display: inline-flex; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 9px;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle .bars { top: 20px; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav .on-desktop { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: none;                 /* closed — no off-screen box, no h-scroll */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--ink);
    padding: 0.5rem 1.5rem 2.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: nav-menu-in 0.22s ease both;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) {
    font-size: 1.1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .nav-menu a.active { box-shadow: none; color: var(--accent); }
  .nav-menu .in-menu { display: inline-flex; margin-top: 1.5rem; }
}
@keyframes nav-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-menu { animation: none; }
}

/* ===========================================================
   HERO  (home)
   =========================================================== */
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
}
/* amber glow + visible dot grid */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(240, 165, 0, 0.16), transparent);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.4px);
  background-size: 30px 30px;
  mask-image: radial-gradient(120% 90% at 70% 10%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero .eyebrow {
  color: var(--accent);
  background: rgba(240, 165, 0, 0.1);
  border: 1px solid rgba(240, 165, 0, 0.32);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin-bottom: 0.5em;
}
.hero h1 .accent { color: var(--accent); white-space: nowrap; }
.hero .lede {
  color: var(--on-navy-dim);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--on-navy-dim);
  text-transform: uppercase;
}
.hero-stats span { display: inline-flex; align-items: center; gap: 1.4rem; }
.hero-stats span::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-stats span:last-child::after { display: none; }

/* faux product window in the hero */
.hero-visual { position: relative; }
.window {
  background: #0d1a3f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-9deg) rotateX(2deg);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.window-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: block;
}
.window-body { padding: 16px; display: grid; gap: 10px; }
.win-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.win-row .line {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}
.win-row .line.short { width: 45%; margin-top: 6px; background: rgba(255, 255, 255, 0.12); }
.pill {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill.hot  { background: var(--accent); color: var(--ink); }
.pill.warm { background: rgba(240, 165, 0, 0.22); color: var(--accent); }
.pill.cold { background: rgba(255, 255, 255, 0.12); color: var(--on-navy-dim); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero-copy { max-width: 620px; }
  .window { transform: none; max-width: 460px; }
}

/* ===========================================================
   GENERIC PAGE HEADER  (non-home pages)
   =========================================================== */
.page-head {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.75rem, 6vw, 4rem);
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.4px);
  background-size: 30px 30px;
  mask-image: radial-gradient(120% 100% at 80% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(120% 100% at 80% 0%, #000, transparent 70%);
  pointer-events: none;
}
.page-head > .wrap { position: relative; }
.page-head .eyebrow {
  color: var(--accent);
  background: rgba(240, 165, 0, 0.1);
  border: 1px solid rgba(240, 165, 0, 0.32);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.03em; }
.page-head p { color: var(--on-navy-dim); max-width: 620px; font-size: 1.08rem; margin: 0; }

/* ===========================================================
   SECTIONS
   =========================================================== */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--tint); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h2, .section-ink h3 { color: #fff; }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.25rem, 5vw, 3.25rem);
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-ink .section-head p { color: var(--on-navy-dim); }

/* ===========================================================
   GRID HELPERS
   =========================================================== */
.grid { display: grid; gap: 1.25rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* ===========================================================
   FEATURE CARDS  (home "what we build" + capabilities)
   =========================================================== */
.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.feature-num {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-ink);
  opacity: 0.7;
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-050);
  border: 1px solid var(--accent-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.feature p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0; }
.feature ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.feature ul li { margin-bottom: 0.4rem; }

/* ===========================================================
   CAPABILITIES — alternating wide rows
   =========================================================== */
.cap-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
  border-top: 1px solid var(--line);
}
.cap-row:first-child { border-top: none; }
.cap-row .cap-head { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.cap-row .feature-icon { margin-bottom: 1rem; }
.cap-row h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.cap-row .cap-head p { color: var(--muted); margin: 0; }
.cap-list { display: grid; gap: 0.9rem; }
.cap-list .item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
}
.cap-list .item::before {
  content: "";
  flex-shrink: 0;
  width: 7px; height: 7px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 820px) {
  .cap-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .cap-row .cap-head { position: static; }
}

/* ===========================================================
   PRODUCT CARDS  (home showcase)
   =========================================================== */
.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.product:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.product-thumb {
  position: relative;
  height: 152px;
  background: linear-gradient(140deg, var(--navy), var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(110% 90% at 20% 10%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(110% 90% at 20% 10%, #000, transparent 70%);
}
.product-thumb svg { width: 40px; height: 40px; position: relative; }
.product-thumb .wordmark {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.16);
  letter-spacing: -0.01em;
}
.product-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.product-body p { font-size: 0.93rem; color: var(--muted); margin-bottom: 1.1rem; }

/* ===========================================================
   PROCESS STRIP  (home "how we work")
   =========================================================== */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.step .n {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 1.1rem; margin: 0.7rem 0 0.4rem; }
.step p { margin: 0; color: var(--on-navy-dim); font-size: 0.93rem; }
@media (max-width: 720px) { .process { grid-template-columns: 1fr; } }

/* ===========================================================
   WORK — case studies
   =========================================================== */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.case:first-of-type { border-top: none; }
.case:nth-child(even) .case-visual { order: 2; }

.case-content { display: flex; flex-direction: column; }
.case-content h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.case-lead { color: var(--text); font-size: 1.02rem; }
.case-content h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.5rem 0 0.6rem;
}
.case-content ul {
  margin: 0 0 1.4rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.case-content ul li { margin-bottom: 0.4rem; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
}
.facts div {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.facts strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
}
.facts span { font-size: 0.78rem; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.5rem; }
.tags span {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--muted);
}

/* faux browser window for each case */
.browser {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c7cddd; display: block; }
.browser-bar .addr {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser-body { padding: 16px; display: grid; gap: 9px; background: var(--paper); }
.b-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.b-row.hi { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.b-row .l { height: 7px; border-radius: 4px; background: #d5d9e6; }
.b-row .l.short { width: 50%; margin-top: 6px; background: #e6e9f1; }

@media (max-width: 820px) {
  .case { grid-template-columns: 1fr; gap: 1.75rem; }
  .case:nth-child(even) .case-visual { order: 0; }
}

/* ===========================================================
   CTA BAND  (warm — deliberately breaks the navy → footer run)
   =========================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--accent-050), #fdecc8);
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: #7a5a20; max-width: 480px; margin: 0 auto 1.75rem; }

/* ===========================================================
   CONTACT
   =========================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info .item { display: flex; gap: 0.9rem; margin-bottom: 1.6rem; }
.contact-info .item .icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--accent-050);
  border: 1px solid var(--accent-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info .item .icon svg { width: 19px; height: 19px; }
.contact-info .item h4 { margin: 0 0 0.15rem; font-size: 0.98rem; }
.contact-info .item p { margin: 0; font-size: 0.93rem; color: var(--muted); }
.contact-info .item a { color: var(--accent-ink); text-decoration: none; }
.contact-info .item a:hover { text-decoration: underline; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 16px;               /* 16px stops iOS zoom-on-focus */
  color: var(--text);
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.18);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #d24d4d;
}
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; }

#form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
}
#form-status[hidden] { display: none; }
#form-status.ok { background: #e9f6ec; color: #1f7a3d; border: 1px solid #bfe3c8; }
#form-status.err { background: #fdeaea; color: #b23636; border: 1px solid #f2c5c5; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: var(--ink);
  color: var(--on-navy-dim);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 2rem;
  font-size: 0.9rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.footer-brand svg { width: 24px; height: 24px; }
.footer-col h4 {
  color: #fff;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.footer-col p { margin: 0.75rem 0 0; max-width: 34ch; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.2rem; }
.footer-col a {
  color: var(--on-navy-dim);
  text-decoration: none;
  display: inline-block;
  padding: 0.4rem 0;         /* comfortable tap target */
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.5rem;
}
.footer-bottom a { color: var(--accent); text-decoration: none; font-weight: 600; }
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

/* ===========================================================
   SCROLL REVEAL  (only active when JS is on)
   =========================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.06s; }
.js .reveal.d2 { transition-delay: 0.12s; }
.js .reveal.d3 { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature, .product, .arrow-link span { transition: none; }
  .window { transform: none; }
}
