/* ============================================================
   ZESTEREX.PRO — THEME STYLES (v1.0.0)
   Consumes tokens.css. Approved style-tile language, extended
   to the full page. Mobile-first-safe: single-column below 820px.
   ============================================================ */

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 { color: var(--ink); margin: 0; }

a { color: var(--teal); }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 32px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius) 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Visible focus for keyboard users. */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- shared type ---- */
.eyebrow {
  font-family: var(--font-mono); font-size: var(--eyebrow-size); letter-spacing: var(--eyebrow-ls);
  text-transform: uppercase; color: var(--teal); font-weight: 600; margin: 0 0 12px;
}
.tag {
  font-family: var(--font-mono); font-size: var(--tag-size); letter-spacing: var(--tag-ls);
  text-transform: uppercase; color: var(--teal); background: var(--teal-tint);
  padding: 4px 9px; border-radius: 20px; font-weight: 600; display: inline-block;
}
.section-title { font-size: var(--h2-size); line-height: var(--h2-lh); letter-spacing: var(--h2-ls); font-weight: 800; }
.section-lede { font-size: 18px; color: var(--ink-body); max-width: 62ch; margin: 14px 0 0; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 13px 24px; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease);
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: #fff; color: var(--teal); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--teal); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }

.cardlink { color: var(--teal); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.cardlink:hover { text-decoration: underline; }

/* Arrow-slide micro-interaction (build-kit motion). Arrows are aria-hidden <span>s. */
.cardlink span, .btn span { display: inline-block; transition: transform var(--dur-hover) var(--ease); }
.cardlink:hover span, .btn:hover span { transform: translateX(4px); }

/* ================= SITE HEADER ================= */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.site-header .brand { display: inline-flex; line-height: 0; }
.site-header .brand img { height: 40px; width: auto; }
.site-header .nav { display: flex; align-items: center; gap: 26px; }
.site-header .navlink { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-header .navlink:hover { color: var(--teal); }
.site-header .phone {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-mute);
  text-decoration: none; font-weight: 500;
}
.site-header .phone:hover { color: var(--teal); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ================= HERO ================= */
.hero {
  padding: 72px 0 64px;
  background: linear-gradient(180deg, #fff 0%, var(--teal-tint-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: var(--h1-size); line-height: var(--h1-lh); letter-spacing: var(--h1-ls);
  font-weight: 800; max-width: 16ch;
}
.hero .sub { font-size: 19px; color: var(--ink-body); max-width: 58ch; margin: 18px 0 28px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 18px 44px;
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line);
}
.trust-strip .item { display: flex; flex-direction: column; gap: 2px; }
.trust-strip .num { font-size: 24px; font-weight: 800; color: var(--ink); }
.trust-strip .cap {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .8px;
  text-transform: uppercase; color: var(--ink-mute);
}

/* ================= SECTIONS ================= */
.section { padding: 88px 0; }
.section-tint { background: var(--teal-tint-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.section-head .section-lede { margin-bottom: 0; }

/* ---- service cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
  transition: box-shadow var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease);
}
.card:hover { box-shadow: var(--shadow-lift); border-color: var(--line-strong); transform: translateY(-3px); }
.card:hover .cardlink span { transform: translateX(4px); }
.card .ic {
  width: 44px; height: 44px; border-radius: 10px; background: var(--teal-tint); color: var(--teal);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: var(--h3-size); line-height: var(--h3-lh); margin-bottom: 8px; }
.card p { margin: 0 0 16px; font-size: 15px; color: var(--ink-body); }
.card-satellite { border-color: var(--teal-tint); background: var(--teal-tint-2); }

/* ---- EOR block ---- */
.eor { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.eor h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.5px; margin-bottom: 14px; }
.eor p { margin: 0 0 14px; color: var(--ink-body); }
.eor .eor-note { color: var(--ink-mute); font-size: 14.5px; margin-bottom: 24px; }
.eor .steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.eor .step {
  display: flex; gap: 12px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.eor .step .n {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: #fff; font-family: var(--font-mono);
  font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.eor .step .t { font-size: 14.5px; color: var(--ink-soft); }
.eor .step .t b { color: var(--ink); }

/* ---- why grid ---- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; margin-top: 40px; }
.why { border-top: 2px solid var(--teal); padding-top: 18px; }
.why h3 { font-size: 17.5px; line-height: 1.3; margin-bottom: 8px; }
.why p { margin: 0; font-size: 15px; color: var(--ink-body); }

/* ---- case studies ---- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: box-shadow .15s;
}
.case:hover { box-shadow: var(--shadow-card); }
.case-img {
  height: 190px; background: #fff; border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden; flex: 0 0 auto;
}
.case-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top; display: block;
}
.case-img .draw {  /* fallback backdrop if an image is ever missing */
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: .12;
  background-image:
    repeating-linear-gradient(0deg, #0d1821 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, #0d1821 0 1px, transparent 1px 26px);
}
.case-img .stamp {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-mute); background: rgba(255,255,255,.92); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 20px;
}
.case-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1 1 auto; }
.case .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.case h3 { font-size: 19px; line-height: 1.3; margin-bottom: 14px; }
.case .cao { display: grid; gap: 10px; margin-bottom: 18px; }
.case .cao .row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; font-size: 14px; }
.case .cao .row .k {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase;
  color: var(--teal); padding-top: 3px;
}
.case .cao .row .v { color: var(--ink-body); }
.case .cardlink { margin-top: auto; }

/* ---- coverage (where we work) ---- */
.geo { display: grid; grid-template-columns: 1fr 1.9fr; gap: 44px; margin-top: 40px; align-items: start; }
.geo-block { border-top: 2px solid var(--teal); padding-top: 18px; }
.geo-k {
  display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .8px;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px;
}
.geo-k-2 { margin-top: 28px; }
.geo-k .num-inline { color: var(--teal); font-weight: 600; font-size: 15px; }
.geo-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  transition: border-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip-more { color: var(--ink-mute); background: transparent; border-style: dashed; }

/* interactive US coverage map */
.us-map-wrap { }
.us-map-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.us-map-readout { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; color: var(--ink); }
.us-map-readout .rd-sub { color: var(--teal); }
.us-map-legend {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-mute);
}
.us-map-legend .dot { width: 12px; height: 12px; border-radius: 3px; background: var(--teal); }
.us-map { width: 100%; height: auto; display: block; }
.us-map .st { fill: #e8edf0; stroke: #fff; stroke-width: 1; transition: fill .18s var(--ease); }
.us-map .st.worked { fill: var(--teal); }
.us-map .st:hover { fill: var(--teal-tint); cursor: pointer; }
.us-map .st.worked:hover { fill: var(--teal-dark); }
@media (prefers-reduced-motion: reduce) { .us-map .st { transition: none; } }

/* ---- satellite strip ---- */
.sat { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sat a {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
  transition: border-color .15s, color .15s;
}
.sat a:hover { border-color: var(--teal); color: var(--teal); }
.sat a .d { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); font-weight: 400; }

/* ---- CTA band ---- */
.ctaband { background: var(--teal-deep); color: #fff; border-radius: var(--radius-lg); padding: 56px 44px; text-align: center; }
.ctaband h2 { color: #fff; font-size: 32px; line-height: 1.15; letter-spacing: -.5px; margin-bottom: 10px; }
.ctaband p { color: #cfe1e7; margin: 0 0 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ctaband .btn-primary { background: #fff; color: var(--teal-deep); }
.ctaband .btn-primary:hover { background: var(--teal-tint); }

/* ================= INTERIOR PAGES ================= */
.page-hero { padding: 72px 0 8px; background: linear-gradient(180deg, #fff, var(--teal-tint-2)); border-bottom: 1px solid var(--line); }
.page-hero { padding-bottom: 56px; }
.page-hero h1 { font-size: 44px; line-height: 1.08; letter-spacing: -1px; font-weight: 800; max-width: 18ch; }
.page-lede { font-size: 19px; color: var(--ink-body); max-width: 62ch; margin: 18px 0 0; }
.page-hero .cta { margin-top: 26px; }

/* services */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.svc-head .section-lede { margin-bottom: 20px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-list li { position: relative; padding: 16px 18px 16px 44px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; color: var(--ink-soft); }
.svc-list li::before { content: ""; position: absolute; left: 18px; top: 21px; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }

/* work filters */
.work-filters { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-mute); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: all var(--dur-hover) var(--ease); }
.filter-chip:hover { border-color: var(--teal); color: var(--teal); }
.filter-chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.filter-clear, .linkbtn { font: inherit; font-size: 13.5px; color: var(--teal); background: none; border: none; cursor: pointer; text-decoration: underline; padding: 6px 0; align-self: flex-end; }
.work-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-mute); margin: 22px 0 26px; }
.work-empty { text-align: center; color: var(--ink-body); padding: 40px 0; }

/* work cards (details) */
.wcard { display: block; }
.wcard > summary { list-style: none; cursor: pointer; padding: 0; }
.wcard > summary::-webkit-details-marker { display: none; }
.wcard-sum { display: flex; flex-direction: column; }
.wcard .case-body { padding-bottom: 20px; }
.wcard-outcome { font-size: 14.5px; color: var(--ink-body); margin: 0 0 14px; }
.wcard-toggle { color: var(--teal); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.wcard .chev { transition: transform var(--dur-hover) var(--ease); font-size: 18px; line-height: 1; }
.wcard[open] .chev { transform: rotate(90deg); }
.wcard-detail { padding: 0 24px 24px; border-top: 1px solid var(--line); margin-top: 4px; }
.wcard-detail .cao { display: grid; gap: 12px; margin: 20px 0 18px; }
.wcard-detail .cao .row { display: grid; grid-template-columns: 84px 1fr; gap: 12px; font-size: 14.5px; }
.wcard-detail .cao .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--teal); padding-top: 3px; }
.wcard-detail .cao .v { color: var(--ink-body); }
.wcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.wcard-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-mute); }
.wcard.is-hidden { display: none; }

/* process (how we work) */
.proc { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
.proc-step { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; }
.proc-step .n { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--font-mono); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.proc-step h3 { font-size: 18px; margin-bottom: 6px; }
.proc-step p { margin: 0; font-size: 15px; color: var(--ink-body); }

.factcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow-card); }
.factcard h3 { font-size: 18px; margin-bottom: 16px; }

/* tick lists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.ticks li a { font-size: 14px; }

/* about */
.about-lead, .about-tools { display: grid; grid-template-columns: 1fr 1.4fr; gap: 44px; align-items: start; }
.about-body p { margin: 0 0 16px; font-size: 16.5px; }
.tool-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* quote page */
.quote-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 34px; box-shadow: var(--shadow-card); }
.quote-form { display: grid; gap: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fs { border: 0; padding: 0; margin: 0; }
.fs legend { font-family: var(--font-mono); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-mute); padding: 0; margin-bottom: 12px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--ink-soft); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--teal); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld > span { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.fld .req { color: var(--teal); }
.fld .opt { color: var(--ink-mute); font-weight: 400; }
.quote-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .quote-form select, .quote-form textarea { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; }
.quote-form input:not([type=checkbox]):not([type=radio]):not([type=file]):focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-tint); }
.check input { flex: 0 0 auto; }
.quote-form textarea { resize: vertical; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 24px; cursor: pointer; transition: border-color var(--dur-hover) var(--ease); }
.dropzone:hover, .dropzone.drag { border-color: var(--teal); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-title { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.dz-sub { font-size: 13px; color: var(--ink-mute); }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-hint { font-size: 13px; color: var(--ink-mute); max-width: 30ch; }
.form-note { border-radius: var(--radius); padding: 16px 18px; font-size: 15px; }
.form-ok { background: #eaf5ee; border: 1px solid #bfe3ca; color: #1b5e34; }
.form-err { background: #fdecec; border: 1px solid #f3c2c2; color: #9a2626; }

.quote-aside { display: grid; gap: 24px; position: sticky; top: 90px; }
.aside-block { border-top: 2px solid var(--teal); padding-top: 16px; }
.aside-block h3 { font-size: 16px; margin-bottom: 12px; }
.aside-block p { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-body); }
.aside-note { color: var(--ink-mute); font-size: 13.5px; }

/* ---- team portal (centered launcher) ---- */
.portal-section {
  min-height: calc(100vh - 340px); display: flex; align-items: center;
  padding: 72px 0; background: linear-gradient(180deg, #fff 0%, var(--teal-tint-2) 100%);
  border-bottom: 1px solid var(--line);
}
.portal-section .wrap { width: 100%; }
.portal-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.portal-head h1 { font-size: 40px; line-height: 1.1; letter-spacing: -1px; font-weight: 800; }
.portal-head p:last-child { font-size: 18px; color: var(--ink-body); margin: 14px auto 0; max-width: 46ch; }
.portal-head .eyebrow { justify-content: center; }

.portal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 620px; margin: 0 auto; }
.portal-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal);
  border-radius: var(--radius-lg); padding: 34px 26px 28px; text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-hover) var(--ease), box-shadow var(--dur-hover) var(--ease);
}
.portal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.portal-ic {
  width: 56px; height: 56px; border-radius: 14px; background: var(--teal-tint); color: var(--teal);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.portal-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.portal-name { font-size: 21px; font-weight: 700; color: var(--ink); }
.portal-desc { font-size: 14.5px; color: var(--ink-body); }
.portal-cta {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 20px;
  background: var(--teal); color: #fff; font-weight: 600; font-size: 14.5px;
  padding: 11px 20px; border-radius: var(--radius); transition: background var(--dur-hover) var(--ease);
}
.portal-card:hover .portal-cta { background: var(--teal-dark); }
.portal-ext { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.portal-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 32px auto 0; font-size: 13px; color: var(--ink-mute); font-family: var(--font-mono);
}
.portal-note svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

@media (max-width: 560px) {
  .portal-grid { grid-template-columns: 1fr; max-width: 340px; }
  .portal-head h1 { font-size: 30px; }
  .portal-section { min-height: 0; padding: 56px 0; }
}

/* ================= FOOTER ================= */
.site-footer { background: var(--ink); color: #9fb0bd; padding: 72px 0 32px; }
.site-footer h4 { color: #fff; font-size: 13px; font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase; margin: 0 0 16px; }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 38px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.foot-brand p { margin: 0; font-size: 14.5px; color: #8fa2b0; max-width: 44ch; line-height: 1.6; }
.foot-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-col a { color: #b8c7d2; text-decoration: none; font-size: 14.5px; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-col .phone { font-family: var(--font-mono); }
.foot-col .line { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; color: #6d8091; margin-top: 4px; }
.foot-team {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12); width: 100%;
  color: #cdd8e1 !important; font-weight: 600; font-size: 14px;
}
.foot-team svg { width: 15px; height: 15px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foot-team:hover { color: #fff !important; }
.foot-team:hover svg { stroke: #4aa3bd; }
.foot-rule { height: 1px; background: rgba(255,255,255,.12); margin: 44px 0 24px; }
.disclaimer { font-size: 12.5px; line-height: 1.65; color: #7c8f9e; margin: 0 0 24px; max-width: 95ch; }
.foot-register { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .5px; color: #6d8091; }
.foot-register a { color: #8fa2b0; text-decoration: none; }
.foot-register a:hover { color: #fff; }

/* ================= DRAMATIC MOTION — parallax, pinned sequence, progress ======
   All of this is layered ON native scroll; JS only sets transforms/classes. Every
   piece degrades to the static layout under no-JS or prefers-reduced-motion. */

/* Scroll-progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transition: width .1s linear; pointer-events: none;
}

/* Hero parallax layers */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-grid {
  position: absolute; inset: -25% 0; will-change: transform;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px; opacity: .55;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 15%, #000 20%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 78% 15%, #000 20%, transparent 72%);
}
.hero-glow {
  position: absolute; top: -25%; right: -12%; width: 62vw; height: 62vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,96,128,.16), rgba(0,96,128,0) 62%);
  will-change: transform;
}
.hero .wrap { position: relative; z-index: 1; }

/* Pinned "How stamping works" sequence.
   The .pin-on class is added by JS ONLY when motion is allowed — so no-JS and
   reduced-motion both fall back to the normal (non-pinned) stacked layout. */
.pin-on .pin-section { min-height: 320vh; }
.pin-on .pin-stage { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; padding: 64px 0; }
.pin-steps { position: relative; }
.pin-progress { display: none; }
.pin-on .pin-steps { padding-left: 30px; }
.pin-on .pin-step {
  opacity: .3; transform: translateX(6px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.pin-on .pin-step.is-active {
  opacity: 1; transform: none; border-color: var(--teal); box-shadow: var(--shadow-card);
}
.pin-on .pin-step.is-active .n { background: var(--teal); }
.pin-on .pin-progress { display: block; position: absolute; left: 12px; top: 4px; bottom: 4px; width: 2px; background: var(--line); border-radius: 2px; }
.pin-on .pin-progress span { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--teal); border-radius: 2px; transition: height .3s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .hero-grid, .hero-glow { display: none; }
}

/* ================= MOTION — scroll reveal (build-kit Part 5) =================
   JS-guarded: elements only start hidden when <html class="js"> is set (added by
   main.js before paint). No JS, or reduced-motion, => everything is visible at load,
   so content is never gated behind animation (SEO + a11y safe). */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in-view { opacity: 1; transform: none; }
/* stagger within a group */
.js .reveal-group > .reveal:nth-child(2) { transition-delay: .07s; }
.js .reveal-group > .reveal:nth-child(3) { transition-delay: .14s; }
.js .reveal-group > .reveal:nth-child(4) { transition-delay: .21s; }
.js .reveal-group > .reveal:nth-child(5) { transition-delay: .28s; }
.js .reveal-group > .reveal:nth-child(6) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; will-change: auto; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1040px) {
  .cards, .why-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .wrap { padding: 0 20px; }
  .section { padding: 60px 0; }

  /* mobile nav */
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-header .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 0; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line);
  }
  .site-header .nav.open { display: flex; }
  .site-header .navlink, .site-header .phone { padding: 13px 2px; border-bottom: 1px solid var(--line); }
  .site-header .nav .btn { margin-top: 14px; justify-content: center; }

  .hero { padding: 48px 0; }
  .hero h1 { font-size: var(--h1-size-m); max-width: none; }
  .hero .sub { font-size: 17px; }
  .hero .cta .btn { flex: 1 1 auto; justify-content: center; }
  .trust-strip { gap: 16px 28px; }

  .section-title { font-size: var(--h2-size-m); }
  .cards, .why-grid, .case-grid { grid-template-columns: 1fr; }
  .geo { grid-template-columns: 1fr; gap: 28px; }
  .eor { grid-template-columns: 1fr; gap: 28px; }
  .eor h2 { font-size: 24px; }
  .section-head { margin-bottom: 28px; }

  .ctaband { padding: 40px 24px; }
  .ctaband h2 { font-size: 24px; }
  .cta-actions .btn { flex: 1 1 auto; justify-content: center; }

  .foot-top { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding: 52px 0 28px; }

  /* interior pages */
  .page-hero { padding: 48px 0; }
  .page-hero h1 { font-size: 30px; }
  .page-lede { font-size: 17px; }
  .svc-row, .about-lead, .about-tools, .quote-layout, .tool-cols, .checks, .grid-2 { grid-template-columns: 1fr; }
  .svc-row, .about-lead, .about-tools { gap: 24px; }
  .quote-layout { gap: 32px; }
  .quote-aside { position: static; }
  .quote-card { padding: 24px 20px; }
  .wcard-detail .cao .row { grid-template-columns: 1fr; gap: 3px; }
  .proc-step { padding: 20px; gap: 14px; }
}

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