/* ===========================================================
   K-LEGO  •  professional white + turquoise theme
   =========================================================== */

:root {
  --teal:      #14a098;
  --teal-dark: #0b7a73;
  --teal-deep: #123f3b;
  --teal-tint: #eaf6f5;
  --ink:       #1f2a30;
  --muted:     #5b6b72;
  --line:      #e4ecec;
  --white:     #ffffff;
  /* playful LEGO-brick accent colors */
  --red:       #e3000b;
  --blue:      #0d63b4;
  --yellow:    #ffcf00;
  --shadow:    0 12px 32px rgba(16, 50, 48, 0.09);
  --shadow-sm: 0 4px 16px rgba(16, 50, 48, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== Splash screen ===== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #0c2b29;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .7s ease;
}
.splash.hide { opacity: 0; pointer-events: none; }
#splashCanvas { display: block; width: 100%; height: 100%; }
.splash-skip {
  position: absolute;
  bottom: 22px;
  right: 26px;
  color: #ffffffaa;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: .9rem;
  pointer-events: none;
}
body.splash-on { overflow: hidden; }

html { scroll-behavior: auto; } /* custom eased scroll handled in script.js */

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
  cursor: url('cursor-circle.svg') 16 16, auto;
}

a, button, .btn, .nav-menu a, .logo, .splash, .team-card, .modal-close {
  cursor: url('cursor-circle-white.svg') 16 16, pointer;
}

h1, h2, h3, h4, .logo-text, .hero-tagline, .btn, .section-title, .nav-menu a, .splash-skip {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
}

/* faint light-blue trail that follows the cursor */
.cursor-trail {
  position: fixed;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #7fd1ca;
  opacity: 0.4;
  pointer-events: none;
  z-index: 9500;
  animation: trail-fade 0.65s ease-out forwards;
}
@keyframes trail-fade {
  to { transform: scale(0.3); opacity: 0; }
}

/* ===== Background ===== */
.brick-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--white);
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 32px;
  background: #ffffffe6;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-img {
  height: 50px;
  width: auto;
  display: block;
  transition: transform .15s;
}
.logo:hover .logo-img { transform: scale(1.04); }

/* ===== Hamburger ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 12px;
  border: none;
  background: var(--teal);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: background .2s;
}
.hamburger:hover { background: var(--teal-dark); }
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Dropdown menu ===== */
.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 24px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.nav-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-menu a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-menu a:hover { background: var(--teal-tint); color: var(--teal-dark); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  padding: 15px 34px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, background .15s, box-shadow .15s;
  border: none;
}
.btn:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-big { font-size: 1.1rem; }
/* center the Donations Form button within its card */
#donations .card .btn { display: block; width: fit-content; margin: 6px auto 0; }

/* ===== Hero ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 110px 24px 120px;
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 20 L10 10 L20 20 L30 10 L40 20' fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='3'/%3E%3Cpath d='M0 40 L10 30 L20 40 L30 30 L40 40' fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='3'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--teal-deep), var(--teal-dark) 55%, var(--teal));
}
.hero-content { max-width: 720px; margin: 0 auto; }
.hero-title {
  font-size: clamp(3rem, 11vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
  animation: fade-up .6s ease both;
}
.hero-tagline {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: clamp(1.1rem, 3.5vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 22px 0;
  color: #cdeeeb;
}
.hero-tagline span { position: relative; }
/* Imagine / Invent / Inspire in LEGO colors */
.hero-tagline span:nth-child(1) { color: #ff4136; } /* Imagine — red */
.hero-tagline span:nth-child(2) { color: #ffd21a; } /* Invent — yellow */
.hero-tagline span:nth-child(3) { color: #4aa8ff; } /* Inspire — blue */
.hero-sub {
  font-size: 1.15rem;
  font-weight: 400;
  color: #e8f6f5;
  margin: 0 auto 30px;
  max-width: 540px;
}
.hero .btn {
  background: #fff;
  color: var(--teal-dark);
}
.hero .btn:hover { background: #f0faf9; }

/* ===== Sections ===== */
.section { padding: 80px 24px; max-width: 1040px; margin: 0 auto; }
.section-title {
  text-align: center;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink);
  margin-bottom: 44px;
  padding-bottom: 20px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 132px;
  height: 6px;
  background: linear-gradient(90deg,
    var(--red) 0 30%, transparent 30% 35%,
    var(--yellow) 35% 65%, transparent 65% 70%,
    var(--blue) 70% 100%);
  border-radius: 3px;
  margin: 20px auto 0;
}

/* ===== Cards ===== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 38px;
  box-shadow: var(--shadow-sm);
}
.card h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--ink);
}
.card p { font-size: 1.08rem; margin-bottom: 14px; color: var(--ink); }
.card p:last-child { margin-bottom: 0; }

/* spacing only between stacked, full-width cards — not cards inside a grid
   (grids use `gap`, so this kept the 2nd team/mission card pushed down) */
.section > .card + .card,
.team-grid + .card,
.card + .team-grid { margin-top: 26px; }

.story-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal-dark);
  margin-bottom: 16px;
}
.fair-title {
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal-dark);
  margin: 22px 0 10px;
}

