/* Minimal site-wide styles to complement existing styles.css */
@import url('https://fonts.cdnfonts.com/css/century-gothic-paneuropean');
:root {
  --brand: #669900;        /* primary green from logo (updated) */
  --brand-600: #669900;    /* same shade for hover/active */
  --brand-050: rgba(102,153,0,0.10); /* subtle tint of brand */
  --ink: #333333;          /* requested light-mode font color */
  --bg: #ffffff;
  --ink-dim: #666666;      /* dimmed text with sufficient contrast */
  --border: #CCCCCC;       /* complement light grey */
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  /* Spacing scale */
  --space-1: .75rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
}
html, body { height: 100%; }
/* Subtle brand-tinted background, readable and lightweight */
body {
  display: flex; flex-direction: column; min-height: 100vh;
  font-family: 'Century Gothic Paneuropean', 'Century Gothic', Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.65; font-size: 17px;
}
/* iOS safe area insets support */
@supports (padding: max(0px)) {
  body { padding-left: max(env(safe-area-inset-left), 0px); padding-right: max(env(safe-area-inset-right), 0px); padding-bottom: max(env(safe-area-inset-bottom), 0px); }
}

/* Ensure main content grows and footer stays visible at bottom */
main { flex: 1 0 auto; display: block; }
footer { flex-shrink: 0; }
.skip-link { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { position: static; width: auto; height: auto; padding: .5rem; background: #000; color:#fff; z-index: 1000; }
.container { max-width: min(1100px, 100% - 2rem); margin: var(--space-2) auto; padding: 0 .875rem; }
.nav { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; background: #f8f8f8; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); }
.nav { flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--brand) !important; background: transparent !important; }
.nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nav a[aria-current="page"] { font-weight: 600; }
footer { border-top: 1px solid rgba(255,255,255,0.2); margin-top: 2rem; padding: 1rem; text-align: center; color: #ffffff; background: var(--brand); }
footer p { color: #ffffff; margin: .25rem 0; }
.hero {
  position: relative;
  padding: var(--space-3) var(--space-2);
  /* Add top padding to clear sticky navbar so titles are not overlapped */
  padding-top: calc(var(--space-3) + 64px);
  background: var(--bg);
  text-align: center;
  height: auto !important;
  background-attachment: initial !important;
  /* Avoid clipping headings */
  overflow: visible !important;
}
.hero--image {
  min-height: 62vh;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
@media (max-width: 768px) { .hero--image { min-height: 48vh; } }
.hero-figure {
  position: absolute; right: max(4vw, 16px); bottom: 0;
  width: clamp(150px, 20vw, 260px);
  height: auto;
  opacity: .9;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.25));
  pointer-events: none;
  z-index: 2;
}
/* Keep figure off smaller viewports to avoid overlap and grain */
@media (max-width: 1100px), (max-height: 720px) {
  .hero-figure { display: none; }
}
/* Ensure hero text never sits under the figure on wide layouts */
.hero-glass { position: relative; z-index: 3; }
@media (min-width: 1200px) {
  .hero-glass { padding-right: 260px; }
}
@media (prefers-color-scheme: dark) {
  .hero-figure { opacity: .95; filter: drop-shadow(0 12px 36px rgba(0,0,0,.5)); }
}
.hero--image::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.10) 40%, rgba(0,0,0,0.0) 100%);
  pointer-events: none;
}
.glass, .hero-glass {
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
/* Bar hero should be flat (no glass) */
.hero--bar .hero-glass { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
/* Hero utilities */
.hero-center { position:relative; z-index:1; display:flex; justify-content:center; }
.hero-glass { padding:1.1rem 1.25rem; max-width:860px; }
@media (prefers-color-scheme: dark) {
  .hero--image::before { background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.05) 100%); }
  .glass, .hero-glass { background: rgba(51,51,51,0.72); border-color: rgba(255,255,255,0.08); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero--image { animation: heroZoom 18s ease-in-out both; }
  @keyframes heroZoom { 0% { transform: scale(1.02); } 50% { transform: scale(1.05); } 100% { transform: scale(1.02); } }
}
.hero .container { position: static !important; top: auto !important; right: auto !important; transform: none !important; }
.cta-button { margin-left: 0 !important; }
.hero h1 {
  margin: 0 0 var(--space-2);
  font-family: 'Century Gothic Paneuropean', 'Century Gothic', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
@media (max-width: 600px) { .nav { flex-wrap: wrap; } }
@media (max-width: 768px) { .hero h1 { font-size: 1.75rem; } }

/* Global image constraints */
img { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; border: 0; display: block; }

/* Ensure key text styles share the same family */
.display, .h2, .h3, .kicker, h1, h2, h3, p, label, input, button, a, li, legend {
  font-family: 'Century Gothic Paneuropean', 'Century Gothic', Arial, sans-serif;
}

/* Typography spacing: improve rhythm between headings and paragraphs */
.prose p, .section p, .content p, .card p {
  margin-top: .55rem;
  margin-bottom: .75rem;
}
h1 + p, h2 + p, h3 + p, .h2 + p, .h3 + p {
  margin-top: .65rem; /* space below headings before body text */
}
p + p { margin-top: .6rem; }
ul + p, p + ul { margin-top: .5rem; }

/* Fixed navbar from legacy styles: ensure content not hidden */
.navbar { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-bottom: none; position: sticky !important; top: 0; min-height: 28px; margin-bottom: 0; }
.navbar { -webkit-mask-image: none; mask-image: none; }
.navbar::after { content: none; }
.navbar.scrolled { background: transparent !important; border-bottom-color: transparent !important; box-shadow: none; }
.navbar img, .brandmark img, img.logo { height: 26px; width: auto; max-width: none; object-fit: contain; }
.navbar .nav-links { flex-wrap: wrap; }
.nav-links a { color: var(--ink) !important; }
/* Force all navbar link fonts to white (overrides generic .nav-links rule) */
.navbar a, .navbar .nav-links a { color: #ffffff !important; }
.navbar a:visited, .navbar .nav-links a:visited { color: #ffffff !important; }
.navbar .btn:visited, .navbar .btn-ghost:visited { color: #ffffff !important; }
.navbar .nav-links a { text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.nav-links a { text-shadow: none; }
.nav-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.nav-inner { flex-wrap: wrap; }
.nav-inner { flex-wrap: wrap; }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--border); border-radius: .5rem; padding: .4rem .6rem; font-size: 1.1rem; }
.navbar .nav-links { display: flex; gap: 0.35rem; align-items: center; }
/* Give links a consistent pill hit-area so hover background doesn't feel too short */
.navbar .nav-links a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .28rem .7rem; line-height: 1.1; font-size: inherit;
  border-radius: 9999px;
  transition: background-color .15s ease, color .15s ease, box-shadow .2s ease, transform .15s ease;
}
.navbar .nav-inner { min-height: 28px; }
.navbar .nav-links { flex-wrap: wrap; }
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .navbar .nav-links { display: none; position: absolute; top: 32px; left: 8px; right: 8px; flex-direction: column; background: rgba(0,0,0,0.85); border: 1px solid rgba(255,255,255,0.3); border-radius: 12px; padding: .5rem; box-shadow: var(--shadow); }
  .navbar.open .nav-links { display: flex; }
}

/* Transparent navbar over motion (home) */
.navbar.nav--clear { background: transparent !important; border-bottom-color: transparent; position: fixed !important; top: 0; left: 0; right: 0; z-index: 10; }
.navbar .nav-inner { padding: 2px 8px; }
.navbar.nav--clear .nav-inner { padding: 2px 8px; }
.navbar.nav--clear img.logo { height: 26px; }
/* Clear navbar uses lighter midline */
.navbar.nav--clear::after { content: none; }

/* Slim buttons within navbar */
.navbar .btn, .navbar .btn-ghost { padding: .42rem .85rem; font-size: 1rem; border-radius: 9999px; }
/* Shift navbar contents upward by ~50% of bar height to move baseline */
.navbar { --nav-shift: 0px; }
.navbar .nav-inner { transform: none; }
.navbar.nav--clear .nav-links a { color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.navbar.nav--clear .btn-ghost { color: #ffffff !important; border-color: rgba(255,255,255,0.7) !important; }
.navbar.nav--clear .btn { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.35); color: #ffffff !important; }
/* Ensure navbar buttons (any theme) use white text */
.navbar .btn, .navbar .btn-ghost { color: #ffffff !important; }
/* Subtle hover stand-out */
.navbar .nav-links a:hover { background: rgba(255,255,255,0.18); color: #ffffff !important; }
.navbar .btn, .navbar .btn-ghost { transition: background-color .15s ease, box-shadow .2s ease, transform .15s ease; }
.navbar .btn:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); transform: translateY(-1px); }
.navbar .btn-ghost:hover { background: rgba(0,0,0,0.08); }
.navbar.nav--clear .nav-links a:hover { background: rgba(255,255,255,0.2); color: #ffffff !important; }
/* Frosted state once content scrolls under */
.navbar.nav--clear.scrolled { background: transparent !important; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.navbar.nav--clear.scrolled .nav-links a { color: #ffffff !important; }
.navbar.nav--clear.scrolled .btn-ghost { color: #ffffff !important; border-color: rgba(255,255,255,0.6); }
.navbar.nav--clear.scrolled .btn { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.35); color: #ffffff; }

/* After-video tone: light gray at 50% once navbar passes video bottom */
.navbar.nav-after-video {
  background: rgba(204,204,204,0.5) !important; /* #CCCCCC @ 50% */
}

/* Remove top gap above first motion section */
.motion-spotlight { padding-top: 0 !important; }
.motion-spotlight > .container { margin-top: 0 !important; padding-top: 0 !important; }
/* Tight variant: remove all vertical padding/margins so adjacent videos abut */
.motion-spotlight.tight { padding: 0 !important; }
.motion-spotlight.tight > .container { margin: 0 !important; padding: 0 !important; }
/* On home, remove top margin/padding from the first main container so video starts at very top */
.nav--clear + main.container { margin-top: 0 !important; padding-top: 0 !important; }

/* Allow horizontal scroll if any residual overflow exists; prefer wrapping where possible */
body { overflow-x: auto; }
header, main, footer, .container, .section, .content { max-width: 100%; }

/* Hero media slider on home */
.hero-media { position: relative; height: 38vh; min-height: 240px; overflow: hidden; }
.hero-card .inner, .hero-card .inner h1, .hero-card .inner p, .hero-card .inner .kicker { color: var(--ink) !important; }
.hero-media .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-media .slide.active { opacity: 1; }
.hero-media .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 1; }
.hero-card { position: relative; z-index: 2; margin-top: 0 !important; display: flex; justify-content: center; padding: 0 1rem; margin-left: auto; margin-right: auto; }
.hero-card .inner { background: rgba(255,255,255,0.96); border: 1px solid var(--border); box-shadow: var(--shadow); padding: .875rem 1rem; border-radius: 12px; max-width: 820px; }
.badge { background: var(--brand-050); color: var(--brand); border: 1px solid #daeedb; border-radius: 999px; padding: .25rem .6rem; font-size: .85rem; }
/* Primary button: brand green background */
.btn { background: var(--brand); color: #ffffff !important; border: 1px solid var(--brand); text-decoration: none; padding: .75rem 1.1rem; line-height: 1.25; border-radius: 9999px; display: inline-block; transition: background .2s ease, border-color .2s ease, transform .24s ease, box-shadow .24s ease; }
.btn:hover { background: var(--brand); border-color: var(--brand); color: #ffffff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.btn:active { transform: translateY(0); box-shadow: 0 3px 12px rgba(0,0,0,.10); }
/* Outline button: green outline */
.btn-ghost { background: transparent; color: #ffffff !important; border: 1px solid rgba(255,255,255,0.75) !important; text-decoration: none; padding: .7rem 1.05rem; line-height: 1.25; border-radius: 9999px; display: inline-block; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.btn-ghost:hover { background: rgba(255,255,255,0.10); color: #ffffff !important; }
.btn:focus-visible, .btn-ghost:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Form styling */
form label { display:block; margin:.5rem 0 .25rem; }
input, select, textarea { width:100%; padding:.75rem .95rem; line-height: 1.4; border:1px solid var(--border); border-radius:8px; font: inherit; font-size: 1rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline:3px solid #000; outline-offset:2px; border-color:#000; }
fieldset { border:1px solid var(--border); border-radius:12px; padding: .6rem .8rem; margin: .6rem 0 1rem; }
legend { padding: 0 .25rem; font-weight: 600; }

/* Gallery constraints */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.gallery img { height: 140px; object-fit: cover; border-radius: 8px; }

/* Custom select appearance to match buttons/inputs */
select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 12px 8px;
  padding-right: 2.2rem; /* space for caret */
}
select::-ms-expand { display: none; }
@media (prefers-color-scheme: dark) {
  select { background-color: #333333; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23dddddd' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
}

/* Cards and utility */
.card { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 1.25rem; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.card { overflow: hidden; }
.card, .content, p, li { overflow-wrap: anywhere; word-break: break-word; }
.card ul, .content ul, .prose ul, .section ul { padding-left: 1.4rem; }
.card li, .content li, .prose li, .section li { margin: .2rem 0; }
.box img { max-width: 100%; height: auto; display: block; }
.section { padding: var(--space-2); }
.section.section--sep { padding-top: calc(var(--space-2) + .6rem); border-top: 1px solid var(--border); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.grid-3.equal > * { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.grid-3.equal > * > *:last-child { margin-top: 0; }
.grid-3.equal .h3 { margin: 0 0 .35rem; }
.grid-3.equal p { margin: 0 0 .25rem; }
.grid-3.equal ul { margin: 0; padding-left: 1.4rem; }
.grid-3.equal li { margin: .15rem 0; }

/* Make legacy two-column clickable boxes responsive */
.clickable-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; gap: 20px; max-width: 1100px; margin: 0 auto; }

/* Green accents on headings */
h2 { position: relative; padding-bottom: .25rem; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--brand); border-radius: 2px; }
h3 { color: var(--ink); }

/* Display heading + eyebrow for Apple-like typography rhythm */
.display { font-size: clamp(2.2rem, 2.1rem + 2.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .35rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--ink-dim); }
.prose { max-width: 68ch; margin: 0 auto; }

/* Spotlight sections (full-bleed image + minimal copy) */
.spotlight { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem; align-items: center; padding: clamp(1rem, 2.5vw, 2rem) 0; }
.spotlight .spotlight__media { min-height: 46vh; border-radius: 20px; background: center/cover no-repeat #ddd; }
.spotlight .spotlight__body { padding: 0 1rem; }
.spotlight .spotlight__body .display { margin-bottom: .25rem; }
@media (max-width: 960px) { .spotlight { grid-template-columns: 1fr; } .spotlight .spotlight__media { min-height: 36vh; } }

/* Dark variant */
.section--dark { background: #0a0a0a; color: #ffffff; }
.section--dark .display, .section--dark p, .section--dark .eyebrow { color: #ffffff; }
.section--dark .btn-ghost { color: #ffffff; border-color: rgba(255,255,255,0.6); }
.section--dark .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* Full-bleed container helper */
.full-bleed { max-width: 100%; padding-left: 1rem; padding-right: 1rem; margin-left: auto; margin-right: auto; }

/* Motion spotlight (scroll-driven image sequence or video) */
.motion-spotlight { position: relative; }
.motion-spotlight .container { max-width: 100% !important; padding-left: 0; padding-right: 0; }
.motion-spotlight .motion-stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; background: transparent; overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw); }
.motion-spotlight .motion-canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.motion-spotlight .motion-video { width: 100%; height: 100%; display: none; object-fit: cover; object-position: center center; position: relative; z-index: 2; background: #000; }
.motion-spotlight .motion-canvas { position: relative; z-index: 2; }
.motion-spotlight .motion-poster { position: absolute; inset: 0; background: center/cover no-repeat #111; z-index: 3; pointer-events: none; }

/* Title/content overlay over motion (video/canvas) */
.motion-spotlight .motion-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  padding: clamp(0.75rem, 3.5vh, 2rem) 1rem; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.55) 100%);
}
.motion-spotlight .motion-overlay .splash { pointer-events: auto; }
.motion-spotlight .splash .btn { width: 100%; }
.motion-spotlight .splash input,
.motion-spotlight .splash select,
.motion-spotlight .splash textarea {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .8rem 1rem;
  line-height: 1.4;
  color: var(--ink);
  font-size: 1rem;
}
.motion-spotlight .splash input::placeholder,
.motion-spotlight .splash textarea::placeholder { color: var(--ink-dim); opacity: .9; }
.motion-spotlight .splash input:focus-visible,
.motion-spotlight .splash select:focus-visible,
.motion-spotlight .splash textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-color: var(--brand); }

.motion-spotlight .splash .title { letter-spacing: -0.01em; }

.motion-spotlight .splash .btn {
  background: var(--brand);
  color: #ffffff !important;
  border-color: transparent;
  border-radius: 12px;
  padding: .8rem 1rem;
  line-height: 1.25;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  font-size: 1.1rem; /* larger label for splash primary action */
}
.motion-spotlight .splash .btn:hover { filter: brightness(.97); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.motion-spotlight .splash .btn:active { transform: translateY(1px); }

.motion-spotlight .splash .btn-ghost {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.75) !important;
  border-radius: 12px;
  padding: .7rem .95rem;
  line-height: 1.25;
}
.motion-spotlight .splash .btn-ghost:hover { background: rgba(255,255,255,0.10); }

@media (prefers-color-scheme: dark) {
  .motion-spotlight .splash input,
  .motion-spotlight .splash select,
  .motion-spotlight .splash textarea {
    background: #2a2a2a;
    border-color: #4a4a4a;
    color: #f2f2f2;
  }
  .motion-spotlight .splash input::placeholder,
  .motion-spotlight .splash textarea::placeholder { color: #bbbbbb; }
  .motion-spotlight .splash .btn-ghost { color: #ffffff !important; border-color: rgba(255,255,255,0.75) !important; }
  .motion-spotlight .splash .btn-ghost:hover { background: rgba(255,255,255,0.08); }
}
.motion-spotlight .motion-overlay .overlay-inner {
  pointer-events: auto; text-align: center; color: #fff; max-width: min(860px, 92vw);
}
.motion-spotlight .motion-overlay .title { font-size: clamp(1.8rem, 1.5rem + 2.4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.motion-spotlight .motion-overlay .kicker { margin: .35rem auto 0; font-size: clamp(1rem, .95rem + .4vw, 1.15rem); color: rgba(255,255,255,0.94); }
.motion-spotlight .motion-overlay .actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: .6rem; }
.motion-spotlight .motion-overlay .btn { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); color: #ffffff; }
.motion-spotlight .motion-overlay .btn-ghost { color: #ffffff; border-color: rgba(255,255,255,0.6); }
/* Ensure buttons inside splash use brand green, not translucent overlay style */
.motion-spotlight .motion-overlay .splash .btn {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #ffffff !important;
}

/* Splash card overlay for interactive content (forms over video) */
.motion-spotlight .splash {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 14px 50px rgba(0,0,0,.22);
  backdrop-filter: saturate(135%) blur(10px);
  -webkit-backdrop-filter: saturate(135%) blur(10px);
  padding: clamp(0.75rem, 2.2vh, 1rem);
  width: min(92vw, 860px);
  max-height: min(82vh, 720px);
  overflow: auto;
  margin: 0 auto;
  color: var(--ink);
}
/* Splash brand row */
.motion-spotlight .splash .splash-brand { display:flex; align-items:center; justify-content:center; gap:.5rem; margin:.25rem auto .5rem auto; }
.motion-spotlight .splash:not(.splash--logo-hero) .splash-brand img { height: 28px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.motion-spotlight .splash .splash-brand .brand-text { font-weight: 700; letter-spacing: -0.01em; }
/* Larger, logo-forward variant for auth */
.motion-spotlight .splash.splash--logo-hero {
  text-align: left;
  width: min(46vw, 512px); /* compact box */
  max-width: 46vw;
  padding: clamp(0.2rem, 0.8vh, 0.4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* top-left alignment inside box */
  height: min(64vh, 520px); /* tighter to avoid scroll */
  overflow: visible; /* no internal scrolling */
  margin: 2vh 0 3vh 2vw; /* place box near top-left */
  /* Fully transparent background for login splash */
  background: rgba(0,0,0,0) !important;
  border-color: transparent !important;
  color: #ffffff; /* login words white */
}
.motion-spotlight .splash.splash--logo-hero .splash-brand {
  margin: 0 0 .6rem 0;
  justify-content: flex-start;
  width: 100%;
  overflow: hidden;
  position: relative;
  flex: 0 0 38%; /* logo fits top portion */
  display: flex;
  align-items: center;
}

/* Compact form spacing inside hero splash */
.splash.splash--logo-hero form { gap: .6rem; }
.splash.splash--logo-hero .kicker { margin: .2rem 0 .4rem; }
.splash.splash--logo-hero #backendStatus:empty { display:none; }
.splash.splash--logo-hero label.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,1px,1px); white-space: nowrap; border: 0; }
.motion-spotlight .splash.splash--logo-hero .splash-brand img,
.motion-spotlight .splash.splash--logo-hero .splash-brand .splash-logo {
  height: 100% !important;   /* fill the top half vertically */
  width: auto !important;    /* preserve aspect ratio */
  max-width: 100% !important;
  display: block;
  margin: 0 auto;
}
.motion-spotlight .splash.splash--logo-hero .title {
  font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
  font-weight: 700;
  margin-top: .35rem;
  color: #ffffff !important; /* ensure Portal Login text is white */
  /* Subtle black edge for definition over video */
  -webkit-text-stroke: 0.6px rgba(0,0,0,0.85);
  text-shadow:
    0 1px 0 rgba(0,0,0,0.55),
    1px 0 0 rgba(0,0,0,0.55),
    0 -1px 0 rgba(0,0,0,0.55),
    -1px 0 0 rgba(0,0,0,0.55);
}
/* Keep inputs readable (dark text) while surrounding copy is white */
.splash.splash--logo-hero input,
.splash.splash--logo-hero select,
.splash.splash--logo-hero textarea { color: var(--ink); background: #ffffff; }
.splash.splash--logo-hero input::placeholder,
.splash.splash--logo-hero textarea::placeholder { color: var(--ink-dim); }
.splash.splash--logo-hero a { color: #ffffff; }
.splash.splash--logo-hero a:visited { color: #ffffff !important; }
.motion-spotlight .splash.splash--logo-hero,
.motion-spotlight .splash.splash--logo-hero :not(input):not(select):not(textarea) {
  color: #ffffff !important;
}
.splash.splash--logo-hero .btn-ghost { color: #ffffff; border-color: rgba(255,255,255,0.7); }

/* Link color policy: default contexts keep existing brand; visited becomes brand green site-wide */
a:visited { color: var(--brand); }

/* Over-video contexts (navbar clear, overlays, splashes): links appear white, then brand green after visit */
.navbar.nav--clear .nav-links a { color: #ffffff !important; }
.navbar.nav--clear .nav-links a:visited { color: #ffffff !important; }
.motion-spotlight .motion-overlay a { color: #ffffff; }
.motion-spotlight .motion-overlay a:visited { color: var(--brand); }
.motion-spotlight .splash a { color: #ffffff; }
.motion-spotlight .splash a:visited { color: var(--brand); }
@media (prefers-color-scheme: dark) {
  .motion-spotlight .splash {
    background: rgba(38,38,38,0.95);
    border-color: #4a4a4a;
    color: #f2f2f2;
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
  }
  /* Keep clear navbar see-through in dark mode */
  .navbar.nav--clear { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* Contain-fit option to show full frame without cropping */
.motion-spotlight[data-fit="contain"] .motion-video { 
  object-fit: contain !important; 
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  transform-origin: center center;
}
/* Cover mode: center the video absolutely so translate/scale and shifts apply */
.motion-spotlight[data-fit="cover"] .motion-video {
  position: absolute; top: 50%; left: 50%; object-fit: cover !important;
}
.motion-spotlight[data-fit="contain"] .motion-canvas { object-fit: contain; }
.motion-spotlight[data-fit="contain"] .motion-poster { background-size: contain; background-color: #000; }
/* When asked to fill side pillars by gentle center zoom */
.motion-spotlight[data-fit="contain"][data-zoom="pillarfill"] .motion-poster { background-size: cover; }

/* Optional top trim to remove a thin black line from source edge */
.motion-spotlight[data-trim-top="1"] .motion-video,
.motion-spotlight[data-trim-top="1"] .motion-poster,
.motion-spotlight[data-trim-top="1"] .motion-canvas { clip-path: inset(1px 0 0 0); }
.motion-spotlight[data-trim-top="2"] .motion-video,
.motion-spotlight[data-trim-top="2"] .motion-poster,
.motion-spotlight[data-trim-top="2"] .motion-canvas { clip-path: inset(2px 0 0 0); }
.motion-spotlight[data-trim-top="3"] .motion-video,
.motion-spotlight[data-trim-top="3"] .motion-poster,
.motion-spotlight[data-trim-top="3"] .motion-canvas { clip-path: inset(3px 0 0 0); }
/* Bottom trims */
.motion-spotlight[data-trim-bottom="1"] .motion-video,
.motion-spotlight[data-trim-bottom="1"] .motion-poster,
.motion-spotlight[data-trim-bottom="1"] .motion-canvas { clip-path: inset(0 0 1px 0); }
.motion-spotlight[data-trim-bottom="2"] .motion-video,
.motion-spotlight[data-trim-bottom="2"] .motion-poster,
.motion-spotlight[data-trim-bottom="2"] .motion-canvas { clip-path: inset(0 0 2px 0); }
.motion-spotlight[data-trim-bottom="3"] .motion-video,
.motion-spotlight[data-trim-bottom="3"] .motion-poster,
.motion-spotlight[data-trim-bottom="3"] .motion-canvas { clip-path: inset(0 0 3px 0); }
.motion-spotlight[data-trim-top="4"] .motion-video,
.motion-spotlight[data-trim-top="4"] .motion-poster,
.motion-spotlight[data-trim-top="4"] .motion-canvas { clip-path: inset(4px 0 0 0); }
.motion-spotlight[data-trim-bottom="4"] .motion-video,
.motion-spotlight[data-trim-bottom="4"] .motion-poster,
.motion-spotlight[data-trim-bottom="4"] .motion-canvas { clip-path: inset(0 0 4px 0); }
.motion-spotlight[data-trim-top="5"] .motion-video,
.motion-spotlight[data-trim-top="5"] .motion-poster,
.motion-spotlight[data-trim-top="5"] .motion-canvas { clip-path: inset(5px 0 0 0); }
.motion-spotlight[data-trim-bottom="5"] .motion-video,
.motion-spotlight[data-trim-bottom="5"] .motion-poster,
.motion-spotlight[data-trim-bottom="5"] .motion-canvas { clip-path: inset(0 0 5px 0); }
.motion-spotlight .motion-caption { position: relative; z-index: 2; text-align: center; margin-top: 1rem; }
.motion-spotlight .motion-caption .display { color: var(--ink); }
.motion-spotlight .track { height: 200vh; /* scroll range controlling the sequence */ }
@media (max-width: 960px) {
  .motion-spotlight .track { height: 140vh; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-spotlight .track { height: auto; }
  .motion-spotlight .motion-stage { position: relative; height: auto; }
}


/* Link accents in content */
main a { color: var(--brand); font-size: 1rem; }
main a:hover { text-decoration: underline; }
/* Subtle transitions */
a, button { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Gentle content reveals */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.reveal--visible { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Apple‑esque subject cutout with contoured text */
.feature { position: relative; }
.feature h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2rem); letter-spacing: -0.01em; margin-bottom: .5rem; }
.feature p { font-size: clamp(1rem, .95rem + .3vw, 1.05rem); }
.cutout {
  float: right;
  width: clamp(200px, 24vw, 280px);
  aspect-ratio: 1 / 1;
  margin: 0 0 var(--space-2) var(--space-2);
  background: var(--border) center/cover no-repeat;
  border-radius: 9999px;
  -webkit-clip-path: circle(50% at 50% 50%);
  clip-path: circle(50% at 50% 50%);
  shape-outside: circle(50%);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
@media (max-width: 900px) {
  .cutout { float: none; margin: 0 auto var(--space-2) auto; display:block; }
}
@media (prefers-color-scheme: dark) {
  .cutout { box-shadow: 0 14px 40px rgba(0,0,0,.5); }
}

/* Dramatic band (CTA) */
.band {
  padding: var(--space-3) var(--space-2);
  margin: var(--space-3) auto;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(102,153,0,0.12), rgba(102,153,0,0.06));
  border: 1px solid var(--border);
  text-align: center;
}
.band h2 { margin-bottom: .5rem; letter-spacing: -0.01em; }
.band .cta { display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap; margin-top:.5rem; }
@media (prefers-color-scheme: dark) {
  .band { background: linear-gradient(135deg, rgba(102,153,0,0.20), rgba(102,153,0,0.10)); border-color: #4a4a4a; }
}

/* Stats grid */
.stats { display:grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; margin: var(--space-3) 0; }
.stat { text-align:center; padding: var(--space-2); border:1px solid var(--border); border-radius:16px; background:#fff; }
.stat .num { font-weight: 700; font-size: clamp(2rem, 1.2rem + 3vw, 3rem); letter-spacing:-0.02em; }
.stat .label { color: var(--ink-dim); }
@media (prefers-color-scheme: dark) {
  .stat { background:#3a3a3a; border-color:#4a4a4a; }
}

/* Quote block */
.quote { margin: var(--space-3) 0; padding: var(--space-2); border-left: 4px solid var(--brand); }
.quote p { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); font-style: italic; letter-spacing: -0.01em; }
.quote .who { color: var(--ink-dim); margin-top: .25rem; }

/* Simple carousel */
.carousel { position: relative; overflow: hidden; padding: .4rem 0 .6rem 0; display: grid; grid-template-rows: auto auto; align-items: start; height: clamp(320px, 30vh, 420px); }
.carousel-track { position: absolute; top: 0; left: 0; right: 0; bottom: 56px; grid-row: 1; }
/* Stack slides and fade within the track */
.carousel-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s ease; display:flex; align-items:center; justify-content:center; }
.carousel-slide.is-active { opacity: 1; pointer-events: auto; }
.carousel .quote { margin: 0; }
.carousel .card.quote { max-width: 900px; margin: 0 auto; padding-top: .6rem; padding-bottom: .2rem; }
section[aria-label="Testimonials"] .card.quote { padding-top: .2rem; padding-bottom: 0; }
section[aria-label="Testimonials"] .quote p { margin: 0 0 0 0; }
section[aria-label="Testimonials"] .quote .who { margin-top: .1rem; }
/* Add breathing room between heading and carousel content */
section[aria-label="Testimonials"] .carousel { margin-top: 1rem; margin-bottom: .6rem; }
.carousel-track { }
.carousel .card.quote { max-width: 820px; }
section[aria-label="Testimonials"] { padding-bottom: .8rem; }
/* Slightly smaller quote text inside carousel to reduce height and avoid clipping */
section[aria-label="Testimonials"] .quote p { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
section[aria-label="Testimonials"] .quote .who { margin-top: .35rem; }
.carousel-controls { grid-row: 2; position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; display:flex; align-items:center; justify-content:center; gap:.6rem; margin: 0; }
.carousel-btn { background: transparent; color: var(--ink); border: 1px solid var(--border); border-radius: 9999px; width: 34px; height: 34px; line-height: 34px; text-align:center; font-size: 1.2rem; cursor: pointer; }
.carousel-btn:hover { background: var(--brand-050); }
.carousel-dots { display:flex; gap:.4rem; align-items:center; justify-content:center; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink-dim); background: transparent; cursor: pointer; padding:0; }
.carousel-dots button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); }

/* Split feature (image + text) */
.split { display:grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items:center; margin: var(--space-3) 0; }
.split .img { border-radius: 20px; background: center/cover no-repeat var(--border); min-height: 320px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .split .img { filter: saturate(90%) brightness(95%); } }
html { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root { --ink:#e5e7eb; --ink-dim:#b8c0cc; --bg:#333333; --border:#4a4a4a; --brand-050:rgba(102,153,0,0.18); }
  /* Match Safari dark UI preference per request: #333333 surfaces */
  body { color:var(--ink); background-color: var(--bg); background: var(--bg); }
  /* Keep navbar transparent regardless of system theme */
  .navbar { background: transparent !important; border-bottom-color: transparent !important; }
  .nav a { color: var(--ink) !important; }
  /* Hero areas: solid #333333 */
  .hero { background: #333333 !important; }
  .hero--bar { background: #333333 !important; border-bottom-color: var(--border); }
  .hero-card .inner { background: #3a3a3a; border-color: var(--border); }
  .card { background: #3a3a3a; border-color: var(--border); }
  .btn { background: var(--brand); border-color: var(--brand); color: #ffffff; }
  .btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
  input, select, textarea { background:#333333; color:var(--ink); border-color:var(--border); }
  input::placeholder, textarea::placeholder { color: var(--ink-dim); }
  .navbar .nav-links { background: #333333; border-color: var(--border); }
  footer { background: #333333; border-top-color: var(--border); color: var(--ink); }
  footer p, footer a { color: var(--ink) !important; }
}

/* Responsive tuning */
@media (max-width: 768px) {
  .hero-media { height: 32vh; min-height: 200px; }
  .hero-card { margin-top: 0 !important; }
  .gallery img { height: 120px; }
  .navbar img, .brandmark img, img.logo { height: 30px; }
}

/* Small hero variant */
.hero--small .hero-media { height: 32vh; min-height: 200px; }
.hero--small .hero-card { margin-top: -18vh; }

/* Print styles for capability statement */
@media print {
  .navbar, footer, .menu-toggle { display: none !important; }
  .hero-media, .hero-overlay { display: none !important; }
  .hero-card { margin-top: 0 !important; }
  .container { max-width: 100% !important; }
  body { background: #fff !important; color: #000 !important; }
  a.btn, a.btn-ghost { color: #000 !important; border: 1px solid #000; background: #fff !important; text-decoration: none; padding: .3rem .5rem; }
  a[href]:after { content: " (" attr(href) ")"; font-size: .85em; color: #666; }
}

/* Reduce legacy page paddings (override legacy styles.css) */
section.service-info p,
section.service-info h1,
section.service-info h2 { padding-top: 12px !important; margin: 0 16px !important; }

/* Override any legacy white text in hero from styles.css */
.hero h1, .hero h1 span, .hero .container h1 { color: var(--ink) !important; text-shadow: none !important; }
.nav-links a { color: var(--ink) !important; }

/* Bar hero (no image) for internal pages to improve readability */
.hero--bar { padding: 4.5rem 0 2.5rem; background: #f8fafc; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.hero--bar .title { margin: 0 0 .65rem; font-size: clamp(2rem, 2rem + 2vw, 3.25rem); letter-spacing: -0.02em; font-weight: 700; }
.hero--bar .cta { margin-top: .75rem; gap: .75rem; }
/* Reset legacy absolute positioning from styles.css */
.hero--bar .container { position: static !important; top: auto !important; right: auto !important; transform: none !important; }

/* Ensure content does not overlap hero CTAs */
header.hero--bar + .container.section,
header.hero--bar + main.container,
header.hero--bar + main.container.section {
  padding-top: .75rem;
}

/* Ensure details blocks on home don't overlap hero */
details { margin-top: .75rem; }

/* Force default ink color across content areas to override legacy whites */
main, .section, .card, .service-info, .details, .content, .grid, .kicker, .h2, .h3, h1, h2, h3, p, li, label, legend {
  color: var(--ink) !important;
}
/* Keep footer text white as requested */
footer, footer p, footer a { color: #ffffff !important; }
.motion-spotlight .motion-overlay { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.motion-spotlight .overlay-item { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%); text-align: center; width: min(90%, 900px); margin: 0 auto; opacity: 0; transition: opacity .2s linear, transform .2s ease-out; color: #ffffff !important; text-shadow: 0 2px 24px rgba(0,0,0,0.6); }
.motion-spotlight .overlay-item .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; opacity: .9; color: #ffffff !important; }
.motion-spotlight .overlay-item .display { font-size: clamp(1.8rem, 1.4rem + 2.2vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.motion-spotlight .overlay-item .display { transform: translateY(calc((1 - var(--a, 0)) * 18px)) scale(calc(0.98 + var(--a, 0)*0.02)); letter-spacing: calc(-0.02em + (1 - var(--a, 0)) * 0.02em); transition: none; }
.motion-spotlight .overlay-item .kicker { transform: translateY(calc((1 - var(--a, 0)) * 10px)); opacity: calc(0.6 + var(--a, 0)*0.4); transition: none; }
/* Per-word kinetic motion (applied when .display is word-split) */
.motion-spotlight .overlay-item .display .word { display: inline-block; will-change: transform, opacity; transform: translateY(calc((1 - var(--aw, 0)) * 16px)) scale(calc(0.98 + var(--aw, 0)*0.02)); opacity: var(--aw, 0.0); }
/* Always use white for overlay text over motion for maximum contrast */
.motion-spotlight .overlay-item .display,
.motion-spotlight .overlay-item .kicker { color: #ffffff !important; }
/* Ensure hidden overlays are truly non-interactive and invisible to autofill heuristics */
.motion-spotlight .overlay-item[aria-hidden="true"] { visibility: hidden !important; pointer-events: none !important; }
.navbar,
.navbar.nav--clear,
.navbar.scrolled {
  background: transparent !important;
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}
.navbar .nav-links { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }

/* Ensure after-video tone overrides any transparent states */
.navbar.nav-after-video,
.navbar.nav--clear.nav-after-video,
.navbar.scrolled.nav-after-video {
  background: rgba(204,204,204,0.5) !important; /* #CCCCCC at 50% */
  background-color: rgba(204,204,204,0.5) !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

/* Light mode: increase after-video tone to 75% for stronger white contrast */
@media (prefers-color-scheme: light) {
  .navbar.nav-after-video,
  .navbar.nav--clear.nav-after-video,
  .navbar.scrolled.nav-after-video {
    background: rgba(204,204,204,0.75) !important; /* #CCCCCC at 75% */
    background-color: rgba(204,204,204,0.75) !important;
  }
}

@media (prefers-reduced-motion: reduce){ .motion-video{display:none !important;} .motion-poster{display:block !important;} }

/* Accessible drawer */
.menu-toggle { background: transparent; color: var(--ink, #111); border: 1px solid var(--border, #ccc); border-radius: 8px; padding: .4rem .6rem; }

/* Drawer overlay with blur (with reduced-transparency fallback) */
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 998; display: none; }
@media (prefers-reduced-transparency: reduce){ .nav-overlay { background: rgba(0,0,0,.75); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Right-side drawer surface (mobile nav) */
.navbar .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(300px, 82vw); background: rgba(34,34,34,.96); color: #fff; z-index: 999; transform: translateX(110%); transition: transform .2s ease-out; padding: 1rem; border-left: 1px solid rgba(255,255,255,.12); box-shadow: -6px 0 22px rgba(0,0,0,.25); }
.navbar .nav-links a { color: #fff; display: block; padding: .65rem 0; }
.navbar.open .nav-links { transform: translateX(0); }
.navbar.open ~ #navOverlay { display: block; }
body.nav-open { overflow: hidden; }

/* Common images/video rules */
img, video { max-width: 100%; height: auto; }
.motion-spotlight .motion-video { width: 100%; height: 100%; object-fit: cover; }

/* About hero adjustments — reduce awkward crop on small viewports */
@media (max-width: 900px){ .motion-spotlight .motion-video { object-position: 50% 20%; } }
@media (max-width: 640px){ .motion-spotlight .motion-video { object-position: 50% 15%; } }

/* Strong visible focus ring */
a:focus, button:focus, input:focus, select:focus, textarea:focus { outline: 2px solid #005fcc; outline-offset: 2px; }
.btn, .btn-ghost { min-height: 44px; font-size: 1rem; line-height: 1.25; }
input, select, textarea { font-size: 16px; min-height: 44px; }

/* Typographic scaling */
h1 { font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 1rem + 2.4vw, 2.25rem); line-height: 1.25; }
h3 { font-size: clamp(1.25rem, .9rem + 1.8vw, 1.6rem); line-height: 1.3; }
p, li { font-size: clamp(1rem, .95rem + .4vw, 1.125rem); }

/* Containers and spacing */
.container { max-width: min(1100px, 100% - 2rem); margin: 1rem auto; padding: 0 .875rem; }
@media (max-width: 1024px){ .container { max-width: min(980px, 100% - 1.5rem); } }
@media (max-width: 768px){ .container { max-width: 100%; padding: 0 .875rem; } }

/* Grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
@media (max-width: 900px){ .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-3 { grid-template-columns: 1fr; } }

/* Services tiles */
.clickable-boxes { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.clickable-boxes .box img { width: 100%; height: auto; display: block; border-radius: 8px; }
@media (max-width: 1024px){ .clickable-boxes { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .clickable-boxes { grid-template-columns: 1fr; } }

/* Hero text/containers — avoid overlap on small widths */
.hero { padding-top: calc(64px + 1.25rem) !important; }
.hero .container { position: static !important; top: auto !important; right: auto !important; transform: none !
important; text-align: center; }

/* Navbar drawer small-width tuning */
@media (max-width: 480px){ .navbar .nav-links { width: 92vw; padding: 1rem 1.25rem; } .navbar .nav-links a
{ padding: .9rem 0; font-size: 1.05rem; } }

/* Visible focus ring sitewide */
a:focus, button:focus, input:focus, select:focus, textarea:focus { outline: 2px solid #005fcc; outline-offset:
2px; }

/* Table horizontal scroll if present */
table { width: 100%; border-collapse: collapse; }
.table-wrap { overflow-x: auto; }

/* (deduplicated nav drawer/overlay rules retained above) */

/* About hero video: reduce awkward crop on smaller viewports */
@media (max-width: 900px){
.motion-spotlight .motion-video { object-fit: cover; object-position: 50% 20%; }
}
@media (max-width: 640px){
.motion-spotlight .motion-video { object-position: 50% 15%; }
}

/* Tap targets and form controls (iOS zoom prevention) */
.btn, .btn-ghost { min-height: 44px; font-size: 1rem; line-height: 1.25; }
input, select, textarea { font-size: 16px; min-height: 44px; }

/* Typographic scaling */
h1 { font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 1rem + 2.4vw, 2.25rem); line-height: 1.25; }
h3 { font-size: clamp(1.25rem, .9rem + 1.8vw, 1.6rem); line-height: 1.3; }
p, li { font-size: clamp(1rem, .95rem + .4vw, 1.125rem); }

/* Containers and spacing */
.container { max-width: min(1100px, 100% - 2rem); margin: 1rem auto; padding: 0 .875rem; }
@media (max-width: 1024px){ .container { max-width: min(980px, 100% - 1.5rem); } }
@media (max-width: 768px){ .container { max-width: 100%; padding: 0 .875rem; } }

/* Grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
@media (max-width: 900px){ .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-3 { grid-template-columns: 1fr; } }

/* Services tiles */
.clickable-boxes { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.clickable-boxes .box img { width: 100%; height: auto; display: block; border-radius: 8px; }
@media (max-width: 1024px){ .clickable-boxes { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .clickable-boxes { grid-template-columns: 1fr; } }

/* Hero text/containers — avoid overlap on small widths */
.hero { padding-top: calc(64px + 1.25rem) !important; }
.hero .container { position: static !important; top: auto !important; right: auto !important; transform: none !important; text-align: center; }

/* Navbar drawer small-width tuning */
@media (max-width: 480px){
.navbar .nav-links { width: 92vw; padding: 1rem 1.25rem; }
.navbar .nav-links a { padding: .9rem 0; font-size: 1.05rem; }
}

/* Ensure images/video don’t overflow */
img, video { max-width: 100%; height: auto; }

/* Table horizontal scroll if present */
table { width: 100%; border-collapse: collapse; }
.table-wrap { overflow-x: auto; }
