@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300&display=swap');

/* =====================================================
   CORE PALETTE — Navy + Crimson + Gold Circuit
===================================================== */
:root {
  --navy-950: #030d18;
  --navy-900: #071828;
  --navy-800: #0b2340;
  --navy-700: #0f2f54;
  --navy-600: #143d6a;

  --white: #ffffff;
  --ice: #e8f3ff;
  --muted: #9db8d4;
  --cream: #f0e6d3;

  --red-700: #b11226;
  --red-600: #cc1530;
  --red-400: #e83d52;

  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim: rgba(201,168,76,0.18);

  --circuit: rgba(20,61,106,0.85);
  --line: rgba(255,255,255,0.10);
  --line-gold: rgba(201,168,76,0.25);
  --panel: rgba(7,24,40,0.82);
  --panel-2: rgba(11,35,64,0.72);
  --shadow: 0 16px 48px rgba(0,0,0,0.55);
  --shadow-red: 0 4px 24px rgba(177,18,38,0.35);
  --glow-gold: 0 0 24px rgba(201,168,76,0.20);

  /* ADA: font scale — WCAG 1.4.4 */
  --font-scale: 1;
}

/* =====================================================
   RESET / BASE
===================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ice);
  background-color: var(--navy-950);
  background-image:
    radial-gradient(circle, rgba(20,61,106,0.6) 1px, transparent 1px),
    radial-gradient(ellipse 140% 80% at 15% 10%, var(--navy-700) 0%, var(--navy-900) 45%, var(--navy-950) 100%),
    radial-gradient(ellipse 80% 60% at 85% 80%, rgba(15,47,84,0.4) 0%, transparent 65%);
  background-size: 32px 32px, 100% 100%, 100% 100%;
}

/* =====================================================
   CIRCUIT TRACE LINES
===================================================== */
.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  z-index: 1;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cg stroke='%234a90c4' stroke-width='1' fill='none' opacity='0.6'%3E%3Cpath d='M0 80 L60 80 L80 60 L200 60'/%3E%3Ccircle cx='200' cy='60' r='4' fill='%234a90c4'/%3E%3Cpath d='M200 60 L260 60 L280 80 L400 80'/%3E%3Cpath d='M0 200 L40 200 L60 180 L120 180'/%3E%3Ccircle cx='120' cy='180' r='3' fill='%234a90c4'/%3E%3Cpath d='M120 180 L120 140 L160 100'/%3E%3Ccircle cx='160' cy='100' r='4' fill='%234a90c4'/%3E%3Cpath d='M160 100 L240 100 L260 120 L320 120'/%3E%3Ccircle cx='320' cy='120' r='3' fill='%234a90c4'/%3E%3Cpath d='M320 120 L400 120'/%3E%3Cpath d='M50 400 L50 320 L90 280 L150 280'/%3E%3Ccircle cx='150' cy='280' r='4' fill='%234a90c4'/%3E%3Cpath d='M150 280 L200 280 L220 260 L300 260 L320 280 L400 280'/%3E%3Cpath d='M300 400 L300 340 L340 300 L400 300'/%3E%3Ccircle cx='300' cy='340' r='3' fill='%234a90c4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
}

.page-shell::after {
  content: "";
  position: fixed;
  bottom: 0;
  right: 0;
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: -1;
  background-image: url('https://lh3.googleusercontent.com/d/1z_FPNVUSA0pv9H3r_DCVWoKBVKd0w5VB');
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  opacity: 0.08;
}

/* =====================================================
   STICKY NAVIGATION
===================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: rgba(3,13,24,0.92);
  border-bottom: 1px solid var(--line-gold);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.nav-brand {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.08em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s ease;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--red-700);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 0.4rem 1rem;
  text-decoration: none;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--red-600) !important; color: var(--white) !important; }
.nav-cta::after { display: none !important; }

/* Client Portal nav link — visually distinct */
.nav-portal-link {
  color: var(--gold) !important;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 4px;
  padding: 2px 8px !important;
}
.nav-portal-link:hover { color: var(--gold-light) !important; border-color: var(--gold); }
.nav-portal-link::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ice);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(3,13,24,0.97);
    border-bottom: 1px solid var(--line-gold);
    padding: 1rem 2rem 1.5rem;
    gap: 1.25rem;
  }

  .nav-links.open { display: flex; }
  .nav-cta-wrap { display: none; }
}

/* =====================================================
   PAGE OFFSET — nav 60px + a11y bar 42px + progress 3px
===================================================== */
body { padding-top: 105px; }

/* =====================================================
   SECTION SYSTEM
===================================================== */
.section {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.5rem;
}

.section + .section { padding-top: 2rem; }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line-gold);
  border-radius: 12px;
  padding: 2.5rem 2.75rem;
  box-shadow: var(--shadow), var(--glow-gold);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg stroke='%23c9a84c' stroke-width='1' fill='none' opacity='0.3'%3E%3Cpath d='M0 40 L20 40 L30 30 L80 30'/%3E%3Ccircle cx='80' cy='30' r='3' fill='%23c9a84c'/%3E%3Cpath d='M0 60 L10 60 L20 50 L40 50'/%3E%3Ccircle cx='40' cy='50' r='2' fill='%23c9a84c'/%3E%3C/g%3E%3C/svg%3E");
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1, h2, h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  margin-top: 0;
  color: var(--white);
  letter-spacing: 0.02em;
}