/* lists */
.impact-list { margin: 8px 0 8px 1.3em; }
.impact-list li { font-size: 1.08rem; margin-bottom: 10px; }
.impact-list li::marker { color: var(--teal); }
.impact-list li:nth-child(3n+1)::marker { color: var(--red); }
.impact-list li:nth-child(3n+2)::marker { color: var(--yellow); }
.impact-list li:nth-child(3n+3)::marker { color: var(--blue); }

/* badges (if used) */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge {
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .9rem;
}

/* ===== Photo galleries ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 6px 0 18px;
}
.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 30%;   /* keep faces (usually near the top) in frame */
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: block;
  transition: transform .2s, box-shadow .2s;
}
.gallery img:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* product close-ups: show the whole keychain on a soft tint */
.gallery.products img {
  object-fit: contain;
  background: var(--teal-tint);
  padding: 8px;
}

/* ===== Mission grid ===== */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.mission-card { text-align: center; border-top: 4px solid var(--teal); transition: transform .2s, box-shadow .2s; }
.mission-grid .mission-card:nth-child(1) { border-top-color: var(--red); }
.mission-grid .mission-card:nth-child(2) { border-top-color: var(--yellow); }
.mission-grid .mission-card:nth-child(3) { border-top-color: var(--blue); }
.mission-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mission-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--teal-dark);
}
.mission-icon {
  font-size: 2.6rem;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--teal-tint);
}

