/*
 * VECTIS LAW — Shared Stylesheet
 * ================================
 * Single source of truth for all design tokens, base styles,
 * and reusable components across the site.
 *
 * Page-specific styles live in <style> blocks within each HTML file.
 *
 * Consistency decisions locked here:
 *   - Nav order: Advisory & Expertise | Fractional GC | Experts | Engage
 *   - Wordmark SVG: VECTIS at x="45", gold rule x1="210" → x2="795", LAW at x="895"
 *   - terminal-header-text: var(--cognac)
 *   - terminal-cursor: var(--cognac) block, 0.5em × 0.75em, 1s step-end
 *   - serif-accent: var(--gold)
 */

/* ─── SELF-HOSTED FONTS (no external requests) ─────────────────────── */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/cinzel-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-regular-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-mono-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-mono-700-latin.woff2') format('woff2');
}

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────── */

:root {
  --forest:          #1E3A2F;
  --beige:           #E8DFD0;
  --gold:            #B8985B;
  --cognac:          #633918;
  --grid-line:       rgba(30, 58, 47, 0.15);
  --grid-line-gold:  rgba(184, 152, 91, 0.3);
  --mono:            'Space Mono', monospace;

  /* Noise texture — reused as background-image throughout */
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ─── BASE ──────────────────────────────────────────────────────────── */

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

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  color: var(--forest);
  background-color: var(--beige);
  background-image: var(--noise);
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ─── SITE CONTAINER ────────────────────────────────────────────────── */

.site-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  border-left: 1px solid rgba(30, 58, 47, 0.05);
  border-right: 1px solid rgba(30, 58, 47, 0.05);
  background-color: var(--beige);
  position: relative;
}

/* ─── HEADER ────────────────────────────────────────────────────────── */

.website-header-grid {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--grid-line);
  width: 100%;
  position: relative;
  z-index: 10;
  background-color: var(--beige);
}

.website-top-row {
  padding: 40px 0;
  border-bottom: 1px solid var(--grid-line);
  width: 100%;
}

.justified-svg-container {
  width: 100%;
  height: auto;
}

.justified-svg-container a {
  display: block;
}

.justified-svg-container svg {
  width: 100%;
}

.site-wordmark {
  height: auto;
}

/* Mobile wordmark — hidden on desktop, shown via media query */
.wordmark-mobile {
  display: none !important;
}

/*
 * Wordmark SVG — canonical coordinates for a 1000px viewBox:
 *   VECTIS: x="125" y="32"  font-size="34" font-weight="200" text-anchor="middle" (Outfit)
 *   LAW:    x="875" y="32"  font-size="32" font-weight="400" text-anchor="middle" (Cinzel)
 *   Aligned so VECTIS centres over nav cell 1 (Advisory) and LAW over nav cell 4 (Engage).
 *
 * Paste this SVG block inside .website-top-row > .justified-svg-container:
 *
 *   <svg viewBox="0 0 1000 40" width="100%" height="40">
 *     <text x="125" y="32" font-family="'Outfit', sans-serif" font-size="34"
 *           font-weight="200" fill="#1E3A2F" letter-spacing="0.1em" text-anchor="middle">VECTIS</text>
 *     <text x="875" y="32" font-family="'Cinzel', serif" font-size="32"
 *           font-weight="400" fill="#1E3A2F" letter-spacing="0.15em" text-anchor="middle">LAW</text>
 *   </svg>
 *
 * The metallic-gold gradient <defs> must be present in the same document (see below).
 */

/* ─── NAVIGATION ────────────────────────────────────────────────────── */

/*
 * Canonical nav order (left → right):
 *   1. Advisory & Expertise
 *   2. Fractional GC     ← cursor blink on whichever is active
 *   3. Experts
 *   4. Engage            ← gold accent, special hover
 */

.website-nav-row {
  display: flex;
  height: 50px;
  width: 100%;
}

.nav-cell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--grid-line);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--forest);
  cursor: pointer;
  transition: color 0.6s ease;
  text-align: center;
  padding: 0 10px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
}

.nav-cell:last-child {
  border-right: none;
}

/* Sweep fill from left on hover */
.nav-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.25, 1);
  z-index: -1;
}

.nav-cell:hover {
  color: var(--beige) !important;
  transition: color 0.3s ease 0.05s;
}

