/* ========================================
   BASE & RESET  (CLEANED)
======================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f9fafb;
  background: #050816;
  line-height: 1.6;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.page-section {
  padding: 3rem 0;
}

/* ========================================
   HEADER  (UNCHANGED)
======================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  backdrop-filter: blur(16px);
  background: rgba(5, 8, 22, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  outline: 1px solid rgba(255,0,0,0.3) !important;
}
.logo {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e5e7eb;
  font-size: 1.3rem;
}
.logo span { color: #f97316; }

/* Desktop nav */
.nav {
  display: flex;
  gap: 1.5rem;
}
.nav a {
  font-size: 0.95rem;
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:hover,
.nav a.active { color: #f9fafb; }

/* Hamburger base (hidden on desktop) */
.hamburger { display: none; }


.section-cta--portfolio {
margin-top: 2.5rem;      /* space between cards and CTA */
  text-align: center;      /* center the button under the cards */
}

/* If .btn already exists, this keeps visual consistency.
   If not, this gives you a pill button similar to your case CTAs. */
.section-cta--portfolio .btn {
  text-decoration: none;     /* remove underline */
}

/* Optional: if .text-link had underline globally, disable it here */
.section-cta--portfolio .text-link {
  text-decoration: none;
}

/* ========================================
   BUTTONS  (UNCHANGED)
======================================= */
.btn {
  border-radius: 999px;
  padding: 0.8rem 1.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  color: #f9fafb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn:hover {
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.6);
  transform: translateY(-1px);
}

/* ========================================
   HERO  (UNCHANGED)
======================================= */
.hero {
  position: relative;
  padding: 8rem 0 1.5rem;
  color: #f9fafb;
  overflow: hidden;
  background: #050816;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
#dnaCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 70%;
}
.hero-inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  align-items: center;
  column-gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.hero-left { max-width: 760px; }
.hero-left .eyebrow {
  font-size: 1rem;
  color: #d1d5db;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.hero-left h1 {
  font-size: clamp(3.6rem, 6vw, 4.8rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  font-weight: 800;
}
.hero-sub {
  font-size: 1rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
}
.hero-bio-line {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
  color: #fbbf24;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-right {
  display: flex;
  justify-content: flex-start;
}
.hero-bio-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 4px solid #f97316;
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.6);
  background-image: url("images/me.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ========================================
   GLOBAL CONTENT  (CLEANED)
======================================= */
main section:not(.hero),
.page-section {
  position: relative;
  z-index: 20;
  background: transparent;
  border: none;
  margin: 0;
  padding: 3rem 0;
  color: #f9fafb;
}

h2, h3 { color: #ffffff; }
p, li {
  color: #e5e7eb;
  line-height: 1.7;
}
a { color: #facc15; }
a:hover { color: #f97316; }

.timeline,
.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Legacy simple card shell (still used some places) */
.card {
  background: rgba(10, 16, 32, 0.95);
  padding: 1.5rem;
  border-radius: 12px;
}

/* ========================================
   SECTION STRUCTURE (Trajectory / Highlights)  (CLEANED)
======================================= */
.section-block {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: left;
}
.section-block > .section-header + * {
  margin-top: 0;
}
.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

/* vertical rhythm between sections */
.section-block + .section-block {
  margin-top: 3rem;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #fbbf24;
}

.section-intro {
  font-size: 0.98rem;
  color: #e5e7eb;
}

/* ========================================
   OLD PROGRESSION CARDS (safe to keep if reused elsewhere)
======================================= */
.progression-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.progression-card {
  position: relative;
  padding: 1.6rem 1.6rem 1.8rem;
  border-radius: 1.25rem;
  background: radial-gradient(circle at top left,
      rgba(249, 115, 22, 0.10),
      rgba(10, 16, 32, 0.98));
  border: 1px solid rgba(249, 115, 22, 0.45);
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
  cursor: default;
}

.progression-card.is-current {
  border-color: rgba(249, 115, 22, 0.75);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 1);
}

.progression-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 30px 70px rgba(249, 115, 22, 0.45),
    0 0 0 1px rgba(15, 23, 42, 1);
  border-color: rgba(249, 115, 22, 0.95);
  background: radial-gradient(circle at top left,
      rgba(249, 115, 22, 0.20),
      rgba(15, 23, 42, 0.98));
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fed7aa;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 1);
  margin-bottom: 0.75rem;
}

.progression-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.progression-card p {
  font-size: 0.94rem;
  color: #f3f4f6;
}

.progression-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.22), transparent 60%),
    radial-gradient(circle at 80% 120%, rgba(250, 204, 21, 0.12), transparent 55%);
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ========================================
   TRAJECTORY – SOLID BAND + VERTICAL ARROWS + LIST  (NEW CLEAN)