/* ===== Giving banner ===== */
.give-banner {
  text-align: center;
  padding: 64px 24px;
  color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 20 L10 10 L20 20 L30 10 L40 20' fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='3'/%3E%3Cpath d='M0 40 L10 30 L20 40 L30 30 L40 40' fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='3'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--teal), var(--teal-dark));
}
.give-big {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.give-small { font-size: 1.15rem; margin-top: 8px; color: #e8f6f5; }
.count {
  background: #fff;
  color: var(--teal-dark);
  padding: 0 12px;
  border-radius: 8px;
}

/* ===== Planet ===== */
.planet-card { text-align: center; border-top: 4px solid var(--teal); }
.planet-card h2 { color: var(--teal-dark); }

/* ===== Contact ===== */
.contact .card { text-align: left; }
.contact .card.team-card { text-align: center; }
.contact .contact-text { text-align: center; font-size: 1.25rem; }
.contact .contact-text a { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.contact .contact-text a:hover { text-decoration: underline; }

/* Meet the team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}
.team-card { text-align: center; transition: transform .2s, box-shadow .2s; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-card h3 {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.team-card p { color: var(--muted); }
.team-avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--teal-dark);
  border: 3px solid var(--teal);
}
.team-grid .team-card:nth-child(1) .team-avatar { border-color: var(--red); color: var(--red); }
.team-grid .team-card:nth-child(2) .team-avatar { border-color: var(--blue); color: var(--blue); }

/* photo avatars — fill the circle, keep the face framed */
.team-avatar img,
.modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  display: block;
}
.team-avatar:has(img),
.modal-avatar:has(img) { overflow: hidden; background: none; }

/* ===== Map ===== */
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.map-wrap iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ===== Footer ===== */
.footer {
  background: var(--teal-deep);
  color: #fff;
  text-align: center;
  padding: 40px 24px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-small {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  letter-spacing: 0;
  text-transform: none;
  opacity: .8;
  margin-top: 8px;
}

/* ===== Donation form ===== */
.back-btn { font-size: .95rem; padding: 10px 20px; }
.form-page { max-width: 680px; }
.donate-form { margin-top: 26px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: .95rem;
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.form-field label .optional {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #9fb0b3; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 160, 152, .18);
}
.form-field textarea { resize: vertical; min-height: 92px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-actions { margin-top: 8px; }
.form-actions .btn { width: 100%; text-align: center; cursor: pointer; }
.form-msg {
  margin-top: 16px;
  font-weight: 600;
  color: var(--teal-dark);
  opacity: 0;
  transition: opacity .3s;
}
.form-msg.show { opacity: 1; }
.form-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ===== Team card cue ===== */
.team-card { outline: none; }
.team-card:focus-visible { box-shadow: 0 0 0 3px rgba(20, 160, 152, .35); }
.team-hint {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--teal-dark);
  opacity: .85;
  transition: opacity .15s, transform .15s;
}
.team-card:hover .team-hint { opacity: 1; transform: translateX(3px); }

/* ===== Founders video (under Meet the Team) ===== */
.team-video-wrap {
  margin-top: 26px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #000;
}
.team-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

/* ===== Background music toggle ===== */
.music-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 800;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
}
.music-toggle:hover { background: var(--teal-dark); transform: translateY(-2px); }
.music-toggle.on { background: var(--teal-dark); }
.music-toggle svg { width: 26px; height: 26px; }
.music-toggle svg path { fill: currentColor; }
.music-toggle svg .wv { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* gentle pulse while playing */
.music-toggle.on::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  opacity: .55;
  animation: music-pulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes music-pulse {
  from { transform: scale(1); opacity: .55; }
  to   { transform: scale(1.4); opacity: 0; }
}
@media (max-width: 480px) {
  .music-toggle { right: 14px; bottom: 14px; width: 48px; height: 48px; }
  .music-toggle svg { width: 23px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .music-toggle.on::after { animation: none; }
}

/* ===== Bio popup (modal) ===== */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 43, 41, .55);
  backdrop-filter: blur(3px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 18px;
  border-top: 5px solid var(--teal);
  padding: 42px 32px 34px;
  box-shadow: var(--shadow);
  text-align: center;
  transform: translateY(16px) scale(.97);
  transition: transform .25s ease;
}
.modal.open .modal-card { transform: none; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  background: var(--teal-tint);
  color: var(--teal-dark);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--teal); color: #fff; }
.modal-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 2.6rem;
  color: var(--teal-dark);
  border: 3px solid var(--teal);
}
.modal-card h3 {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 4px;
}
.modal-role { color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.modal-bio { color: var(--ink); font-size: 1.05rem; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  .modal, .modal-card { transition: none; }
}

/* ===== Animations ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pop { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.pop.show { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .pop { opacity: 1; transform: none; }
}

/* ===========================================================
   RESPONSIVE LAYER
   The base styles above are already fluid (clamp type, auto-fit
   grids, an always-on hamburger menu). These media queries tune
   spacing, image sizes and touch behaviour for each device class.
   =========================================================== */

/* ---- Large desktops / wide monitors ---- */
@media (min-width: 1400px) {
  .section { max-width: 1180px; }
  .gallery img { height: 340px; }
}

/* ---- Tablets & small laptops (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .section { padding: 70px 24px; }
  .card { padding: 34px; }
  .gallery img { height: 260px; }
  .map-wrap iframe { height: 320px; }
}

/* ---- Large phones & portrait tablets (≤ 768px) ---- */
@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .nav-menu { right: 16px; min-width: min(260px, calc(100vw - 32px)); }
  .logo-img { height: 44px; }

  .hero { padding: 84px 20px 90px; }
  .hero-sub { font-size: 1.05rem; }

  .section { padding: 56px 20px; }
  .section-title { margin-bottom: 34px; }

  .card { padding: 26px 22px; border-radius: 14px; }
  .card p, .impact-list li { font-size: 1rem; }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
  }
  .gallery img { height: 230px; }

  .mission-grid,
  .team-grid { gap: 18px; }

  .give-banner { padding: 52px 20px; }
  .map-wrap iframe { height: 280px; }
}

/* ---- Phones (≤ 480px) ---- */
@media (max-width: 480px) {
  .navbar { padding: 12px 16px; }
  .nav-menu { right: 12px; left: 12px; min-width: 0; }
  .logo-img { height: 40px; }

  .hero { padding: 70px 18px 76px; }
  .hero-tagline { gap: 10px; letter-spacing: 2px; margin: 18px 0; }
  .hero-sub { font-size: 1rem; }
  .btn { padding: 13px 26px; }
  .btn-big { font-size: 1rem; }

  .section { padding: 46px 16px; }
  .section-title { margin-bottom: 28px; padding-bottom: 14px; }
  .section-title::after { width: 80px; height: 4px; }

  .card { padding: 22px 18px; }
  .story-title { font-size: 1.25rem; }
  .contact .contact-text { font-size: 1.1rem; }

  /* Single, comfortably-sized column of photos on small screens */
  .gallery { grid-template-columns: 1fr; gap: 12px; }
  .gallery img { height: 220px; }

  .team-avatar { width: 78px; height: 78px; font-size: 2rem; }
  .map-wrap iframe { height: 240px; }
}

/* ---- Touch devices: restore the native cursor & drop hover lifts ---- */
@media (hover: none), (pointer: coarse) {
  body,
  a, button, .btn, .nav-menu a, .logo, .splash { cursor: auto; }

  /* hover transforms can stick after a tap on touch screens */
  .card:hover,
  .mission-card:hover,
  .team-card:hover,
  .gallery img:hover,
  .btn:hover { transform: none; }
}

/* ---- Short landscape (phones held sideways): trim vertical space ---- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: 48px 24px 54px; }
  .section { padding: 44px 24px; }
}
