/* ════════════════════════════════════════════════════
   SF & BM CONSULTANTS — Shared Site Stylesheet
   Premium editorial design · cream + coral + deep teal
   ════════════════════════════════════════════════════ */

/* Screen-reader only — visually hidden but accessible to crawlers and assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --bg:            #F6F1E7;
  --bg-soft:       #EFE8D8;
  --bg-card:       #FFFFFF;
  --ink:           #141414;
  --ink-soft:      #3A3A3A;
  --ink-muted:     #7A756C;
  --line:          #D9CFB8;

  --accent:        #FF5B3A;        /* vivid coral — cursor + highlights */
  --accent-2:      #0E5C57;        /* deep teal */
  --accent-3:      #F2C94C;        /* sunshine yellow */
  --accent-soft:   #FFE8E0;

  --pill-software: #0E5C57;
  --pill-code:     #7A3A8F;
  --pill-output:   #B8601A;

  --radius:        14px;
  --radius-lg:     22px;

  /* ── FONTS ──
     Close-to-Calibri-Light feel. Lato = Calibri's closest web cousin.
     Display lines use Lato 300 in italic for that soft, refined edge.
     Change below + the <link> in each .html <head> if you want to try:
       sans: 'Mulish' | 'Public Sans' | 'Source Sans 3' | 'Figtree'
       soft: 'Tenor Sans' | 'Cormorant Garamond' | 'Italiana'            */
  --font-serif:    'Lato', 'Segoe UI Light', 'Calibri Light', sans-serif;
  --font-sans:     'Lato', 'Segoe UI', 'Calibri', -apple-system, BlinkMacSystemFont, sans-serif;

  --page-max:      1480px;
  --side-pad:      60px;
}
@media (max-width: 900px) { :root { --side-pad: 24px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.sr { position: absolute; left: -9999px; }

/* ═══ CURSOR (seamless glow dot + interpolated dot trail) ═══ */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,.92),
    0 0 14px rgba(255,91,58,.55),
    0 0 32px rgba(255,91,58,.28);
  transition: width .22s cubic-bezier(.2,.7,.2,1),
              height .22s cubic-bezier(.2,.7,.2,1),
              background-color .22s ease,
              box-shadow .22s ease;
  will-change: transform;
  mix-blend-mode: normal;
}
.cursor-dot.hover-link {
  width: 30px; height: 30px;
  background: transparent;
  box-shadow:
    0 0 0 1.5px var(--accent),
    0 0 18px rgba(255,91,58,.35);
}
#trail-canvas {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9998;
}
@media (hover: none) { .cursor-dot, #trail-canvas { display: none; } }

/* ═══ SHELL ═══ */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  position: relative;
}

