/* ============================================================
   SUNNYTECH — design system
   Dark engineering aesthetic: near-black field, hairline
   borders, mono technical labels, one warm signal accent.
   ============================================================ */

/* --- Primitives ------------------------------------------- */
:root {
  --bg: #0a0b0d;
  --surface: #121316;
  --surface-2: #17191d;
  --border: #262a31;
  --border-strong: #3a404a;

  --text: #fbfbfb;
  --muted: #b8bcc4;
  --faint: #8a919c;          /* small labels — ≥4.5:1 on --bg */
  --decor: #69707a;          /* decorative use only */

  --signal: #ff9e40;
  --signal-soft: rgba(255, 158, 64, 0.14);
  --signal-glow: rgba(255, 158, 64, 0.36);

  --font-body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-48: clamp(2.25rem, 4.5vw, 3rem);
  --fs-64: clamp(2.75rem, 6vw, 4.25rem);
  --fs-80: clamp(3rem, 8vw, 5rem);

  --ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);

  --r-sm: 4px;
  --r-md: 10px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 { font-size: var(--fs-80); font-weight: 700; }
h2 { font-size: var(--fs-64); }
h3 { font-size: var(--fs-24); line-height: 1.2; }

h1 em {
  font-style: normal;
  color: var(--signal);
}

a { color: inherit; }

::selection { background: var(--signal); color: #0a0b0d; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--signal);
  color: #0a0b0d;
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease-standard);
}
.skip-link:focus { top: 1rem; }

/* --- Reveal system ---------------------------------------- */
/* Only hide reveal content when JS is running (html.js is set by an inline
   script in <head>). Without JS, everything stays visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.56s var(--ease-reveal),
    transform 0.56s var(--ease-reveal);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* --- Header ------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease-standard), border-color 0.25s var(--ease-standard);
}
.site-header[data-scrolled] {
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.wordmark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-16);
  letter-spacing: 0.14em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.wordmark-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal-glow);
  flex: none;
}

.main-nav {
  display: none;
  gap: 1.6rem;
  margin-left: auto;
}
.main-nav a {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-standard);
}
.main-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
}
.main-nav + .header-actions { margin-left: 0; }

.header-phone {
  display: none;
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-standard);
}
.header-phone:hover { color: var(--signal); }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-standard), box-shadow 0.25s var(--ease-standard),
              background 0.2s var(--ease-standard), border-color 0.2s var(--ease-standard), color 0.2s;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease-standard); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--signal);
  color: #14100a;
  animation: cta-breathe 3.4s ease-in-out infinite;
}
.btn--primary:hover { box-shadow: 0 0 0 5px var(--signal-soft), 0 0 28px var(--signal-glow); }

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
  animation: none;
}
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }

.btn--sm { padding: 0.55rem 1.05rem; font-size: var(--fs-12); }
.btn--full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.55; cursor: wait; }

@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 158, 64, 0); }
  50% { box-shadow: 0 0 0 6px rgba(255, 158, 64, 0.18); }
}

/* --- Mobile nav ------------------------------------------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease-standard), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 11, 13, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  gap: 2.5rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-nav a {
  font-size: var(--fs-32);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.25s var(--ease-standard);
}
.mobile-nav a:hover, .mobile-nav a:focus-visible { color: var(--signal); padding-left: 0.5rem; }
.mobile-nav-phone {
  font-family: var(--font-mono);
  color: var(--muted);
  text-decoration: none;
  font-size: var(--fs-16);
}
.mobile-nav-phone:hover { color: var(--signal); }

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(8rem, 16vh, 11rem) var(--gutter) clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 80% at 30% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 30% 20%, #000 30%, transparent 75%);
  animation: grid-pan 38s linear infinite;
}
@keyframes grid-pan { to { background-position: 64px 64px; } }

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1.4rem;
}
.kicker::before { content: "// "; color: var(--decor); }

.hero-sub {
  color: var(--muted);
  font-size: var(--fs-18);
  max-width: 34rem;
  margin-top: 1.6rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}
.hero-stats dt {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.35rem;
}
.hero-stats dd {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-32);
  line-height: 1;
}
.hero-stats dd span { color: var(--signal); }

.hero-visual { position: relative; }
.hero-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  animation: float-y 7s ease-in-out infinite;
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  border-radius: inherit;
  pointer-events: none;
}
.hero-panel img { aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  color: var(--text);
  background: rgba(10, 11, 13, 0.78);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 0.5rem 0.95rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-chip--a { top: 1rem; left: -0.6rem; color: var(--signal); border-color: var(--signal); }
.hero-chip--b { bottom: 1.1rem; right: -0.6rem; }

/* --- Marquee ---------------------------------------------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1rem 0;
  background: var(--surface);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee-track span::after { content: "✦"; color: var(--signal); font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Sections --------------------------------------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vh, 7.5rem) var(--gutter);
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.section-marker {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1.2rem;
}
.section-marker::before { content: ""; }
.section-lede { color: var(--muted); font-size: var(--fs-18); margin-top: 1.4rem; max-width: 40rem; }

/* --- Capability grid -------------------------------------- */
@property --bd-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.cap-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.cap-card {
  position: relative;
  background: var(--surface);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-decoration: none;
  transition: background 0.25s var(--ease-standard);
}
.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--bd-angle), transparent 0%, var(--signal) 12%, transparent 26%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease-standard);
  pointer-events: none;
}
.cap-card:hover { background: var(--surface-2); }
.cap-card:hover::before { opacity: 1; animation: bd-rotate 7s linear infinite; }
@keyframes bd-rotate { to { --bd-angle: 360deg; } }