.nav-cell:hover::before {
  transform: scaleX(1);
}

/* Active page indicator */
.nav-cell.active {
  color: var(--gold);
}

/* Active nav cell: starts filled, sweeps out after a brief hold */
.nav-cell.active::before {
  animation: nav-sweep-out 0.8s cubic-bezier(0.25, 1, 0.25, 1) 0.6s backwards;
}

.nav-cell.active {
  animation: nav-text-out 0.8s cubic-bezier(0.25, 1, 0.25, 1) 0.6s backwards;
}

@keyframes nav-sweep-out {
  0%   { transform: scaleX(1); transform-origin: left; }
  100% { transform: scaleX(0); transform-origin: left; }
}

@keyframes nav-text-out {
  0%   { color: var(--beige); }
  100% { color: var(--gold); }
}

/* Engage variant */
.nav-cell.engage.active {
  animation: nav-text-out-engage 0.8s cubic-bezier(0.25, 1, 0.25, 1) 0.6s backwards;
}

@keyframes nav-text-out-engage {
  0%   { color: var(--gold); }
  100% { color: var(--cognac); }
}

/* Engage — gold accent */
.nav-cell.engage {
  color: var(--cognac);
  font-weight: 500;
}

.nav-cell.engage::before {
  background-color: var(--cognac);
}

.nav-cell.engage:hover {
  color: var(--gold) !important;
  -webkit-text-fill-color: var(--gold);
  animation: gold-glimmer 2s ease-in-out infinite;
  transition: none;
}

@keyframes gold-glimmer {
  0%   { color: #B8985B; -webkit-text-fill-color: #B8985B; }
  30%  { color: #E2CFA5; -webkit-text-fill-color: #E2CFA5; }
  50%  { color: #D4BB85; -webkit-text-fill-color: #D4BB85; }
  70%  { color: #E2CFA5; -webkit-text-fill-color: #E2CFA5; }
  100% { color: #B8985B; -webkit-text-fill-color: #B8985B; }
}

/* Blinking cursor (decorative — mark the current section's nav item) */
@keyframes blink-nav {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.cursor-blink-nav {
  display: inline-block;
  position: relative;
  width: 0.6em;
  height: 0.8em;
  margin-left: 4px;
  vertical-align: baseline;
  animation: blink-nav 1.2s step-end infinite;
}

.cursor-blink-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
}

.nav-cell:hover .cursor-blink-nav::after {
  height: 100%;
}

/* ─── HERO / PAGE-ENTRY SECTION ─────────────────────────────────────── */

.page-hero {
  padding: 80px 40px;
  height: 576px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--grid-line);
  position: relative;
  background-color: var(--beige);
  overflow: hidden;
}

/* Homepage variant — fills remaining viewport height */
.page-hero--fullscreen {
  flex-grow: 1;
  align-items: center;
}

/* Background grid (structural, always visible) */
.grid-base {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(30, 58, 47, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 47, 0.03) 1px, transparent 1px);
  z-index: 1;
}

/* Gold grid overlay — appears on hover, follows mouse via JS */
.grid-glow {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(184, 152, 91, 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184, 152, 91, 0.3) 1px, transparent 1px);
  z-index: 2;
  opacity: 0;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 250px);
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 250px);
  transition: opacity 0.5s ease;
}

.page-hero:hover .grid-glow {
  opacity: 1;
}

/* Central content box */
.hero-architectural-box {
  position: relative;
  z-index: 3;
  background-color: var(--beige);
  background-image: var(--noise);
  border: 1px solid var(--grid-line);
  padding: 80px 60px;
  max-width: 650px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(30, 58, 47, 0.05);
}

