/* =========================================================
   PRESCIENT SOLUTIONS — LOCAL SITE
   Deep purple replaces the original deep map blue.
========================================================= */

:root {
  --deep-purple: #2b173f;
  --deep-purple-2: #3c2459;
  --fog-grey: #e8eceb;
  --survey-orange: #e07a3f;
  --survey-orange-dark: #b55224;
  --tidal-teal: #2f6f73;
  --paper-white: #fafaf7;
  --ink: #18151f;
  --muted: #5f6570;
  --line: rgba(43, 23, 63, 0.16);
  --shadow: 0 24px 70px rgba(24, 21, 31, 0.18);
  --shadow-soft: 0 14px 40px rgba(24, 21, 31, 0.12);
  --radius-lg: 34px;
  --radius-md: 22px;
  --nav-height: 82px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper-white); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 20%, rgba(47, 111, 115, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(224, 122, 63, 0.1), transparent 24rem),
    linear-gradient(180deg, var(--paper-white), var(--fog-grey));
  font-family: var(--font-body);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--survey-orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--survey-orange); outline-offset: 4px; border-radius: 10px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 9999; transform: translateY(-160%); background: var(--paper-white); color: var(--deep-purple); padding: .75rem 1rem; border: 2px solid var(--survey-orange); border-radius: 999px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

.site-nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-height); z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 0 6vw; color: var(--paper-white); background: rgba(43, 23, 63, .86); border-bottom: 1px solid rgba(250,250,247,.18); backdrop-filter: blur(18px); }
.brand-mark { display: inline-flex; align-items: center; gap: .85rem; min-width: max-content; }
.brand-symbol { display: grid; place-items: center; width: 61px; height: 49px; color: var(--deep-purple); border-radius: 16px; font-family: var(--font-mono); font-size: .9rem; font-weight: 700; letter-spacing: -.04em;}
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.04rem; letter-spacing: -.03em; }
.brand-text small { margin-top: .22rem; color: rgba(250,250,247,.72); font-family: var(--font-mono); font-size: .69rem; letter-spacing: .16em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .9rem; color: rgba(250,250,247,.82); border-radius: 999px; font-size: .94rem; font-weight: 650; transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.nav-links a:hover, .nav-links a.is-active { color: var(--paper-white); background: rgba(250,250,247,.12); }
.nav-links a:hover { transform: translateY(-1px); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(250,250,247,.22); border-radius: 16px; background: rgba(250,250,247,.08); color: var(--paper-white); cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 999px; }

.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; place-items: center; padding: calc(var(--nav-height) + 5rem) 6vw 5rem; color: var(--paper-white); isolation: isolate; }
.home-hero { background: linear-gradient(90deg, rgba(43,23,63,.92), rgba(43,23,63,.56), rgba(43,23,63,.92)), url("../images/backgrounds/home-hero-topography.png"); background-size: cover; background-position: center; touch-action: pan-y; }
.home-hero::after { content: ""; position: absolute; inset: auto 6vw 4rem 6vw; height: 1px; background: linear-gradient(90deg, transparent, rgba(250,250,247,.5), transparent); z-index: -1; }
.hero-map { position: absolute; inset: 0; z-index: -1; opacity: .95; background-image: linear-gradient(rgba(250,250,247,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(250,250,247,.09) 1px, transparent 1px); background-size: 76px 76px; mask-image: radial-gradient(circle at center, black 0%, transparent 74%); }
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-route polygon { fill: rgba(250,250,247,.05); stroke: rgba(250,250,247,.3); stroke-width: .15; }
.map-pin { position: absolute; width: 16px; height: 16px; border: 3px solid var(--paper-white); background: var(--survey-orange); border-radius: 999px; box-shadow: 0 0 0 9px rgba(224,122,63,.18); transform: translate(-50%, -50%); }
.pin-one { top: 33%; left: 22%; } .pin-two { top: 57%; left: 69%; } .pin-three { top: 82%; left: 62%; }
.hero-content { position: relative; width: min(1080px, 100%); text-align: center; animation: heroIntro 900ms ease both; padding-bottom: 10%; }
.eyebrow { margin: 0 0 1rem; color: var(--survey-orange); font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero-kicker { color: rgba(250,250,247,.76); }
.hero-logo { display: grid; place-items: center; width: 184px; height: 184px; margin: 0 auto 1.35rem; color: var(--deep-purple); border-radius: 32px;}
.hero-logo span { font-family: var(--font-mono); font-size: 1.45rem; font-weight: 700; letter-spacing: -.08em; }
.hero h1, .page-hero h1, .section-heading h2, .message-statement h2, .cta-panel h2, .geo-card h2, .contact-note h2 { font-family: var(--font-display); letter-spacing: -.055em; line-height: .96; }
.hero h1 { max-width: 12ch; margin: 0 auto 1.1rem; font-size: clamp(4rem, 11vw, 9rem); font-weight: 700; }
.hero-tagline { max-width: 870px; margin: 0 auto; color: var(--paper-white); font-size: clamp(1.25rem, 3vw, 2.15rem); font-weight: 650; letter-spacing: -.035em; }
.hero-copy { max-width: 640px; margin: 1rem auto 0; color: rgba(250,250,247,.8); font-size: 1.05rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 5.4rem; z-index: 6; display: inline-flex; align-items: center; gap: .75rem; margin: 0; padding: .85rem 1rem; color: var(--paper-white); background: rgba(43,23,63,.72); border: 1px solid rgba(250,250,247,.5); border-radius: 999px; font-family: var(--font-mono); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 14px 34px rgba(24,21,31,.3); backdrop-filter: blur(10px); transform: translateX(-50%); transition: background-color 180ms ease, transform 180ms ease; }
.scroll-cue:hover { background: rgba(250,250,247,.12); transform: translate(-50%, -2px); }
.scroll-dot { width: 9px; height: 9px; background: var(--survey-orange); border-radius: 999px; box-shadow: 0 0 0 7px rgba(224,122,63,.18); }

.section { padding: clamp(4.5rem, 8vw, 8rem) 6vw; }
.section-shell { width: min(1180px, 100%); margin: 0 auto; }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.message-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.message-statement h2 { position: sticky; top: calc(var(--nav-height) + 2rem); margin: 0; color: var(--deep-purple); font-size: clamp(2.45rem, 5vw, 5rem); font-weight: 700; }
.message-copy { display: grid; gap: 1.25rem; color: #34303b; font-size: clamp(1.03rem, 1.4vw, 1.18rem); }
.message-copy p { margin: 0; }
.services-list { display: grid; gap: .55rem; margin: 0; padding-left: 1.25rem; }
.services-list li { padding-left: .25rem; }

.prediction-route { position: relative; margin-top: clamp(3rem, 7vw, 6rem); padding: clamp(1.4rem, 3vw, 2rem); background: linear-gradient(135deg, rgba(43,23,63,.96), rgba(60,36,89,.94)); border: 1px solid rgba(250,250,247,.12); border-radius: var(--radius-lg); color: var(--paper-white); box-shadow: var(--shadow); overflow: hidden; }
.prediction-route::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(250,250,247,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(250,250,247,.08) 1px, transparent 1px); background-size: 42px 42px; opacity: .5; }
.route-line { position: absolute; top: 11px; left: calc(100% / 6); right: calc(100% / 6); height: 3px; background: rgba(250,250,247,.2); transform: translateY(-50%); overflow: hidden; z-index: 0; }
.route-progress { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--survey-orange), #ffcf91); transform: scaleX(0); transform-origin: left; }
.prediction-route.active .route-progress { animation: drawRoute 1400ms 240ms cubic-bezier(.2,.8,.2,1) forwards; }
.route-points { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); z-index: 1; }
.route-point { position: relative; z-index: 1; display: grid; justify-items: center; gap: .45rem; padding-inline: .75rem; text-align: center; }
.route-dot { width: 22px; height: 22px; background: var(--survey-orange); border: 5px solid var(--paper-white); border-radius: 999px; box-shadow: 0 0 0 11px rgba(224,122,63,.18); }
.route-point strong { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.9rem); letter-spacing: -.04em; }
.route-point small { color: rgba(250,250,247,.72); font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }

.team-section { background: radial-gradient(circle at 18% 20%, rgba(224,122,63,.1), transparent 24rem), linear-gradient(180deg, rgba(232,236,235,.25), rgba(250,250,247,.66)); }
.section-heading { max-width: 760px; margin-bottom: 2.5rem; }
.section-heading h2 { margin: 0; color: var(--deep-purple); font-size: clamp(2.4rem, 5vw, 4.8rem); }
.section-heading p { margin: 1rem 0 0; color: var(--muted); font-size: 1.05rem; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 390px)); gap: clamp(1.4rem, 4vw, 3rem); align-items: stretch; justify-content: center; perspective: 1200px; }
.person-card { position: relative; display: grid; gap: 1rem; width: 100%; height: 100%; padding: 1rem; color: var(--ink); text-align: left; background: radial-gradient(circle at var(--x, 50%) var(--y, 0%), rgba(255,255,255,.86), transparent 28%), linear-gradient(145deg, #fff4cf, #f1ba62 42%, #f7db96); border: 7px solid #c8872f; border-radius: 28px; box-shadow: var(--shadow-soft); cursor: pointer; transform-style: preserve-3d; transition: transform 160ms ease, box-shadow 220ms ease, border-color 220ms ease; overflow: hidden; }
.person-card::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(43,23,63,.22); border-radius: 20px; pointer-events: none; }
.person-card:hover { border-color: var(--survey-orange); box-shadow: 0 30px 80px rgba(224,122,63,.3); }
.card-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.18) 28%, rgba(255,255,255,.72) 45%, rgba(255,255,255,.12) 58%, transparent 100%); opacity: 0; transform: translateX(-70%); transition: opacity 180ms ease; pointer-events: none; }
.person-card:hover .card-shine { opacity: 1; animation: shimmer 1100ms ease; }
.card-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding-inline: 1rem; font-family: var(--font-mono); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-type { padding: .34rem .58rem; color: var(--paper-white); background: var(--deep-purple); border-radius: 999px; }
.member-image { position: relative; z-index: 1; width: 100%; aspect-ratio: 1.25 / 1; object-fit: cover; border: 5px solid rgba(250,250,247,.8); border-radius: 20px; filter: saturate(.92) contrast(1.04); }
.member-name { position: relative; z-index: 1; display: block; padding-inline: 1rem; font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.member-title { position: relative; z-index: 1; display: block; padding-inline: 1rem; color: rgba(24,21,31,.78); font-weight: 700; line-height: 1.3; }
.member-info { position: relative; z-index: 1; display: grid; gap: .25rem; padding: 1rem; background: rgba(250,250,247,.72); border: 1px solid rgba(43,23,63,.16); border-radius: 18px; }
.member-info strong { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.card-stats { position: relative; z-index: 1; display: grid; gap: .65rem; margin-top: auto; padding-inline: 1rem; }
.card-stats span { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .55rem; }
.card-stats small { color: rgba(24,21,31,.65); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); color: var(--paper-white); background: radial-gradient(circle at 16% 0%, rgba(224,122,63,.3), transparent 24rem), linear-gradient(135deg, var(--deep-purple), var(--deep-purple-2)); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.cta-panel h2 { max-width: 640px; margin: 0; font-size: clamp(2.25rem, 4.6vw, 4.7rem); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; min-width: max-content; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .86rem 1.15rem; border-radius: 999px; font-weight: 800; transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-3px); }
.button.primary { color: var(--deep-purple); background: var(--survey-orange); }
.button.primary:hover { background: #f1a15f; }
.button.secondary { color: var(--paper-white); border: 1px solid rgba(250,250,247,.26); }
.button.secondary:hover { background: rgba(250,250,247,.12); }

.page-hero { padding: calc(var(--nav-height) + clamp(4.5rem, 9vw, 8rem)) 6vw clamp(3rem, 6vw, 5rem); color: var(--paper-white); background: radial-gradient(circle at 18% 20%, rgba(224,122,63,.28), transparent 24rem), linear-gradient(135deg, var(--deep-purple), var(--deep-purple-2)); }
.page-hero h1, .page-hero p { width: min(960px, 100%); }
.page-hero h1 { margin: 0; font-size: clamp(3rem, 8vw, 7.2rem); }
.page-hero > p:not(.eyebrow) { margin: 1.2rem 0 0; color: rgba(250,250,247,.78); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }

.project-jump-nav { position: sticky; top: var(--nav-height); z-index: 800; display: flex; gap: .65rem; overflow-x: auto; padding: 1rem 6vw; background: rgba(250,250,247,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.project-jump-nav a { flex: 0 0 auto; padding: .62rem .82rem; color: var(--deep-purple); background: rgba(43,23,63,.06); border: 1px solid rgba(43,23,63,.1); border-radius: 999px; font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.project-jump-nav a:hover { color: var(--paper-white); background: var(--deep-purple); transform: translateY(-2px); }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.project-box { min-height: 330px; display: flex; flex-direction: column; padding: 1.35rem; background: rgba(250,250,247,.82); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); scroll-margin-top: calc(var(--nav-height) + 5.5rem); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.project-box:hover { transform: translateY(-6px); border-color: rgba(224,122,63,.56); box-shadow: 0 20px 54px rgba(24,21,31,.17); }
.project-code { margin: 0 0 1rem; color: var(--muted); font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-tag { width: max-content; margin-bottom: 1rem; padding: .38rem .62rem; color: var(--deep-purple); background: rgba(224,122,63,.24); border-radius: 999px; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.project-box h2 { margin: 0 0 .75rem; color: var(--deep-purple); font-family: var(--font-display); font-size: clamp(1.55rem, 2.5vw, 2.15rem); letter-spacing: -.05em; line-height: 1; }
.project-box p:not(.project-code) { margin: 0; color: #4a4650; }
.project-box a { width: max-content; margin-top: auto; padding-top: 1.2rem; color: var(--tidal-teal); font-family: var(--font-mono); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.geo-layout { display: grid; grid-template-columns: 1.2fr .9fr; gap: 1.25rem; }
.geo-card { padding: clamp(1.35rem, 3vw, 2rem); background: rgba(250,250,247,.82); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.geo-card:first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 480px; color: var(--paper-white); background: linear-gradient(rgba(43,23,63,.15), rgba(43,23,63,.92)), url("https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=1200&q=80"); background-size: cover; background-position: center; border-color: rgba(43,23,63,.2); }
.geo-card h2 { margin: 0 0 1rem; color: inherit; font-size: clamp(2rem, 4vw, 4rem); }
.geo-card p:not(.eyebrow) { margin: 0; color: inherit; }

.contact-layout { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(300px, 1.05fr); gap: 1.25rem; align-items: stretch; }
.contact-card, .contact-note { padding: clamp(1.35rem, 3vw, 2.25rem); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.contact-card { background: var(--paper-white); border: 1px solid var(--line); }
.contact-card h2, .contact-note h2 { margin: 0 0 1.25rem; color: var(--deep-purple); font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.05em; line-height: 1; }
.contact-list { display: grid; gap: 1rem; margin: 0; }
.contact-list div { display: grid; gap: .25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-list dd { margin: 0; color: var(--ink); font-size: 1.05rem; font-weight: 650; }
.contact-list a { color: var(--tidal-teal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact-note { display: flex; flex-direction: column; justify-content: flex-end; color: var(--paper-white); background: radial-gradient(circle at 90% 10%, rgba(224,122,63,.32), transparent 18rem), linear-gradient(135deg, var(--deep-purple), var(--deep-purple-2)); }
.contact-note h2 { color: var(--paper-white); }
.contact-note p:not(.eyebrow) { margin: 0; color: rgba(250,250,247,.78); }

.profile-modal { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; padding: 1.25rem; }
.profile-modal.is-open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(24,21,31,.72); backdrop-filter: blur(8px); }
.modal-card { position: relative; z-index: 1; display: grid; grid-template-columns: 170px 1fr; gap: 1.5rem; width: min(720px, 100%); padding: clamp(1.2rem, 3vw, 2rem); background: var(--paper-white); border: 1px solid rgba(250,250,247,.3); border-radius: var(--radius-lg); box-shadow: 0 30px 90px rgba(0,0,0,.38); animation: modalIn 240ms ease both; }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; color: var(--deep-purple); background: rgba(43,23,63,.08); border: 0; border-radius: 999px; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.modal-image { width: 300px; height: 300px; object-fit: cover; border-radius: 28px; }
.modal-name { margin: 0; color: var(--deep-purple); font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 4rem); letter-spacing: -.05em; line-height: 1; }
.modal-education { margin: .65rem 0 1rem; color: var(--tidal-teal); font-weight: 800; }
.modal-text { margin: 0; color: #403b47; }
.modal-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 1.4rem;
  padding: 0.75rem 1rem;

  color: var(--paper-white);
  background: var(--deep-purple);
  border: 2px solid var(--deep-purple);
  border-radius: 999px;

  font-weight: 800;
  text-decoration: none;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.modal-profile-link:hover {
  background: var(--survey-orange);
  border-color: var(--survey-orange);
  color: var(--deep-purple);
  transform: translateY(-2px);
}

.modal-profile-link[hidden] {
  display: none;
}

.reveal, .pop-scroll { opacity: 0; transform: translateY(26px); transition: opacity 620ms ease, transform 620ms ease; }
.pop-scroll { transform: translateY(18px) scale(.94); }
.reveal.active, .pop-scroll.active { opacity: 1; transform: translateY(0) scale(1); }
@keyframes heroIntro { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes drawRoute { to { transform: scaleX(1); } }
@keyframes shimmer { from { transform: translateX(-70%); } to { transform: translateX(72%); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 980px) {
  .message-layout, .contact-layout, .geo-layout { grid-template-columns: 1fr; }
  .message-statement h2 { position: static; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geo-card:first-child { min-height: 360px; }
  .cta-panel { align-items: flex-start; flex-direction: column; }
  .cta-actions { min-width: 0; }
}
@media (max-width: 760px) {
  :root { --nav-height: 74px; }
  .site-nav { padding: 0 1rem; }
  .brand-text { display: none; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: var(--nav-height); left: 1rem; right: 1rem; display: none; flex-direction: column; align-items: stretch; gap: .4rem; padding: .75rem; background: rgba(43,23,63,.96); border: 1px solid rgba(250,250,247,.18); border-radius: 20px; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { justify-content: center; }
  .hero { padding-inline: 1.1rem; }
  .hero h1 { font-size: clamp(3.4rem, 18vw, 5rem); }
  .hero-logo { width: 86px; height: 86px; border-radius: 26px; }
  .scroll-cue { bottom: 2.5rem; }
  .section, .page-hero { padding-inline: 1.1rem; }
  .team-grid, .projects-grid { grid-template-columns: 1fr; }
  .prediction-route { padding: 1.2rem; }
  .route-point { padding-inline: .4rem; }
  .route-point strong { font-size: 1rem; }
  .route-point small { font-size: .62rem; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-image { width: 132px; height: 132px; }
  .project-jump-nav { top: var(--nav-height); padding-inline: 1rem; }
}
@media (max-width: 440px) {
  .route-points { grid-template-columns: 1fr; justify-items: start; text-align: left; }
  .route-line { display: none; }
  .route-point { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding-inline: 0; }
  .route-point small { grid-column: 2; }
  .contact-card h2, .contact-note h2 { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .reveal, .pop-scroll { opacity: 1; transform: none; }
  .route-progress { transform: scaleX(1); }
}


/* =========================================================
   PROJECTS PAGE — CASE STUDY INDEX
========================================================= */
.projects-page { background: linear-gradient(180deg, var(--paper-white), #eef0f2 48%, var(--paper-white)); }
.projects-hero { position: relative; overflow: hidden; isolation: isolate; }
.projects-hero::after { content: ""; position: absolute; width: 38rem; height: 38rem; right: -12rem; bottom: -22rem; border: 1px solid rgba(250,250,247,.22); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(250,250,247,.025), 0 0 0 10rem rgba(250,250,247,.018); z-index: -1; }
.projects-hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: linear-gradient(rgba(250,250,247,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(250,250,247,.08) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, transparent, black 35%, black); }
.projects-hero-grid span { position: absolute; width: 12px; height: 12px; border: 3px solid var(--paper-white); background: var(--survey-orange); border-radius: 50%; box-shadow: 0 0 0 9px rgba(224,122,63,.15); animation: projectMarkerPulse 3.5s ease-in-out infinite; }
.projects-hero-grid span:nth-child(1) { top: 34%; right: 14%; }
.projects-hero-grid span:nth-child(2) { top: 61%; right: 32%; animation-delay: .5s; }
.projects-hero-grid span:nth-child(3) { top: 24%; right: 47%; animation-delay: 1s; }
.projects-hero-grid span:nth-child(4) { top: 70%; right: 8%; animation-delay: 1.5s; }
.projects-hero-grid span:nth-child(5) { top: 47%; right: 21%; animation-delay: 2s; }

.project-jump-nav.project-index { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .7rem; padding: .8rem 4vw; background: rgba(250,250,247,.94); }
.project-jump-nav.project-index a { min-width: 0; display: grid; gap: .14rem; padding: .72rem .8rem; border-radius: 15px; text-transform: none; letter-spacing: 0; }
.project-jump-nav.project-index a span { color: var(--survey-orange-dark); font-family: var(--font-mono); font-size: .68rem; font-weight: 700; }
.project-jump-nav.project-index a strong { overflow: hidden; color: var(--deep-purple); font-family: var(--font-display); font-size: .9rem; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.project-jump-nav.project-index a small { overflow: hidden; color: var(--muted); font-size: .68rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.project-jump-nav.project-index a:hover, .project-jump-nav.project-index a.is-current { color: var(--paper-white); background: var(--deep-purple); border-color: var(--deep-purple); transform: translateY(-2px); box-shadow: 0 9px 25px rgba(43,23,63,.18); }
.project-jump-nav.project-index a:hover span, .project-jump-nav.project-index a.is-current span { color: #f5a66b; }
.project-jump-nav.project-index a:hover strong, .project-jump-nav.project-index a.is-current strong, .project-jump-nav.project-index a:hover small, .project-jump-nav.project-index a.is-current small { color: var(--paper-white); }

.project-stories { width: min(1280px, calc(100% - 8vw)); margin: 0 auto; padding: clamp(3rem, 6vw, 6.5rem) 0; }
.project-story { position: relative; display: grid; grid-template-columns: minmax(0, .86fr) minmax(440px, 1.14fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center; padding: clamp(1.35rem, 3.5vw, 3.2rem); margin-bottom: clamp(2rem, 5vw, 4.5rem); background: rgba(250,250,247,.86); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow-soft); scroll-margin-top: calc(var(--nav-height) + 7rem); overflow: clip; }
.project-story::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--survey-orange), var(--tidal-teal)); opacity: .85; }
.project-story:nth-child(even) { grid-template-columns: minmax(440px, 1.14fr) minmax(0, .86fr); }
.project-story:nth-child(even) .project-story-copy { order: 2; }
.project-story:nth-child(even) .project-media-wrap { order: 1; }
.project-story-copy { min-width: 0; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: 1.15rem; }
.project-meta .project-code, .project-meta .project-tag { margin: 0; }
.project-client { margin: 0 0 .6rem; color: var(--tidal-teal); font-family: var(--font-mono); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.project-story h2 { max-width: 12ch; margin: 0; color: var(--deep-purple); font-family: var(--font-display); font-size: clamp(2.25rem, 4vw, 4.4rem); letter-spacing: -.06em; line-height: .95; }
.project-lead { margin: 1.15rem 0 .9rem; color: #29232f; font-size: clamp(1.05rem, 1.5vw, 1.22rem); font-weight: 650; line-height: 1.48; }
.project-story-copy > p:not(.project-client):not(.project-lead) { margin: 0; color: #56505c; }
.project-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: 1.55rem; }
.project-facts div { display: grid; align-content: start; min-height: 92px; padding: .82rem; background: rgba(43,23,63,.055); border: 1px solid rgba(43,23,63,.08); border-radius: 15px; }
.project-facts strong { color: var(--deep-purple); font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -.035em; line-height: 1; }
.project-facts span { margin-top: .34rem; color: var(--muted); font-size: .72rem; font-weight: 650; line-height: 1.25; }
.project-data-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.15rem 0 0; padding: 0; list-style: none; }
.project-data-list li { padding: .48rem .68rem; color: var(--deep-purple); background: rgba(224,122,63,.16); border: 1px solid rgba(224,122,63,.28); border-radius: 999px; font-size: .78rem; font-weight: 700; }

.project-media-wrap { min-width: 0; }
.project-media-trigger { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; color: var(--paper-white); background: var(--deep-purple); border: 0; border-radius: 23px; box-shadow: 0 22px 54px rgba(24,21,31,.19); cursor: pointer; transform: translateZ(0); transition: transform 220ms ease, box-shadow 220ms ease; }
.project-media-trigger::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(250,250,247,.25); border-radius: inherit; pointer-events: none; }
.project-media-trigger:hover { transform: translateY(-5px) scale(1.008); box-shadow: 0 30px 70px rgba(43,23,63,.27); }
.project-media-trigger img { width: 100%; max-height: 570px; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.8,.2,1), filter 240ms ease; }
.project-media-trigger:hover img { transform: scale(1.035); filter: saturate(1.08) contrast(1.03); }
.project-media-overlay { position: absolute; inset: auto .85rem .85rem .85rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .82rem .92rem; color: var(--paper-white); background: rgba(43,23,63,.84); border: 1px solid rgba(250,250,247,.22); border-radius: 14px; backdrop-filter: blur(12px); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: translateY(4px); transition: transform 180ms ease, background-color 180ms ease; }
.project-media-trigger:hover .project-media-overlay { background: rgba(224,122,63,.93); transform: translateY(0); }
.project-media-overlay span:last-child { font-size: 1.15rem; }
.media-caption { margin: .7rem .35rem 0; color: var(--muted); font-family: var(--font-mono); font-size: .68rem; line-height: 1.45; }
.project-media-static { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 23px; box-shadow: 0 22px 54px rgba(24,21,31,.19); }
.project-media-static img { width: 100%; max-height: 570px; aspect-ratio: 16 / 10; object-fit: cover; }

.interactive-project-modal { position: fixed; inset: 0; z-index: 2400; display: none; place-items: center; padding: 1rem; }
.interactive-project-modal.is-open { display: grid; }
.interactive-project-backdrop { position: absolute; inset: 0; background: rgba(18,10,28,.78); backdrop-filter: blur(10px); }
.interactive-project-dialog { position: relative; z-index: 1; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(1180px, 96vw); height: min(820px, 92vh); overflow: hidden; background: var(--paper-white); border: 1px solid rgba(250,250,247,.3); border-radius: 28px; box-shadow: 0 36px 110px rgba(0,0,0,.48); animation: interactiveModalIn 260ms cubic-bezier(.2,.8,.2,1) both; }
.interactive-project-header, .interactive-project-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1rem 1.2rem; }
.interactive-project-header { border-bottom: 1px solid var(--line); }
.interactive-project-header .eyebrow { margin-bottom: .22rem; }
.interactive-project-header h2 { margin: 0; color: var(--deep-purple); font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 2.4rem); letter-spacing: -.045em; line-height: 1; }
.interactive-project-close { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; color: var(--deep-purple); background: rgba(43,23,63,.07); border: 1px solid rgba(43,23,63,.08); border-radius: 50%; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.interactive-project-frame-wrap { min-height: 0; padding: .75rem; background: #dfe4e7; }
.interactive-project-frame { width: 100%; height: 100%; background: var(--fog-grey); border: 0; border-radius: 18px; }
.interactive-project-footer { border-top: 1px solid var(--line); }
.interactive-project-footer p { margin: 0; color: var(--muted); font-size: .78rem; }
.interactive-project-footer [hidden] { display: none !important; }
.interactive-project-footer code { color: var(--deep-purple); font-family: var(--font-mono); font-weight: 700; }

@keyframes projectMarkerPulse { 0%, 100% { transform: scale(1); opacity: .76; } 50% { transform: scale(1.35); opacity: 1; } }
@keyframes interactiveModalIn { from { opacity: 0; transform: translateY(18px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1050px) {
  .project-jump-nav.project-index { grid-template-columns: repeat(7, minmax(150px, 1fr)); overflow-x: auto; }
  .project-story, .project-story:nth-child(even) { grid-template-columns: 1fr; }
  .project-story:nth-child(even) .project-story-copy, .project-story:nth-child(even) .project-media-wrap { order: initial; }
  .project-story h2 { max-width: 16ch; }
}
@media (max-width: 720px) {
  .project-stories { width: min(100% - 2rem, 1280px); }
  .project-story { padding: 1.15rem; border-radius: 23px; scroll-margin-top: calc(var(--nav-height) + 6.5rem); }
  .project-story::before { width: 4px; }
  .project-facts { grid-template-columns: 1fr; }
  .project-facts div { min-height: 0; }
  .project-media-gallery { grid-template-columns: 1fr; }
  .project-media-portrait img { aspect-ratio: 4 / 5; }
  .project-jump-nav.project-index { top: var(--nav-height); padding: .65rem 1rem; }
  .project-jump-nav.project-index a { min-width: 158px; }
  .interactive-project-dialog { width: 100%; height: 94vh; border-radius: 22px; }
  .interactive-project-header, .interactive-project-footer { align-items: flex-start; }
  .interactive-project-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .projects-hero-grid span { animation: none; }
  .project-media-trigger:hover, .project-media-trigger:hover img { transform: none; }
  .interactive-project-dialog { animation: none; }
}

/* =========================================================
   Site footer (shared by all pages)
========================================================= */
.site-footer { margin-top: clamp(3rem, 7vw, 5rem); padding: clamp(2rem, 5vw, 3.5rem) 6vw 1.6rem; color: var(--paper-white); background: var(--deep-purple); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem; max-width: 1160px; margin: 0 auto; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -.02em; }
.footer-brand p { margin: .6rem 0 0; color: rgba(250,250,247,.72); font-size: .92rem; line-height: 1.55; }
.site-footer h2 { margin: 0 0 .8rem; color: var(--survey-orange); font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.footer-list li { color: rgba(250,250,247,.72); }
.footer-list a { color: rgba(250,250,247,.88); text-decoration: none; }
.footer-list a:hover { color: var(--paper-white); text-decoration: underline; }
.footer-bottom { max-width: 1160px; margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(250,250,247,.16); color: rgba(250,250,247,.6); font-size: .8rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* =========================================================
   Contact page: steps + email-compose form
========================================================= */
.contact-steps { padding: clamp(1.4rem, 3vw, 2rem); background: rgba(250,250,247,.86); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.steps-list { display: grid; gap: 1.1rem; margin: 0; padding-left: 1.35rem; }
.steps-list li { padding-left: .35rem; color: #4a4650; }
.steps-list strong { color: var(--deep-purple); }
.contact-form { display: grid; gap: 1rem; align-content: start; padding: clamp(1.4rem, 3vw, 2rem); background: rgba(250,250,247,.86); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.form-field { display: grid; gap: .4rem; }
.form-field label { font-weight: 700; color: var(--deep-purple); font-size: .92rem; }
.form-field .optional { color: var(--muted); font-weight: 500; }
.form-field input, .form-field textarea { padding: .75rem .85rem; color: var(--ink); background: #fff; border: 1px solid rgba(43,23,63,.28); border-radius: 12px; }
.form-field textarea { resize: vertical; }
.contact-form .button { justify-self: start; }
.form-note { margin: 0; color: var(--muted); font-size: .8rem; }