.cap-index {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--signal);
  letter-spacing: 0.14em;
}
.cap-card h3 { font-size: var(--fs-24); }
.cap-card > p:not(.cap-index):not(.cap-tags):not(.cap-cta-link) { color: var(--muted); }
.cap-tags {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--faint);
  letter-spacing: 0.06em;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.cap-card--cta { background: linear-gradient(140deg, var(--surface) 0%, rgba(255, 158, 64, 0.07) 100%); }
.cap-cta-link {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.9rem;
}
.cap-cta-link svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease-standard); }
.cap-card--cta:hover .cap-cta-link svg { transform: translateX(4px); }

/* --- Split sections --------------------------------------- */
.section--split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split-copy > p:not(.section-marker) { color: var(--muted); margin-top: 1.4rem; }
.split-copy h2 { margin-top: 1.2rem; }
.section-marker + h2 { margin-top: 0; }

.framed {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.framed img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.media-caption {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-top: 0.8rem;
}
.media-caption::before { content: "▸ "; color: var(--signal); }

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
}
.feature-list li {
  padding: 1.1rem 0 1.1rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  position: relative;
}
.feature-list li:last-child { border-bottom: 1px solid var(--border); }
.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--signal);
  font-family: var(--font-mono);
}
.feature-list strong { color: var(--text); font-weight: 600; }

/* --- Process ---------------------------------------------- */
.process-steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  counter-reset: step;
}
.process-steps li {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background 0.25s var(--ease-standard);
}
.process-steps li:hover { background: var(--surface-2); }
.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-24);
  color: var(--signal);
}
.process-steps h3 { font-size: var(--fs-18); letter-spacing: 0; }
.process-steps li > p:last-child { color: var(--muted); font-size: var(--fs-14); }

.scale-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.2rem;
}
.scale-chip {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 0.55rem 1.05rem;
  background: var(--surface);
}

/* --- Spec table ------------------------------------------- */
.spec-table {
  margin-top: 2.2rem;
  border-top: 1px solid var(--border);
}
.spec-table > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.spec-table dt {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}
.spec-table dd { color: var(--muted); font-size: var(--fs-14); }

/* --- Timeline --------------------------------------------- */
.timeline {
  list-style: none;
  padding: 0;
  margin-top: 2.4rem;
  border-top: 1px solid var(--border);
}
.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--fs-14);
  align-items: baseline;
}
.timeline span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  color: var(--signal);
}

/* --- Contact ---------------------------------------------- */
.section--contact {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(255, 158, 64, 0.06), transparent 70%),
    var(--bg);
  max-width: none;
}
.contact-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.contact-copy > p:not(.section-marker) { color: var(--muted); margin-top: 1.4rem; max-width: 30rem; }
.contact-copy h2 { margin-top: 1.2rem; }
.contact-copy .section-marker + h2 { margin-top: 0; }

.contact-card {
  margin-top: 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.6rem;
  background: var(--surface);
  max-width: 24rem;
}
.contact-card-label {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact-phone {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-32);
  color: var(--text);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.2s var(--ease-standard);
}
.contact-phone:hover { color: var(--signal); }
.contact-card-note { color: var(--muted); font-size: var(--fs-14); margin-top: 0.5rem; }

