/* Alpha Bravo Products — Single-page marketing site stylesheet
 * Combines design tokens (colors_and_type.css) + marketing-site UI kit (kit.css)
 * with a responsive layer, mobile nav, hero photo, lightbox, and form status.
 *
 * Fonts loaded via Google Fonts CDN — see <link> in index.html:
 *   <link rel="preconnect" href="https://fonts.googleapis.com">
 *   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 *   <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
 */

/* === Design tokens === */
:root {
  /* ── Brand palette ─────────────────────────────────────────────── */
  --ink:        #0A1B3D;   /* deep navy — primary ground, headlines */
  --steel:     #1E3A6B;   /* mid blue — body text on light */
  --cyan:      #109BD9;   /* logo "A" blue — primary CTA, links */
  --cyan-dark: #0B7BB0;   /* hover state for cyan */
  --lime:      #92C249;   /* logo "B" green — accents, success */
  --lime-dark: #74A032;   /* hover state for lime */
  --rust:      #C2410C;   /* warm accent — sparingly */

  /* ── Surfaces ──────────────────────────────────────────────────── */
  --bone:      #F4F1EA;   /* off-white, page background */
  --paper:     #FFFFFF;   /* card fill */
  --mist:      #E6ECF2;   /* cool surface */
  --rule:      rgba(10, 27, 61, 0.12);   /* default border */
  --rule-strong: rgba(10, 27, 61, 0.32);

  /* ── Text on Bone/Paper ────────────────────────────────────────── */
  --fg-1:      var(--ink);
  --fg-2:      var(--steel);
  --fg-3:      rgba(10, 27, 61, 0.64);   /* secondary copy */
  --fg-4:      rgba(10, 27, 61, 0.44);   /* metadata, captions */
  --fg-on-ink: var(--bone);
  --fg-on-ink-2: rgba(244, 241, 234, 0.72);

  /* ── Semantic ─────────────────────────────────────────────────── */
  --link:      var(--cyan);
  --link-hover: var(--cyan-dark);
  --success:   var(--lime-dark);
  --danger:    #B91C1C;
  --warning:   var(--rust);

  /* ── Type families ────────────────────────────────────────────── */
  --font-display: "Space Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --font-body:    "Manrope", -apple-system, "Helvetica Neue", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* ── Type scale (rem assumes 16px root) ──────────────────────── */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   20px;
  --fs-xl:   24px;
  --fs-2xl:  32px;
  --fs-3xl:  40px;
  --fs-4xl:  56px;
  --fs-5xl:  72px;
  --fs-6xl:  96px;

  --lh-tight:  1.05;
  --lh-snug:   1.2;
  --lh-normal: 1.5;
  --lh-loose:  1.7;

  --tracking-tight:  -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-caps:    0.12em;

  /* ── Spacing (8px base) ───────────────────────────────────────── */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* ── Radii ────────────────────────────────────────────────────── */
  --radius-0: 0px;     /* default — buttons, badges, frames */
  --radius-1: 2px;     /* inputs */
  --radius-2: 8px;     /* cards */
  --radius-pill: 999px;

  /* ── Shadows ──────────────────────────────────────────────────── */
  --shadow-1: 0 1px 2px rgba(10,27,61,0.06), 0 4px 12px rgba(10,27,61,0.08);
  --shadow-2: 0 4px 12px rgba(10,27,61,0.10), 0 12px 32px rgba(10,27,61,0.12);

  /* ── Motion ───────────────────────────────────────────────────── */
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 100ms;
  --dur-base: 150ms;
  --dur-slow: 240ms;

  /* ── Layout ───────────────────────────────────────────────────── */
  --content-max:  1200px;
  --display-max:  1440px;
  --nav-height:    72px;

  /* ── Motifs ───────────────────────────────────────────────────── */
  --blueprint-grid: repeating-linear-gradient(
      to right, rgba(10,27,61,0.05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(
      to bottom, rgba(10,27,61,0.05) 0 1px, transparent 1px 24px);
}

/* === Element baselines === */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

html, body {
  background: var(--bone);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

body { margin: 0; }

img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  line-height: var(--lh-tight);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-5xl); font-weight: 700; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); font-weight: 600; }
h5 { font-size: var(--fs-md); font-weight: 600; }
h6 { font-size: var(--fs-sm); font-weight: 600;
     text-transform: uppercase; letter-spacing: var(--tracking-caps); }

p  { margin: 0 0 var(--space-4); color: var(--fg-2); line-height: var(--lh-loose); text-wrap: pretty; }

a  { color: var(--link); text-decoration: none; transition: color var(--dur-fast); }
a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }

code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.92em; }

/* === Utility classes === */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--cyan-dark);
}

.mono { font-family: var(--font-mono); }

.dimension-rule {
  position: relative;
  height: 1px;
  background: var(--cyan);
}
.dimension-rule::before, .dimension-rule::after {
  content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--cyan);
}
.dimension-rule::before { left: 0; }
.dimension-rule::after  { right: 0; }

.blueprint-bg { background-image: var(--blueprint-grid); background-color: var(--bone); }

.frame {
  border: 1px solid var(--ink);
  padding: 4px;
  background: var(--paper);
}
.frame > * { outline: 1px solid var(--rule); outline-offset: -1px; }

/* === Eyebrow (ab-) === */
.ab-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-dark);
}
.ab-eyebrow[data-color="lime"] { color: var(--lime-dark); }
.ab-eyebrow[data-color="ink"]  { color: var(--ink); }
.ab-eyebrow[data-color="bone"] { color: rgba(244,241,234,0.72); }

.ab-mono { font-family: var(--font-mono); }
.ab-fg-4 { color: var(--fg-4); }

/* === Buttons === */
.ab-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 14px;
  border: 1px solid transparent; border-radius: 0;
  padding: 14px 22px; cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-fast), transform var(--dur-fast);
  text-decoration: none;
}
.ab-btn-sm { padding: 9px 14px; font-size: 12px; }
.ab-btn-primary    { background: var(--cyan); color: white; }
.ab-btn-primary:hover { background: var(--cyan-dark); color: white; }
.ab-btn-primary:active { transform: translateY(1px); }
.ab-btn-secondary  { background: var(--ink); color: var(--bone); }
.ab-btn-secondary:hover { background: #051433; }
.ab-btn-lime       { background: var(--lime); color: var(--ink); }
.ab-btn-lime:hover { background: var(--lime-dark); color: var(--ink); }
.ab-btn-ghost      { background: transparent; color: var(--ink); border-color: var(--ink); }
.ab-btn-ghost:hover{ background: var(--ink); color: var(--bone); }
.ab-btn-link       { background: transparent; color: var(--cyan-dark); padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.ab-btn-arrow { font-family: var(--font-mono); }

/* === Nav === */
.ab-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
}
.ab-nav-inner {
  max-width: var(--display-max);
  margin: 0 auto;
  padding: 16px 32px;
  height: var(--nav-height);
  display: flex; align-items: center; gap: 32px;
}
.ab-nav-logo img { height: 38px; }
.ab-nav-links { display: flex; gap: 28px; flex: 1; }
.ab-nav-links a {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink); text-decoration: none;
  padding: 6px 0;
  transition: color var(--dur-fast);
}
.ab-nav-links a:hover { color: var(--cyan-dark); }
.ab-nav-links a.is-active { color: var(--cyan-dark); border-bottom: 2px solid var(--cyan); }
.ab-nav-cta { display: flex; align-items: center; gap: 16px; }
.ab-nav-phone { font-family: var(--font-mono); font-size: 12px; color: var(--steel); letter-spacing: 0.04em; }

/* === Nav mobile toggle === */
.ab-nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.ab-nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}

/* === Section === */
.ab-section { padding: 56px 24px; background: var(--bone); }
.ab-section.is-full { padding-left: 0; padding-right: 0; }
.ab-section.is-dark { background: var(--ink); color: var(--bone); }
.ab-section.is-dark h2, .ab-section.is-dark h3 { color: var(--bone); }
.ab-section.is-dark .ab-eyebrow { color: var(--cyan); }
.ab-section-inner { max-width: var(--content-max); margin: 0 auto; }
.ab-section-head { margin-bottom: 56px; display: flex; flex-direction: column; gap: 12px; }
.ab-section-title { font-size: 48px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; max-width: 22ch; }
.ab-section-rule { height: 1px; background: var(--ink); opacity: 0.25; width: 100%; margin-top: 16px; }
.ab-section.is-dark .ab-section-rule { background: var(--bone); opacity: 0.2; }
.ab-section.is-dark p { color: var(--fg-on-ink-2); }
.ab-section.is-dark .ab-split-body p { color: var(--fg-on-ink-2); }
.ab-section.is-dark .ab-stat-num { color: var(--bone); }
.ab-section.is-dark .ab-stat-lab { color: var(--fg-on-ink-2); }
.ab-section.is-dark .ab-stats { border-color: rgba(244, 241, 234, 0.2); }
.ab-section.is-dark .ab-stat { border-right-color: rgba(244, 241, 234, 0.2); }
.ab-section.is-dark .ab-stat:last-child { border-right: none; }