/* Consistent content box across all pages */
.hero-architectural-box--wide {
  max-width: 750px;
  padding: 60px 50px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ─── HERO TYPOGRAPHY ───────────────────────────────────────────────── */

/* Small label above the main title — "Executing Function:", "System Nodes:", etc. */
.terminal-header-text {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-weight: 500;
}

/* Main hero headline */
.hero-title {
  font-size: 48px;
  font-weight: 200;
  letter-spacing: 0.02em;
  margin: 0 0 24px 0;
  color: var(--forest);
  line-height: 1.2;
}

/* Inner-page title (slightly smaller) */
.hero-title--sm {
  font-size: 42px;
}

/* Wrapper for typewriter text + cursor (prevents layout shift) */
.terminal-text-wrapper {
  display: inline-flex;
  align-items: baseline;
  min-height: 60px;
}

/* Blinking underscore cursor after typewriter text */
.terminal-cursor {
  display: inline-block;
  width: 0.55em;
  height: 0.85em;
  background-color: var(--cognac);
  margin-left: 4px;
  animation: blink-nav 1s step-end infinite;
  vertical-align: baseline;
}

/* Serif sub-headline / page category */
.serif-accent {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 20px;
  color: var(--cognac);
  letter-spacing: 0.05em;
  margin-bottom: 25px;
  display: block;
}

/* Homepage serif accent is slightly larger */
.serif-accent--lg {
  font-size: 22px;
  margin-bottom: 30px;
}

/* Body copy inside hero box */
.hero-subtitle {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--forest);
  opacity: 0.75;
  line-height: 1.8;
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── CTA BUTTON ────────────────────────────────────────────────────── */

.cta-button {
  padding: 16px 40px;
  background: var(--forest);
  color: var(--beige);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--forest);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest);
}

/* ─── 1/3 : 2/3 COLUMN LAYOUT ───────────────────────────────────────── */

/*
 * Used by: Advisory & Expertise, Experts, Engage.
 * The containing section should be position: relative with width: 100%.
 */

.col-left {
  width: 33.333%;
  padding: 60px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.col-right {
  width: 66.666%;
  padding: 60px 60px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Vertical gold plumb line between columns */
.interactive-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 33.333%;
  width: 1px;
  background-color: var(--grid-line);
  z-index: 5;
  pointer-events: none;
}

/* Travelling light on the divider — animates with mouse Y via JS */
.divider-glow {
  position: absolute;
  left: -1px;
  width: 3px;
  height: 150px;
  background: linear-gradient(to bottom, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

/* JS: parent:hover → opacity 1 */

/* ─── SECTION HEADER BLOCK ──────────────────────────────────────────── */

.section-header-block {
  padding: 50px 60px 40px;
  text-align: center;
}

.section-header-title {
  font-size: 28px;
  font-weight: 300;
  color: var(--cognac);
  letter-spacing: 0.05em;
  margin: 0 0 10px 0;
}

.section-header-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ─── CAPABILITIES GRID (homepage) ──────────────────────────────────── */

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--grid-line);
  width: 100%;
  max-width: 900px;
  border: 1px solid var(--grid-line);
  margin-bottom: 50px;
}

.capability-card {
  background-color: var(--beige);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  transition: background-color 0.4s ease;
  text-decoration: none;
  color: inherit;
}

.capability-card:hover {
  background-color: rgba(30, 58, 47, 0.02);
}

.cap-number {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cognac);
  margin-bottom: 16px;
  letter-spacing: 0.15em;
  border: 1px solid rgba(99, 57, 24, 0.3);
  padding: 4px 8px;
  align-self: flex-start;
  border-radius: 2px;
}

.cap-title {
  font-size: 16px;
  color: var(--forest);
  margin: 0 0 10px 0;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
  min-height: 2.6em; /* reserve two lines so descriptions align */
}

.cap-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--forest);
  opacity: 0.65;
  font-weight: 300;
  margin: 0;
}

/* ─── CTA SECTION (bottom of inner pages) ───────────────────────────── */

.cta-section {
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--grid-line);
}

.cta-section__heading {
  font-size: 32px;
  font-weight: 200;
  color: var(--forest);
  margin: 0 0 15px 0;
  letter-spacing: 0.05em;
}

.cta-section__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--forest);
  opacity: 0.8;
  font-weight: 300;
  max-width: 600px;
  margin: 0 0 40px 0;
}

/* ─── FOOTER ────────────────────────────────────────────────────────── */

.page-footer {
  border-top: 1px solid var(--grid-line);
  background-color: var(--beige);
  padding: 0;
}

/* Top section: three-column grid (wordmark | nav | contact) */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 60px 40px 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Wordmark column */
.footer-col--brand {
  align-items: flex-start;
}

.footer-wordmark {
  width: 100px;
  margin-bottom: 16px;
}

/* Small section labels — matches .meta-label pattern from Engage */
.footer-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