======================================= */
#trajectory {
  position: relative;
  background: #020617; /* dark band */
  overflow: hidden;
}

/* background layer with multiple rising arrows */
.trajectory-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.traj-arrows {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* single arrow column */
.traj-arrow {
  position: absolute;
  bottom: -20%;     /* start higher (partly visible) */
  left: 10%;
  width: 8px;
  height: 300px;
  background: linear-gradient(to top, transparent, rgba(56, 189, 248, 0.9));
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.9);
  opacity: 0.4;     /* start slightly visible */
  animation: trajArrowRise var(--speed, 16s) linear infinite;
  animation-delay: var(--delay, 0s);
}
/* VISIBLE ARROWHEAD using simple triangle */
.traj-arrow::after {
  content: "";
  position: absolute;
  top: -25px;           /* higher up shaft */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;    /* 2x wider */
  border-right: 16px solid transparent;   /* 2x wider */
  border-bottom: 25px solid #38bdf8;      /* 2x taller */
  z-index: 2;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 1));
}
/* arrowhead at TOP (points UP) */
.traj-arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid rgba(56, 189, 248, 1);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.9));
}

/* staggered positions + timing */
.traj-arrow:nth-child(1) { left: 12%; --speed: 12s; --delay: 0s; }
.traj-arrow:nth-child(2) { left: 32%; --speed: 16s; --delay: 1.5s; }
.traj-arrow:nth-child(3) { left: 54%; --speed: 14s; --delay: 0.8s; }
.traj-arrow:nth-child(4) { left: 72%; --speed: 18s; --delay: 2.2s; }
.traj-arrow:nth-child(5) { left: 88%; --speed: 20s; --delay: 0.3s; }

@keyframes trajArrowRise {
  0% { 
    transform: translateY(0); 
    opacity: 0.2;     /* fade in immediately */
  }
  20% { 
    opacity: 0.3;    /* full brightness */
  }
  85% { 
    transform: translateY(-45%); 
    opacity: 0.7; 
  }
  100% { 
    transform: translateY(-65%); 
    opacity: 0.2;     /* fade out gently */
  }
}

/* content above arrows */
#trajectory .container { position: relative; z-index: 2; }

/* trajectory typography */
#trajectory .section-kicker,
#trajectory .section-intro,
#trajectory .progression-item p,
#trajectory .progression-item h3 { color: #e5e7eb; }
#trajectory .section-title { color: #fbbf24; }


/* vertical progression list */
.progression-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.6);
}

.progression-item {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 1.6rem;
  margin-bottom: 0.6rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* connector dots */
.progression-item::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.3rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #1e293b;
  border: 2px solid #020617;
}

/* active / current */
.progression-item.is-current::before {
  background: #f97316;
  border-color: #fef3c7;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.9);
}

.progression-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.progression-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #facc15;
  margin-bottom: 0.25rem;
}

.progression-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #f9fafb;
}

.progression-item p {
  margin: 0;
  font-size: 0.92rem;
  color: #e5e7eb;
}

/* mobile: simplify spine + soften arrows */
@media (max-width: 640px) {
  .progression-list {
    border-left: none;
  }
  .progression-item {
    padding-left: 0;
  }
  .progression-item::before {
    display: none;
  }
  .traj-arrow {
    opacity: 0.35;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  }
}

/* ========================================
   SECTION HIGHLIGHTER  (UNCHANGED)
======================================= */
.section-highlighter {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #facc15);
  opacity: 0;
  transform: translateY(4px);
  box-shadow: 0 0 0 rgba(249, 115, 22, 0);
  pointer-events: none;
  transition:
    left 0.25s ease,
    width 0.25s ease,
    top 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  z-index: 9999;
}
.section-highlighter.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.section-highlighter.is-focused {
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.9);
}
.section-highlighter.is-trajectory { width: 260px; }
.section-highlighter.is-highlights { width: 220px; }

@media (max-width: 640px) {
  .section-highlighter {
    height: 1.5px;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  }
}

/* ========================================
   HIGHLIGHTS (old comet strips) – you can keep or remove
   BUT your new highlights use .casegrid and .casecard
======================================= */
#highlights .cards-grid {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

/* keep the legacy comet style if still used somewhere else */
#highlights .card { /* ... */ }