/* === Hero === */
.ab-hero {
  background: var(--bone);
  padding: 0 32px;
  background-image:
    repeating-linear-gradient(to right, rgba(10,27,61,0.04) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, rgba(10,27,61,0.04) 0 1px, transparent 1px 24px);
  border-bottom: 1px solid var(--rule);
}
.ab-hero-inner {
  max-width: var(--display-max);
  margin: 0 auto;
  padding: 88px 0 96px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px;
  align-items: center;
}
.ab-hero-head { display: flex; flex-direction: column; gap: 24px; }
.ab-hero-head h1 {
  font-size: 80px; font-weight: 700; letter-spacing: -0.025em; line-height: 0.98;
  color: var(--ink);
  text-wrap: balance;
  max-width: 12ch;
}
.ab-hero-head h1 em {
  font-style: normal;
  color: var(--cyan);
}
.ab-hero-sub { font-size: 20px; line-height: 1.55; color: var(--fg-2); max-width: 50ch; }
.ab-hero-ctas { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.ab-hero-meta {
  display: flex; gap: 24px; font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3); letter-spacing: 0.06em; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.ab-hero-art {
  position: relative;
}

/* === Hero real product photo (inside ab-sheet) === */
.ab-hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* === Sheet (blueprint) frames === */
.ab-sheet {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 6px;
}
.ab-sheet-inner {
  position: relative;
  outline: 1px solid var(--rule);
  outline-offset: -1px;
  padding: 56px 32px 40px;
  background:
    repeating-linear-gradient(to right, rgba(10,27,61,0.05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, rgba(10,27,61,0.05) 0 1px, transparent 1px 24px),
    var(--bone);
}
.ab-sheet-callout {
  position: absolute; top: 16px; left: 20px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink);
  letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 10px;
}
.ab-sheet-callout .ab-sheet-pill {
  background: var(--lime); color: var(--ink); padding: 2px 8px;
}
.ab-sheet-tag {
  position: absolute; bottom: 14px; right: 18px;
  font-family: var(--font-mono); font-size: 10px; color: var(--fg-4);
  letter-spacing: 0.08em;
}

/* === Blueprint product placeholder === */
.ab-bp {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  align-items: center; justify-content: center;
}
.ab-bp-product {
  width: 100%; max-width: 360px; height: 180px;
  background: var(--ink); color: var(--bone);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 36px;
  letter-spacing: 0.02em;
  position: relative;
}
.ab-bp-product::before {
  content: ""; position: absolute; inset: 8px;
  outline: 1px dashed rgba(244,241,234,0.5);
}
.ab-bp-lime .ab-bp-product { background: var(--lime); color: var(--ink); }
.ab-bp-dim { width: 100%; max-width: 360px; }

/* === Dimension rule === */
.ab-dim {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--dim-color, var(--cyan));
}
.ab-dim-line { flex: 1; height: 1px; background: var(--dim-color, var(--cyan)); }
.ab-dim-tick { width: 1px; height: 10px; background: var(--dim-color, var(--cyan)); }
.ab-dim-label { white-space: nowrap; padding: 0 4px; }

/* === Service card === */
.ab-svc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.ab-svc {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--cyan);
  padding: 24px 24px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.ab-svc:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); }
.ab-svc-lime { border-top-color: var(--lime); }
.ab-svc-num { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); letter-spacing: 0.08em; }
.ab-svc-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--mist); }
.ab-svc-lime .ab-svc-icon { background: color-mix(in srgb, var(--lime) 18%, var(--bone)); }
.ab-svc-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.15; margin: 0; }
.ab-svc-body { font-size: 14px; line-height: 1.55; color: var(--fg-3); margin: 0; }
.ab-svc-cta { font-family: var(--font-display); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan-dark); margin-top: auto; }
.ab-svc-lime .ab-svc-cta { color: var(--lime-dark); }

/* === Product card === */
.ab-pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ab-pc {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.ab-pc:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); }
.ab-pc-accent { height: 4px; background: var(--cyan); }
.ab-pc-accent-lime { background: var(--lime); }
.ab-pc-photo {
  height: 180px; position: relative;
  background:
    linear-gradient(135deg, transparent 70%, rgba(255,255,255,0.5) 100%),
    repeating-linear-gradient(to right, rgba(10,27,61,0.06) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, rgba(10,27,61,0.06) 0 1px, transparent 1px 24px),
    var(--bone);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
/* Real photo override — fills .ab-pc-photo, blueprint stays as fallback behind it */
.ab-pc-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.ab-pc-pin {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  padding: 3px 8px; background: var(--ink); color: var(--bone);
  z-index: 2;
}
.ab-pc-dim {
  position: absolute; bottom: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 11px; color: var(--cyan);
  background: var(--bone); padding: 3px 8px; border: 1px solid var(--cyan);
  z-index: 2;
}
.ab-pc-body { padding: 16px 18px 4px; display: flex; flex-direction: column; gap: 6px; }
.ab-pc-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); margin: 0; }
.ab-pc-body p { font-size: 11px; color: var(--fg-4); letter-spacing: 0.04em; margin: 0; }
.ab-pc-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 16px; border-top: 1px solid var(--rule); margin-top: 12px; }
.ab-pc-price { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.ab-pc-cta { font-family: var(--font-display); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan-dark); }

/* === Stats === */
.ab-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ab-stat { padding: 28px 24px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.ab-stat:last-child { border-right: none; }
.ab-stat-num { font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.ab-stat-lab { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase; }

/* === Form === */
.ab-form { display: flex; flex-direction: column; gap: 18px; }
.ab-form h3 { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: var(--ink); margin: 0; letter-spacing: -0.02em; }
.ab-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-field { display: flex; flex-direction: column; gap: 6px; grid-column: span 1; }
.ab-field:nth-child(5) { grid-column: span 2; }
.ab-form.is-compact .ab-field { grid-column: span 2; }
.ab-field-label {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink);
}
.ab-field-label.is-required::after { content: " *"; color: var(--rust); }
.ab-field-help { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); letter-spacing: 0.02em; }
.ab-input {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 12px 14px; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 2px;
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  width: 100%;
}
.ab-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(16,155,217,0.25); }
.ab-form-success { padding: 24px; background: color-mix(in srgb, var(--lime) 14%, var(--bone)); border-left: 4px solid var(--lime); }
.ab-form-success h3 { font-size: 24px; margin: 8px 0 4px; }

/* === Form status (live feedback under submit) === */
.ab-form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--success);
  margin: 0;
  min-height: 1.2em;
  letter-spacing: 0.04em;
}
.ab-form-status.is-error { color: var(--rust); }

/* === Footer === */
.ab-footer { background: var(--ink); color: var(--fg-on-ink); }
.ab-footer-inner {
  max-width: var(--display-max);
  margin: 0 auto;
  padding: 64px 32px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1.4fr 1.2fr; gap: 48px;
}
.ab-footer-mark { display: flex; align-items: center; gap: 12px; }
.ab-footer-ab {
  font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; padding: 8px 12px;
  border: 1.5px solid var(--bone);
}
.ab-footer-ab .cy { color: var(--cyan); }
.ab-footer-ab .li { color: var(--lime); }
.ab-footer-word { font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone); }
.ab-footer-brand p { color: var(--fg-on-ink-2); margin-top: 16px; font-size: 14px; line-height: 1.55; max-width: 38ch; }
.ab-footer-col ul { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: 14px; }
.ab-footer-col a { color: var(--fg-on-ink-2); text-decoration: none; }
.ab-footer-col a:hover { color: var(--bone); }
.ab-footer-col .ab-fg-4 { color: rgba(244,241,234,0.4); }
.ab-footer-base {
  max-width: var(--display-max); margin: 0 auto;
  border-top: 1px solid rgba(244,241,234,0.12);
  padding: 20px 32px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: rgba(244,241,234,0.5); letter-spacing: 0.04em;
}

/* === About / split row === */
.ab-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ab-split-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 1px solid var(--rule);
}
.ab-split-body { display: flex; flex-direction: column; gap: 20px; }
.ab-split-body h2 { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); max-width: 18ch; }
.ab-split-body p { font-size: 17px; line-height: 1.6; color: var(--fg-2); }

/* === Contact row === */
.ab-contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; }
.ab-contact-side { display: flex; flex-direction: column; gap: 18px; }
.ab-contact-card {
  background: var(--bone); border: 1px solid var(--rule); padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.ab-contact-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan-dark); margin: 0; }
.ab-contact-card .v { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 600; }
.ab-contact-card.lime h4 { color: var(--lime-dark); }
.is-dark .ab-contact-card { background: rgba(244,241,234,0.04); border-color: rgba(244,241,234,0.12); }
.is-dark .ab-contact-card .v { color: var(--bone); }

/* === Gallery grid (compact square thumbnails, click to expand in lightbox) === */
.ab-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.ab-gallery-item {
  padding: 0;
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  cursor: zoom-in;
  overflow: hidden;
  display: block;
  width: 100%;
  position: relative;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-fast);
}
.ab-gallery-item:hover { border-color: var(--cyan); transform: translateY(-1px); }
.ab-gallery-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ab-gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.ab-gallery-item:hover img { transform: scale(1.04); }

/* === Lightbox (image gallery) === */
.ab-lightbox {
  position: fixed; inset: 0;
  background: rgba(10,27,61,0.92);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.ab-lightbox[hidden] { display: none; }
.ab-lightbox-img {
  max-width: 90vw; max-height: 90vh;
  border: 1px solid var(--rule-strong);
}
.ab-lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: transparent; border: 0;
  color: var(--bone);
  font-size: 32px; line-height: 1;
  cursor: pointer;
  padding: 4px 12px;
  font-family: var(--font-mono);
}

/* === Responsive: tablet (<= 960px) === */
@media (max-width: 960px) {
  .ab-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 0 72px;
  }
  .ab-hero-head h1 {
    font-size: clamp(2.5rem, 8vw, 64px);
    max-width: none;
  }

  .ab-svc-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-pc-grid  { grid-template-columns: repeat(2, 1fr); }

  /* Stats rebuilt as 2x2: remove right border on every 2nd cell,
   * add bottom border on first-row cells (1 and 2). */
  .ab-stats { grid-template-columns: repeat(2, 1fr); }
  .ab-stat { border-right: 1px solid var(--rule); border-bottom: none; }
  .ab-stat:nth-child(2n) { border-right: none; }
  .ab-stat:nth-child(1),
  .ab-stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .ab-stat:last-child { border-right: none; }

  .ab-split { grid-template-columns: 1fr; gap: 40px; }
  .ab-split-photo { order: -1; }

  .ab-contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .ab-footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* === Responsive: mobile nav threshold (<= 768px) === */
@media (max-width: 768px) {
  .ab-nav-toggle { display: inline-flex; }
  .ab-nav-links { display: none; }

  .ab-nav.is-open .ab-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--rule);
    padding: 20px 32px;
  }
}

/* === Responsive: small phones (<= 600px) === */
@media (max-width: 600px) {
  .ab-nav-inner {
    flex-wrap: wrap;
    padding: 12px 20px;
    gap: 16px;
  }

  .ab-section { padding: 40px 16px; }

  .ab-hero { padding: 0 20px; }
  .ab-hero-head h1 {
    font-size: clamp(2rem, 9vw, 48px);
  }
  .ab-hero-sub { font-size: 17px; }
  .ab-hero-ctas { flex-wrap: wrap; }

  .ab-svc-grid { grid-template-columns: 1fr; }
  .ab-pc-grid  { grid-template-columns: 1fr; }

  .ab-stats { grid-template-columns: 1fr; }
  .ab-stat { border-right: none; border-bottom: 1px solid var(--rule); }
  .ab-stat:nth-child(2n) { border-right: none; }
  .ab-stat:nth-child(1),
  .ab-stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .ab-stat:last-child { border-bottom: none; border-right: none; }

  .ab-section-title { font-size: 36px; }
  .ab-split-body h2 { font-size: 32px; }

  .ab-form-grid { grid-template-columns: 1fr; }
  .ab-field:nth-child(5) { grid-column: span 1; }

  .ab-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 20px 32px;
  }
  .ab-footer-base {
    flex-direction: column;
    gap: 8px;
    padding: 20px;
  }

  .ab-lightbox { padding: 16px; }
  .ab-lightbox-close { top: 12px; right: 16px; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    transition: none !important;
    animation: none !important;
  }
}