/* Navigation column */
.footer-col--nav {
  align-items: flex-start;
  padding-left: 40px;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav li a {
  font-size: 13px;
  font-weight: 300;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.footer-nav li a:hover {
  color: var(--gold);
}

/* Contact column */
.footer-col--contact {
  align-items: flex-start;
  padding-left: 40px;
}

.footer-contact-line {
  font-size: 13px;
  font-weight: 300;
  color: var(--forest);
  line-height: 1.7;
  margin: 0;
}

.footer-contact-line a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-line a:hover {
  color: var(--gold);
}

.footer-address {
  margin-top: 12px;
}

/* Divider between grid and legal row */
.footer-divider {
  width: 100%;
  height: 1px;
  background-color: var(--grid-line);
  margin: 0;
  border: none;
}

/* Legal links row */
.footer-legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  opacity: 0.5;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-legal-links a:hover {
  opacity: 1;
}

.page-footer__copyright {
  font-size: 10px;
  letter-spacing: 0.15em;
  opacity: 0.5;
  text-transform: uppercase;
  margin: 0;
}

/* Regulatory disclaimer — bottom strip */
.footer-disclaimer {
  padding: 16px 40px;
  border-top: 1px solid var(--grid-line);
}

.footer-disclaimer p {
  font-size: 9px;
  font-weight: 300;
  color: var(--forest);
  opacity: 0.4;
  line-height: 1.6;
  letter-spacing: 0.03em;
  margin: 0;
}

/* ─── BCI ACKNOWLEDGEMENT MODAL ────────────────────────────────────── */

.bci-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(232, 223, 208, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

.bci-overlay[hidden] {
  display: none;
}

.bci-modal {
  position: fixed;
  z-index: 9999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 80px);
  background: var(--forest);
  border: none;
  border-top: 2px solid var(--gold);
  box-shadow: 0 30px 60px rgba(30, 58, 47, 0.25);
  padding: 48px 44px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

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

.bci-modal__label {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.bci-modal__text {
  overflow-y: auto;
  font-size: 13px;
  font-weight: 300;
  color: var(--beige);
  opacity: 0.5;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.bci-modal__text p {
  margin: 0 0 14px;
}

.bci-modal__text p:last-child {
  margin-bottom: 0;
}

.bci-modal__actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.bci-modal__btn {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.bci-modal__btn--agree {
  padding: 14px 40px;
  background: var(--beige);
  color: var(--forest);
  border: 1px solid var(--beige);
}

.bci-modal__btn--agree:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest);
}

.bci-modal__btn--decline {
  background: transparent;
  color: var(--beige);
  border: 1px solid rgba(232, 223, 208, 0.25);
  opacity: 0.6;
}

.bci-modal__btn--decline:hover {
  opacity: 1;
  border-color: rgba(232, 223, 208, 0.5);
}

@media (max-width: 768px) {
  .bci-modal {
    padding: 40px 30px 36px;
  }

  .bci-modal__actions {
    flex-direction: column;
  }

  .bci-modal__btn {
    text-align: center;
    padding: 16px 36px;
  }

  .bci-modal__btn--agree {
    padding: 16px 36px;
  }
}

/* ─── METALLIC GOLD GRADIENT (SVG defs reference) ───────────────────── */

/*
 * The metallic-gold SVG gradient must be embedded in each HTML document
 * as an inline <svg> block (hidden, position:absolute) at the top of <body>:
 *
 *   <svg width="0" height="0" style="position:absolute;">
 *     <defs>
 *       <linearGradient id="metallic-gold" x1="0%" y1="0%" x2="100%" y2="0%">
 *         <stop offset="0%"   stop-color="#8A6E3E"/>
 *         <stop offset="25%"  stop-color="#D4BB85"/>
 *         <stop offset="50%"  stop-color="#B8985B"/>
 *         <stop offset="75%"  stop-color="#E2CFA5"/>
 *         <stop offset="100%" stop-color="#7A6031"/>
 *       </linearGradient>
 *     </defs>
 *   </svg>
 *
 * This makes stroke="url(#metallic-gold)" available to all inline SVGs on the page.
 */

/* ─── INTERACTIVE GRID GLOW (JS snippet reference) ──────────────────── */

/*
 * Add this to every page that uses .page-hero / .grid-glow:
 *
 *   const hero = document.getElementById('grid-hero');
 *   const glow = document.getElementById('grid-glow');
 *   hero.addEventListener('mousemove', (e) => {
 *     const { left, top } = hero.getBoundingClientRect();
 *     const x = e.clientX - left;
 *     const y = e.clientY - top;
 *     glow.style.webkitMaskImage =
 *       `radial-gradient(circle at ${x}px ${y}px, black 0%, transparent 250px)`;
 *     glow.style.maskImage =
 *       `radial-gradient(circle at ${x}px ${y}px, black 0%, transparent 250px)`;
 *   });
 *
 * And the plumb-line divider:
 *
 *   function initPlumb(containerId, glowId) {
 *     const el = document.getElementById(containerId);
 *     const glow = document.getElementById(glowId);
 *     if (!el || !glow) return;
 *     el.addEventListener('mousemove', (e) => {
 *       const rect = el.getBoundingClientRect();
 *       let top = Math.min(Math.max(e.clientY - rect.top - 75, 0), rect.height - 150);
 *       glow.style.transform = `translateY(${top}px)`;
 *     }, { passive: true });
 *   }
 */

/* ─── RESPONSIVE — PORTRAIT / NARROW SCREENS ───────────────────────── */

@media (max-width: 768px) {

  /* ── Site container ── */
  .site-container {
    border-left: none;
    border-right: none;
  }

  /* ── Navigation ── */
  .website-nav-row {
    height: auto;
    flex-wrap: wrap;
  }

  .nav-cell {
    flex: 1 1 50%;
    height: 44px;
    font-size: 9px;
    border-bottom: 1px solid var(--grid-line);
  }

  .nav-cell:nth-child(2) {
    border-right: none;
  }

  .nav-cell:nth-child(3) {
    border-right: 1px solid var(--grid-line);
  }

  .nav-cell:last-child {
    border-right: none;
  }

  /* ── Wordmark — on narrow screens, hide the wide SVG
       and show a stacked text alternative ── */
  .website-top-row {
    padding: 25px 0;
  }

  .site-wordmark {
    display: none;
  }

  .wordmark-mobile {
    display: block !important;
    width: 100%;
    height: auto;
  }

  /* ── Hero ── */
  .page-hero {
    padding: 60px 20px;
    height: auto;
    min-height: 360px;
  }

  .hero-architectural-box {
    padding: 50px 30px;
    max-width: 100%;
  }

  .hero-architectural-box--wide {
    padding: 40px 25px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-title--sm {
    font-size: 28px;
  }

  .terminal-text-wrapper {
    min-height: 40px;
  }

  .hero-subtitle {
    font-size: 13px;
    line-height: 1.7;
  }

  /* ── 1/3 : 2/3 column → stacked ── */
  .col-left,
  .col-right {
    width: 100%;
    padding: 30px 25px;
  }

  .col-left {
    padding-bottom: 0;
  }

  /* Hide the plumb-line divider between columns */
  .interactive-divider {
    display: none;
  }

  /* Stack the rows that use the column layout */
  .expert-row,
  .advisory-row,
  .engage-container {
    flex-direction: column;
  }

  /* Engage sidebar border moves to bottom */
  .engage-container .col-left {
    border-right: none !important;
    border-bottom: 1px solid var(--grid-line);
    padding-bottom: 30px;
  }

  /* ── Section headers ── */
  .section-header-block {
    padding: 60px 25px 15px;
  }

  .section-header-title {
    font-size: 24px;
  }

  /* ── Capabilities grid ── */
  .capabilities-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cap-title {
    font-size: 15px;
  }

  /* ── CTA sections ── */
  .cta-section {
    padding: 60px 25px;
  }

  .cta-section__heading {
    font-size: 26px;
  }

  .cta-section__body {
    font-size: 14px;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 25px 30px;
    text-align: center;
  }

  .footer-col--brand {
    align-items: center;
  }

  .footer-col--nav,
  .footer-col--contact {
    align-items: center;
    padding-left: 0;
  }

  .footer-nav {
    align-items: center;
  }

  .footer-contact-line {
    text-align: center;
  }

  .footer-legal-row {
    flex-direction: column;
    gap: 12px;
    padding: 20px 25px;
    text-align: center;
  }

  .footer-legal-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-disclaimer {
    padding: 16px 25px;
    text-align: center;
  }
}