.section h2 {
  font-size: calc(2rem * var(--font-scale));
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: "";
  display: block;
  margin-top: 6px;
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.subtitle {
  margin-bottom: 1.75rem;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
  font-size: calc(1.05rem * var(--font-scale));
}

p {
  line-height: 1.75;
  color: var(--ice);
  font-size: calc(1rem * var(--font-scale));
}

/* =====================================================
   PANEL LINKS
===================================================== */
.panel a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201,168,76,0.4);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.panel a:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

/* =====================================================
   LISTS
===================================================== */
.panel ul { padding-left: 1.25rem; }

.panel ul li {
  margin-bottom: 0.75rem;
  line-height: 1.65;
  color: var(--ice);
  font-size: calc(1rem * var(--font-scale));
}

.panel ul li strong {
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: calc(1.05em * var(--font-scale));
}

/* =====================================================
   HERO — Circuit Board + Crimson
===================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 3.5rem;
  z-index: 15;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://lh3.googleusercontent.com/d/1EmNJzxkZVjuvk_cpL82FZ02ZYTEb67fb');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(177,18,38,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  background: rgba(3,13,24,0.88);
  border: 1px solid rgba(201,168,76,0.22);
  border-left: 4px solid var(--red-700);
  border-radius: 12px;
  padding: 2.25rem 2.25rem 2rem;
  box-shadow: var(--shadow), 0 0 40px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: min(520px, 100%);
  position: relative;
}

.hero-text::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='60'%3E%3Cg stroke='%23c9a84c' stroke-width='1' fill='none' opacity='0.35'%3E%3Cpath d='M100 15 L70 15 L55 30 L30 30'/%3E%3Ccircle cx='30' cy='30' r='3' fill='%23c9a84c'/%3E%3Cpath d='M100 35 L85 35 L75 45 L55 45'/%3E%3Ccircle cx='55' cy='45' r='2' fill='%23c9a84c'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-text h1 {
  font-size: 2.6rem;
  margin-bottom: 0.3rem;
  color: var(--white);
  line-height: 1.1;
}

.hero-text h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-text h2 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.1rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0.85rem 0 1rem;
}

.hero-subtext {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(232,243,255,0.82);
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(177,18,38,0.15);
  border: 1px solid rgba(177,18,38,0.3);
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232,100,120,0.9);
}

.hero-image {
  position: relative;
  justify-self: center;
  align-self: center;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 22px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.18);
  box-shadow: 0 0 40px rgba(201,168,76,0.08), var(--shadow);
  z-index: 0;
}

.hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  border: 1px solid rgba(201,168,76,0.28);
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto;
}

.hero-cta {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: calc(1rem * var(--font-scale));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.6rem;
  background: var(--red-700);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-red);
  transition: background 0.2s, box-shadow 0.2s;
  min-height: 44px;
  min-width: 44px;
}

.hero-cta:hover {
  background: var(--red-600);
  box-shadow: 0 6px 32px rgba(177,18,38,0.55);
  color: var(--white) !important;
}

/* =====================================================
   EXPERIENCE TIMELINE & EXPERTISE LIST
===================================================== */
.experience-timeline {
  margin: 1rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-item {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--red-700);
  background: rgba(177,18,38,0.06);
  border-radius: 0 6px 6px 0;
  color: var(--ice);
  font-size: calc(0.95rem * var(--font-scale));
  line-height: 1.6;
}

.expertise-list {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1.5rem;
}

.expertise-list li {
  margin-bottom: 0.75rem;
  line-height: 1.65;
  color: var(--ice);
  font-size: calc(1rem * var(--font-scale));
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line-gold);
  text-align: center;
  background: rgba(3,13,24,0.7);
}