/* ========================================
   CASE STUDY CARDS (NEW HIGHLIGHTS)  (UNCHANGED)
======================================= */
.casegrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.casecard {
  display: flex;
  flex-direction: column;
  background: #020617;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 1);
  transform: translateY(32px);
  opacity: 0;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    opacity 0.4s ease;
}
.casecard.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .casecard:hover {
    transform: translateY(-6px);
    box-shadow:
      0 26px 60px rgba(15, 23, 42, 0.95),
      0 0 0 1px rgba(249, 115, 22, 0.8);
    border-color: rgba(249, 115, 22, 0.85);
  }
}
.casecard-media {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0,
    rgba(249, 115, 22, 0.65),
    #020617 65%);
}
.casecard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.4s ease;
}
.casecard:hover .casecard-media img {
  transform: scale(1.1);
}
.casecard-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.casecard-title {
  font-size: 1.05rem;
  margin: 0;
  color: #fbbf24;
}
.casecard-snippet {
  margin: 0;
  font-size: 0.94rem;
  color: #e5e7eb;
}
.casecard-cta {
  align-self: flex-start;
  margin-top: 0.5rem;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  color: #facc15;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
    text-decoration: none;
}
.casecard-cta:hover {
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.6);
  transform: translateY(-1px);
}
@media (max-width: 1024px) {
  .casegrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .casegrid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   CASE PASSWORD MODAL  (UNCHANGED)
======================================= */
.case-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.case-modal-backdrop.is-open {
  display: flex;
}
.case-modal {
  background: #020617;
  border-radius: 0.75rem;
  padding: 1.75rem 1.75rem 1.4rem;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  position: relative;
}
.case-modal h3 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
  color: #f9fafb;
}
.case-modal p {
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  color: #e5e7eb;
}
.case-modal label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.35rem;
}
.case-modal input[type="password"] {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #020617;
  color: #e5e7eb;
  font-size: 0.92rem;
}
.case-modal input[type="password"]:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.7);
}
.case-modal .btn.btn-primary {
  margin-top: 0.8rem;
}
.case-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: none;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1rem;
}
.case-modal-close:hover {
  color: #f9fafb;
}
.case-modal-error {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: #f97316;
}

/* ========================================
   RESPONSIVE HERO & NAV  (UNCHANGED)
======================================= */
@media (max-width: 640px) {
  .hero-bg,
  #dnaCanvas {
    display: none !important;
  }
  .hero {
    background: #000000 !important;
    padding: 5.5rem 0 3rem;
  }

  .hero-right,
  .hero-bio-photo { display: none !important; }
  .hero-sub { display: none !important; }

  .hero-inner {
    display: block;
    padding: 0 1.5rem;
  }
  .hero-left { max-width: 100%; }
  .hero-left h1 { font-size: 2rem; }
  .hero-bio-line { font-size: 0.96rem; }
  .hero-cta { justify-content: flex-start; }

  .nav { display: none; }
  .hamburger {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 20px;
    cursor: pointer;
    gap: 4px;
  }
  .hamburger span {
    display: block;
    height: 3px;
    background: #f9fafb;
    border-radius: 2px;
    transition: 0.25s ease;
  }
  body.nav-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
  body.nav-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  body.nav-open .nav {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    padding: 1.5rem;
    gap: 0.75rem;
    z-index: 999;
  }
}

/* desktop DNA visibility */
@media (min-width: 1024px) {
  .hero-bg,
  #dnaCanvas {
    display: block !important;
  }
}
/* Layout of logo tiles */
.org-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.org-tile {
  width: 220px;
  height: 180px;
}

.org-logo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

/* full-bleed logo */
.org-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* overlay with text shown on hover */
.org-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.25rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.org-tile:hover .org-overlay,
.org-tile:focus-within .org-overlay {
  opacity: 1;
  transform: translateY(0);
}

.org-overlay h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.org-role {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.15rem;
}

.org-meta {
  font-size: 0.8rem;
  opacity: 0.75;
}
.contact-cta {
  background: #ff8a00;           /* use your hero accent color */
  color: #0b0c10;
  padding: 3rem 0;
  margin-top: 4rem;
}

.contact-cta a {
  color: inherit;
}

.contact-cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
}

.contact-cta-text {
  flex: 1 1 260px;
  max-width: 520px;
}

.contact-cta-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.contact-cta-text p {
  margin-bottom: 0.5rem;
}

.contact-cta-actions {
  flex: 1 1 240px;
}

.contact-line {
  margin: 0 0 0.25rem;
}

.contact-cta-buttons {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* stack on small screens */
@media (max-width: 768px) {
  .contact-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  position: relative;
  background: #0f1117;
  border-radius: 16px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
}

.form-error {
  color: #ff6b6b;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/* ========================================
   MOBILE HEADER FIX - Add to BOTTOM of styles.css
======================================= */
@media (max-width: 900px) {
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 1rem 1.5rem !important; /* Reduced padding */
    z-index: 1000 !important;
  }
  
  .page-container {
    padding-top: 0 !important;
    margin-top: 80px !important; /* Space for fixed header */
  }
  
  body {
    padding-top: 0 !important;
  }
}