.quote-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.field-row { display: grid; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.field label span { color: var(--signal); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
  width: 100%;
  transition: border-color 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}
.field [aria-invalid="true"] { border-color: #d85c46; }
.field-error { color: #e8836f; font-size: var(--fs-14); }

.form-status { font-size: var(--fs-14); min-height: 1.4em; }
.form-status[data-state="error"] { color: #e8836f; }
.form-status[data-state="success"] {
  color: var(--signal);
  font-family: var(--font-mono);
  padding: 0.8rem 1rem;
  border: 1px solid var(--signal);
  border-radius: var(--r-sm);
  background: var(--signal-soft);
}

/* --- Footer ------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem var(--gutter) 2rem;
  background: var(--surface);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2.5rem;
}
.footer-tag { color: var(--muted); font-size: var(--fs-14); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-left: auto; }
.footer-nav a {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--signal); }
.footer-phone {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.footer-phone:hover { color: var(--signal); }
.footer-legal {
  max-width: var(--maxw);
  margin: 2.2rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--faint);
}

/* --- Responsive ------------------------------------------- */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-phone { display: inline; }
  .nav-toggle { display: none; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
  .section--split { grid-template-columns: 1fr 1fr; }
  .section--reverse .split-media { order: 2; }
  .section--reverse .split-copy { order: 1; }
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(5, 1fr); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
}

@media (max-width: 899px) {
  .header-actions .btn { display: none; }
}

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

/* --- Brand logo ------------------------------------------- */
.wordmark img {
  height: 36px;
  width: auto;
  display: block;
}
.site-footer .wordmark img { height: 30px; }

/* --- History link (about) ---------------------------------- */
.history-link { margin-top: 1.6rem; }
.history-link a {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--signal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.history-link svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease-standard); }
.history-link a:hover svg { transform: translateX(4px); }

/* --- Contact address --------------------------------------- */
.contact-address {
  font-style: normal;
  color: var(--text);
  font-size: var(--fs-16);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.footer-contact { text-align: right; }
.footer-address {
  color: var(--muted);
  font-size: var(--fs-12);
  font-family: var(--font-mono);
  line-height: 1.6;
  margin-top: 0.4rem;
}

/* --- AI spotlight ------------------------------------------ */
.spotlight {
  margin-top: clamp(3rem, 8vh, 5rem);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(255, 158, 64, 0.07), transparent 70%),
    var(--surface);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.spotlight h3 { font-size: var(--fs-32); margin-top: 1rem; }
.spotlight-copy > p:not(.section-marker) { color: var(--muted); margin-top: 1.2rem; }
.spotlight .scale-strip { margin-top: 1.8rem; }

.spotlight-media { position: relative; }
.spotlight-media .framed img { aspect-ratio: auto; }

/* --- History page ------------------------------------------ */
.hero--page { padding-bottom: clamp(2.5rem, 6vh, 4rem); }

.history-section { padding-top: clamp(2rem, 5vh, 3rem); }

.history-timeline {
  list-style: none;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vh, 4rem);
}
.history-timeline::before {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--border-strong);
}

.h-entry {
  position: relative;
  padding-left: 2.2rem;
  display: grid;
  gap: 1.4rem;
}
.h-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--signal);
  box-shadow: 0 0 10px var(--signal-glow);
}

.h-year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-32);
  color: var(--signal);
  line-height: 1;
}
.h-body h3 { font-size: var(--fs-24); margin-bottom: 0.6rem; }
.h-body p { color: var(--muted); max-width: 42rem; }
.h-address {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  color: var(--signal) !important;
  margin-top: 0.9rem;
}

.h-photo {
  background: #f5f4ef;
  border-radius: var(--r-sm);
  padding: 0.9rem;
  border: 1px solid var(--border-strong);
  max-width: 320px;
}
.h-photo img { width: 100%; height: auto; }

.h-entry--current {
  border: 1px solid var(--signal);
  border-radius: var(--r-md);
  padding: 1.75rem 1.75rem 1.75rem 2.6rem;
  margin-left: -0.4rem;
  background: linear-gradient(140deg, var(--surface) 0%, rgba(255, 158, 64, 0.06) 100%);
}
.h-entry--current::before { left: 1.35rem; top: 2.3rem; }

.history-cta { text-align: center; border-top: 1px solid var(--border); }
.history-cta h2 { font-size: var(--fs-48); }
.history-cta p { color: var(--muted); margin-top: 1rem; }
.history-cta .hero-ctas { justify-content: center; }

@media (min-width: 900px) {
  .spotlight { grid-template-columns: 0.9fr 1.1fr; }
  .history-timeline::before { left: 8.75rem; }
  .h-entry {
    grid-template-columns: 7rem 1fr 300px;
    gap: 2.5rem;
    padding-left: 0;
    align-items: start;
  }
  .h-entry::before { left: calc(8.75rem - 5.5px); }
  .h-year { text-align: right; }
  .h-photo { justify-self: end; }
  .h-entry--current {
    padding: 2.2rem;
    margin-left: 0;
    grid-template-columns: 7rem 1fr 300px;
  }
  .h-entry--current::before { display: none; }
}

/* --- Capability card "learn more" links --------------------- */
.cap-more { margin-top: 0.9rem; }
.cap-more a {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--signal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cap-more svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease-standard); }
.cap-more a:hover svg { transform: translateX(4px); }
.cap-card > p:not(.cap-index):not(.cap-tags):not(.cap-cta-link):not(.cap-more) { color: var(--muted); }

/* --- Service page layout ------------------------------------ */
.hero--page .lede { max-width: 44rem; }
.svc-features { margin-top: 2rem; }
.svc-chips { margin-top: 2.2rem; }

/* --- Footer services row (internal linking) ----------------- */
.footer-services {
  max-width: var(--maxw);
  margin: 2.2rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
}
.footer-services a {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-services a:hover { color: var(--signal); }

.framed--natural img { aspect-ratio: auto; }

/* --- FAQ -------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq-list { display: grid; gap: 0; max-width: 860px; margin-top: 2rem; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: var(--fs-18); font-weight: 600; line-height: 1.35; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--signal);
  font-size: var(--fs-24);
  line-height: 1;
  transition: transform 0.2s var(--ease-standard);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.faq-item p { color: var(--muted); padding: 0 0 1.4rem; max-width: 72ch; }

/* --- Form honeypot (hidden from people, visible to bots) --- */
.field--hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