.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  width: 200px;
  margin: 0 auto 2rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-container {
  width: min(700px, 90vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.footer-primary {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: calc(1.4rem * var(--font-scale));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-secondary {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: calc(0.9rem * var(--font-scale));
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-disclaimer {
  margin-top: 0.75rem;
  font-size: calc(0.8rem * var(--font-scale));
  color: var(--muted);
  line-height: 1.6;
  max-width: 580px;
  font-style: italic;
}

.footer-meta {
  font-size: calc(0.78rem * var(--font-scale));
  color: rgba(157,184,212,0.55);
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* =====================================================
   CONTACT DISCLAIMER
===================================================== */
.contact-disclaimer {
  margin-top: 1.25rem;
  font-size: calc(0.82rem * var(--font-scale));
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-text { margin: 0 auto; }
  .hero-image { order: -1; }
  .panel { padding: 1.75rem 1.5rem; }
  .page-shell::after { width: 320px; height: 320px; opacity: 0.05; }
}

/* =====================================================
   ADA / WCAG 2.1 AA
===================================================== */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--gold);
  color: var(--navy-950);
  padding: 10px 20px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 6px 0;
  transition: top 0.15s;
}
.skip-nav:focus { top: 0; }

#a11y-status {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

*:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.a11y-bar {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 1.25rem;
  background: rgba(3,13,24,0.97);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-x: auto;
  scrollbar-width: none;
}
.a11y-bar::-webkit-scrollbar { display: none; }

.a11y-bar-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(157,184,212,0.4);
  margin-right: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.a11y-group {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.a11y-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.1);
  margin: 0 4px;
  flex-shrink: 0;
}

.a11y-font-btn,
.a11y-toggle-btn,
.a11y-narrate-ctrl,
.a11y-reset-btn {
  min-height: 30px;
  min-width: 36px;
  padding: 3px 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.a11y-font-btn:hover,
.a11y-toggle-btn:hover,
.a11y-narrate-ctrl:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}

.a11y-font-btn[aria-pressed="true"],
.a11y-toggle-btn[aria-pressed="true"] {
  background: var(--red-700);
  border-color: var(--red-600);
  color: var(--white);
}

.a11y-reset-btn {
  color: rgba(157,184,212,0.45);
  border-color: rgba(255,255,255,0.07);
  background: transparent;
}
.a11y-reset-btn:hover {
  color: var(--muted);
  background: rgba(255,255,255,0.05);
}

.a11y-progress-wrap {
  position: fixed;
  top: 102px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.06);
  z-index: 98;
}

.a11y-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red-700), var(--gold));
  transition: width 0.4s ease;
}

/* =====================================================
   HIGH CONTRAST MODE — WCAG 1.4.3
===================================================== */
.mode-high-contrast,
.mode-high-contrast body {
  background: #000000 !important;
  background-image: none !important;
  color: #ffffff !important;
}

.mode-high-contrast .page-shell::before,
.mode-high-contrast .page-shell::after { display: none; }

.mode-high-contrast .panel {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
}

.mode-high-contrast p,
.mode-high-contrast li,
.mode-high-contrast .subtitle,
.mode-high-contrast h1,
.mode-high-contrast h2,
.mode-high-contrast h3 { color: #ffffff !important; }

.mode-high-contrast a { color: #ffff00 !important; text-decoration: underline !important; }
.mode-high-contrast .nav-brand,
.mode-high-contrast .nav-brand span { color: #ffffff !important; }
.mode-high-contrast .site-nav,
.mode-high-contrast .a11y-bar { background: #000000 !important; border-color: #ffffff !important; }
.mode-high-contrast .nav-cta,
.mode-high-contrast .hero-cta { background: #ffffff !important; color: #000000 !important; border-color: #ffffff !important; }

/* =====================================================
   DYSLEXIA-FRIENDLY MODE — WCAG 1.4.12
===================================================== */
.mode-dyslexia body,
.mode-dyslexia p,
.mode-dyslexia li,
.mode-dyslexia .subtitle,
.mode-dyslexia .contact-disclaimer,
.mode-dyslexia .footer-disclaimer {
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
  letter-spacing: 0.04em;
  word-spacing: 0.1em;
  line-height: 1.9;
}

/* =====================================================
   REDUCED MOTION — WCAG 2.3.3
===================================================== */
.mode-reduced-motion *,
.mode-reduced-motion *::before,
.mode-reduced-motion *::after {
  transition: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* =====================================================
   INCREASED LINE SPACING — WCAG 1.4.12
===================================================== */
.mode-spacing p,
.mode-spacing li,
.mode-spacing .subtitle,
.mode-spacing .contact-disclaimer {
  line-height: 2.2 !important;
  letter-spacing: 0.05em !important;
  word-spacing: 0.12em !important;
}

/* =====================================================
   LINK HIGHLIGHTING — WCAG 1.4.1
===================================================== */
.mode-links a {
  background: rgba(201,168,76,0.15) !important;
  outline: 1px solid var(--gold) !important;
  outline-offset: 2px !important;
  border-radius: 2px !important;
  padding: 0 2px !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
}

/* =====================================================
   LARGE CURSOR — WCAG 2.5.5
===================================================== */
.mode-cursor,
.mode-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M4 2 L4 26 L10 20 L14 30 L18 28 L14 18 L22 18 Z' fill='white' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 4 2, auto !important;
}

/* =====================================================
   VISIBILITY / LAYERING
===================================================== */
#main-content,
.hero-section,
.section {
  position: relative;
  z-index: 10;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
}

.hero-content {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-text,
.hero-image {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.page-shell > * {
  position: relative;
  z-index: 5;
}

/* =====================================================
   PRINT
===================================================== */
@media print {
  .a11y-bar,
  .a11y-progress-wrap,
  .site-nav,
  .skip-nav { display: none !important; }
  body { padding-top: 0 !important; background: #fff !important; color: #000 !important; }
  .panel { background: #fff !important; border: 1px solid #ccc !important; box-shadow: none !important; }
  p, li { color: #000 !important; }
  a { color: #000 !important; text-decoration: underline !important; }
}
