/* ============================================================
   TRILLAS CONSULTING ENGINEERS — v5 "Ledger"
   Editorial engineering: warm paper, hairline rules,
   Schibsted Grotesk display, navy + steel-blue palette.
   No gradients, no glows, no gimmicks.
   ============================================================ */

:root {
  --paper: #fbfaf7;
  --paper-2: #f4f2ec;
  --ink: #20242e;
  --navy: #1C2557;
  --gray: #8E9194;
  --muted: #6d7280;
  --rule: #ddd8cc;
  --rule-dark: #b9b2a1;
  --accent: #3866cc;
  --font-display: 'Schibsted Grotesk', -apple-system, sans-serif;
  --font-body: 'Hanken Grotesk', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
h4 { font-family: var(--font-body); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
::selection { background: var(--navy); color: #fff; }
[id] { scroll-margin-top: 100px; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px clamp(20px, 4vw, 48px);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s;
}
.topbar.scrolled { box-shadow: 0 1px 0 var(--rule); }
.topbar .left { justify-self: start; display: flex; align-items: center; gap: 20px; }
.topbar .brand { justify-self: center; }
.topbar .right { justify-self: end; display: flex; align-items: center; gap: 20px; }

.logo-plate { display: inline-flex; align-items: center; }
.logo-plate img { height: 38px; width: auto; display: block; }
.topbar.scrolled .logo-plate img { height: 34px; }
.footer-v2 .logo-plate { background: #fff; padding: 8px 14px; border-radius: 4px; }
.footer-v2 .logo-plate img { height: 36px; }

.tel-link { font-weight: 700; font-size: 14.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tel-link:hover { color: var(--accent); }
@media (max-width: 1200px) { .tel-link { display: none; } }

/* Socials — quiet, borderless */
.socials { display: flex; align-items: center; gap: 4px; }
.socials a {
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--muted); border-radius: 4px;
  transition: color .2s, background .2s;
}
.socials a:hover { color: var(--ink); background: var(--paper-2); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 1080px) { .topbar .socials { display: none; } }

/* ---------- Buttons: plain rectangles, honest ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--ink); border-radius: 2px;
  padding: 13px 24px; font-size: 13.5px; font-weight: 600;
  letter-spacing: .04em; background: transparent; color: var(--ink);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.pill:hover { background: var(--ink); color: var(--paper); }
.pill.solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill.solid:hover { background: var(--accent); border-color: var(--accent); }
.pill .arrow { transition: transform .2s; }
.pill:hover .arrow { transform: translateX(3px); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 0 8px 8px;
  background: none; border: none; color: var(--ink); cursor: pointer;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
}
.menu-btn .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-btn .bars span { width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s; }
body.menu-open .menu-btn { z-index: 600; position: relative; }
body.menu-open .menu-btn .bars span:nth-child(1) { transform: translateY(2.75px) rotate(45deg); }
body.menu-open .menu-btn .bars span:nth-child(2) { transform: translateY(-2.75px) rotate(-45deg); }

/* ---------- Menu: a paper index page ---------- */
.mega-menu {
  position: fixed; inset: 0; z-index: 550;
  background: var(--paper);
  display: flex; align-items: flex-start;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
body.menu-open .mega-menu { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.mega-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; width: 100%; padding-top: 110px; padding-bottom: 60px; }
.mega-links { list-style: none; border-top: 1px solid var(--rule-dark); }
.mega-links li { border-bottom: 1px solid var(--rule); }
.mega-links a {
  display: flex; align-items: baseline; gap: 24px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 4.6vw, 48px); line-height: 1.1;
  color: var(--ink); padding: 22px 6px;
  transition: color .2s, padding-left .25s;
}
.mega-links a:hover { color: var(--accent); padding-left: 16px; }
.mega-links a .idx { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--gray); font-variant-numeric: tabular-nums; }
.mega-side { padding-top: 8px; color: var(--muted); font-size: 15px; }
.mega-side h5 { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin: 24px 0 8px; }
.mega-side h5:first-child { margin-top: 0; }
.mega-side a { border-bottom: 1px solid var(--rule-dark); }
.mega-side a:hover { color: var(--ink); border-color: var(--ink); }
.mega-side .socials { margin-top: 8px; }
.mega-side .socials a { border-bottom: none; }

/* ---------- Hero: asymmetric, left-set, quiet ---------- */
.hero-v2 {
  position: relative; min-height: auto;
  display: block; text-align: left;
  padding: clamp(140px, 18vh, 190px) 0 0;
}
.hero-v2 > * { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
.orb, .blueprint, .hero-v2::before { display: none; }
.hero-v2 .kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 34px;
  display: flex; align-items: center; gap: 14px;
}
.hero-v2 .kicker::before { content: ""; width: 40px; height: 1px; background: var(--rule-dark); }
.hero-mark { display: none; }
.giant {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(44px, 7vw, 92px); line-height: 1.04; letter-spacing: -0.015em;
  color: var(--ink); text-transform: none; max-width: 16ch;
  background: none; -webkit-text-stroke: 0;
}
.giant .ch { display: inline; opacity: 1; transform: none; animation: none; }
.hero-v2 .subword {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: .22em; padding-left: 0; text-transform: uppercase;
  color: var(--gray); margin-top: 22px;
}
.hero-v2 .tag { max-width: 58ch; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); margin-top: 26px; }
.hero-ctas-v2 { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; justify-content: flex-start; }
.promise { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.promise::before { content: "\2713\00A0"; color: var(--accent); font-weight: 700; }
.scroll-cue { display: none; }
.video-note-v2 {
  position: static; display: inline-block; margin-top: 56px;
  width: 100%; max-width: none;
  border: 1px dashed var(--rule-dark); border-left: none; border-right: none;
  padding: 18px clamp(20px, 4vw, 48px); border-radius: 0;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray);
  background: var(--paper-2);
}

/* ---------- Sections: ledger rows ---------- */
section { position: relative; padding: clamp(64px, 9vh, 110px) 0; }
.sec-label {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 36px;
  border-top: 1px solid var(--rule-dark); padding-top: 14px;
}
.sec-label::before { display: none; }
.sec-label .n { color: var(--accent); font-variant-numeric: tabular-nums; }
.sec-label .n::before { content: ""; }
.sec-label .n::after { content: "\00A0/"; color: var(--rule-dark); }

/* ---------- Statement: a set pull-quote, no tricks ---------- */
.statement {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 3.6vw, 44px); line-height: 1.32; max-width: 26ch;
  color: var(--ink); letter-spacing: 0; text-transform: none;
}
.statement .lw, .statement .lw.lit { color: inherit; transition: none; }
.statement .hl, .statement .lw.accent-w, .statement .lw.accent-w.lit { color: var(--accent); font-style: italic; }

/* ---------- Audience paths: index rows ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-dark); border-left: 1px solid var(--rule); }
.path {
  display: flex; flex-direction: column; gap: 12px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: transparent; padding: 34px 28px 30px; border-radius: 0;
  transition: background .25s;
}
.path:hover { background: #fff; transform: none; box-shadow: none; }
.path-who { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.path h3 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.path p { color: var(--muted); font-size: 14.5px; flex: 1; }
.path-cta {
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: none;
  color: var(--ink); display: inline-flex; gap: 8px; align-items: center;
  border-top: 1px solid var(--rule); padding-top: 16px;
}
.path:hover .path-cta { color: var(--accent); }
.path .arrow { transition: transform .2s; }
.path:hover .arrow { transform: translateX(3px); }

/* ---------- Services strip ---------- */
.strip-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.strip-head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; text-transform: none; letter-spacing: -0.01em; }
.strip-nav { display: flex; gap: 8px; }
.strip-nav button {
  width: 46px; height: 46px; border-radius: 2px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 17px; cursor: pointer; transition: background .2s, color .2s;
}
.strip-nav button:hover { background: var(--ink); color: var(--paper); }
.strip {
  display: flex; gap: 0; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 0 0 20px;
  scrollbar-width: none; cursor: grab;
  border-left: 1px solid var(--rule);
  -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.svc {
  flex: 0 0 clamp(290px, 32vw, 420px); scroll-snap-align: start;
  border: 1px solid var(--rule); border-left: none; border-radius: 0;
  background: transparent; padding: 36px 30px;
  transition: background .25s;
}
.svc::after { display: none; }
.svc:hover { transform: none; box-shadow: none; background: #fff; border-color: var(--rule); }
.svc .big-n {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  color: var(--accent); -webkit-text-stroke: 0;
  margin-bottom: 44px; font-variant-numeric: tabular-nums;
}
.svc .big-n::after { content: "\00A0/"; color: var(--rule-dark); }
.svc:hover .big-n { color: var(--accent); }
.svc h3 { font-size: 24px; font-weight: 600; text-transform: none; letter-spacing: -0.01em; margin-bottom: 12px; }
.svc p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.svc .go { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: none; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--rule-dark); padding-bottom: 2px; }
.svc:hover .go { color: var(--accent); border-color: var(--accent); }

/* ---------- Stats: a figures table ---------- */
.stats-v2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: transparent; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
}
.stats-v2 > div { background: transparent; padding: 44px 26px; text-align: left; border-left: 1px solid var(--rule); }
.stats-v2 > div:first-child { border-left: none; }
.stats-v2 > div:hover { background: var(--paper-2); }
.stats-v2 .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 4.6vw, 60px); line-height: 1; color: var(--ink); }
.stats-v2 .num em { font-style: normal; color: var(--accent); }
.stats-v2 .lbl { margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--rule-dark); border-left: 1px solid var(--rule); }
.step { position: relative; padding: 30px 28px 32px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: transparent; border-radius: 0; }
.step::after { display: none; }
.step-n {
  width: auto; height: auto; border-radius: 0; background: none; color: var(--accent);
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  display: block; margin-bottom: 36px; font-variant-numeric: tabular-nums;
}
.step-n::after { content: "\00A0/"; color: var(--rule-dark); }
.step h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Quotes: attributed, on rules ---------- */
.quotes-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.q-card {
  border: none; border-top: 2px solid var(--ink); border-radius: 0;
  padding: 24px 0 0; background: transparent; backdrop-filter: none;
  display: flex; flex-direction: column; gap: 16px;
}
.q-card::before { display: none; }
.q-card:hover { transform: none; box-shadow: none; }
.q-card .mark-q { display: none; }
.q-card blockquote { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 18px; line-height: 1.5; }
.q-card blockquote::before { content: "\201C"; color: var(--accent); }
.q-card .who { margin-top: auto; }
.q-card .who .nm { font-weight: 700; font-size: 14px; color: var(--ink); font-family: var(--font-body); }
.q-card .who .rl { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin-top: 2px; }

