/* ============================================================
   SAAVEDRA INDUSTRIES — site-wide styles
   Hybrid design system: monochrome machined-metal base
   (Apple-inspired restraint) + cyan used only as a "signal"
   for status, index, and interaction — never as paint.
   ============================================================ */

/* ---------- Self-hosted fonts (no external requests) ---------- */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
}

/* Inter ships as a variable font — one file covers 100–900 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2-variations'),
       url('../fonts/inter-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-tight-700.woff2') format('woff2');
}

:root {
  --black: #050607;
  --coal: #0b0d0f;
  --graphite: #121417;
  --hairline: rgba(255,255,255,0.09);
  --hairline-strong: rgba(255,255,255,0.16);
  --white: #f5f5f7;
  --silver: #a1a1a6;
  --dim: #6e6e73;
  --signal: #00d4ff;
  --signal-dim: rgba(0,212,255,0.55);
  --signal-glow: rgba(0,212,255,0.14);
  --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ultra-faint blueprint grid — the tech undercurrent */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.016) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

::selection { background: rgba(0,212,255,0.35); color: #fff; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

/* Visible keyboard focus — required for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link for screen-reader / keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--white);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* Brushed-silver gradient type */
.metal-text {
  background: linear-gradient(180deg, #ffffff 0%, #d8d8dc 46%, #8e8e93 82%, #b8b8bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Machined surface — brushed gradient + chamfer highlight */
.machined {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015) 40%, rgba(255,255,255,0) 70%),
    var(--graphite);
  border: 1px solid var(--hairline);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 20px 50px rgba(0,0,0,0.55);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}

.mono-label .sig { color: var(--signal-dim); }

.sig { color: var(--signal); }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,6,7,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.nav-logo .mark {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--white);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--signal);
  flex-shrink: 0;
}

.nav-logo em { font-style: normal; color: var(--silver); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--silver);
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }

.nav-links a.tel {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--silver);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.nav-links a.tel:hover { color: var(--signal); }

.nav-links a.tel svg { width: 13px; height: 13px; flex-shrink: 0; }

.nav-links a.pill {
  background: var(--white);
  color: #000;
  padding: 7px 18px;
  border-radius: 100px;
  font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s;
}

.nav-links a.pill:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(0,212,255,0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 17px;
  width: 38px;
  height: 38px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { gap: 20px; }
  .nav-links a.tel span { display: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-logo { font-size: 12px; }
  .nav-logo .mark { width: 22px; height: 22px; font-size: 11px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    /* Fully opaque: the nav bar above already has a backdrop-filter, and
       nesting a second translucent one lets hero text ghost through. */
    background: var(--black);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 24px 48px rgba(0,0,0,0.6);
    padding: 14px 20px 20px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; font-size: 14px; }
  .nav-links a.tel { font-size: 14px; }
  .nav-links a.tel span { display: inline; }
  .nav-links a.pill { margin-top: 10px; text-align: center; justify-content: center; }
}

/* ============ HERO (homepage) ============ */
.hero {
  padding: 130px 0 105px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 760px;
  max-width: 100%;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, rgba(255,255,255,0.05), transparent 62%);
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid var(--hairline-strong);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 30px;
}

.status-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 8.5vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 auto 26px;
  max-width: 940px;
}

.hero p {
  font-size: 17px;
  color: var(--silver);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.hero p strong { color: var(--white); font-weight: 500; }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-solid { background: var(--white); color: #000; }
.btn-solid:hover { transform: scale(1.04); box-shadow: 0 6px 30px rgba(0,212,255,0.3); }

.btn-line { background: transparent; color: var(--white); border-color: var(--hairline-strong); }
.btn-line:hover { border-color: var(--signal-dim); color: var(--signal); }

.hero-footnote {
  margin-top: 54px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ PAGE HEAD (interior pages) ============ */
.page-head {
  padding: 90px 0 30px;
  position: relative;
  z-index: 1;
}

.page-head .mono-label { display: block; margin-bottom: 20px; }

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  max-width: 760px;
}

.page-head .lede {
  font-size: 16px;
  color: var(--silver);
  max-width: 600px;
  line-height: 1.75;
}

.page-head .lede a { color: var(--signal); }

/* ============ SPEC STRIP ============ */
.spec-strip {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--coal);
  position: relative;
  z-index: 1;
}

.spec-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.spec-cell {
  padding: 34px 24px;
  text-align: center;
  border-left: 1px solid var(--hairline);
  position: relative;
}

.spec-cell:first-child { border-left: none; }

.spec-cell::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: var(--signal-dim);
}

.spec-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
}

.spec-cell .mono-label { margin-top: 8px; font-size: 10px; }

@media (max-width: 720px) {
  .spec-inner { grid-template-columns: 1fr 1fr; }
  .spec-cell:nth-child(3) { border-left: none; }
  .spec-cell:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}

/* ============ SECTIONS ============ */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section.tight { padding: 70px 0; }

.section-head { max-width: 620px; margin-bottom: 60px; }

.section-head .mono-label { margin-bottom: 20px; display: block; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.section-head p { font-size: 15px; color: var(--silver); line-height: 1.75; }

/* ============ SERVICE CARDS (overview grid) ============ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.service-card {
  border-radius: 22px;
  padding: 42px 38px;
  position: relative;
  overflow: hidden;
  display: block;
  transition: transform 0.35s cubic-bezier(0.25,0.1,0.25,1), box-shadow 0.35s, border-color 0.35s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,212,255,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 30px 70px rgba(0,0,0,0.7),
    0 0 0 1px rgba(0,212,255,0.06);
}

/* knurled corner detail */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 130px;
  height: 130px;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 7px 7px;
  mask-image: radial-gradient(circle at top right, black, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at top right, black, transparent 72%);
  pointer-events: none;
}

.service-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--signal-dim);
  display: block;
  margin-bottom: 34px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 13.5px;
  color: var(--silver);
  line-height: 1.8;
  margin-bottom: 26px;
}

.service-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid var(--hairline-strong);
  border-radius: 100px;
  padding: 5px 13px;
}

.tag.live {
  color: var(--signal);
  border-color: rgba(0,212,255,0.35);
  background: var(--signal-glow);
  font-weight: 500;
}

/* ============ SERVICE DETAIL BLOCKS (services page) ============ */
.service-detail {
  border-radius: 22px;
  padding: 46px 42px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 44px;
  transition: border-color 0.35s;
  scroll-margin-top: 80px;
}

.service-detail:hover { border-color: rgba(0,212,255,0.22); }

@media (max-width: 820px) { .service-detail { grid-template-columns: 1fr; gap: 32px; padding: 38px 26px; } }

.service-detail h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 14px 0 14px;
}

.service-detail .body-copy {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.85;
}

.service-detail .service-tags { margin-top: 26px; }

.scope-list { list-style: none; border-top: 1px solid var(--hairline); margin-top: 18px; }

.scope-list li {
  font-size: 13px;
  color: var(--white);
  padding: 12px 4px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  gap: 12px;
  align-items: baseline;
  line-height: 1.6;
}

.scope-list li::before {
  content: '—';
  color: var(--signal-dim);
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.scope-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ============ IMAGE PLACEHOLDERS ============ */
/* Swap each <figure class="ph-img"> for a real <img> when photos are ready. */
.ph-img {
  border: 1.5px dashed rgba(255,255,255,0.18);
  border-radius: 16px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0 12px, transparent 12px 24px),
    var(--coal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  min-height: 180px;
}

.ph-img .ph-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--dim);
}

.ph-img figcaption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.8;
  max-width: 300px;
}

.ph-img figcaption .sig { color: var(--signal-dim); }

.ph-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 780px) { .ph-strip { grid-template-columns: 1fr; } }

.ph-strip .ph-img { aspect-ratio: 4 / 3; }

/* ============ PRECISION BAND ============ */
.precision {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0) 34%),
    var(--coal);
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.precision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

@media (max-width: 820px) { .precision-grid { grid-template-columns: 1fr; gap: 48px; } }

.precision h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 18px 0 22px;
}

.precision .lede { font-size: 15px; color: var(--silver); line-height: 1.8; }

.std-list { list-style: none; border-top: 1px solid var(--hairline); }

.std-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 4px;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.3s;
  position: relative;
}

.std-list li::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 60%;
  background: var(--signal);
  transition: transform 0.3s;
}

.std-list li:hover { padding-left: 16px; }
.std-list li:hover::before { transform: translateY(-50%) scaleY(1); }

.std-list .std-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.std-list .std-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: right;
}

/* ============ ABOUT PAGE ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.about-copy p {
  font-size: 14.5px;
  color: var(--silver);
  line-height: 1.95;
  margin-bottom: 22px;
}

.about-copy p strong { color: var(--white); font-weight: 500; }

.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.about-side { display: flex; flex-direction: column; gap: 20px; }

.about-panel {
  border-radius: 22px;
  padding: 32px 30px;
}

.about-panel h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.about-panel ul { list-style: none; border-top: 1px solid var(--hairline); margin-top: 14px; }

.about-panel li {
  font-size: 12.5px;
  color: var(--silver);
  padding: 12px 2px;
  border-bottom: 1px solid var(--hairline);
  line-height: 1.7;
}

.about-panel li strong { color: var(--white); font-weight: 500; display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }

/* ============ TIMELINE (ledger style) ============ */
.timeline { border-top: 1px solid var(--hairline); }

.tl-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 36px;
  padding: 34px 4px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: padding-left 0.3s;
}

.tl-row::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 55%;
  background: var(--signal);
  transition: transform 0.3s;
}

.tl-row:hover { padding-left: 16px; }
.tl-row:hover::before { transform: translateY(-50%) scaleY(1); }

@media (max-width: 640px) { .tl-row { grid-template-columns: 1fr; gap: 10px; } }

.tl-when {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal-dim);
  padding-top: 5px;
}

.tl-row h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.tl-row p { font-size: 13.5px; color: var(--silver); line-height: 1.8; }

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

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

.form-panel { border-radius: 22px; padding: 40px 38px; }

@media (max-width: 560px) { .form-panel { padding: 30px 22px; } }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 9px;
}

.form-group label .req { color: var(--signal); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 16px; /* 16px stops iOS Safari from zooming on focus */
  color: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--signal-dim);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236e6e73' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option { background: var(--coal); color: var(--white); }

.form-error {
  font-size: 11.5px;
  color: var(--signal);
  margin-top: 7px;
  display: none;
  font-family: var(--font-mono);
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea { border-color: var(--signal); }

.form-group.invalid .form-error { display: block; }

.form-success {
  display: none;
  border: 1px solid rgba(0,212,255,0.35);
  background: var(--signal-glow);
  border-radius: 14px;
  padding: 20px 22px;
  font-size: 13.5px;
  color: var(--white);
  margin-bottom: 22px;
  line-height: 1.7;
}

.form-success.show { display: block; }

.form-fail {
  display: none;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 20px 22px;
  font-size: 13.5px;
  color: var(--silver);
  margin-bottom: 22px;
  line-height: 1.7;
}

.form-fail.show { display: block; }
.form-fail a { color: var(--signal); }

.btn[disabled] { opacity: 0.55; cursor: wait; }

/* Honeypot — hidden from humans, catches bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-side { display: flex; flex-direction: column; gap: 16px; }

.side-item { border-radius: 18px; padding: 24px 24px; }

.side-item h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}

.side-item p, .side-item a { font-size: 13px; color: var(--silver); line-height: 1.75; }
.side-item a { color: var(--signal); }

.side-item .big-tel {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  display: inline-block;
  transition: color 0.25s;
}

.side-item .big-tel:hover { color: var(--signal); }

.side-item ol { list-style: none; counter-reset: step; }

.side-item ol li {
  font-size: 12.5px;
  color: var(--silver);
  counter-increment: step;
  padding: 8px 0;
  display: flex;
  gap: 12px;
  line-height: 1.65;
}

.side-item ol li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal-dim);
  flex-shrink: 0;
  padding-top: 2px;
}

/* ============ CTA ============ */
.cta { padding: 120px 0; text-align: center; position: relative; z-index: 1; }

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  max-width: 100%;
  height: 340px;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.07), transparent 68%);
  pointer-events: none;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 20px;
  position: relative;
}

.cta p {
  font-size: 15px;
  color: var(--silver);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.75;
  position: relative;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 12px;
  color: var(--dim);
  max-width: 300px;
  line-height: 1.8;
  margin-top: 14px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 9px; }

.footer-col a {
  font-size: 12.5px;
  color: var(--silver);
  transition: color 0.25s;
}

.footer-col a:hover { color: var(--white); }

.footer-col .soon {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-dim);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 100px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: 1px;
}

.footer-col .muted { font-size: 12.5px; color: var(--dim); }

.footer-bottom {
  max-width: 1120px;
  margin: 44px auto 0;
  padding: 24px 28px 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ============ 404 ============ */
.error-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 14vw, 140px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 18px;
}

.error-page p {
  font-size: 15px;
  color: var(--silver);
  max-width: 420px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

/* ============ ANIMATIONS ============ */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; }
.reveal.visible { animation: rise 0.7s cubic-bezier(0.25,0.1,0.25,1) both; }

/* If JS never runs, assets/css/nojs.css (loaded inside <noscript>) makes
   these visible. Kept out of this file so no inline <style> is needed. */

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  .reveal.visible { animation: none; }
  html { scroll-behavior: auto; }
  .status-chip .dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

@media print {
  body::before, .nav, .cta, .btn { display: none; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   UTILITY CLASSES
   These exist so the HTML carries no inline style="" attributes.
   That lets the Content-Security-Policy in _headers forbid inline
   styles outright instead of allowing them with 'unsafe-inline'.
   ============================================================ */
.ph-wide { aspect-ratio: 16 / 10; margin-bottom: 22px; }
.ph-tall { aspect-ratio: 4 / 5; }
.eyebrow-block { display: block; margin-bottom: 20px; }
.btn-block { width: 100%; justify-content: center; }
.t-white { color: var(--white); }
.t-sig { color: var(--signal); }
.h-thanks { font-size: clamp(38px, 7vw, 72px); }

/* ============================================================
   REAL PHOTOS
   Drop-in replacement for the dashed .ph-img placeholders.
   Swap  <figure class="ph-img ...">…</figure>
   for   <figure class="photo ..."><img src="..." alt="..."></figure>
   keeping any ph-wide / ph-tall / reveal classes that were there.
   No inline styles needed — the CSP forbids them.
   ============================================================ */
.photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--coal);
  border: 1px solid var(--hairline);
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fills the frame without squashing the photo */
}

/* Frame shapes. Phone photos come out portrait, so the real-photo frames
   are portrait too — cropping a portrait shot to landscape throws away most
   of the picture. .ph-wide stays for genuinely landscape shots. */
.photo.ph-wide     { aspect-ratio: 16 / 10; margin-bottom: 22px; }
.photo.ph-tall     { aspect-ratio: 4 / 5; }
.photo.ph-portrait { aspect-ratio: 4 / 5; margin-bottom: 22px; }
.ph-strip .photo   { aspect-ratio: 3 / 4; }

/* Optional caption under a photo, styled like the placeholder captions */
.photo figcaption,
.photo-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 10px;
}