/* ═══ TOP NAV ═══ */
.top-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 241, 231, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 20px var(--side-pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px;
}
.nav-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.nav-brand .brand-mark {
  width: 56px; height: 40px; flex: 0 0 72px;
  display: inline-block;
  /* background-image: url("sf-bm-logo-icon.png"); */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.nav-brand .brand-text {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  white-space: nowrap;
}
.nav-brand .brand-text > span:first-child {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-brand .amp {
  color: var(--accent);
  font-style: normal;
  margin: 0 2px;
}
.nav-brand .brand-text small {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.nav-links {
  display: flex; gap: 32px; list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}
.nav-links a::after {
  content: ""; position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .3s ease, color .3s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

/* ═══ DARK-THEMED NAV (for projects, team, blog) ═══ */
.top-nav.theme-dark {
  background: rgba(10, 14, 14, 0.78);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: rgba(246,241,231,0.86);
}
.top-nav.theme-dark .nav-brand .brand-mark {
  background-image: url("sf-bm-logo-icon-light.png");
}
.top-nav.theme-dark .nav-brand .brand-text > span:first-child { color: #F6F1E7; }
.top-nav.theme-dark .nav-brand .brand-text small { color: rgba(246,241,231,0.55); }
.top-nav.theme-dark .nav-links a { color: rgba(246,241,231,0.65); }
.top-nav.theme-dark .nav-links a:hover,
.top-nav.theme-dark .nav-links a.active { color: #F6F1E7; }
.top-nav.theme-dark .nav-cta {
  border-color: rgba(246,241,231,0.4);
  color: #F6F1E7;
}
.top-nav.theme-dark .nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.top-nav.theme-dark .nav-toggle {
  border-color: rgba(246,241,231,0.18);
}
.top-nav.theme-dark .nav-toggle span,
.top-nav.theme-dark .nav-toggle span::before,
.top-nav.theme-dark .nav-toggle span::after {
  background: #F6F1E7;
}
@media (max-width: 900px) {
  .top-nav.theme-dark .nav-links {
    background: rgba(10,14,14,0.96);
    border-bottom-color: rgba(255,255,255,0.06);
  }
  .top-nav.theme-dark .nav-links li {
    border-bottom-color: rgba(255,255,255,0.06);
  }
}

/* ═══ MOBILE HAMBURGER ═══ */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: var(--ink);
  transition: transform .3s ease, top .3s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle.is-open span { transform: rotate(0); background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(246,241,231,0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    transform: translateY(-110%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    align-items: stretch;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    font-size: 17px;
    font-family: var(--font-serif);
    font-weight: 400;
    padding: 16px 4px;
    letter-spacing: -.2px;
  }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--accent); }
  .nav-brand .brand-text small { display: none; }
}

/* ═══ PAGE HEADER ═══ */
.page-head {
  padding: 100px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.page-head .eyebrow::before {
  content: ""; width: 24px; height: 1px;
  background: var(--accent);
}
.page-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.8px;
}
.page-head h1 em { font-style: italic; font-weight: 300; color: var(--accent); }
.page-head .lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 52ch;
}

@media (max-width: 900px) {
  .page-head { grid-template-columns: 1fr; gap: 24px; padding: 60px 0 40px; }
}

/* ═══ SECTION BASE ═══ */
.section {
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: none; }
.section-head { margin-bottom: 50px; max-width: 800px; }
.section-head .eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-head .eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: var(--accent);
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.5px;
}
.section-head h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.section-head p {
  font-size: 16px; line-height: 1.7;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-top: 18px;
}

/* ═══ GRIDS / CARDS ═══ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 25px 50px -30px rgba(20,20,20,.18); }
.card .card-idx {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 500;
  line-height: 1.2; letter-spacing: -.4px;
  margin-bottom: 10px;
}
.card p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); }

/* ═══ PILLS ═══ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  white-space: nowrap;
}
.pill.software { color: var(--pill-software); background: #E4F3F1; }
.pill.code     { color: var(--pill-code);     background: #F0E6F5; }
.pill.output   { color: var(--pill-output);   background: #FCEFDC; }
.pill.accent   { color: var(--accent); background: var(--accent-soft); }
.pill.ghost    { border-color: var(--line); background: transparent; color: var(--ink-soft); }

/* ═══ WINDOW MOCKUP (reused across pages) ═══ */
.window-frame {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20,20,20,0.18);
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.window-bar .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.window-bar .dot.r { background: #FF6058; }
.window-bar .dot.y { background: #FFBD2E; }
.window-bar .dot.g { background: #28CA41; }
.window-bar .title {
  margin-left: 10px;
  font-size: 11px; color: var(--ink-muted); letter-spacing: 1px;
}
.window-body {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0E5C57 0%, #1B8A7F 50%, #F2C94C 100%);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.window-body::before, .window-body::after {
  content: ""; position: absolute;
  border-radius: 50%; filter: blur(40px);
  opacity: 0.55;
  animation: floatBlob 9s ease-in-out infinite;
}
.window-body::before { width: 340px; height: 340px; background: #FF5B3A; top: -40px; left: -60px; }
.window-body::after  { width: 260px; height: 260px; background: #F2C94C; bottom: -50px; right: -40px; animation-delay: -4s; }
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -20px) scale(1.15); }
}
.window-placeholder {
  position: relative; z-index: 2;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(4px);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  font-weight: 600;
}
.window-body.v2 { background: linear-gradient(135deg, #1B1B3A 0%, #3F2A6B 50%, #FF5B3A 100%); }
.window-body.v2::before { background: #7A3A8F; }
.window-body.v2::after  { background: #FF5B3A; }
.window-body.v3 { background: linear-gradient(135deg, #F8E7B4 0%, #F2C94C 50%, #FF9B5C 100%); }
.window-body.v3::before { background: #F2C94C; }
.window-body.v3::after  { background: #0E5C57; }
.window-body.v4 { background: linear-gradient(135deg, #E9F5F3 0%, #B6DDD7 50%, #0E5C57 100%); }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  transition: background .3s ease, transform .25s ease;
}
.btn:hover { background: var(--accent); transform: translateY(-2px); }
.btn.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ═══ STATS ═══ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.stat .num {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.8px;
}
.stat .num em { color: var(--accent); font-style: normal; }
.stat .lbl {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

/* ═══ TIMELINE ═══ */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ""; position: absolute;
  top: 0; bottom: 0; left: 12px;
  width: 2px; background: var(--line);
}
.tl-item {
  position: relative;
  padding: 18px 0 30px 30px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: baseline;
}
.tl-item::before {
  content: ""; position: absolute;
  left: -34px; top: 28px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.tl-item.now::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.tl-year {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 500;
  color: var(--accent);
}
.tl-text { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.tl-text strong { color: var(--ink); font-weight: 600; }

/* ═══ ACCORDION (used on projects) ═══ */
.phases { border-top: 1px solid var(--line); margin-top: 40px; }
.phase { border-bottom: 1px solid var(--line); }
.phase-head {
  width: 100%;
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 500;
  color: var(--ink);
  transition: color .2s ease;
}
.phase-head:hover { color: var(--accent); }
.phase-head .num {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; color: var(--ink-muted);
}
.phase-head .meta {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 500;
}
.phase-head .chev {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid; place-items: center;
  transition: background .3s ease, transform .4s cubic-bezier(.8,0,.2,1);
  font-size: 18px; color: var(--ink);
}
.phase.open .phase-head .chev { background: var(--accent); color: #fff; transform: rotate(45deg); }
.phase-body {
  max-height: 0; overflow: hidden;
  transition: max-height .55s cubic-bezier(.8,0,.2,1);
}
.phase-body-inner {
  padding: 4px 0 40px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .phase-body-inner { grid-template-columns: 1fr; padding-left: 0; }
}
.sub-task { margin-bottom: 24px; padding-left: 18px; border-left: 2px solid var(--accent-soft); }
.sub-task h4 {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink); margin-bottom: 6px;
}
.sub-task p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 10px; }
.sub-task .pill-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ═══ FOOTER ═══ */
.site-footer {
  margin-top: 60px;
  padding: 40px var(--side-pad) 40px;
  border-top: 1px solid var(--line);
}
.footer-big {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.8px;
  margin-bottom: 60px;
  max-width: 16ch;
}
.footer-big em { font-style: italic; color: var(--accent); font-weight: 300; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-col h5 {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col p, .footer-col a {
  font-size: 14px; line-height: 1.8; color: var(--ink-soft);
  display: block;
}
.footer-col a:hover { color: var(--accent); }
.footer-base {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-muted); letter-spacing: .5px;
  flex-wrap: wrap; gap: 10px;
}

/* ── Dark footer (shared dark-page variant of the modular footer) ── */
.site-footer.theme-dark {
  background: #0A0E0E;
  border-top: 1px solid rgba(246, 241, 231, 0.12);
  color: #F6F1E7;
}
.site-footer.theme-dark .footer-big { color: #F6F1E7; }
.site-footer.theme-dark .footer-big em { color: var(--accent); }
.site-footer.theme-dark .footer-cols { border-top-color: rgba(246, 241, 231, 0.12); }
.site-footer.theme-dark .footer-col h5 { color: rgba(246, 241, 231, 0.5); }
.site-footer.theme-dark .footer-col p,
.site-footer.theme-dark .footer-col a { color: rgba(246, 241, 231, 0.7); }
.site-footer.theme-dark .footer-col a:hover { color: var(--accent); }
.site-footer.theme-dark .footer-base {
  border-top-color: rgba(246, 241, 231, 0.12);
  color: rgba(246, 241, 231, 0.45);
}
/* Lets the dark footer sit as the final block of the Team page's snap scroller */
.mc-scroll > .site-footer { scroll-snap-align: start; }

/* ═══ HOME-SPECIFIC ═══ */
.hero {
  padding: 14px 0 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: start;
  min-height: calc(100vh - 78px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
@media (max-width: 1000px) { .hero { grid-template-columns: 1fr; padding: 24px 0 50px; min-height: 0; } }
.hero-topbar {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
  flex-wrap: wrap; gap: 10px;
}
.hero-topbar .dot {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; display: inline-block; margin-right: 8px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.4vw, 70px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -1px;
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--accent); }
.hero-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-top: 18px;
}
.hero-ctas { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dome {
  min-height: clamp(290px, 32vw, 480px);
  position: relative;
  overflow: visible;
  align-self: start;
  margin-top: -20px;
}
@media (max-width: 1024px) {
  .hero-dome {
    overflow: hidden;
    margin-top: 0;
    align-self: auto;
  }
}
.hero-dome canvas {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  cursor: default;
}
.hero-dome .freq-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(14,92,87,.52);
  pointer-events: none;
  user-select: none;
}
.hero-dome .freq-label span { color: var(--accent); font-weight: 700; }
@media (max-width: 1000px) {
  .hero-dome { min-height: 360px; }
}
.hero-side {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transform: rotate(0.4deg);
  box-shadow: 0 30px 60px -30px rgba(20,20,20,.18);
}
.hero-side h4 {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-side ul { list-style: none; }
.hero-side li {
  padding: 14px 0;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px;
}
.hero-side li:last-child { border-bottom: none; }
.hero-side li .num {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; color: var(--accent);
}

/* Marquee */
.marquee {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 60px;
  animation: scroll 40s linear infinite;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink-soft);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee-track .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══ CLIENT RIBBON ═══ */
.client-ribbon {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.client-ribbon-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 18px;
}
.client-track {
  display: flex;
  width: max-content;
  animation: clientScroll 35s linear infinite;
}
.client-slide {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 0 30px;
}
.client-logo {
  height: 54px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter .4s ease;
}
.client-logo:hover {
  filter: grayscale(0%) opacity(1);
}
@keyframes clientScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .client-slide { gap: 40px; }
  .client-logo { height: 42px; max-width: 135px; }
}
@media (max-width: 640px) {
  .client-slide { gap: 30px; }
  .client-logo { height: 36px; max-width: 120px; }
}

/* ═══ SERVICE / VALUE CARDS specific ═══ */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(20,20,20,.2); }
.service-card::before {
  content: ""; position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  background: var(--accent-soft);
  border-radius: 0 0 0 100%;
  transition: width .4s ease, height .4s ease;
}
.service-card:hover::before { width: 100px; height: 100px; }
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 500;
  line-height: 1.2; letter-spacing: -.4px;
  margin-bottom: 14px;
  position: relative;
}
.service-card ul {
  list-style: none;
  position: relative;
}
.service-card li {
  padding: 8px 0 8px 24px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  position: relative;
  border-bottom: 1px solid var(--bg-soft);
}
.service-card li:last-child { border-bottom: none; }
.service-card li::before {
  content: ""; position: absolute;
  left: 0; top: 18px;
  width: 10px; height: 2px;
  background: var(--accent);
}

/* ═══ TEAM CARD ═══ */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  transition: transform .4s ease, box-shadow .4s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(20,20,20,.2); }
.team-avatar {
  background: linear-gradient(145deg, var(--accent-2) 0%, #1B8A7F 100%);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  min-height: 240px;
}
.team-avatar::before, .team-avatar::after {
  content: ""; position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
}
.team-avatar::before { width: 180px; height: 180px; background: var(--accent); top: -30px; left: -30px; }
.team-avatar::after  { width: 140px; height: 140px; background: var(--accent-3); bottom: -30px; right: -30px; }
.team-avatar .initials {
  position: relative; z-index: 2;
  font-family: var(--font-serif);
  font-size: 62px; font-weight: 500;
  color: #fff; letter-spacing: -2px;
}
.team-body { padding: 28px 32px; }
.team-body .role {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.team-body h3 {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 500;
  line-height: 1.1; letter-spacing: -.5px;
  margin-bottom: 4px;
}
.team-body .tag { font-style: italic; color: var(--ink-muted); margin-bottom: 14px; font-size: 14px; }
.team-body p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 16px; }
.team-body .creds {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--bg-soft);
}
@media (max-width: 640px) {
  .team-card { grid-template-columns: 1fr; }
  .team-avatar { min-height: 200px; }
}

/* ═══ CONTACT ═══ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: ""; position: absolute;
  bottom: -80px; right: -80px;
  width: 240px; height: 240px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .25;
  filter: blur(40px);
}
.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 300;
  letter-spacing: -.5px; line-height: 1.15;
  margin-bottom: 20px;
}
.contact-info h3 em { font-style: italic; color: var(--accent-3); }
.contact-info p { color: #CFCAC1; font-size: 15px; line-height: 1.7; margin-bottom: 30px; }
.contact-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 14px;
}
.contact-row .lbl { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-3); min-width: 90px; font-weight: 600; }
.contact-row .val { color: #F6F1E7; }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
}
.contact-form h4 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 500;
  margin-bottom: 20px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .25s ease, background .25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }

/* ═══ PROJECT PAGE ═══ */
.project-block {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.project-block:last-child { border-bottom: none; }
.project-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}
@media (max-width: 900px) { .project-head { grid-template-columns: 1fr; } }
.project-num {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.project-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.6px;
  margin-bottom: 22px;
}
.project-desc {
  font-size: 16px; line-height: 1.65;
  color: var(--ink-soft); max-width: 55ch; margin-bottom: 22px;
}
.project-meta {
  display: grid; grid-template-columns: 120px 1fr; gap: 12px;
  margin-bottom: 18px;
  font-size: 13px;
}
.project-meta .lbl {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 600; padding-top: 3px;
}
.project-meta .val { color: var(--ink); font-weight: 500; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* process steps (used in about / services) */
.steps {
  display: grid; gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-serif);
  font-size: 62px;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  font-style: italic;
}
.step-body h3 {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 500;
  line-height: 1.15; letter-spacing: -.4px;
  margin-bottom: 10px;
}
.step-body p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }

/* tech grid */
.tech-group {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tech-group h4 {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 16px;
}
.tech-group ul { list-style: none; }
.tech-group li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--bg-soft);
}
.tech-group li:last-child { border-bottom: none; }

/* featured fragment on home */
.featured-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 900px) { .featured-strip { grid-template-columns: 1fr; } }
.featured-card {
  padding: 34px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.featured-card.alt { background: var(--accent-2); }
.featured-card::before {
  content: ""; position: absolute;
  bottom: -60px; right: -60px;
  width: 180px; height: 180px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .3;
  filter: blur(40px);
}
.featured-card .cat {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-3); font-weight: 700;
}
.featured-card h3 {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 300;
  line-height: 1.2; letter-spacing: -.3px;
  margin-top: 20px;
}
.featured-card .more {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; margin-top: 24px;
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--accent-3);
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — iPad + Mobile refinements
   ═══════════════════════════════════════════════════════════ */

/* ── iPad landscape and narrower desktop (≤ 1100px) ── */
@media (max-width: 1100px) {
  :root { --side-pad: 36px; }
  .nav-inner { padding: 18px var(--side-pad); }
  .nav-links { gap: 22px; }
}

/* ── iPad portrait (≤ 900px) — hamburger already engaged here ── */
@media (max-width: 900px) {
  :root { --side-pad: 24px; }
  .nav-inner { padding: 14px var(--side-pad); gap: 16px; }
  .nav-brand { gap: 10px; }
  .nav-brand .brand-mark { width: 46px; height: 32px; flex-basis: 46px; }
  .nav-brand .brand-text > span:first-child { font-size: 19px; }
  .nav-brand .brand-text small { font-size: 8px; letter-spacing: 2.4px; }

  .hero { padding: 40px 0 60px; gap: 30px; }
  .hero-dome { min-height: clamp(280px, 60vw, 420px); }
  .hero-topbar { font-size: 10px; letter-spacing: 2px; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { padding: 12px 20px; font-size: 12px; }

  .marquee { padding: 22px 0; }
  .marquee-track { font-size: 20px; gap: 36px; }
  .marquee-track span { gap: 36px; }

  .section { padding: 60px 0; }
  .section-head { margin-bottom: 30px; }

  .featured-card { padding: 26px; min-height: 200px; }
  .featured-card h3 { font-size: 22px; }

  .contact-info { padding: 36px 24px !important; }

  .site-footer { padding: 40px;}
  .footer-big { font-size: clamp(30px, 7vw, 48px); margin-bottom: 36px; }
  .footer-cols { padding-top: 30px; }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {
  :root { --side-pad: 18px; }
  .nav-inner { gap: 12px; }
  .nav-brand { gap: 8px; }
  .nav-brand .brand-mark { width: 40px; height: 28px; flex-basis: 70px; }
  .nav-brand .brand-text > span:first-child { font-size: 17px; }
  .nav-brand .brand-text small { font-size: 7px; letter-spacing: 2px; }

  .hero { padding: 30px 0 50px; }
  .hero h1 { font-size: clamp(34px, 9vw, 50px); line-height: 1.05; }
  .hero-lead { font-size: 15px; margin-top: 18px; }
  .hero-ctas { margin-top: 24px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }

  .marquee-track { font-size: 17px; gap: 28px; animation-duration: 28s; }
  .marquee-track span { gap: 28px; }

  .stats { gap: 20px; }
  .stat .num { font-size: clamp(34px, 9vw, 48px); }

  .section { padding: 48px 0; }
  .section-head h2 { font-size: clamp(26px, 7.5vw, 36px); }

  .service-card { padding: 24px 22px; }
  .service-card h3 { font-size: 20px; }

  .featured-card { padding: 22px; min-height: 180px; }
  .featured-card h3 { font-size: 20px; margin-top: 16px; }

  .btn { padding: 12px 18px; font-size: 12px; letter-spacing: 1.2px; }

  .timeline { padding-left: 24px; }
  .tl-item { grid-template-columns: 80px 1fr; gap: 14px; padding: 14px 0 24px 18px; }
  .tl-year { font-size: 22px; }

  .step { grid-template-columns: 70px 1fr; gap: 16px; padding: 22px 0; }
  .step-num { font-size: 44px; }
  .step-body h3 { font-size: 20px; }

  .phase-head { font-size: 18px; grid-template-columns: 40px 1fr auto auto; gap: 12px; padding: 18px 0; }
  .phase-head .num { font-size: 10px; }
  .phase-head .meta { font-size: 10px; }
  .phase-body-inner { padding: 4px 0 24px 0; gap: 24px; }

  .project-block { padding: 50px 0; }
  .project-meta { grid-template-columns: 90px 1fr; gap: 8px; }

  .footer-big { font-size: clamp(28px, 8vw, 40px); }
  .footer-base { font-size: 11px; flex-direction: column; gap: 6px; }

  /* Make tap targets comfortable */
  .nav-links a { padding: 18px 4px !important; min-height: 44px; }
  .nav-cta, .btn, button { min-height: 44px; }
}

/* ── Very small phones (≤ 380px) ── */
@media (max-width: 380px) {
  .nav-brand small { display: none; }
  .nav-brand { font-size: 16px; }
  .hero h1 { font-size: clamp(28px, 9vw, 40px); }
}

/* Mobile + iPad stability pass */
@media (max-width: 1100px) {
  h1, h2, h3, p, a, button, span, li { overflow-wrap: anywhere; }
  .page, .nav-inner, .section, .page-head, .project-block { min-width: 0; }
  .pill, .btn, .nav-cta { white-space: normal; text-align: center; }
}

@media (max-width: 900px) {
  .nav-links {
    top: 68px;
    max-height: calc(100svh - 68px);
    overflow-y: auto;
    box-shadow: 0 22px 44px -34px rgba(20,20,20,.42);
  }
  .nav-links a { letter-spacing: 0; }
  .page-head h1,
  .section-head h2,
  .hero h1,
  .project-title,
  .footer-big {
    letter-spacing: 0;
  }
  .card,
  .service-card,
  .featured-card,
  .contact-form,
  .contact-info,
  .tech-group,
  .team-card {
    border-radius: var(--radius);
  }
}

@media (max-width: 640px) {
  .page-head { padding: 44px 0 32px; }
  .page-head .lead,
  .section-head p,
  .project-desc,
  .card p,
  .step-body p {
    font-size: 14px;
    line-height: 1.65;
  }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .contact-row .lbl { min-width: 0; }
  .project-tags,
  .sub-task .pill-row,
  .team-body .creds {
    gap: 7px;
  }
  .pill {
    white-space: normal;
    max-width: 100%;
    line-height: 1.3;
  }
  .window-body { aspect-ratio: 4 / 3; }
}

/* Contact page is generated with inline styles, so these responsive guards use !important. */
@media (max-width: 900px) {
  .contact-fixed-nav .nav-inner { padding: 14px var(--side-pad) !important; }
  .form-card,
  .direct-card,
  .office-card {
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
  }
}

@media (max-width: 640px) {
  .form-card {
    padding: 28px 20px 24px !important;
    border-radius: 14px !important;
  }
  .direct-card,
  .office-card {
    padding: 24px 20px !important;
    border-radius: 14px !important;
  }
  .form-card button,
  .direct-card a,
  .direct-card button {
    min-height: 44px !important;
  }
}