/* ---------- Licensure ---------- */
.section-lic { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.lic-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; margin-bottom: 38px; }
.lic-head h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; max-width: 13ch; }
.lic-head p { color: var(--muted); max-width: 58ch; font-size: 15.5px; padding-top: 6px; }
.lic-head p strong { color: var(--ink); }
.lic-grid { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--rule-dark); border-left: 1px solid var(--rule); }
.lic-chip {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: transparent; border: none; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  border-radius: 0; padding: 12px 18px; transition: background .2s;
}
.lic-chip::before { content: ""; }
.lic-chip:hover { background: #fff; transform: none; box-shadow: none; border-color: var(--rule); }
@media (max-width: 860px) { .lic-head { grid-template-columns: 1fr; } }

/* ---------- CTA: navy plate, square ---------- */
.cta-v2 {
  text-align: left; border-radius: 4px;
  padding: clamp(44px, 6vw, 72px) clamp(28px, 5vw, 72px);
  background: var(--navy);
}
.cta-v2 h2 { font-size: clamp(28px, 4vw, 52px); font-weight: 600; color: #fff; margin-bottom: 16px; text-transform: none; max-width: 20ch; }
.cta-v2 p { color: rgba(255,255,255,.72); max-width: 56ch; margin: 0 0 32px; }
.cta-btns { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
.cta-v2 .pill { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-v2 .pill:hover { background: #fff; color: var(--navy); border-color: #fff; }
.cta-v2 .pill.solid { background: var(--accent); border-color: var(--accent); }
.cta-v2 .pill.solid:hover { background: #fff; border-color: #fff; color: var(--navy); }
.cta-proof { margin: 30px 0 0; max-width: 56ch; font-size: 14.5px; color: rgba(255,255,255,.7); font-style: italic; }
.cta-trust { margin-top: 18px; display: flex; gap: 10px 26px; justify-content: flex-start; flex-wrap: wrap; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }

/* ---------- Editorial rows (services page) ---------- */
.ed-row { display: grid; grid-template-columns: 90px 1fr 1fr; gap: clamp(20px, 3.6vw, 56px); padding: 56px 0; border-top: 1px solid var(--rule); align-items: start; }
.ed-row:last-of-type { border-bottom: 1px solid var(--rule); }
.ed-row .n {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  color: var(--accent); -webkit-text-stroke: 0; opacity: 1; font-variant-numeric: tabular-nums;
}
.ed-row .n::after { content: "\00A0/"; color: var(--rule-dark); }
.ed-row h3 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; text-transform: none; letter-spacing: -0.01em; margin-bottom: 14px; }
.ed-row .body p { color: var(--muted); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 24px; }
.tags span {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: none;
  padding: 0; border-radius: 0; background: none; color: var(--muted);
}
.tags span::before { content: "\00B7\00A0"; color: var(--accent); }
.ph-visual {
  border-radius: 2px; min-height: 260px; border: 1px dashed var(--rule-dark);
  background: var(--paper-2);
  display: grid; place-items: center; color: var(--gray);
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 18px;
}

/* ---------- Page hero (inner) ---------- */
.page-hero-v2 { position: relative; padding: clamp(140px, 17vh, 180px) 0 56px; background: var(--paper); }
.page-hero-v2 .giant-sm {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 6vw, 76px); letter-spacing: -0.015em; line-height: 1.06;
  color: var(--ink);
}
.page-hero-v2 p.lede { color: var(--muted); max-width: 60ch; margin-top: 22px; font-size: 16.5px; }

/* ---------- Portfolio ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }
.work {
  position: relative; border-radius: 2px; overflow: hidden; min-height: 320px;
  background: var(--navy);
  display: flex; align-items: flex-end;
  transition: none; cursor: pointer;
}
.work:hover { transform: none; box-shadow: none; }
.work .cat { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.work .info {
  position: relative; z-index: 2; padding: 24px; width: 100%;
  background: linear-gradient(transparent, rgba(15,20,45,.88) 60%);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
}
.work h3 { font-size: 19px; color: #fff; font-weight: 600; text-transform: none; }
.work .info::after {
  content: "\2192"; flex-shrink: 0; color: #fff;
  width: 36px; height: 36px; border-radius: 0;
  border: 1px solid rgba(255,255,255,.4);
  display: grid; place-items: center; font-size: 15px;
  opacity: 1; transform: none; transition: background .2s;
}
.work:hover .info::after { background: var(--accent); border-color: var(--accent); }
.work .ph { position: absolute; top: 14px; right: 14px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); border: 1px dashed rgba(255,255,255,.3); padding: 5px 9px; border-radius: 2px; }

/* ---------- Team ---------- */
.leader { display: grid; grid-template-columns: 380px 1fr; gap: clamp(28px, 4.5vw, 72px); align-items: center; padding: 48px 0; border-top: 1px solid var(--rule); }
.leader.flip { grid-template-columns: 1fr 380px; }
.leader.flip .photo { order: 2; }
.leader .photo {
  border-radius: 2px; overflow: hidden; aspect-ratio: 1;
  background: var(--paper-2); border: 1px solid var(--rule);
  display: grid; place-items: center; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 60px; color: var(--rule-dark);
  box-shadow: none;
}
.leader .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.leader h3 { font-size: clamp(28px, 3vw, 38px); font-weight: 600; text-transform: none; }
.leader .creds { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 10px 0 18px; }
.leader p { color: var(--muted); margin-bottom: 13px; }

/* ---------- Checklist ---------- */
.check-v2 { list-style: none; margin: 8px 0 30px; border-top: 1px solid var(--rule); }
.check-v2 li { padding: 12px 0 12px 26px; position: relative; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink); }
.check-v2 li::before {
  content: "\2713"; position: absolute; left: 0; top: 12px;
  width: auto; height: auto; border-radius: 0; background: none; border: none;
  color: var(--accent); font-size: 13px; font-weight: 700; display: block;
}

/* ---------- Contact ---------- */
.contact-v2 { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.c-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.c-item .ic { width: 40px; height: 40px; border-radius: 2px; background: var(--paper-2); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; font-size: 16px; border: 1px solid var(--rule); }
.c-item h4 { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin-bottom: 2px; }
.c-item p, .c-item a { color: var(--ink); font-size: 15px; }
.c-item a:hover { color: var(--accent); }

.next-steps {
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: 2px; background: #fff;
  padding: 22px 24px; margin-bottom: 22px;
}
.next-steps h4 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.next-steps ol { margin-left: 18px; }
.next-steps li { color: var(--muted); font-size: 14.5px; margin-bottom: 6px; }

.form-v2 {
  border: 1px solid var(--rule); border-radius: 2px; padding: clamp(26px, 3.6vw, 44px);
  background: #fff; box-shadow: none; backdrop-filter: none;
}
.form-v2 h3 { text-transform: none; font-size: 24px; font-weight: 600; margin-bottom: 24px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.f-field label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.f-field input, .f-field select, .f-field textarea {
  background: var(--paper); border: 1px solid var(--rule-dark); border-radius: 2px;
  padding: 13px 14px; color: var(--ink); font-family: var(--font-body); font-size: 15px;
  outline: none; transition: border-color .2s;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { border-color: var(--ink); background: #fff; }
.f-field textarea { min-height: 110px; resize: vertical; }

.file-drop {
  display: grid; justify-items: center; gap: 5px; text-align: center;
  border: 1px dashed var(--rule-dark); border-radius: 2px;
  background: var(--paper); padding: 26px 18px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.file-drop:hover { border-color: var(--ink); background: var(--paper-2); }
.file-drop input[type="file"] { display: none; }
.file-drop .fd-big { font-weight: 700; color: var(--ink); font-size: 14px; }
.file-drop .fd-note { font-size: 12px; color: var(--muted); }

/* ---------- Careers: job ledger ---------- */
.job { border: 1px solid var(--rule); border-radius: 2px; background: #fff; margin-bottom: 14px; overflow: hidden; transition: border-color .2s; }
.job:hover { box-shadow: none; border-color: var(--rule-dark); }
.job[open] { border-color: var(--rule-dark); }
.job summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 24px 26px; }
.job summary::-webkit-details-marker { display: none; }
.job .job-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2vw, 24px); color: var(--ink); }
.job .job-meta { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: auto; }
.job .job-chevron {
  width: 36px; height: 36px; border-radius: 0; flex-shrink: 0;
  border: 1px solid var(--ink); color: var(--ink);
  display: grid; place-items: center; font-size: 14px;
  transition: transform .25s, background .25s, color .25s;
}
.job[open] .job-chevron { transform: rotate(180deg); background: var(--ink); color: #fff; }
.job .job-body { padding: 0 26px 30px; border-top: 1px solid var(--rule); }
.job .job-body > p { color: var(--muted); padding-top: 20px; max-width: 75ch; }
.job-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3.6vw, 48px); margin: 18px 0 24px; }
.job-cols h4 { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.job-cols .check-v2 { margin: 0; }
.job-cols .check-v2 li { font-size: 14px; }
@media (max-width: 820px) {
  .job-cols { grid-template-columns: 1fr; }
  .job summary { flex-wrap: wrap; gap: 8px; }
  .job .job-meta { margin-left: 0; width: 100%; order: 3; }
}

/* ---------- Case study ---------- */
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: transparent; border: none; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); border-radius: 0; overflow: visible; }
.cs-meta > div { background: transparent; padding: 20px 22px; border-left: 1px solid var(--rule); }
.cs-meta > div:first-child { border-left: none; padding-left: 0; }
.cs-meta h5 { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; font-family: var(--font-body); }
.cs-meta p { font-size: 14.5px; color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .cs-meta { grid-template-columns: 1fr 1fr; } .cs-meta > div { padding-left: 0; border-left: none; } }
.cs-body { max-width: 720px; }
.cs-block { margin-bottom: 42px; }
.cs-block h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 600; margin-bottom: 14px; }
.cs-block p { color: var(--muted); font-size: 16px; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 42px; }
.cs-grid .ph-visual { min-height: 240px; }
@media (max-width: 700px) { .cs-grid { grid-template-columns: 1fr; } }
.cs-quote { border-left: 2px solid var(--accent); padding: 6px 0 6px 24px; font-family: var(--font-display); font-size: 20px; color: var(--ink); font-style: italic; margin: 8px 0 18px; }
.cs-quote footer { font-size: 13px; font-style: normal; color: var(--muted); margin-top: 8px; font-family: var(--font-body); }

/* ---------- Footer: navy base ---------- */
.footer-v2 { background: var(--navy); color: rgba(255,255,255,.7); padding: 72px 0 36px; }
.footer-v2 .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 44px; margin-bottom: 56px; }
.footer-v2 h4 { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer-v2 ul { list-style: none; }
.footer-v2 li { margin-bottom: 10px; }
.footer-v2 .cols a, .footer-v2 .cols p { color: rgba(255,255,255,.72); font-size: 14px; }
.footer-v2 .cols a:hover { color: #fff; }
.footer-v2 .cols a::after { display: none; }
.footer-v2 .socials { margin-top: 18px; }
.footer-v2 .socials a { color: rgba(255,255,255,.7); }
.footer-v2 .socials a:hover { color: #fff; background: rgba(255,255,255,.1); }
.footer-v2 .base {
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: rgba(255,255,255,.45);
}
.footer-v2 .base a:hover { color: #fff; }

/* ---------- Motion: one quiet fade, that's it ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .06s; } .reveal-d2 { transition-delay: .12s; }

/* Removed machinery: keep classes inert if referenced */
.scroll-progress, .cursor-dot, .cursor-ring, .preloader { display: none !important; }

/* ---------- Call bar (mobile) ---------- */
.call-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: var(--paper); border-top: 1px solid var(--rule-dark);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.call-bar a { flex: 1; text-align: center; justify-content: center; padding: 13px 10px; font-size: 13px; }
@media (max-width: 760px) {
  .call-bar { display: flex; gap: 10px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .footer-v2 { padding-bottom: 100px; }
}

/* Keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .quotes-v2 { grid-template-columns: 1fr; gap: 28px; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .stats-v2 { grid-template-columns: repeat(2, 1fr); }
  .stats-v2 > div:nth-child(3) { border-left: none; }
  .ed-row { grid-template-columns: 60px 1fr; }
  .ed-row .ph-visual { grid-column: 2; }
  .footer-v2 .cols { grid-template-columns: 1fr 1fr; }
  .leader, .leader.flip { grid-template-columns: 1fr; }
  .leader.flip .photo { order: 0; }
  .leader .photo { max-width: 380px; }
  .mega-inner { grid-template-columns: 1fr; gap: 40px; }
  .paths { grid-template-columns: 1fr; border-left: none; border-right: none; }
  .path { border-right: none; padding-left: 0; padding-right: 0; }
  .steps { grid-template-columns: 1fr; border-left: none; }
  .step { border-right: none; padding-left: 0; padding-right: 0; }
}
@media (max-width: 760px) {
  html { font-size: 15px; }
  .topbar { grid-template-columns: auto 1fr; }
  .topbar .left { display: none; }
  .topbar .brand { justify-self: start; }
  .logo-plate img { height: 30px; }
  .hero-v2 { padding-top: 110px; }
  .giant { font-size: clamp(36px, 10.5vw, 48px); }
  .hero-ctas-v2 .pill { flex: 1 1 100%; justify-content: center; }
  section { padding: 48px 0; }
  .statement { font-size: 23px; line-height: 1.42; }
  .strip-nav { display: none; }
  .svc { flex: 0 0 82vw; padding: 28px 22px; }
  .contact-v2 { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
  .ed-row { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .ed-row .ph-visual { grid-column: 1; }
  .footer-v2 .cols { grid-template-columns: 1fr; gap: 30px; }
  .cta-v2 { padding: 40px 24px; }
  .cta-btns .pill { flex: 1 1 100%; justify-content: center; }
  .stats-v2 { grid-template-columns: 1fr 1fr; }
  .stats-v2 > div { padding: 28px 16px; }
  .stats-v2 .num { font-size: 34px; }
  .page-hero-v2 { padding-top: 120px; }
  .mega-links a { font-size: 26px; padding: 18px 4px; }
}
@media (pointer: coarse) {
  .socials a { width: 42px; height: 42px; }
  .socials svg { width: 18px; height: 18px; }
  .pill { padding: 14px 24px; }
  .f-field input, .f-field select, .f-field textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   v6 "MODERN, GROUNDED" — contemporary look without the
   AI tropes. Clean white, navy + burnt-orange, Schibsted
   Grotesk headlines, soft real shadows, no glows/gradients.
   ============================================================ */
:root {
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --ink: #171c26;
  --muted: #5c6675;
  --rule: #e6e8ec;
  --rule-dark: #cfd3da;
  --accent: #3866cc;
  --font-display: 'Schibsted Grotesk', -apple-system, sans-serif;
}
body { background: var(--paper); }
h1,h2,h3 { letter-spacing: -0.02em; font-weight: 700; }

/* Topbar: white, crisp */
.topbar { background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.topbar.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 4px 20px rgba(23,28,38,.05); }

/* Buttons: modern radius, solid navy */
.pill { border-radius: 8px; padding: 13px 26px; font-weight: 700; }
.pill.solid { background: var(--navy); border-color: var(--navy); }
.pill.solid:hover { background: var(--accent); border-color: var(--accent); }

/* Menu: navy overlay, modern rows */
.mega-menu { background: var(--navy); }
.mega-links { border-top-color: rgba(255,255,255,.25); }
.mega-links li { border-bottom-color: rgba(255,255,255,.12); }
.mega-links a { color: rgba(255,255,255,.92); font-weight: 700; }
.mega-links a:hover { color: #a9c7f7; }
.mega-links a .idx { color: rgba(255,255,255,.4); }
.mega-side { color: rgba(255,255,255,.65); }
.mega-side h5 { color: rgba(255,255,255,.4); }
.mega-side a { border-bottom-color: rgba(255,255,255,.3); }
.mega-side a:hover { color: #fff; border-color: #fff; }
.mega-side .socials a { color: rgba(255,255,255,.75); }
.mega-side .socials a:hover { color: #fff; background: rgba(255,255,255,.1); }
body.menu-open .menu-btn { color: #fff; }
body.menu-open .menu-btn .bars span { background: #fff; }

/* Hero: bigger, modern weight */
.giant { font-weight: 800; font-size: clamp(42px, 6.6vw, 88px); letter-spacing: -0.025em; }
.hero-v2 .kicker { color: var(--accent); }
.hero-v2 .kicker::before { background: var(--accent); }
.video-note-v2 { background: var(--paper-2); border-color: var(--rule-dark); }

/* Section labels */
.sec-label { border-top-color: var(--rule-dark); }

/* Statement in modern sans */
.statement { font-weight: 700; letter-spacing: -0.015em; line-height: 1.28; }
.statement .hl, .statement .lw.accent-w, .statement .lw.accent-w.lit { font-style: normal; }

/* Cards: real cards again — border + soft neutral shadow, small lift */
.paths { border: none; gap: 20px; }
.path {
  border: 1px solid var(--rule); border-radius: 12px;
  background: #fff; padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.path:hover { background: #fff; transform: translateY(-4px); box-shadow: 0 16px 36px rgba(23,28,38,.09); border-color: var(--rule-dark); }
.path-cta { border-top-color: var(--rule); }

.strip { border-left: none; gap: 20px; }
.svc {
  border: 1px solid var(--rule); border-radius: 12px; background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc:hover { background: #fff; transform: translateY(-4px); box-shadow: 0 16px 36px rgba(23,28,38,.09); }
.strip-nav button { border-radius: 8px; }

.steps { border: none; gap: 20px; }
.step { border: 1px solid var(--rule); border-radius: 12px; background: var(--paper-2); padding: 30px 28px; }

.lic-grid { border: none; gap: 8px; }
.lic-chip { border: 1px solid var(--rule); border-radius: 8px; background: #fff; padding: 10px 16px; }
.lic-chip:hover { border-color: var(--rule-dark); box-shadow: 0 4px 12px rgba(23,28,38,.06); }
.section-lic { background: var(--paper-2); }

.q-card { border: 1px solid var(--rule); border-top: 3px solid var(--navy); border-radius: 12px; padding: 28px 26px; background: #fff; }
.q-card blockquote { font-family: var(--font-body); font-weight: 500; font-size: 15.5px; color: var(--ink); }

/* Stats: navy band returns */
.stats-v2 { border: none; background: var(--navy); border-radius: 14px; overflow: hidden; }
.stats-v2 > div { border-left: 1px solid rgba(255,255,255,.12); padding: 46px 30px; }
.stats-v2 > div:hover { background: rgba(255,255,255,.04); }
.stats-v2 .num { color: #fff; font-weight: 800; }
.stats-v2 .num em { color: #a9c7f7; }
.stats-v2 .lbl { color: rgba(255,255,255,.55); }

/* CTA */
.cta-v2 { border-radius: 14px; }
.cta-v2 h2 { font-weight: 800; }

/* Editorial rows / forms / jobs: modern radius */
.ph-visual { border-radius: 10px; }
.form-v2, .job, .next-steps { border-radius: 12px; }
.f-field input, .f-field select, .f-field textarea { border-radius: 8px; border-color: var(--rule-dark); background: var(--paper-2); }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { border-color: var(--navy); background: #fff; }
.file-drop { border-radius: 10px; background: var(--paper-2); }
.job .job-chevron { border-radius: 8px; }
.c-item .ic { border-radius: 8px; }

/* Portfolio cards */
.work { border-radius: 12px; transition: transform .25s ease, box-shadow .25s ease; }
.work:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(23,28,38,.16); }
.work .info::after { border-radius: 8px; }

/* Team photos */
.leader .photo { border-radius: 14px; }

/* Case study */
.cs-meta { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.cs-meta > div { padding: 20px 22px; border-left: 1px solid var(--rule); background: #fff; }
.cs-meta > div:first-child { padding-left: 22px; }

/* Call bar */
.call-bar { background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--rule); box-shadow: 0 -6px 24px rgba(23,28,38,.08); }
.call-bar .pill { border-radius: 8px; }

/* Reveal: keep the single subtle fade */


/* ============================================================
   INTERACTIVE LICENSURE MAP
   ============================================================ */
.usmap-wrap { position: relative; }
.usmap { width: 100%; height: auto; display: block; }
.usmap path {
  fill: #e3e6eb; stroke: #fff; stroke-width: 1.2;
  transition: fill .15s ease;
}
.usmap path:hover { fill: #cfd4dc; }
.usmap path.lic { fill: var(--navy); cursor: pointer; }
.usmap path.lic:hover { fill: var(--accent); }
.usmap-tip {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 600; line-height: 1.35;
  padding: 8px 12px; border-radius: 6px;
  transform: translate(-50%, calc(-100% - 10px));
  white-space: nowrap; box-shadow: 0 6px 20px rgba(23,28,38,.25);
}
.usmap-tip small { display: block; font-weight: 400; color: rgba(255,255,255,.7); font-size: 11px; }
.usmap-tip[hidden] { display: none; }
.usmap-legend {
  display: flex; gap: 12px 28px; flex-wrap: wrap; margin-top: 18px;
  font-size: 13px; color: var(--muted);
}
.usmap-legend span { display: inline-flex; align-items: center; gap: 8px; }
.usmap-legend .k { width: 14px; height: 14px; border-radius: 3px; background: #e3e6eb; display: inline-block; }
.usmap-legend .k.on { background: var(--navy); }
@media (pointer: coarse) { .usmap path.lic { cursor: default; } }


/* Puerto Rico licensure note (not on the 50-state map) */
.usmap-legend .pr-note { color: var(--muted); }
.usmap-legend .pr-note::before { content: "+"; color: var(--accent); font-weight: 700; margin-right: 6px; }
.usmap-legend .pr-note strong { color: var(--ink); }


/* ============================================================
   v7 "CODETASTY FORMAT" — dark centered hero with floating
   geometry, horizontal top nav, media card. Same palette, same copy.
   ============================================================ */
:root { --hero-bg: #141b3f; --hero-bg-2: #1C2557; }

/* Top bar: navy, logo left, inline nav right */
.topbar {
  display: flex; align-items: center; gap: 24px;
  background: var(--hero-bg);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: none;
  padding: 12px clamp(20px, 4vw, 48px);
}
.topbar.scrolled { background: var(--hero-bg); box-shadow: 0 6px 24px rgba(10,14,35,.4); }
.top-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); margin-left: auto; }
.top-nav a {
  color: rgba(255,255,255,.8); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; transition: color .2s;
}
.top-nav a:hover, .top-nav a.active { color: #fff; }
.top-nav .pill.solid {
  background: var(--accent); border-color: var(--accent); color: #fff;
  padding: 11px 20px; font-size: 11.5px; letter-spacing: .1em; border-radius: 4px;
}
.top-nav .pill.solid:hover { background: #5583e0; border-color: #5583e0; }
.menu-btn { display: none; color: #fff; }
.menu-btn .bars span { background: #fff; }
@media (max-width: 1024px) {
  .top-nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Hero: dark, centered, floating tiles */
.hero-v2 {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, var(--hero-bg-2), var(--hero-bg) 70%);
  text-align: center;
  padding: clamp(150px, 20vh, 210px) 0 0;
  overflow: hidden;
}
.hero-v2 > * { position: relative; z-index: 2; }
.orb {
  display: block !important; position: absolute; z-index: 1 !important;
  background: rgba(255,255,255,.028); border-radius: 26px;
  filter: none; opacity: 1;
  animation: tileFloat 22s ease-in-out infinite;
}
.orb.o1 { width: 300px; height: 300px; top: 6%; left: -4%; transform: rotate(24deg); }
.orb.o2 { width: 190px; height: 190px; top: 58%; left: 12%; transform: rotate(-14deg); animation-delay: -6s; }
.orb.o3 { width: 360px; height: 360px; top: 2%; right: -6%; transform: rotate(-20deg); }
.orb.o4 { width: 230px; height: 230px; bottom: 6%; right: 10%; transform: rotate(12deg); animation-delay: -12s; }
@keyframes tileFloat {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -26px; }
}
.hero-v2 .kicker {
  justify-content: center; color: rgba(255,255,255,.5);
  letter-spacing: .3em; font-size: 11.5px;
}
.hero-v2 .kicker::before { display: none; }
.giant { color: #fff; font-weight: 800; max-width: 22ch; margin-left: auto; margin-right: auto; font-size: clamp(38px, 5.6vw, 68px); }
.giant .lt { color: #9fb2e0; font-weight: 600; }
.hero-v2 .subword { color: rgba(255,255,255,.45); margin-top: 20px; }
.hero-v2 .tag { color: rgba(255,255,255,.66); margin: 22px auto 0; max-width: 54ch; }
.hero-ctas-v2 { justify-content: center; margin-top: 34px; }
.hero-ctas-v2 .pill.solid { background: var(--accent); border-color: var(--accent); border-radius: 4px; padding: 15px 34px; letter-spacing: .12em; }
.hero-ctas-v2 .pill.solid:hover { background: #5583e0; border-color: #5583e0; }
.hero-ctas-v2 .pill:not(.solid) { border-color: rgba(255,255,255,.4); color: #fff; border-radius: 4px; }
.hero-ctas-v2 .pill:not(.solid):hover { background: #fff; color: var(--navy); border-color: #fff; }
.promise { color: rgba(255,255,255,.5); }

/* The "screenshot" media card peeking out of the hero */
.video-note-v2 {
  position: static; display: grid; place-items: center;
  width: min(880px, 92%); min-height: 300px;
  margin: 72px auto 0; padding: 20px;
  background: #fff; border: none; border-radius: 14px 14px 0 0;
  box-shadow: 0 -24px 80px rgba(5,8,25,.5);
  outline: 1px dashed var(--rule-dark); outline-offset: -14px;
  color: var(--gray); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
}

/* Inner page heroes: same dark centered treatment */
.page-hero-v2 {
  background: radial-gradient(ellipse 90% 80% at 50% 0%, var(--hero-bg-2), var(--hero-bg) 72%);
  text-align: center; padding: clamp(140px, 17vh, 180px) 0 76px;
}
.page-hero-v2 .giant-sm { color: #fff; font-weight: 800; }
.page-hero-v2 p.lede { color: rgba(255,255,255,.66); margin: 22px auto 0; }
.page-hero-v2 .sec-label {
  justify-content: center; border-top: none; padding-top: 0;
  color: rgba(255,255,255,.5); letter-spacing: .28em;
}

/* Section heads: centered, CodeTasty-style */
.sec-label { justify-content: center; }
.strip-head { justify-content: center; text-align: center; }
.strip-head > div { width: 100%; }
.lic-head { text-align: center; grid-template-columns: 1fr; justify-items: center; }
.statement { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons sitewide: 4px radius like the reference */
.pill { border-radius: 4px; }

/* Mobile: hero paddings */
@media (max-width: 760px) {
  .hero-v2 { padding-top: 120px; }
  .video-note-v2 { min-height: 200px; margin-top: 48px; }
  .orb.o1, .orb.o3 { width: 200px; height: 200px; }
}
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }


/* ============================================================
   v8 "COMPACT + CONDENSED" — tighter UI density, plain-font
   typographic contrast: big condensed caps vs small wide labels.
   Archivo Narrow display / Hanken Grotesk text. Same palette, same copy.
   ============================================================ */
:root { --font-display: 'Archivo Narrow', 'Arial Narrow', sans-serif; }

html { font-size: 15px; }
body { line-height: 1.6; font-size: 15px; }

/* Display voice: condensed caps, tight leading */
h1, h2, h3 { letter-spacing: .01em; }
.giant, .giant-sm, .strip-head h2, .cta-v2 h2, .svc h3, .ed-row h3,
.leader h3, .work h3, .path h3, .step h3, .lic-head h2, .form-v2 h3,
.job .job-title, .cs-block h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .015em;
}

/* Topbar: slimmer */
.topbar { padding: 9px clamp(16px, 3vw, 36px); }
.logo-plate img { height: 30px; }
.topbar.scrolled .logo-plate img { height: 28px; }
.logo-plate { padding: 5px 10px; background: #fff; border-radius: 5px; }
.top-nav { gap: clamp(14px, 2vw, 24px); }
.top-nav a { font-size: 11px; letter-spacing: .14em; }
.top-nav .pill.solid { padding: 9px 16px; font-size: 10.5px; }

/* Hero: compact */
.hero-v2 { padding: clamp(110px, 15vh, 150px) 0 0; }
.giant { font-size: clamp(40px, 6.6vw, 84px); line-height: .98; max-width: 24ch; }
.giant .lt { font-weight: 600; }
.hero-v2 .kicker { margin-bottom: 20px; font-size: 10.5px; }
.hero-v2 .tag { margin-top: 16px; font-size: 15px; max-width: 52ch; }
.hero-v2 .subword { margin-top: 14px; font-size: 11px; }
.hero-ctas-v2 { margin-top: 24px; gap: 10px; }
.hero-ctas-v2 .pill.solid { padding: 12px 26px; }
.promise { margin-top: 14px; font-size: 12.5px; }
.video-note-v2 { min-height: 240px; margin-top: 52px; padding: 14px; outline-offset: -10px; }

/* Sections: denser rhythm */
section { padding: clamp(44px, 7vh, 76px) 0; }
.sec-label { margin-bottom: 22px; font-size: 10.5px; letter-spacing: .3em; }
.statement { font-size: clamp(22px, 3.2vw, 38px); line-height: 1.25; max-width: 30ch; }

/* Page heroes */
.page-hero-v2 { padding: clamp(110px, 14vh, 140px) 0 52px; }
.page-hero-v2 .giant-sm { font-size: clamp(32px, 5.4vw, 64px); line-height: .98; }
.page-hero-v2 p.lede { margin-top: 14px; font-size: 15px; }

/* Buttons: compact */
.pill { padding: 10px 20px; font-size: 12px; letter-spacing: .06em; gap: 8px; }

/* Cards: tighter padding + gaps */
.paths { gap: 14px; }
.path { padding: 22px 20px; gap: 9px; }
.path h3 { font-size: 19px; }
.path p { font-size: 13.5px; }
.path-who { font-size: 10px; }
.path-cta { padding-top: 12px; font-size: 12px; }

.strip { gap: 14px; padding-bottom: 16px; }
.svc { flex: 0 0 clamp(260px, 28vw, 360px); padding: 24px 22px; }
.svc .big-n { margin-bottom: 24px; font-size: 12px; }
.svc h3 { font-size: 20px; margin-bottom: 8px; }
.svc p { font-size: 13.5px; margin-bottom: 16px; }
.strip-head { margin-bottom: 24px; }
.strip-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.strip-nav button { width: 38px; height: 38px; font-size: 15px; }

.steps { gap: 14px; }
.step { padding: 22px 20px; }
.step-n { margin-bottom: 22px; font-size: 12px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 13.5px; }

.stats-v2 > div { padding: 30px 22px; }
.stats-v2 .num { font-size: clamp(34px, 3.8vw, 50px); font-family: var(--font-display); }
.stats-v2 .lbl { font-size: 10px; margin-top: 6px; }

.quotes-v2 { gap: clamp(16px, 2.4vw, 28px); }
.q-card { padding: 22px 20px; gap: 12px; }
.q-card blockquote { font-size: 14px; }
.q-card .who .nm { font-size: 13px; }
.q-card .who .rl { font-size: 10.5px; }

.section-lic { padding: clamp(44px, 7vh, 70px) 0; }
.lic-head { margin-bottom: 24px; }
.lic-head h2 { font-size: clamp(24px, 3vw, 36px); }
.lic-head p { font-size: 14px; }
.usmap-legend { font-size: 12px; margin-top: 14px; }

.cta-v2 { padding: clamp(34px, 5vw, 56px) clamp(24px, 4vw, 56px); }
.cta-v2 h2 { font-size: clamp(26px, 3.8vw, 46px); margin-bottom: 12px; }
.cta-v2 p { margin-bottom: 22px; font-size: 14.5px; }
.cta-proof { margin-top: 22px; font-size: 13.5px; }
.cta-trust { margin-top: 14px; font-size: 10px; }

/* Editorial rows / team / careers / contact */
.ed-row { padding: 36px 0; gap: clamp(16px, 3vw, 40px); }
.ed-row h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 10px; }
.ed-row .body p { font-size: 14px; margin-bottom: 10px; }
.tags { margin: 12px 0 16px; }
.ph-visual { min-height: 210px; font-size: 10.5px; }
.leader { padding: 32px 0; gap: clamp(22px, 3.6vw, 52px); grid-template-columns: 320px 1fr; }
.leader.flip { grid-template-columns: 1fr 320px; }
.leader h3 { font-size: clamp(24px, 2.8vw, 34px); }
.leader .creds { font-size: 11px; margin: 8px 0 12px; }
.leader p { font-size: 14px; margin-bottom: 10px; }
.check-v2 li { padding: 9px 0 9px 22px; font-size: 13.5px; }
.check-v2 li::before { top: 9px; font-size: 11.5px; }
.job summary { padding: 18px 20px; }
.job .job-title { font-size: clamp(17px, 1.8vw, 21px); }
.job .job-meta { font-size: 10px; }
.job .job-chevron { width: 30px; height: 30px; font-size: 12px; }
.job .job-body { padding: 0 20px 22px; }
.job-cols { margin: 14px 0 18px; }
.job-cols .check-v2 li { font-size: 13px; }
.next-steps { padding: 16px 18px; margin-bottom: 16px; }
.next-steps li { font-size: 13.5px; margin-bottom: 4px; }
.form-v2 { padding: clamp(20px, 3vw, 32px); }
.form-v2 h3 { font-size: 20px; margin-bottom: 16px; }
.f-field { gap: 5px; margin-bottom: 13px; }
.f-field label { font-size: 10px; }
.f-field input, .f-field select, .f-field textarea { padding: 11px 12px; font-size: 14px; }
.f-field textarea { min-height: 90px; }
.file-drop { padding: 20px 16px; }
.c-item { padding: 13px 0; gap: 12px; }
.c-item .ic { width: 34px; height: 34px; font-size: 14px; }
.c-item p, .c-item a { font-size: 14px; }
.works { gap: 14px; }
.work { min-height: 260px; }
.work .info { padding: 18px; }
.work h3 { font-size: 17px; }
.work .info::after { width: 30px; height: 30px; font-size: 13px; }
.cs-meta > div { padding: 14px 16px; }
.cs-meta p { font-size: 13.5px; }
.cs-block { margin-bottom: 28px; }
.cs-block p { font-size: 15px; }

/* Footer: compact */
.footer-v2 { padding: 44px 0 24px; }
.footer-v2 .cols { gap: 32px; margin-bottom: 34px; }
.footer-v2 .cols a, .footer-v2 .cols p { font-size: 13px; }
.footer-v2 li { margin-bottom: 7px; }
.footer-v2 h4 { margin-bottom: 12px; font-size: 10px; }
.footer-v2 .base { padding-top: 16px; font-size: 11.5px; }
.footer-v2 .logo-plate img { height: 30px; }

/* Mega menu (mobile): condensed caps too */
.mega-links a { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(24px, 4vw, 40px); padding: 16px 4px; }
.mega-inner { padding-top: 84px; padding-bottom: 40px; gap: 36px; }
.mega-side { font-size: 13.5px; }

/* Call bar compact */
.call-bar a { padding: 11px 8px; font-size: 12px; }
@media (max-width: 760px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .giant { font-size: clamp(34px, 10vw, 46px); }
  section { padding: 36px 0; }
  .video-note-v2 { min-height: 170px; margin-top: 36px; }
}

/* ============================================================
   v8.1 PROFESSIONAL POLISH — small refinements only
   ============================================================ */

/* Headings in brand navy on light sections; hero stays white */
h2, h3 { color: var(--navy); }
.hero-v2 h1, .hero-v2 .giant, .page-hero-v2 .giant-sm,
.cta-v2 h2, .work h3, .footer-v2 h4 { color: #fff; }
.giant .lt { color: #9fb2e0; }

/* Buttons: hover in brand navy, not black */
.pill:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Numerals align in tables and stats */
.stats-v2 .num, .cs-meta p, .tel-link { font-variant-numeric: tabular-nums; }

/* Slightly calmer condensed caps: breathing room between words */
.giant, .giant-sm, .strip-head h2, .cta-v2 h2 { word-spacing: .06em; }

/* Form: consistent select chevron */
.f-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" fill="none" stroke="%236d7280" stroke-width="1.5"/></svg>');
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}

/* Alternating section tint for rhythm on long pages */
.section-lic, .steps .step, .video-note-v2 { background-clip: padding-box; }

/* Quieter reveal distance — subtle, not springy */
.reveal { transform: translateY(8px); }

/* Print stylesheet — engineers print things */
@media print {
  .topbar, .mega-menu, .call-bar, .cta-v2, .video-note-v2,
  .strip-nav, .socials, .menu-btn, .hero-ctas-v2, .promise { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; padding: 0 !important; }
  .hero-v2, .page-hero-v2 { background: #fff; padding: 20pt 0 10pt; text-align: left; }
  .hero-v2 h1, .giant, .giant-sm { color: #000; }
  .giant .lt { color: #444; }
  .hero-v2 .tag, .page-hero-v2 p.lede { color: #333; }
  section { padding: 14pt 0; }
  .footer-v2 { background: #fff; color: #333; border-top: 1pt solid #999; padding: 12pt 0; }
  .footer-v2 .cols a, .footer-v2 .cols p, .footer-v2 .base { color: #333; }
  .logo-plate { box-shadow: none; }
  a[href^="http"]::after { content: ""; }
  .usmap path.lic { fill: #444 !important; }
}

/* White logo on navy: no plate, transparent, slightly larger */
.logo-plate { background: transparent !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.logo-plate img { height: 36px; }
.topbar.scrolled .logo-plate img { height: 32px; }
.footer-v2 .logo-plate img { height: 38px; }
@media (max-width: 760px) { .logo-plate img { height: 30px; } }
@media print { .logo-plate img { filter: invert(1) hue-rotate(180deg); } }

/* ============================================================
   SCI-FI DYNAMIC HERO BACKGROUND — particle network canvas
   ============================================================ */
.orb { display: none !important; }
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.hero-v2, .page-hero-v2 { position: relative; overflow: hidden; }
.hero-v2 > *:not(.hero-canvas), .page-hero-v2 .wrap { position: relative; z-index: 2; }

/* Topbar transparent over the hero so the effect spans the full screen height */
.topbar { background: transparent; border-bottom-color: transparent; }
.topbar.scrolled {
  background: rgba(13,18,45,.92); backdrop-filter: blur(10px);
  border-bottom-color: rgba(255,255,255,.08);
}
/* Heroes tuck up under the transparent bar */
.hero-v2 { padding-top: clamp(140px, 18vh, 180px); }
.page-hero-v2 { padding-top: clamp(130px, 16vh, 165px); }

/* ============================================================
   HERO STRETCH — full-scale stage, wider column, bigger type
   ============================================================ */
.hero-v2 { padding: clamp(170px, 24vh, 260px) 0 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-start; }
.hero-v2 > * { max-width: 1440px; }
.giant { font-size: clamp(44px, 7.4vw, 110px); max-width: 20ch; line-height: 1.02; }
.hero-v2 .kicker { font-size: 13px; letter-spacing: .34em; margin-bottom: 28px; }
.hero-v2 .subword { font-size: 13px; margin-top: 26px; letter-spacing: .3em; }
.hero-v2 .tag { max-width: 74ch; font-size: clamp(16px, 1.4vw, 19px); margin-top: 26px; }
.hero-ctas-v2 { margin-top: 36px; gap: 14px; }
.hero-ctas-v2 .pill { padding: 15px 34px; font-size: 13px; }
.promise { margin-top: 18px; font-size: 14px; }
.video-note-v2 { width: min(1160px, 94%); min-height: 400px; margin-top: 84px; }

/* Inner page heroes breathe more too */
.page-hero-v2 { padding: clamp(160px, 22vh, 230px) 0 90px; }
.page-hero-v2 .giant-sm { font-size: clamp(36px, 6vw, 84px); }
.page-hero-v2 p.lede { max-width: 70ch; font-size: clamp(15px, 1.3vw, 18px); margin-top: 20px; }
.page-hero-v2 .sec-label { margin-bottom: 30px; }

@media (max-width: 760px) {
  .hero-v2 { padding-top: 130px; min-height: auto; }
  .giant { font-size: clamp(36px, 10.5vw, 48px); }
  .video-note-v2 { min-height: 200px; margin-top: 44px; }
  .page-hero-v2 { padding: 120px 0 48px; }
}

/* ============ FULL-BLEED HERO — effect spans the entire screen ============ */
body { overflow-x: clip; }
.hero-v2, .page-hero-v2 {
  width: 100vw; max-width: 100vw;
  margin-left: calc(50% - 50vw);
}
.hero-canvas { left: 0; right: 0; top: 0; bottom: 0; width: 100%; height: 100%; }
/* flatten the radial fade so edges stay as visible as the center */
.hero-v2 { background: radial-gradient(ellipse 140% 90% at 50% 0%, var(--hero-bg-2), var(--hero-bg) 88%); }
.page-hero-v2 { background: radial-gradient(ellipse 140% 100% at 50% 0%, var(--hero-bg-2), var(--hero-bg) 90%); }

/* ============ FULL-SCREEN HERO + MEDIA BAND BELOW ============ */
/* Hero fills the whole first screen; the skyline runs uninterrupted along its base */
.hero-v2 {
  min-height: 100svh;
  padding: clamp(170px, 22vh, 250px) 0 clamp(300px, 32vh, 420px);
  justify-content: flex-start;
}
/* The media card now sits in its own white band under the hero */
.media-band { padding: clamp(48px, 6vw, 80px) 0 0; background: var(--paper); }
.media-band .video-note-v2 {
  position: static; display: grid; place-items: center;
  width: min(1160px, 94%); min-height: 400px;
  margin: 0 auto; padding: 20px;
  background: #fff; border-radius: 14px;
  border: 1px solid var(--rule, #e6e8ee);
  box-shadow: 0 22px 70px rgba(10, 16, 45, .12);
  outline: 1px dashed var(--rule-dark); outline-offset: -14px;
}
@media (max-width: 760px) {
  .hero-v2 { min-height: auto; padding: 130px 0 220px; }
  .media-band { padding-top: 36px; }
  .media-band .video-note-v2 { min-height: 220px; }
}

/* ============ CANVAS EXEMPT FROM HERO CHILD CLAMP ============ */
/* .hero-v2 > * clamps children to a centered max-width — the canvas must escape it */
.hero-v2 > .hero-canvas,
.page-hero-v2 > .hero-canvas,
canvas.hero-canvas {
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
}

/* ============ ORBIT — What We Do cards on a globe ring ============ */
.orbit-stage { position: relative; height: 500px; margin-top: 8px; }
.orbit-globe {
  position: absolute; left: 50%; top: 50%; width: min(920px, 100%); height: auto;
  transform: translate(-50%, -50%); pointer-events: none;
}
.orbit-globe .orbit-path { animation: orbitDash 30s linear infinite; }
@keyframes orbitDash { to { stroke-dashoffset: -220; } }
.orbit {
  position: absolute; inset: 0;
  perspective: 1500px; transform-style: preserve-3d;
  cursor: grab; touch-action: pan-y;
}
.orbit.spinning { cursor: grabbing; }
.orbit .svc {
  position: absolute; left: 50%; top: 50%;
  width: min(430px, 82vw); flex: none;
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  padding: 30px 28px;
  box-shadow: 0 26px 60px rgba(16, 24, 60, .10);
  transition: transform .7s cubic-bezier(.22,.61,.21,1), opacity .7s ease, filter .7s ease;
  will-change: transform, opacity;
  user-select: none;
}
.orbit.spinning .svc { transition: none; }
.orbit .svc.is-front { border-color: var(--rule-dark); box-shadow: 0 34px 80px rgba(16, 24, 60, .16); }
.orbit .svc:hover { background: #fff; }
.orbit-dots { position: absolute; left: 0; right: 0; bottom: -6px; display: flex; justify-content: center; gap: 10px; }
.orbit-dots button {
  width: 26px; height: 4px; border-radius: 2px; border: none; cursor: pointer;
  background: var(--rule-dark, #d8dbe4); padding: 0; transition: background .3s, width .3s;
}
.orbit-dots button.on { background: var(--accent); width: 44px; }
@media (max-width: 760px) {
  .orbit-stage { height: 440px; }
  .orbit .svc { padding: 24px 20px; }
  .orbit-globe { width: 150%; }
}

/* ============ SECTION 01 — DOCUMENTS ON A DESK ============ */
.section-paths .paths {
  position: relative;
  background:
    linear-gradient(rgba(56,102,204,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,102,204,.045) 1px, transparent 1px),
    linear-gradient(180deg, #f2f4f9, #eef1f7);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 52px);
  box-shadow: inset 0 2px 14px rgba(16,24,60,.05);
  counter-reset: doc;
}
.paths .path {
  position: relative;
  counter-increment: doc;
  background: #fff;
  border: 1px solid var(--rule-dark);
  border-radius: 3px;
  box-shadow: 0 10px 26px rgba(16,24,60,.10);
  transform: rotate(var(--rot, 0deg));
  transition: transform .5s cubic-bezier(.34,1.4,.5,1), box-shadow .5s ease, border-color .3s;
  overflow: hidden;
  z-index: 1;
}
.paths .path:nth-child(1) { --rot: -1.7deg; }
.paths .path:nth-child(2) { --rot: 1.3deg; top: 10px; }
.paths .path:nth-child(3) { --rot: -0.9deg; top: 4px; }
/* the sheet stacked beneath each document */
.paths .path::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #fafbfd; border: 1px solid var(--rule);
  transform: translate(7px, 9px) rotate(.6deg);
  border-radius: 3px;
}
/* glossy light sweep */
.paths .path::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.55) 50%, rgba(169,199,247,.18) 54%, transparent 62%);
  background-size: 260% 100%;
  background-position: 120% 0;
  transition: background-position 1.1s ease;
}
.paths .path:hover::after { background-position: -140% 0; }
/* letterhead: rule + doc number stamp above the audience line */
.paths .path .path-who::before {
  content: "TCE \00B7 FILE 0" counter(doc);
  display: block;
  font-size: 10px; letter-spacing: .3em; font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px; margin-bottom: 12px;
}
.paths .path:hover {
  transform: rotate(0deg) translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(16,24,60,.20);
  border-color: var(--accent);
  z-index: 5;
  background: #fff;
}
/* settle onto the desk on scroll */
.paths .path.reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.34,1.3,.5,1); }
.paths .path.reveal:not(.visible) { opacity: 0; transform: rotate(calc(var(--rot, 0deg) * 3)) translateY(-30px) scale(1.04); }
.paths .path.reveal.visible { opacity: 1; transform: rotate(var(--rot, 0deg)); }

/* ============ SECTION 02 — STATEMENT SHIMMER ============ */
.statement .hl {
  background: linear-gradient(90deg, var(--accent), #8fb4e8, var(--accent));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .statement .hl { animation: hlShift 5.5s linear infinite; }
}
@keyframes hlShift { to { background-position: -220% 0; } }

/* ============ STATS BAND — GLASS SHEEN ============ */
.stats-v2 { position: relative; overflow: hidden; }
.stats-v2::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.085) 50%, transparent 60%);
  background-size: 280% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .stats-v2::after { animation: bandSheen 7s ease-in-out infinite; }
}
@keyframes bandSheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -160% 0; } }
.stats-v2 > div { transition: background .35s; }
.stats-v2 > div:hover { background: rgba(255,255,255,.04); }
.stats-v2 .num { transition: text-shadow .35s; }
.stats-v2 > div:hover .num { text-shadow: 0 0 26px rgba(169,199,247,.65); }

/* ============ REVIEWS — GLOSSY FLOATING CARDS ============ */
.q-card {
  position: relative; overflow: hidden;
  transition: transform .45s ease, box-shadow .45s ease;
}
.q-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.5) 50%, transparent 58%);
  background-size: 260% 100%; background-position: 130% 0;
  transition: background-position 1s ease;
}
.q-card:hover::after { background-position: -130% 0; }
.q-card:hover { transform: translateY(-9px) rotate(-.4deg); box-shadow: 0 26px 56px rgba(16,24,60,.14); }
@media (prefers-reduced-motion: no-preference) {
  .quotes-v2 .q-card.visible { animation: qFloat 7s ease-in-out infinite; }
  .quotes-v2 .q-card.visible:nth-child(2) { animation-delay: -2.3s; }
  .quotes-v2 .q-card.visible:nth-child(3) { animation-delay: -4.6s; }
}
@keyframes qFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* ============ HOW IT WORKS — DRAWN CONNECTOR + STEP BADGES ============ */
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; top: -16px; left: 1%; right: 1%; height: 2px;
  background: linear-gradient(90deg, var(--accent), #a9c7f7);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s cubic-bezier(.6,.05,.25,1) .2s;
}
.steps.visible::before { transform: scaleX(1); }
.step { position: relative; overflow: hidden; transition: transform .4s ease, box-shadow .4s ease; }
.step:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(16,24,60,.10); }
.step .step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--rule-dark); background: #fff;
  font-weight: 700; font-size: 13px;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.steps.visible .step:nth-child(1) .step-n { transition-delay: .5s; }
.steps.visible .step:nth-child(2) .step-n { transition-delay: 1.0s; }
.steps.visible .step:nth-child(3) .step-n { transition-delay: 1.5s; }
.steps.visible .step-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.step::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.45) 50%, transparent 58%);
  background-size: 260% 100%; background-position: 130% 0;
  transition: background-position 1s ease;
}
.step:hover::after { background-position: -130% 0; }

/* ============ CTA — CURSOR GLOW + GLASS ============ */
.cta-v2 { position: relative; overflow: hidden; }
.cta-v2 > * { position: relative; z-index: 1; }
.cta-v2::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(460px circle at var(--mx, 75%) var(--my, 20%), rgba(93,140,210,.28), transparent 62%);
  transition: opacity .3s;
}
.cta-v2::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.05) 50%, transparent 58%);
  background-size: 300% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .cta-v2::after { animation: bandSheen 9s ease-in-out infinite; }
}
/* glossy buttons everywhere */
.pill.solid { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 18px rgba(28,37,87,.22); }

/* ============ SECTION 02 — INK-IN STATEMENT + WATERMARK ============ */
.section-statement { position: relative; overflow: hidden; }
.section-statement .wrap { position: relative; z-index: 1; }
.section-statement::before {
  content: "02"; position: absolute; top: 50%; right: 2%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(160px, 26vw, 380px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(53, 101, 176, .10);
  pointer-events: none; user-select: none;
}
.statement .w { opacity: .13; transition: opacity .4s ease; }
.statement .w.on { opacity: 1; }
.statement .hl .w { transition: opacity .4s ease; }

/* ============ SECTION 03 HEAD — MASKED LINE REVEAL + WATERMARK ============ */
.section-disciplines { position: relative; overflow: hidden; }
.section-disciplines .wrap { position: relative; z-index: 1; }
.section-disciplines::before {
  content: "03"; position: absolute; top: 6%; left: 1%;
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(150px, 22vw, 320px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(53, 101, 176, .09);
  pointer-events: none; user-select: none;
}
.strip-head h2 .lm { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.strip-head h2 .ln {
  display: inline-block; transform: translateY(112%);
  transition: transform .9s cubic-bezier(.19, .68, .17, 1);
}
.strip-head h2 .lm:nth-child(2) .ln { transition-delay: .13s; }
.strip-head h2.visible .ln { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .strip-head h2 .ln { transform: none; transition: none; }
  .statement .w { opacity: 1; transition: none; }
}

/* ============ STATS BAND — COMPACT, CENTERED, REFINED ============ */
.stats-v2 {
  max-width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e2a5e 0%, var(--navy) 55%, #171f4b 100%);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 20px 50px rgba(16, 24, 60, .18);
}
.stats-v2 > div {
  padding: 28px 18px 26px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,.09);
}
.stats-v2 > div:first-child { border-left: none; }
.stats-v2 .num {
  font-size: clamp(28px, 2.7vw, 42px);
  font-weight: 700;
  letter-spacing: .01em;
}
.stats-v2 .lbl {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.52);
}
@media (max-width: 900px) {
  .stats-v2 > div:nth-child(3) { border-left: none; }
  .stats-v2 > div:nth-child(1), .stats-v2 > div:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.09); }
}
@media (max-width: 760px) {
  .stats-v2 { max-width: calc(100% - 32px); }
  .stats-v2 > div { padding: 20px 12px 18px; }
}

/* ============ SECTION 05 — DARK GLOWING MAP TABLE ============ */
.map-panel {
  background: linear-gradient(160deg, #1e2a5e 0%, var(--navy) 45%, #131a40 100%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 48px) clamp(18px, 3vw, 44px) clamp(20px, 2.5vw, 32px);
  box-shadow: 0 26px 70px rgba(16, 24, 60, .22);
  perspective: 1500px;
}
.map-panel .usmap {
  transform: rotateX(14deg);
  transform-origin: 50% 62%;
  will-change: transform;
}
/* dark restyle of the states */
.map-panel .usmap path {
  fill: rgba(255,255,255,.05);
  stroke: rgba(255,255,255,.15);
  stroke-width: 1;
  transform-box: fill-box; transform-origin: center;
  transition: fill .2s ease, transform .3s ease, filter .3s ease;
}
.map-panel .usmap path:hover { fill: rgba(255,255,255,.13); transform: translateY(-4px); }
.map-panel .usmap path.lic {
  fill: #3159b3;
  stroke: rgba(169,199,247,.5);
  filter: drop-shadow(0 0 5px rgba(93,140,210,.35));
}
.map-panel .usmap path.lic:hover {
  fill: #5583e0;
  transform: translateY(-7px) scale(1.01);
  filter: drop-shadow(0 10px 18px rgba(5,10,30,.6)) drop-shadow(0 0 14px rgba(120,165,235,.7));
}
/* legend on dark */
.map-panel .usmap-legend { color: rgba(255,255,255,.6); }
.map-panel .usmap-legend .k { background: rgba(255,255,255,.10); border-radius: 3px; }
.map-panel .usmap-legend .k.on { background: #5583e0; box-shadow: 0 0 8px rgba(93,140,210,.6); }
.map-panel .usmap-legend .pr-note { color: rgba(255,255,255,.6); }
.map-panel .usmap-legend .pr-note strong { color: #fff; }
/* HQ beacon — Miami Lakes */
.hq-dot { fill: #a9c7f7; stroke: #fff; stroke-width: 1.2; }
.hq-ring {
  fill: none; stroke: #a9c7f7; stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .hq-ring { animation: hqPulse 2.8s ease-out infinite; }
  .hq-ring.r2 { animation-delay: 1.4s; }
}
@keyframes hqPulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
/* radar ping spawned on hover */
.usmap .ping {
  fill: none; stroke: #a9c7f7; stroke-width: 2; pointer-events: none;
  transform-box: fill-box; transform-origin: center;
  animation: pingAnim .7s ease-out forwards;
}
@keyframes pingAnim { from { transform: scale(.3); opacity: .85; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-panel .usmap { transform: none !important; } }
@media (max-width: 760px) { .map-panel .usmap { transform: none; } }

/* ============ MAP PANEL — TRANSPARENT + SMALLER PINGS ============ */
.map-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: clamp(12px, 2vw, 24px) 0 0;
}
/* back to page-friendly state colors, keep lift + glow behavior */
.map-panel .usmap path { fill: #e8eaf0; stroke: #fff; }
.map-panel .usmap path:hover { fill: #d6dae3; transform: translateY(-4px); }
.map-panel .usmap path.lic {
  fill: var(--navy);
  stroke: #fff;
  filter: none;
}
.map-panel .usmap path.lic:hover {
  fill: var(--accent);
  transform: translateY(-6px) scale(1.01);
  filter: drop-shadow(0 12px 16px rgba(16,24,60,.35));
}
.map-panel .usmap-legend { color: var(--muted); }
.map-panel .usmap-legend .k { background: #e8eaf0; box-shadow: none; }
.map-panel .usmap-legend .k.on { background: var(--navy); box-shadow: none; }
.map-panel .usmap-legend .pr-note { color: var(--muted); }
.map-panel .usmap-legend .pr-note strong { color: var(--ink); }
/* beacon + ping recolored for light background, ping much smaller */
.hq-dot { fill: var(--accent); stroke: #fff; }
.hq-ring { stroke: var(--accent); }
@keyframes hqPulse { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.usmap .ping { stroke: var(--accent); stroke-width: 1.5; }
@keyframes pingAnim { from { transform: scale(.5); opacity: .7; } to { transform: scale(1.5); opacity: 0; } }

/* ================================================================
   SUBPAGE MOTION PACK — firm / services / portfolio / careers / contact
   ================================================================ */

/* ---- SERVICES: editorial rows ---- */
.ed-row .n {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(42px, 5vw, 72px); line-height: .9;
  color: transparent; -webkit-text-stroke: 1.3px var(--rule-dark);
  transition: color .9s ease, -webkit-text-stroke-color .9s ease;
}
.ed-row .n::after { content: ""; }
.ed-row.visible .n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.ed-row .body.reveal, .ed-row .ph-visual.reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.65,.2,1); }
.ed-row .body.reveal:not(.visible) { opacity: 0; transform: translateX(-34px); }
.ed-row .ph-visual.reveal:not(.visible) { opacity: 0; transform: translateX(34px); }
.ph-visual {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(56,102,204,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,102,204,.05) 1px, transparent 1px),
    linear-gradient(180deg, #f2f4f9, #eef1f7);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  transition: transform .4s ease, box-shadow .4s ease;
}
.ph-visual:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(16,24,60,.13); }
.ph-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.55) 50%, transparent 58%);
  background-size: 260% 100%; background-position: 130% 0;
  transition: background-position 1s ease;
}
.ph-visual:hover::after { background-position: -130% 0; }
.tags span { transition: background .25s, color .25s, border-color .25s, transform .25s; }
.tags span:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }

/* ---- PORTFOLIO: project cards ---- */
.work { transition: transform .45s ease, box-shadow .45s ease; }
.work:hover { transform: translateY(-9px); box-shadow: 0 28px 60px rgba(16,24,60,.30); }
.work::before {
  content: ""; position: absolute; inset: 12px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(169,199,247,0); transition: border-color .45s ease, inset .45s ease;
}
.work:hover::before { border-color: rgba(169,199,247,.55); inset: 9px; }
.work > .sheen-w, .work::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.14) 50%, transparent 58%);
  background-size: 260% 100%; background-position: 130% 0;
  transition: background-position 1s ease;
}
.work:hover::after { background-position: -130% 0; }
.work .cat { transition: color .35s; }
.work:hover .cat { color: #a9c7f7; }
.work h3 { transition: transform .35s ease; }
.work:hover h3 { transform: translateX(4px); }

/* ---- FIRM: leader card ---- */
.leader { transition: transform .35s ease; will-change: transform; }
.leader .photo { transition: box-shadow .45s ease, border-color .45s ease; }
.leader:hover .photo { border-color: var(--accent); box-shadow: 0 26px 56px rgba(16,24,60,.18); }
.leader .photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.4) 50%, transparent 58%);
  background-size: 260% 100%; background-position: 130% 0;
  transition: background-position 1.1s ease;
}
.leader:hover .photo::after { background-position: -130% 0; }
.check-v2 li { transition: padding-left .3s ease; }
.check-v2 li:hover { padding-left: 36px; }

/* ---- CAREERS + CONTACT: accordions ---- */
.job { position: relative; transition: border-color .3s, box-shadow .35s, transform .3s; }
.job::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; z-index: 1;
  background: linear-gradient(var(--accent), #a9c7f7);
  transform: scaleY(0); transform-origin: top; transition: transform .45s ease;
}
.job:hover { transform: translateX(5px); border-color: var(--rule-dark); }
.job:hover::before, .job[open]::before { transform: scaleY(1); }
.job[open] { box-shadow: 0 18px 44px rgba(16,24,60,.09); border-color: var(--rule-dark); }
.job[open] .job-body { animation: jobOpen .5s ease; }
@keyframes jobOpen { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.job .job-chevron { transition: transform .4s ease, background .3s, color .3s, border-color .3s; }
.job[open] .job-chevron { transform: rotate(180deg); background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- FORMS: glossy panel + focus glow ---- */
.form-v2 { border-radius: 14px; box-shadow: 0 24px 60px rgba(16,24,60,.07); }
.f-field input, .f-field select, .f-field textarea { transition: border-color .25s, box-shadow .25s, background .25s; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56,102,204,.14);
}
.file-drop { transition: border-color .3s, background .3s, transform .3s; }
.file-drop:hover { border-color: var(--accent); background: rgba(56,102,204,.05); transform: translateY(-2px); }

/* ---- CONTACT: info items + next steps rail ---- */
.c-item { transition: transform .3s ease; }
.c-item:hover { transform: translateX(6px); }
.c-item .ic { transition: background .3s, color .3s, border-color .3s, transform .3s; }
.c-item:hover .ic { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(-6deg) scale(1.08); }
.next-steps { position: relative; overflow: hidden; }
.next-steps::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--accent), #a9c7f7);
  transform: scaleY(0); transform-origin: top; transition: transform 1s ease .2s;
}
.next-steps.visible::after { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  .ed-row .body.reveal:not(.visible), .ed-row .ph-visual.reveal:not(.visible) { transform: none; }
}

/* ============ CAREERS — MISSION-BRIEFING CONSOLE ============ */
.console {
  background: linear-gradient(160deg, #1e2a5e 0%, var(--navy) 45%, #131a40 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(16, 24, 60, .25);
}
.console-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.con-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.con-title {
  margin-left: 12px; font-size: 11px; font-weight: 700;
  letter-spacing: .28em; color: rgba(255,255,255,.55);
}
.con-status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .18em; color: #a9c7f7;
}
.con-live { width: 8px; height: 8px; border-radius: 50%; background: #a9c7f7; }
@media (prefers-reduced-motion: no-preference) {
  .con-live { animation: conPulse 1.8s ease-out infinite; }
}
@keyframes conPulse {
  0% { box-shadow: 0 0 0 0 rgba(169,199,247,.55); }
  100% { box-shadow: 0 0 0 9px rgba(169,199,247,0); }
}
.console-body { display: grid; grid-template-columns: 320px 1fr; min-height: 520px; }
/* roster */
.con-list { border-right: 1px solid rgba(255,255,255,.08); padding: 14px 0; display: flex; flex-direction: column; }
.con-item {
  display: flex; align-items: flex-start; gap: 14px; width: 100%;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 18px 20px; position: relative;
  transition: background .25s;
}
.con-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--accent), #a9c7f7);
  transform: scaleY(0); transition: transform .35s ease;
}
.con-item:hover { background: rgba(255,255,255,.045); }
.con-item.active { background: rgba(255,255,255,.07); }
.con-item.active::before { transform: scaleY(1); }
.con-light {
  width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0;
  background: rgba(255,255,255,.25); transition: background .3s;
}
.con-item.active .con-light { background: #a9c7f7; }
@media (prefers-reduced-motion: no-preference) {
  .con-item.active .con-light { animation: conPulse 1.8s ease-out infinite; }
}
.con-item-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; }
.con-item-meta { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.con-note { margin-top: auto; padding: 20px; font-size: 12.5px; color: rgba(255,255,255,.45); border-top: 1px solid rgba(255,255,255,.08); }
.con-note a { color: #a9c7f7; }
/* briefing panel */
.con-panel {
  padding: clamp(24px, 3vw, 40px);
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 26px 26px;
}
.con-job { display: none; }
.con-job.active { display: block; animation: jobOpen .5s ease; }
.con-jobhead h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); color: #fff; margin-bottom: 14px; }
.con-jobhead .tags span { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.75); }
.con-tabs { display: flex; gap: 4px; margin: 22px 0 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.con-tab {
  background: none; border: none; cursor: pointer;
  padding: 10px 16px 12px; position: relative;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.5); transition: color .25s;
}
.con-tab::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--accent), #a9c7f7);
  transform: scaleX(0); transition: transform .35s ease;
}
.con-tab:hover { color: rgba(255,255,255,.8); }
.con-tab.active { color: #fff; }
.con-tab.active::after { transform: scaleX(1); }
.con-pane { display: none; }
.con-pane.active { display: block; animation: jobOpen .45s ease; }
.con-pane p { color: rgba(255,255,255,.72); margin-bottom: 14px; max-width: 70ch; }
.con-pane h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: #a9c7f7; margin: 22px 0 4px;
}
.con-pane .check-v2 { border-top-color: rgba(255,255,255,.1); margin-bottom: 6px; }
.con-pane .check-v2 li { color: rgba(255,255,255,.82); border-bottom-color: rgba(255,255,255,.1); }
.con-pane .check-v2 li:hover { padding-left: 26px; }
.con-pane .pill.solid { margin-top: 10px; }
@media (max-width: 900px) {
  .console-body { grid-template-columns: 1fr; min-height: 0; }
  .con-list { flex-direction: row; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 0; overflow-x: auto; }
  .con-item { width: auto; flex: 1 0 auto; padding: 16px 18px; }
  .con-item::before { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 3px; transform: scaleX(0); }
  .con-item.active::before { transform: scaleX(1); }
  .con-note { display: none; }
  .con-tabs { overflow-x: auto; }
}

/* ============ HERO → PAGE GRADIENT TRANSITION (all pages) ============ */
.hero-v2::after, .page-hero-v2::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: clamp(90px, 16vh, 170px); z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(244,245,247,.55) 62%, var(--paper) 100%);
}

/* ============ PORTFOLIO — EXPANDING SLAT GALLERY ============ */
@media (min-width: 901px) {
  .works.accordion { display: flex; gap: 12px; height: 540px; }
  .works.accordion .work {
    flex: .8; min-height: 0; min-width: 0;
    border-radius: 12px;
    transition: flex .65s cubic-bezier(.25,.7,.2,1), transform .45s ease, box-shadow .45s ease;
  }
  .works.accordion .work.on { flex: 3.4; }
  .works.accordion .work:hover { transform: none; }
  .works.accordion .work.on:hover { transform: translateY(-6px); }
  /* full info only on the open slat */
  .works.accordion .work .info {
    opacity: 0; transform: translateY(14px);
    transition: opacity .4s ease .15s, transform .5s ease .15s;
    white-space: normal; min-width: 320px;
  }
  .works.accordion .work.on .info { opacity: 1; transform: none; }
  /* collapsed slats show a vertical label */
  .works.accordion .slat-label {
    position: absolute; left: 50%; bottom: 24px;
    transform: translateX(-50%);
    writing-mode: vertical-rl; rotate: 180deg;
    font-family: var(--font-display); font-weight: 700; font-size: 15px;
    letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.75); white-space: nowrap;
    transition: opacity .3s ease .1s;
    pointer-events: none;
  }
  .works.accordion .slat-label::after {
    content: attr(data-n);
    display: block; margin-bottom: 14px;
    color: #a9c7f7; font-size: 12px; letter-spacing: .2em;
  }
  .works.accordion .work.on .slat-label { opacity: 0; transition-delay: 0s; }
  .works.accordion .work .ph { opacity: 0; transition: opacity .35s ease .2s; }
  .works.accordion .work.on .ph { opacity: 1; }
}
/* blueprint texture on the navy cards so placeholders feel intentional */
.work {
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(160deg, #232f68 0%, var(--navy) 50%, #161e49 100%);
  background-size: 26px 26px, 26px 26px, 100% 100%;
}

/* ================================================================
   FINISHING TOUCHES — pencil cursor, progress, polish
   ================================================================ */

/* ---- Pencil cursor (fine pointers only) ---- */
@media (pointer: fine) {
  html, body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg stroke='white' stroke-width='1'%3E%3Cpolygon points='2,2 9.5,4.5 4.5,9.5' fill='%23e8c49a'/%3E%3Cpolygon points='2,2 5.9,3.3 3.3,5.9' fill='%232a2f3a'/%3E%3Cpolygon points='9.5,4.5 4.5,9.5 16.5,21.5 21.5,16.5' fill='%231C2557'/%3E%3Cpolygon points='21.5,16.5 16.5,21.5 19.5,24.5 24.5,19.5' fill='%233866cc'/%3E%3C/g%3E%3C/svg%3E") 2 2, auto;
  }
  a, button, summary, label, .pill, .svc, .path, .work, .con-item, .con-tab, .orbit-dots button, .strip-nav button, .menu-btn {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg stroke='white' stroke-width='1'%3E%3Cpolygon points='2,2 9.5,4.5 4.5,9.5' fill='%23e8c49a'/%3E%3Cpolygon points='2,2 5.9,3.3 3.3,5.9' fill='%232a2f3a'/%3E%3Cpolygon points='9.5,4.5 4.5,9.5 16.5,21.5 21.5,16.5' fill='%233866cc'/%3E%3Cpolygon points='21.5,16.5 16.5,21.5 19.5,24.5 24.5,19.5' fill='%23a9c7f7'/%3E%3C/g%3E%3C/svg%3E") 2 2, pointer;
  }
  input, textarea, select { cursor: text; }
  select { cursor: auto; }
}
/* graphite trail canvas */
.pencil-trail {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
}

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10000;
  background: linear-gradient(90deg, var(--accent), #a9c7f7);
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

/* ---- Back to top ---- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 950;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 1px solid rgba(255,255,255,.15);
  font-size: 18px; line-height: 1;
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 26px rgba(16,24,60,.3);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, background .25s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }
@media (max-width: 760px) { .to-top { display: none; } }

/* ---- Hero content staggers in on load ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-v2 > *:not(.hero-canvas), .page-hero-v2 .wrap > * {
    animation: heroIn .9s cubic-bezier(.2,.65,.2,1) both;
  }
  .hero-v2 > *:nth-child(2), .page-hero-v2 .wrap > *:nth-child(1) { animation-delay: .05s; }
  .hero-v2 > *:nth-child(3), .page-hero-v2 .wrap > *:nth-child(2) { animation-delay: .15s; }
  .hero-v2 > *:nth-child(4), .page-hero-v2 .wrap > *:nth-child(3) { animation-delay: .25s; }
  .hero-v2 > *:nth-child(5) { animation-delay: .35s; }
  .hero-v2 > *:nth-child(6) { animation-delay: .45s; }
  .hero-v2 > *:nth-child(7) { animation-delay: .55s; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---- Nav links: underline draws itself ---- */
.top-nav a { position: relative; }
.top-nav a:not(.pill)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.top-nav a:not(.pill):hover::after, .top-nav a:not(.pill).active::after { transform: scaleX(1); }

/* ---- Brand mark micro-hover ---- */
.brand { transition: transform .3s ease; }
.brand:hover { transform: translateY(-1px); }

/* ---- Selection + scrollbar + smooth anchors ---- */
::selection { background: var(--accent); color: #fff; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #eef0f5; }
::-webkit-scrollbar-thumb { background: #b9c0d4; border-radius: 6px; border: 2px solid #eef0f5; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---- Focus visibility (keyboard users) ---- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ============ GRAPHITE PAPER TEXTURE — site background ============ */
body {
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.11 0 0 0 0 0.14 0 0 0 0 0.24 0 0 0 0.055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* let the texture show through sections that were painted solid */
.media-band { background: transparent; }
section { background-color: transparent; }
/* keep true-white surfaces white so they read as paper sheets on the desk */
@media print { body { background-image: none; } }

/* ============ GRAPHITE TEXTURE — STRONGER ============ */
body {
  background-color: #f2f3f6;
  background-image:
    /* fine graphite grain */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.10 0 0 0 0 0.13 0 0 0 0 0.24 0 0 0 0.17 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    /* broad smudge mottling, like rubbed graphite */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006' numOctaves='3' stitchTiles='stitch' seed='7'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.11 0 0 0 0 0.15 0 0 0 0 0.28 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
}

/* ============ MAP — FLOATING OVER ENGINEERING GRID ============ */
.map-panel { position: relative; }
/* blueprint grid behind the map, fading at the edges */
.map-panel::before {
  content: ""; position: absolute; inset: -20px 0 30px; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(56,102,204,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,102,204,.11) 1px, transparent 1px),
    linear-gradient(rgba(56,102,204,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,102,204,.05) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 46%, #000 42%, transparent 78%);
  mask-image: radial-gradient(ellipse 72% 68% at 50% 46%, #000 42%, transparent 78%);
}
/* soft ground shadow beneath the floating map */
.map-panel .usmap { position: relative; z-index: 1; }
.map-panel .usmap-legend { position: relative; z-index: 2; }
.map-panel .usmap-tip { position: absolute; z-index: 5; }
.map-panel::after {
  content: ""; position: absolute; left: 50%; bottom: 86px; z-index: 0; pointer-events: none;
  width: 58%; height: 36px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(16,24,60,.24), transparent 65%);
  filter: blur(7px);
}
@media (prefers-reduced-motion: no-preference) {
  .map-panel .usmap { animation: mapFloat 7s ease-in-out infinite; }
  .map-panel::after { animation: mapShadow 7s ease-in-out infinite; }
}
@keyframes mapFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes mapShadow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(.9); opacity: .65; }
}
@media (max-width: 760px) {
  .map-panel::before { background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
  .map-panel::after { bottom: 110px; }
}

/* service photos fill their slots when the files exist */
.ph-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* portfolio project photos + homepage reel fill their slots when files exist */
.work .work-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .9; transition: opacity .4s, transform .6s ease; }
.work:hover .work-img { opacity: 1; transform: scale(1.04); }
.work .info, .work .ph { z-index: 2; }
.works.accordion .slat-label { z-index: 2; }
.video-note-v2 { position: relative; overflow: hidden; }
.video-note-v2 .hero-reel { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-note-v2.has-video { outline: none; color: transparent; }
.video-note-v2.has-video .hero-reel { display: block; }

/* ============ LAYERED DEPTH BACKGROUND (replaces graphite) ============ */
body {
  background-color: #f4f5f8;
  background-image:
    /* fine grain - very subtle, keeps surfaces from feeling flat */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.10 0 0 0 0 0.13 0 0 0 0 0.24 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    /* faint engineering grid */
    linear-gradient(rgba(56,102,204,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,102,204,.045) 1px, transparent 1px),
    /* ambient light pools - the depth layer */
    radial-gradient(900px 600px at 12% 8%, rgba(169,199,247,.20), transparent 70%),
    radial-gradient(1100px 700px at 88% 30%, rgba(56,102,204,.10), transparent 70%),
    radial-gradient(1000px 800px at 30% 95%, rgba(28,37,87,.08), transparent 70%),
    /* base tone shift top to bottom */
    linear-gradient(180deg, #f7f8fb 0%, #eef0f6 55%, #e7eaf2 100%);
  background-size:
    220px 220px,
    88px 88px,
    88px 88px,
    auto, auto, auto,
    100% 100%;
}
@media (min-width: 901px) {
  /* glows stay put while content scrolls over them - adds parallax depth */
  body { background-attachment: scroll, scroll, scroll, fixed, fixed, fixed, scroll; }
}

/* ============ BACK-TO-TOP — MODERN GLASS ============ */
.to-top {
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(28, 37, 87, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(157, 189, 240, .35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 12px 32px rgba(16, 24, 60, .32);
  color: #fff;
  transition: opacity .35s ease, transform .35s ease, background .3s, border-color .3s, box-shadow .3s;
}
.to-top svg { width: 22px; height: 22px; display: block; transition: transform .3s ease; }
.to-top:hover {
  background: var(--accent);
  border-color: rgba(157, 189, 240, .7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 16px 40px rgba(53, 101, 176, .45);
}
.to-top:hover svg { transform: translateY(-3px); }
.to-top:active svg { transform: translateY(-6px); }

/* ============ ARROW BUTTONS — MODERN GLASS (matches back-to-top) ============ */
.strip-nav button {
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(28, 37, 87, .84);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(157, 189, 240, .4);
  color: #fff; display: inline-grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 22px rgba(16, 24, 60, .18);
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
  font-size: 0;
}
.strip-nav button svg { width: 20px; height: 20px; display: block; transition: transform .25s ease; }
.strip-nav button:hover {
  background: var(--accent); color: #fff;
  border-color: rgba(157, 189, 240, .75);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 28px rgba(53, 101, 176, .38);
}
.strip-nav .prev:hover svg { transform: translateX(-2px); }
.strip-nav .next:hover svg { transform: translateX(2px); }
/* accordion chevrons (contact FAQ etc.) */
.job .job-chevron {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(28, 37, 87, .06);
  border: 1px solid var(--rule-dark);
  color: var(--navy);
  display: inline-grid; place-items: center;
  font-size: 0;
}
.job .job-chevron svg { width: 17px; height: 17px; display: block; }
.job[open] .job-chevron { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(180deg); }

/* ============ PORTFOLIO CARD ARROW — GLASS CHEVRON ============ */
.work .info::after {
  content: "";
  width: 40px; height: 40px; border-radius: 12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='10,5 17,12 10,19'/%3E%3C/svg%3E") center / 18px 18px no-repeat,
    rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(157, 189, 240, .45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  transition: background-color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.work:hover .info::after {
  background-color: var(--accent);
  border-color: rgba(157, 189, 240, .8);
  transform: translateX(3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 20px rgba(53, 101, 176, .4);
}

/* ============ SKETCH-ON HEADLINE ============ */
.giant .sk, .giant-sm .sk { --skc: #fff; }
.giant .lt .sk { --skc: #9fb2e0; }
@media (prefers-reduced-motion: no-preference) {
  .sk {
    display: inline-block;
    -webkit-text-stroke: 1.2px transparent;
    animation: skIn .8s cubic-bezier(.3,.6,.3,1) both;
    animation-delay: calc(260ms + var(--i) * 24ms);
  }
}
@keyframes skIn {
  0%   { opacity: 0; color: transparent; -webkit-text-stroke-color: var(--skc); transform: translateY(.08em); }
  40%  { opacity: 1; color: transparent; -webkit-text-stroke-color: var(--skc); transform: none; }
  100% { opacity: 1; color: var(--skc); -webkit-text-stroke-color: transparent; }
}

/* ============ MAGNETIC CTAS + RIPPLE ============ */
.pill.magnetic { transition: translate .35s cubic-bezier(.2,.6,.2,1); position: relative; overflow: hidden; }
.pill .ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 65%);
  animation: ripGo .65s ease-out forwards;
  transform: scale(0);
}
@keyframes ripGo { to { transform: scale(1); opacity: 0; } }

/* keep sketched words unbreakable so lines wrap between words, not mid-word */
.skw { display: inline-block; white-space: nowrap; }

/* ============ GLOSS + POP PASS ============ */
/* stat numbers: polished metal gradient */
.stats-v2 .num, .stats-v2 .num span {
  background: linear-gradient(180deg, #ffffff 20%, #b9cdf2 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats-v2 .num em { -webkit-text-fill-color: #a9c7f7; }
/* traveling light along the edges of the dark panels */
.stats-v2, .console { position: relative; }
.stats-v2::before, .console::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(115deg, transparent 30%, rgba(169,199,247,.65) 50%, transparent 70%);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .stats-v2::before, .console::before { animation: edgeShine 7s linear infinite; }
}
@keyframes edgeShine { 0% { background-position: 140% 0; } 100% { background-position: -160% 0; } }
/* media card: glass inner edge */
.media-band .video-note-v2 { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 22px 70px rgba(10,16,45,.12); }
/* orbit front card pops harder */
.orbit .svc.is-front { box-shadow: 0 34px 80px rgba(16,24,60,.16), 0 0 0 1px rgba(56,102,204,.14), 0 0 44px rgba(169,199,247,.25); }
/* document cards: crisper pop on lift */
.paths .path:hover { box-shadow: 0 30px 60px rgba(16,24,60,.20), 0 0 30px rgba(169,199,247,.28); }

/* ============ LIVING SKY ON CTA PANELS + FOOTER ============ */
.cta-v2, .footer-v2 { position: relative; overflow: hidden; }
.cta-v2 .hero-canvas, .footer-v2 .hero-canvas {
  border-radius: inherit;
  /* keep these panels in permanent evening so white text always reads */
  filter: brightness(.52) saturate(1.15);
}
.footer-v2 .wrap { position: relative; z-index: 2; }
.cta-v2 > * { position: relative; z-index: 2; }

/* orbit globe: meridians slowly flow */
.orbit-globe ellipse[stroke-dasharray] { animation: orbitDash 26s linear infinite; }

/* careers console: live terminal cursor */
.con-title::after {
  content: "\258B";
  margin-left: 8px;
  color: #a9c7f7;
}
@media (prefers-reduced-motion: no-preference) {
  .con-title::after { animation: conBlink 1.1s steps(1) infinite; }
}
@keyframes conBlink { 50% { opacity: 0; } }

/* ============ FOOTER READABILITY — veil between scene and text ============ */
.footer-v2 .builder-canvas { z-index: 0 !important; opacity: .55; }
.footer-v2::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(75% 100% at 50% 35%, rgba(13, 18, 45, .82) 30%, rgba(13, 18, 45, .30) 100%),
    linear-gradient(180deg, rgba(13, 18, 45, .25), rgba(13, 18, 45, .55) 90%);
}
.footer-v2 .wrap { position: relative; z-index: 2; }

/* ============ MAP — WAVE-IN, FLIGHT ARCS, RADAR SWEEP ============ */
.map-panel .usmap path.lic { fill: #dfe4ee; transition: fill .55s ease, transform .3s ease, filter .3s ease; }
.map-panel .usmap path.lic.lit { fill: var(--navy); }
.map-panel .usmap path.lic:hover, .map-panel .usmap path.lic.lit:hover { fill: var(--accent); }
.usmap .lic-arc {
  fill: none; stroke: var(--accent); stroke-width: 1.4;
  stroke-dasharray: 4 8; opacity: 0;
  animation: arcIn .8s ease forwards, arcFlow 2.8s linear infinite;
}
@keyframes arcIn { to { opacity: .42; } }
@keyframes arcFlow { to { stroke-dashoffset: -48; } }
.usmap .hq-sweep {
  fill: none; stroke: var(--accent); stroke-width: 1.6;
  transform-box: fill-box; transform-origin: center;
  animation: hqSweep 5s ease-out infinite;
}
@keyframes hqSweep {
  0% { transform: scale(.2); opacity: .55; }
  60% { opacity: .12; }
  100% { transform: scale(14); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .map-panel .usmap path.lic { fill: var(--navy); }
  .usmap .lic-arc { animation: none; opacity: .35; }
}

/* ================================================================
   INTRO — steel flies in, the mark assembles, the curtain lifts
   ================================================================ */
.intro {
  position: fixed; inset: 0; z-index: 10001;
  display: grid; place-items: center;
  background:
    linear-gradient(rgba(169,199,247,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169,199,247,.05) 1px, transparent 1px),
    radial-gradient(ellipse 120% 90% at 50% 30%, #1e2a5e, #0f1536 75%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
  cursor: pointer;
  transition: clip-path .75s cubic-bezier(.7,.05,.3,1);
  clip-path: inset(0 0 0 0);
}
.intro.done { clip-path: inset(0 0 100% 0); }
.intro-center { text-align: center; transition: transform .7s ease, opacity .5s ease; }
.intro.done .intro-center { transform: translateY(-60px) scale(1.06); opacity: 0; }
/* dimension crosshairs sweep to center */
.intro-cross { position: absolute; background: rgba(169,199,247,.28); }
.intro-cross.x { left: 0; right: 0; top: 50%; height: 1px; transform: scaleX(0); animation: crossX .7s ease-out .1s forwards; }
.intro-cross.y { top: 0; bottom: 0; left: 50%; width: 1px; transform: scaleY(0); animation: crossY .7s ease-out .1s forwards; }
@keyframes crossX { to { transform: scaleX(1); } }
@keyframes crossY { to { transform: scaleY(1); } }
/* the mark assembles from flying steel */
.intro-mark { width: clamp(90px, 14vw, 150px); height: auto; overflow: visible; filter: drop-shadow(0 0 0 rgba(169,199,247,0)); animation: markGlow .8s ease .95s both; }
.intro-mark .ip { transform-box: fill-box; transform-origin: center; opacity: 0; animation: flyIn .8s cubic-bezier(.2,.75,.25,1.08) both; }
.intro-mark .ip1 { animation-delay: .18s; --fx: -46vw; --fy: -30vh; --fr: -160deg; }
.intro-mark .ip2 { animation-delay: .30s; --fx: 46vw; --fy: -26vh; --fr: 140deg; }
.intro-mark .ip3 { animation-delay: .42s; --fx: -40vw; --fy: 32vh; --fr: 120deg; }
.intro-mark .ip4 { animation-delay: .54s; --fx: 42vw; --fy: 30vh; --fr: -130deg; }
@keyframes flyIn {
  0% { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(.4); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes markGlow {
  0% { filter: drop-shadow(0 0 0 rgba(169,199,247,0)); }
  45% { filter: drop-shadow(0 0 38px rgba(169,199,247,.9)); }
  100% { filter: drop-shadow(0 0 14px rgba(169,199,247,.35)); }
}
/* impact flash when the last piece lands */
.intro-flash {
  position: absolute; left: 50%; top: 34%; width: 10px; height: 10px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(169,199,247,0) 70%);
  border-radius: 50%; opacity: 0;
  animation: flashPop .5s ease-out 1.05s;
}
@keyframes flashPop { 0% { opacity: 0; scale: 1; } 25% { opacity: 1; } 100% { opacity: 0; scale: 26; } }
/* wordmark tracks in, rule draws, sub fades */
.intro-word {
  margin-top: 30px; color: #fff;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(17px, 2.6vw, 27px);
  letter-spacing: .55em; text-indent: .55em; white-space: nowrap;
  opacity: 0; animation: wordIn .7s cubic-bezier(.2,.6,.2,1) 1.15s both;
}
@keyframes wordIn { 0% { opacity: 0; letter-spacing: .55em; } 100% { opacity: 1; letter-spacing: .16em; } }
.intro-line {
  width: 0; height: 2px; margin: 18px auto 0;
  background: linear-gradient(90deg, var(--accent), #a9c7f7);
  animation: lineDraw .55s ease 1.5s both;
}
@keyframes lineDraw { to { width: min(300px, 55vw); } }
.intro-sub {
  margin-top: 14px; color: rgba(169,199,247,.75);
  font-size: 10.5px; font-weight: 700; letter-spacing: .34em;
  opacity: 0; animation: subIn .5s ease 1.7s both;
}
@keyframes subIn { to { opacity: 1; } }
/* hold the hero's own entrance until the curtain lifts */
html.intro-hold .hero-v2 > *:not(.hero-canvas),
html.intro-hold .page-hero-v2 .wrap > *,
html.intro-hold .sk { animation-play-state: paused !important; }
@media (max-width: 700px) { .intro-word { white-space: normal; line-height: 1.5; padding: 0 20px; } }

/* ================================================================
   DESIGN-SHEET SCROLLING — each section is a sheet from the set
   ================================================================ */
section.sheet {
  position: relative;
  width: min(1520px, calc(100% - 44px));
  margin: 46px auto;
  border: 1px solid #d3d9e6;
  border-radius: 5px;
  background:
    linear-gradient(rgba(56,102,204,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,102,204,.045) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #fbfcfe);
  background-size: 30px 30px, 30px 30px, 100% 100%;
  /* stacked sheets beneath */
  box-shadow:
    0 22px 50px rgba(16, 24, 60, .10),
    7px 9px 0 -1px #f0f3f8, 7px 9px 0 0 #d8deea,
    14px 18px 0 -1px #eaeef5, 14px 18px 0 0 #dde3ed;
}
/* title-block tag, top right of every sheet */
.sheet-tag {
  position: absolute; top: 12px; right: 16px; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: #97a2bd;
  border: 1px solid #dde2ee; border-radius: 3px;
  padding: 5px 10px;
  background: rgba(255,255,255,.8);
  pointer-events: none;
}
.sheet-tag b { color: var(--accent); letter-spacing: .18em; }
/* crop marks in the four corners */
.sheet-corners {
  position: absolute; inset: 9px; pointer-events: none; z-index: 4;
  background:
    linear-gradient(#b9c4dd, #b9c4dd) left 0 top 0 / 14px 1.5px,
    linear-gradient(#b9c4dd, #b9c4dd) left 0 top 0 / 1.5px 14px,
    linear-gradient(#b9c4dd, #b9c4dd) right 0 top 0 / 14px 1.5px,
    linear-gradient(#b9c4dd, #b9c4dd) right 0 top 0 / 1.5px 14px,
    linear-gradient(#b9c4dd, #b9c4dd) left 0 bottom 0 / 14px 1.5px,
    linear-gradient(#b9c4dd, #b9c4dd) left 0 bottom 0 / 1.5px 14px,
    linear-gradient(#b9c4dd, #b9c4dd) right 0 bottom 0 / 14px 1.5px,
    linear-gradient(#b9c4dd, #b9c4dd) right 0 bottom 0 / 1.5px 14px;
  background-repeat: no-repeat;
}
/* sheets keep their inner rhythm */
section.sheet { overflow: hidden; }
@media (max-width: 760px) {
  section.sheet { width: calc(100% - 20px); margin: 24px auto; }
  .sheet-tag { display: none; }
}
@media print {
  section.sheet { box-shadow: none; border: none; width: 100%; margin: 0; background: #fff; }
  .sheet-tag, .sheet-corners { display: none; }
}

/* ================================================================
   CONVERSION LAYER — trust strip, nav tel, nudge, banner, marquee
   ================================================================ */
/* trust strip under hero */
.trust-strip { background: rgba(255,255,255,.75); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.ts-inner {
  max-width: 1400px; margin: 0 auto; padding: 13px 24px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 0;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray);
}
.ts-inner > span { display: inline-flex; align-items: center; }
.ts-inner > span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--rule-dark); margin: 0 16px; }
.ts-live { color: var(--ink); }
.ts-live i { width: 8px; height: 8px; border-radius: 50%; background: #2aa88a; margin-right: 9px; }
@media (prefers-reduced-motion: no-preference) {
  .ts-live i { animation: livePulse 2s ease-out infinite; }
}
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(42,168,138,.5); } 100% { box-shadow: 0 0 0 9px rgba(42,168,138,0); } }
@media (max-width: 1000px) { .ts-inner > span:nth-child(n+5) { display: none; } }

/* nav phone with tooltip */
.nav-tel { position: relative; color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: .04em; margin-right: 6px; font-variant-numeric: tabular-nums; }
.nav-tel .tel-tip {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 7px 11px; border-radius: 6px; white-space: nowrap;
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 8px 24px rgba(16,24,60,.3);
}
.nav-tel:hover .tel-tip { opacity: 1; transform: none; }
@media (max-width: 1240px) { .nav-tel { display: none; } }

/* scroll nudge card */
.nudge {
  position: fixed; left: 24px; bottom: 24px; z-index: 960;
  width: 320px; padding: 20px 22px 18px;
  background: #fff; border: 1px solid var(--rule-dark); border-left: 3px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(16,24,60,.22);
  opacity: 0; transform: translateY(26px); pointer-events: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1), bottom .3s;
}
.nudge.on { opacity: 1; transform: none; pointer-events: auto; }
.nudge strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.nudge p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.nudge-btns { display: flex; gap: 8px; }
.nudge-btns .pill { padding: 10px 16px; font-size: 12px; }
.nudge-x {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--gray); line-height: 1;
}
.nudge-x:hover { color: var(--ink); }
body.has-banner .nudge { bottom: 78px; }

/* bottom banner */
.bottom-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: flex; align-items: center; justify-content: center; gap: 26px;
  padding: 12px 48px 12px 20px;
  background: rgba(16, 22, 56, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(169,199,247,.3);
  animation: bannerUp .6s cubic-bezier(.2,.7,.2,1) .8s both;
}
@keyframes bannerUp { from { transform: translateY(100%); } to { transform: none; } }
.bb-txt { display: inline-flex; align-items: center; color: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 600; letter-spacing: .05em; }
.bb-dot { width: 7px; height: 7px; border-radius: 50%; background: #2aa88a; margin-right: 10px; flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) { .bb-dot { animation: livePulse 2s ease-out infinite; } }
.bb-link { color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; border-bottom: 1px solid rgba(169,199,247,.5); padding-bottom: 1px; }
.bb-link:hover { color: #a9c7f7; border-color: #a9c7f7; }
.bb-tel { font-variant-numeric: tabular-nums; }
.bb-x { position: absolute; right: 14px; background: none; border: none; cursor: pointer; color: rgba(255,255,255,.6); font-size: 20px; line-height: 1; }
.bb-x:hover { color: #fff; }
body.has-banner .to-top { bottom: 78px; }
@media (max-width: 760px) { .bottom-banner, .nudge { display: none; } }

/* outlined marquee band above footer */
.marquee { overflow: hidden; padding: 34px 0 30px; background: transparent; }
.mq-track { display: flex; width: max-content; }
.mq-track span {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5vw, 64px); line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.2px rgba(28,37,87,.22);
  padding-right: 40px;
}
@media (prefers-reduced-motion: no-preference) {
  .mq-track { animation: mqScroll 46s linear infinite; }
  .marquee:hover .mq-track { animation-play-state: paused; }
}
@keyframes mqScroll { to { transform: translateX(-50%); } }

/* ============ SURVEYOR + DIMENSION CHECK ON SHEETS ============ */
.surveyor {
  position: absolute; left: 18px; bottom: 8px; width: 52px; z-index: 4;
  opacity: 0; pointer-events: none;
}
.sheet.measured .surveyor { animation: svyShow 4.2s ease both; }
@keyframes svyShow {
  0% { opacity: 0; transform: translateY(8px); }
  12%, 78% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
.sheet-laser {
  position: absolute; left: 76px; right: 30px; bottom: 22px; height: 2px; z-index: 4;
  background: repeating-linear-gradient(90deg, rgba(56,102,204,.5) 0 7px, transparent 7px 12px);
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}
.sheet-laser::before, .sheet-laser::after {
  content: ""; position: absolute; top: -4px; width: 1.5px; height: 10px;
  background: rgba(56,102,204,.55);
}
.sheet-laser::before { left: 0; }
.sheet-laser::after { right: 0; }
.sheet.measured .sheet-laser { animation: laserDraw 1.4s cubic-bezier(.3,.6,.2,1) .5s both; }
@keyframes laserDraw { to { transform: scaleX(1); } }
.sheet-dim {
  position: absolute; right: 30px; bottom: 32px; z-index: 4;
  font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .24em;
  color: var(--accent); opacity: 0; pointer-events: none;
}
.sheet.measured .sheet-dim { animation: dimIn .5s ease 1.9s both; }
@keyframes dimIn { to { opacity: .8; } }
@media (max-width: 760px) { .surveyor, .sheet-laser, .sheet-dim { display: none; } }

/* ============ CREDENTIALS TITLE BLOCK (replaces stats band) ============ */
.titleblock {
  display: flex; align-items: stretch; gap: 0;
  max-width: 1000px; margin: 54px auto 0;
  border: 1.5px solid var(--navy); border-radius: 4px;
  background: #fff;
  box-shadow: 7px 9px 0 -1px #f0f3f8, 7px 9px 0 0 #d8deea;
  overflow: hidden;
}
.tb-seal {
  flex: 0 0 168px; display: grid; place-items: center;
  padding: 22px; color: var(--navy);
  border-right: 1.5px solid var(--navy);
  background:
    linear-gradient(rgba(56,102,204,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,102,204,.05) 1px, transparent 1px);
  background-size: 16px 16px;
}
.tb-seal svg { width: 124px; height: 124px; overflow: visible; }
.tb-pe { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: .04em; }
.tb-no { font-size: 8px; font-weight: 700; letter-spacing: .22em; }
@media (prefers-reduced-motion: no-preference) {
  .tb-spin { transform-origin: 60px 60px; animation: tbSpin 26s linear infinite; }
}
@keyframes tbSpin { to { transform: rotate(360deg); } }
.tb-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); }
.tb-cell {
  position: relative; padding: 30px 14px 22px; text-align: center;
  border-left: 1px solid var(--rule-dark);
  transition: background .3s;
}
.tb-cell:first-child { border-left: none; }
.tb-cell:hover { background: rgba(56,102,204,.05); }
.tb-cell em {
  position: absolute; top: 7px; left: 9px;
  font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: .15em;
  color: #aeb7cd;
}
.tb-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 2.6vw, 38px); line-height: 1; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.tb-num b { font-weight: 700; color: var(--accent); }
.tb-lbl {
  display: block; margin-top: 9px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gray);
}
@media (max-width: 860px) {
  .titleblock { flex-direction: column; }
  .tb-seal { border-right: none; border-bottom: 1.5px solid var(--navy); }
  .tb-grid { grid-template-columns: 1fr 1fr; }
  .tb-cell:nth-child(3), .tb-cell:nth-child(4) { border-top: 1px solid var(--rule-dark); }
  .tb-cell:nth-child(3) { border-left: none; }
}

/* seal: corrected proportions, nothing clips */
.tb-seal svg { width: 132px; height: 132px; }
.tb-spin { transform-origin: 70px 70px; }
.tb-pe { font-size: 24px; }
.tb-no { font-size: 7.5px; }

/* seal cell: give the stamp room so the container never crops it */
.tb-seal { flex: 0 0 208px; padding: 20px; }
.tb-seal svg { width: 150px; height: 150px; display: block; }
@media (max-width: 860px) {
  .tb-seal { flex: none; padding: 24px; }
  .tb-seal svg { margin: 0 auto; }
}

/* ================================================================
   NIGHT VOID — dark ground, sheets floating in the air
   ================================================================ */
body {
  background-color: #0d1230;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 20%, rgba(170,198,245,.35), transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 12%, rgba(170,198,245,.28), transparent 100%),
    radial-gradient(1.5px 1.5px at 34% 64%, rgba(170,198,245,.22), transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 55%, rgba(170,198,245,.30), transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 88%, rgba(170,198,245,.22), transparent 100%),
    radial-gradient(1000px 700px at 15% 10%, rgba(56,102,204,.16), transparent 70%),
    radial-gradient(1200px 800px at 85% 45%, rgba(30,52,110,.28), transparent 70%),
    linear-gradient(180deg, #0f1536 0%, #0c1129 60%, #0a0e24 100%);
}
@media (min-width: 901px) {
  body { background-attachment: fixed; }
}
/* sheets hover in the void */
section.sheet {
  border-color: rgba(169,199,247,.20);
  box-shadow:
    0 46px 110px rgba(0, 0, 0, .55),
    0 0 70px rgba(60, 100, 190, .13),
    7px 9px 0 -1px rgba(240,243,248,.9), 7px 9px 0 0 rgba(157,177,215,.45),
    14px 18px 0 -1px rgba(234,238,245,.55), 14px 18px 0 0 rgba(157,177,215,.3);
}
/* hero fades into the void instead of white */
.hero-v2::after, .page-hero-v2::after {
  background: linear-gradient(180deg, rgba(13,18,48,0) 0%, rgba(13,18,48,.6) 60%, #0d1230 100%);
}
/* trust strip: dark glass */
.trust-strip { background: rgba(16,22,56,.6); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(169,199,247,.18); }
.ts-inner { color: rgba(255,255,255,.55); }
.ts-live { color: #fff; }
.ts-inner > span + span::before { background: rgba(169,199,247,.35); }
/* media band + marquee live in the void */
.media-band { background: transparent; }
.marquee .mq-track span { -webkit-text-stroke-color: rgba(169,199,247,.28); }
/* scrollbar matches the void */
::-webkit-scrollbar-track { background: #0c1129; }
::-webkit-scrollbar-thumb { background: #2c3a72; border-color: #0c1129; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
/* pencil trail brighter against the dark */
@media print { body { background: #fff; } }

/* ============ PURE BLACK VOID + TOP/BOTTOM FADES ============ */
body {
  background-color: #000;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 20%, rgba(170,198,245,.30), transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 12%, rgba(170,198,245,.24), transparent 100%),
    radial-gradient(1.5px 1.5px at 34% 64%, rgba(170,198,245,.18), transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 55%, rgba(170,198,245,.26), transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 88%, rgba(170,198,245,.18), transparent 100%),
    radial-gradient(1100px 750px at 15% 8%, rgba(40,70,150,.12), transparent 70%),
    radial-gradient(1300px 850px at 85% 45%, rgba(25,42,95,.16), transparent 70%),
    linear-gradient(180deg, #05070f 0%, #000 45%);
}
/* heroes fade in from black at the top, out to black at the bottom */
.hero-v2::before, .page-hero-v2::before {
  content: "" !important; display: block !important;
  position: absolute; left: 0; right: 0; top: 0; height: 30%;
  background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 40%, transparent 100%);
  z-index: 1; pointer-events: none;
  width: auto; border: none; opacity: 1; transform: none; animation: none;
}
.hero-v2::after, .page-hero-v2::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 60%, #000 100%);
}
/* sheets glow against true black */
section.sheet {
  box-shadow:
    0 50px 120px rgba(0, 0, 0, .8),
    0 0 80px rgba(60, 100, 190, .16),
    7px 9px 0 -1px rgba(240,243,248,.85), 7px 9px 0 0 rgba(140,160,200,.4),
    14px 18px 0 -1px rgba(234,238,245,.5), 14px 18px 0 0 rgba(140,160,200,.25);
}
::-webkit-scrollbar-track { background: #05070f; }
::-webkit-scrollbar-thumb { background: #232f5e; border-color: #05070f; }

/* ============ FLAT DARK VOID — no gradients, clean seams ============ */
body {
  background: #04060e;   /* one flat, near-black navy — no banding, no pools */
}
/* hero melts into the exact background color, top and bottom */
.hero-v2::before, .page-hero-v2::before {
  background: linear-gradient(180deg, #04060e 0%, rgba(4,6,14,.5) 45%, transparent 100%);
}
.hero-v2::after, .page-hero-v2::after {
  background: linear-gradient(180deg, rgba(4,6,14,0) 0%, rgba(4,6,14,.7) 60%, #04060e 100%);
}
/* footer rises out of the background instead of starting as a hard box */
.footer-v2::before {
  background:
    linear-gradient(180deg, #04060e 0%, rgba(4,6,14,0) 22%),
    radial-gradient(75% 100% at 50% 35%, rgba(9, 13, 34, .85) 30%, rgba(9, 13, 34, .30) 100%),
    linear-gradient(180deg, rgba(9, 13, 34, .25), rgba(9, 13, 34, .55) 90%);
}
/* marquee floats on the flat void */
.marquee { background: transparent; }
::-webkit-scrollbar-track { background: #04060e; }
::-webkit-scrollbar-thumb { background: #1d2750; border-color: #04060e; }

/* ================================================================
   PALETTE v2 — color-theory tuning
   Analogous blue family (navy -> azure -> powder) with blue-leaning
   neutrals so every gray belongs to the same temperature; one vivid
   azure reserved for actions (10% rule); teal-green kept only for
   "live" status; warm hues appear only inside the sunset scene.
   ================================================================ */
:root {
  --accent: #3866cc;        /* action azure — vivid on black, AA on white */
  --accent-soft: #a9c7f7;   /* powder tint for glows and secondary marks */
  --ink: #161b28;           /* blue-black text, not neutral black */
  --muted: #5d6579;         /* cool slate body text */
  --gray: #8b93a8;          /* cool label gray */
  --rule: #e5e8f0;          /* cool hairlines */
  --rule-dark: #ccd3e2;
  --paper-2: #f4f6fa;       /* cool off-white panels */
}
.pill.solid { background: var(--accent); border-color: var(--accent); }
.pill.solid:hover { background: #5583e0; border-color: #5583e0; }

/* ================================================================
   MOBILE OPTIMIZATION PASS
   ================================================================ */
@media (max-width: 760px) {
  /* sheets: lighter chrome, cheaper shadows, tighter rhythm */
  section.sheet {
    width: calc(100% - 16px);
    margin: 18px auto;
    box-shadow: 0 18px 44px rgba(0,0,0,.55), 4px 5px 0 0 rgba(157,177,215,.35);
  }
  .sheet-corners { inset: 6px; background-size: 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px; }
  /* hero: shorter skyline reserve so content starts sooner */
  .hero-v2 { padding-bottom: 170px; }
  /* trust strip tight */
  .ts-inner { padding: 10px 14px; font-size: 10px; }
  /* orbit: bigger touch targets on the dots */
  .orbit-dots { bottom: -14px; }
  .orbit-dots button { width: 34px; height: 7px; border-radius: 4px; }
  /* console panel breathing room */
  .con-panel { padding: 18px 16px; }
  .con-jobhead h3 { font-size: 22px; }
  /* title block: seal compact */
  .tb-seal { padding: 18px; }
  .tb-seal svg { width: 120px; height: 120px; }
  .tb-cell { padding: 22px 10px 16px; }
  /* marquee smaller and slower feel */
  .mq-track span { font-size: 30px; padding-right: 24px; }
  .marquee { padding: 20px 0 16px; }
  /* media card + forms comfortable */
  .media-band .video-note-v2 { width: calc(100% - 24px); }
  .f-grid { grid-template-columns: 1fr; }
  /* footer veil slightly stronger for small screens */
  .footer-v2::before {
    background:
      linear-gradient(180deg, #04060e 0%, rgba(4,6,14,0) 20%),
      rgba(9, 13, 34, .55);
  }
  /* statement watermarks scaled down so they never crowd text */
  .section-statement::before, .section-disciplines::before { font-size: 120px; opacity: .7; }
}
/* ultra-small phones */
@media (max-width: 380px) {
  .giant { font-size: 38px; }
  .ts-inner > span:nth-child(n+3) { display: none; }
  .tb-grid { grid-template-columns: 1fr 1fr; }
  .con-tabs { gap: 0; }
  .con-tab { padding: 10px 10px 12px; font-size: 11px; }
}
/* touch devices: replace hover-dependent reveals with always-on states */
@media (hover: none) {
  .paths .path::after, .q-card::after, .step::after, .ph-visual::after { display: none; }
  .work .info::after { background-color: var(--accent); border-color: rgba(169,199,247,.8); }
  .nav-tel .tel-tip { display: none; }
}

/* ================================================================
   FIRM + CAREERS — deep mobile refinements (desktop untouched)
   ================================================================ */
@media (max-width: 760px) {
  /* ---- FIRM ---- */
  .leader, .leader.flip { gap: 22px; padding: 30px 0; }
  .leader .photo {
    max-width: 300px; width: 100%;
    margin: 0 auto; aspect-ratio: 1;
    font-size: 44px;
  }
  .leader h3 { font-size: 26px; text-align: center; }
  .leader .creds { text-align: center; font-size: 10.5px; letter-spacing: .08em; margin: 8px 0 14px; }
  .leader p { font-size: 14.5px; }
  .check-v2 li { font-size: 14px; padding: 10px 0 10px 24px; }
  .check-v2 li:hover { padding-left: 24px; }
  .q-card { padding: 22px 20px; }

  /* ---- CAREERS: console goes vertical ---- */
  .con-list {
    flex-direction: column;
    overflow: visible;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px 0;
  }
  .con-item { width: 100%; flex: none; padding: 14px 18px; }
  .con-item::before {
    top: 0; bottom: 0; left: 0; right: auto;
    width: 3px; height: auto;
    transform: scaleY(0); transform-origin: top;
  }
  .con-item.active::before { transform: scaleY(1); }
  .con-item-name { font-size: 15.5px; }
  .con-item-meta { font-size: 9.5px; letter-spacing: .08em; white-space: normal; }
  .console-head { padding: 10px 14px; }
  .con-title { font-size: 9.5px; letter-spacing: .2em; margin-left: 8px; }
  .con-status { font-size: 9px; letter-spacing: .12em; }
  .con-tabs {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; margin: 16px 0 18px;
  }
  .con-tabs::-webkit-scrollbar { display: none; }
  .con-tab { padding: 9px 12px 11px; font-size: 10.5px; letter-spacing: .1em; white-space: nowrap; }
  .con-pane p { font-size: 14px; }
  .con-pane h4 { font-size: 10px; letter-spacing: .18em; }
  .con-pane .check-v2 li { font-size: 13.5px; padding: 10px 0 10px 22px; }
  .con-jobhead .tags span { font-size: 10px; padding: 4px 9px; }
  .con-pane .pill.solid { width: 100%; justify-content: center; text-align: center; }

  /* ---- CAREERS: application form ---- */
  .form-v2 { padding: 20px 16px; }
  .f-field input, .f-field select, .f-field textarea { padding: 13px 14px; }
  .file-drop { padding: 22px 14px; }
  .fd-big { font-size: 14px; }
  .fd-note { font-size: 11px; }
  .form-v2 .pill.solid { width: 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .leader .photo { max-width: 240px; }
  .con-jobhead h3 { font-size: 19px; }
}

/* Puerto Rico island on the licensure map */
.pr-label {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  fill: var(--gray); pointer-events: none;
}

/* ============ FIRM PAGE — RESPONSIVE LAYOUTS (was inline) ============ */
.firm-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.quotes-v2.two-col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) {
  .firm-split { grid-template-columns: 1fr; gap: 18px; }
  .firm-split h2 { font-size: 26px; }
  .quotes-v2.two-col { grid-template-columns: 1fr; gap: 14px; }
  .quotes-v2.two-col h3 { font-size: 18px; }
  .leader .pill { width: 100%; justify-content: center; }
  .leader .creds { line-height: 1.6; }
}


/* ============ PROJECT DETAIL PAGES ============ */
.pproj-img {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--rule-dark);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  max-height: 560px;
}
.pproj-img img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; display: block; }
.pmeta {
  background: #fff; border: 1.5px solid var(--navy); border-radius: 6px;
  padding: 26px 26px 18px;
  box-shadow: 7px 9px 0 -1px #f0f3f8, 7px 9px 0 0 #d8deea;
  align-self: start;
}
.pmeta h4 { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.pmeta-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.pmeta-row span { color: var(--gray); font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding-top: 2px; flex-shrink: 0; }
.pmeta-row b { color: var(--ink); font-weight: 600; text-align: right; }
.pmeta-note { margin-top: 14px; font-size: 11px; color: var(--gray); font-style: italic; }
@media (max-width: 760px) { .pproj-img { max-height: 300px; } .pmeta-row { flex-direction: column; gap: 2px; } .pmeta-row b { text-align: left; } }

/* ============ BOOKING PAGE ============ */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
.book-cal {
  background: #fff; border: 1.5px solid var(--navy); border-radius: 6px;
  padding: 24px 24px 18px;
  box-shadow: 7px 9px 0 -1px #f0f3f8, 7px 9px 0 0 #d8deea;
}
.bc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bc-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); }
.bc-nav {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(28,37,87,.06); border: 1px solid var(--rule-dark);
  font-size: 20px; line-height: 1; color: var(--navy); cursor: pointer;
  transition: background .25s, color .25s;
}
.bc-nav:hover:not(:disabled) { background: var(--accent); color: #fff; }
.bc-nav:disabled { opacity: .3; cursor: default; }
.bc-days, .bc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bc-days span { text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--gray); padding: 6px 0; }
.bc-grid button {
  aspect-ratio: 1; border-radius: 9px; border: 1px solid transparent;
  background: rgba(28,37,87,.04); color: var(--ink);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.bc-grid button:hover:not(:disabled) { background: rgba(56,102,204,.12); border-color: var(--accent); transform: translateY(-1px); }
.bc-grid button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.bc-grid button:disabled { background: transparent; color: #c3c9d8; cursor: default; }
.bc-grid i { display: block; }
.bc-slots-label { margin: 18px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.bc-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-slot {
  padding: 9px 14px; border-radius: 9px;
  border: 1px solid var(--rule-dark); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer;
  transition: all .2s;
}
.bc-slot:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.bc-slot.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.bc-note { margin-top: 18px; font-size: 12px; color: var(--gray); }
.bc-note a { color: var(--accent); font-weight: 700; }
.book-summary {
  padding: 12px 16px; margin-bottom: 18px; border-radius: 9px;
  background: rgba(56,102,204,.07); border: 1px dashed var(--rule-dark);
  font-size: 13.5px; color: var(--muted);
}
.book-summary.set { border-style: solid; border-color: var(--accent); color: var(--ink); }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }

/* ============ B2B LAUNCH REDESIGN ============ */
/* hero launch chip */
.launch-chip {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 9px 18px;
  border-radius: 999px;
  background: rgba(56,102,204,.18);
  border: 1px solid rgba(169,199,247,.4);
  backdrop-filter: blur(6px);
  color: #dce8fc; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  transition: background .3s, border-color .3s, transform .3s;
}
.launch-chip:hover { background: rgba(56,102,204,.32); border-color: rgba(169,199,247,.7); transform: translateY(-2px); }
.launch-chip i { width: 8px; height: 8px; border-radius: 50%; background: #2aa88a; flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) { .launch-chip i { animation: livePulse 2s ease-out infinite; } }
.launch-chip b { font-weight: 700; }

/* two-door track chooser */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 30px); }
.door {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(160deg, #1e2a5e 0%, var(--navy) 55%, #171f4b 100%);
  border: 1px solid rgba(169,199,247,.22); border-radius: 16px;
  padding: clamp(26px, 3vw, 40px);
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease, border-color .3s;
}
.door::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.10) 50%, transparent 58%);
  background-size: 260% 100%; background-position: 130% 0;
  transition: background-position 1s ease;
}
.door:hover { transform: translateY(-8px); border-color: rgba(169,199,247,.55); box-shadow: 0 28px 60px rgba(0,0,0,.45), 0 0 40px rgba(56,102,204,.25); }
.door:hover::after { background-position: -130% 0; }
.door-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #a9c7f7; margin-bottom: 14px; }
.door h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 2.2vw, 28px); color: #fff; margin-bottom: 16px; }
.door ul { list-style: none; margin-bottom: 18px; }
.door ul li { position: relative; padding: 6px 0 6px 24px; color: rgba(255,255,255,.75); font-size: 14px; }
.door ul li::before { content: "\2713"; position: absolute; left: 0; color: #2aa88a; font-weight: 700; }
.door-who { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.door-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: #fff; font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--accent); padding-bottom: 3px; align-self: flex-start; transition: color .3s; }
.door:hover .door-cta { color: #a9c7f7; }
.doors-more { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--muted); }
.doors-more a { color: var(--accent); font-weight: 700; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }

/* featured work strip */
.fw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.fw-card {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--rule-dark);
  min-height: 300px; display: flex; align-items: flex-end;
  background: var(--navy);
  transition: transform .4s ease, box-shadow .4s ease;
}
.fw-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.fw-card:hover { transform: translateY(-8px); box-shadow: 0 26px 56px rgba(16,24,60,.35); }
.fw-card:hover img { transform: scale(1.05); }
.fw-info { position: relative; z-index: 2; width: 100%; padding: 20px; background: linear-gradient(transparent, rgba(10,14,36,.92) 55%); }
.fw-info span { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #a9c7f7; }
.fw-info h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; margin-top: 6px; }
@media (max-width: 860px) { .fw-grid { grid-template-columns: 1fr; } .fw-card { min-height: 220px; } }

/* what's new launch cards */
.wn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.wn-card {
  background: #fff; border: 1.5px solid var(--navy); border-radius: 6px;
  padding: 28px 26px;
  box-shadow: 7px 9px 0 -1px #f0f3f8, 7px 9px 0 0 #d8deea;
  transition: transform .35s ease, box-shadow .35s ease;
}
.wn-card:hover { transform: translateY(-6px); box-shadow: 7px 9px 0 -1px #f0f3f8, 7px 9px 0 0 #d8deea, 0 22px 44px rgba(16,24,60,.14); }
.wn-num { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--accent); margin-bottom: 12px; }
.wn-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.wn-card p { font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .wn-grid { grid-template-columns: 1fr; } }

/* existing-client referral line */
.cta-referral { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.6); font-style: italic; position: relative; z-index: 1; }

/* watermarks follow the renumbered sections */
.section-statement::before { content: "01"; }
.section-disciplines::before { content: "02"; }

/* ============ TYPOGRAPHY v3 — drafting-heritage type system ============ */
:root {
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;  /* DIN lineage — engineering-drawing lettering */
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;             /* technical readouts */
}
/* Barlow Condensed runs slightly narrower — open the tracking a touch on big display */
.giant { letter-spacing: .015em; }
.giant-sm { letter-spacing: .015em; }
/* technical microcopy speaks in mono, like instrument labels */
.sheet-tag, .sheet-dim,
.sec-label .n,
.con-title, .con-status, .con-item-meta,
.tb-no, .tb-cell em,
.job-meta,
.pmeta-row span,
.usmap-tip small,
.pr-label,
.f-field label {
  font-family: var(--font-mono);
  font-weight: 500;
}
.f-field label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* numerals in stats and meters get tabular mono flavor without full mono body */
.tb-num, .stats-v2 .num { letter-spacing: 0; }

/* ============ MAXIMUM USER-FRIENDLINESS PASS ============ */
/* skip link — invisible until focused via keyboard */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 20000;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: 0 0 10px 10px;
  transition: top .25s ease;
}
.skip-link:focus { top: 0; }
/* comfortable reading defaults */
body { font-size: 16px; }
p { line-height: 1.72; }
/* motion-off mode (user toggle in the footer, persisted) */
html.calm *, html.calm *::before, html.calm *::after {
  animation: none !important;
  transition-duration: .01s !important;
}
html.calm .hero-canvas, html.calm .builder-canvas, html.calm .pencil-trail { display: none !important; }
html.calm .hero-v2, html.calm .page-hero-v2, html.calm .cta-v2 {
  background: linear-gradient(160deg, #1e2a5e 0%, var(--navy) 55%, #131a40 100%);
}
html.calm .reveal { opacity: 1 !important; transform: none !important; }
html.calm .sk, html.calm .statement .w { opacity: 1 !important; color: inherit; }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 8px 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; cursor: pointer;
  color: rgba(255,255,255,.7); font-size: 12px; font-weight: 600;
  transition: background .25s, color .25s;
}
.motion-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
/* intro skip hint */
.intro-skip {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

/* ============ DISCIPLINES — ALL VISIBLE, NO CAROUSEL ============ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.svc-grid .svc {
  position: static; width: auto; flex: none;
  opacity: 1 !important; transform: none !important; filter: none !important;
  background: #fff; border: 1px solid var(--rule); border-radius: 14px;
  padding: 26px 22px;
  box-shadow: 0 14px 34px rgba(16, 24, 60, .07);
  transition: transform .35s ease, box-shadow .35s ease, border-color .3s;
  display: flex; flex-direction: column;
}
.svc-grid .svc:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px rgba(16, 24, 60, .14);
}
.svc-grid .svc h3 { font-size: 21px; }
.svc-grid .svc p { flex: 1; }
.svc-grid .svc .go { margin-top: auto; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }
