/* ============================================================
   Dynamics Extrication — stylesheet
   Fonts: Saira Condensed (display) + Saira (body)
   ============================================================ */

:root {
  --bg:       #0b0d10;
  --bg-2:     #101318;
  --surface:  #161a20;
  --surface-2:#1c222a;
  --line:     #272e38;
  --line-soft:#1f242c;

  --text:     #eef1f4;
  --muted:    #9aa6b2;
  --muted-2:  #6f7b88;

  --amber:    #ffb02e;
  --amber-2:  #ff8a00;
  --volt:     #4f7dff;   /* USA blue accent (was EV green) */
  --danger:   #ff4d3d;

  --radius:   14px;
  --radius-sm:10px;
  --wrap:     1180px;
  --ease:     cubic-bezier(.22,.61,.36,1);

  --shadow:   0 18px 50px -18px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Saira", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

h1, h2, h3 {
  font-family: "Saira Condensed", "Saira", sans-serif;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: .2px;
  text-transform: uppercase;
  margin: 0;
}

.kicker {
  font-family: "Saira Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: .82rem;
  color: var(--amber);
  margin: 0 0 14px;
}
.kicker.center { text-align: center; }

.volt { color: var(--danger); }   /* hero highlight word — red */

/* ---------- buttons ---------- */
.btn {
  --b: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1.5px solid var(--b);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn .ico { width: 19px; height: 19px; fill: currentColor; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--amber), var(--amber-2));
  color: #1a1206;
  box-shadow: 0 12px 26px -12px rgba(255,138,0,.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(255,138,0,.85); }

.btn-ghost {
  background: rgba(255,255,255,.03);
  color: var(--text);
  --b: var(--line);
}
.btn-ghost:hover { border-color: var(--volt); color: var(--volt); transform: translateY(-2px); }

.btn-lg { padding: 17px 30px; font-size: 1.12rem; }

.btn-call {
  background: var(--danger);
  color: #fff;
  padding: 10px 18px;
  font-size: .92rem;
  box-shadow: 0 10px 22px -12px rgba(255,77,61,.9);
}
.btn-call:hover { transform: translateY(-2px); }
.btn-call .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.text-link {
  font-family: "Saira Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--volt);
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.text-link:hover { border-color: var(--volt); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,16,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(11,13,16,.92);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  width: 84px; height: 84px; object-fit: contain;
  /* big crest that overflows the bar downward without making the header taller */
  margin-block: -6px; position: relative; top: 6px; z-index: 1;
  filter: drop-shadow(0 7px 14px rgba(0,0,0,.6));
}
.brand-text { display: flex; flex-direction: column; line-height: .9; }
.brand-text strong {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800; font-size: 1.32rem; text-transform: uppercase; letter-spacing: .5px;
}
.brand-text em {
  font-style: normal; font-family: "Saira Condensed", sans-serif;
  font-weight: 600; font-size: .74rem; letter-spacing: 5px;
  text-transform: uppercase; color: var(--amber);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-family: "Saira Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: 1.4px; font-weight: 600;
  font-size: .96rem; color: var(--muted);
  padding: 6px 0; position: relative; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--amber); transition: width .25s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }
.nav .nav-cta { color: var(--danger); }

.header-call { margin-left: 4px; }

.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-left: 4px;
}
.menu-toggle span {
  display: block; height: 2.5px; background: var(--text); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.menu-toggle span + span { margin-top: 5px; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: url("images/hero.jpg?v=2") center 30% / cover no-repeat;
  transform: scale(1.04);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(8,10,13,.96) 0%, rgba(8,10,13,.82) 38%, rgba(8,10,13,.35) 75%, rgba(8,10,13,.55) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 32%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,176,46,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,176,46,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(100deg, #000 25%, transparent 70%);
}
.hero-content {
  position: relative;
  padding: clamp(70px, 13vh, 150px) 0 clamp(48px, 8vh, 90px);
  /* width comes from .wrap (1180px) so the hero lines up with the rest of the page */
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Saira Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: 3.5px; font-weight: 700;
  font-size: .82rem; color: var(--text);
  margin: 0 0 22px; padding: 8px 16px 8px 12px;
  border: 1px solid var(--line); border-radius: 100px;
  background: rgba(0,0,0,.3);
}
.eyebrow .spark {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--volt); box-shadow: 0 0 12px 2px var(--volt);
}
.hero-title {
  font-size: clamp(2rem, 5.4vw, 4.4rem);
  letter-spacing: -.4px;
  line-height: 1.05;
  margin: 0 0 22px;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  color: #d4dae1; max-width: 600px; margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-strip {
  position: relative;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(22,26,32,.6), rgba(11,13,16,.85));
  backdrop-filter: blur(4px);
}
.strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.strip-inner span {
  padding: 20px 26px; font-size: .98rem; color: var(--muted);
  border-left: 1px solid var(--line-soft);
}
.strip-inner span:first-child { border-left: 0; padding-left: 0; }
.strip-inner b { color: var(--text); font-weight: 600; }

/* ============================================================
   SECTIONS (general)
   ============================================================ */
.section { padding: clamp(64px, 10vh, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2,
.intro-copy h2, .training-copy h2, .area-copy h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
}

/* ---------- intro ---------- */
.intro { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.intro-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 5vw, 72px);
  align-items: center;
}
.intro-copy h2 { margin-bottom: 22px; }
.intro-copy p { color: var(--muted); margin: 0 0 18px; }
.intro-copy .text-link { margin-top: 6px; display: inline-block; }
.intro-figure { margin: 0; position: relative; }
.intro-figure img {
  border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.intro-figure figcaption {
  margin-top: 14px; font-size: .88rem; color: var(--muted-2);
  border-left: 3px solid var(--volt); padding-left: 12px;
}

/* ---------- capabilities ---------- */
.capabilities { background: var(--bg-2); }
.cap-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.cap-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.cap-card:hover { transform: translateY(-6px); border-color: #3a444f; box-shadow: var(--shadow); }
.cap-img { aspect-ratio: 4/3; overflow: hidden; }
.cap-img-icon {
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,.04), transparent 60%),
    var(--surface-2);
  color: var(--muted);
}
.cap-img-doc { background: #fff; }
.cap-img-doc img { object-fit: contain; }
.cap-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cap-card:hover .cap-img img { transform: scale(1.07); }
.cap-body { padding: 22px 22px 26px; }
.cap-body h3 { font-size: 1.5rem; margin: 12px 0 10px; }
.cap-body p { color: var(--muted); font-size: .98rem; margin: 0; }

.tag {
  display: inline-block;
  font-family: "Saira Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
  font-size: .72rem; padding: 5px 11px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.tag-volt { color: var(--volt); border-color: rgba(79,125,255,.35); background: rgba(79,125,255,.08); }
.tag-amber { color: var(--amber); border-color: rgba(255,176,46,.35); background: rgba(255,176,46,.08); }
.tag-red { color: var(--danger); border-color: rgba(255,77,61,.35); background: rgba(255,77,61,.08); }

/* ---------- training ---------- */
.training { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.training-grid {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(34px, 5vw, 72px);
  align-items: center;
}
.training-figure { margin: 0; }
.training-figure img {
  border-radius: var(--radius); width: 100%; aspect-ratio: 3/4; object-fit: cover;
  max-height: 560px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.training-copy h2 { margin-bottom: 26px; }
.checklist { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 16px; }
.checklist li {
  position: relative; padding-left: 38px; color: var(--muted);
}
.checklist li b { color: var(--text); font-weight: 600; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(79,125,255,.12); border: 1px solid rgba(79,125,255,.4);
}
.checklist li::after {
  content: ""; position: absolute; left: 7px; top: 8px;
  width: 8px; height: 4px; border-left: 2px solid var(--volt); border-bottom: 2px solid var(--volt);
  transform: rotate(-45deg);
}

/* ---------- founder ---------- */
.founder { background: var(--bg-2); }
.founder-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: clamp(26px, 3vw, 48px);
  align-items: start;
}
.founder-figure { margin: 0; position: relative; max-width: 340px; }
.founder-figure img {
  width: 100%; border-radius: var(--radius); display: block;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  aspect-ratio: 4/5; object-fit: cover; object-position: top center;
}
.founder-portrait { position: relative; }
.founder-portrait img { aspect-ratio: 7 / 10; }   /* a bit taller frame */
/* presenting image floats top-right inside the copy; text wraps around it */
.founder-aside {
  float: right; width: 36%; margin: 4px 0 16px 24px;
}
.founder-aside img {
  width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.founder-aside figcaption {
  margin-top: 10px; font-size: .82rem; color: var(--muted-2);
  border-left: 3px solid var(--volt); padding-left: 12px;
}
.founder-badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(11,13,16,.74);
  color: #fff; border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: "Saira Condensed", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; font-size: .82rem;
  padding: 8px 14px; border-radius: 8px;
  box-shadow: 0 8px 22px -12px rgba(0,0,0,.7);
}
.founder-copy h2 { margin-bottom: 22px; }
.founder-copy p { color: var(--muted); margin: 0 0 16px; }
.founder-copy p b { color: var(--text); }
.founder-quote {
  margin: 22px 0 26px; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--danger);
  font-family: "Saira Condensed", sans-serif; font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.2;
  color: var(--text); text-transform: uppercase; letter-spacing: .3px;
}

/* ---------- gallery ---------- */
.gallery { background: var(--bg); }
.gallery-hint {
  margin: -34px 0 26px; color: var(--muted-2);
  font-family: "Saira Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: 2px; font-size: .82rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.g-item {
  margin: 0; padding: 0; border: 1px solid var(--line); background: var(--surface);
  overflow: hidden; border-radius: var(--radius-sm); position: relative;
  cursor: pointer; display: block; width: 100%; height: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease), filter .3s;
  filter: saturate(.95);
}
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at center, rgba(0,0,0,.45) 0%, transparent 55%),
    linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.g-item::before {
  content: "⤢"; position: absolute; z-index: 2; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.7);
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.85); border-radius: 50%;
  color: #fff; font-size: 1.2rem; opacity: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.08); filter: saturate(1.1); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
.g-item:hover::before, .g-item:focus-visible::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.g-item:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(5,7,9,.94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: clamp(16px, 4vw, 56px);
}
.lightbox.open { display: flex; animation: lbfade .25s var(--ease); }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure {
  margin: 0; max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.lb-figure img {
  max-width: 100%; max-height: 78vh; width: auto; height: auto;
  border-radius: 10px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
  animation: lbpop .3s var(--ease);
}
@keyframes lbpop { from { transform: scale(.96); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.lb-figure figcaption {
  color: var(--text); font-size: 1rem; text-align: center; max-width: 640px;
  font-family: "Saira", sans-serif;
}
.lb-btn {
  position: absolute; z-index: 2;
  background: rgba(22,26,32,.7); color: #fff; border: 1px solid var(--line);
  cursor: pointer; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s, transform .2s, border-color .2s;
}
.lb-btn:hover { background: var(--amber); color: #1a1206; border-color: var(--amber); }
.lb-close { top: 18px; right: 18px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; line-height: 1; }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-family: "Saira Condensed", sans-serif;
  letter-spacing: 2px; font-size: .9rem;
}

/* ---------- video / in motion ---------- */
.media { background: var(--bg-2); }
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.v-card { margin: 0; }
.v-card video {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); display: block;
}
.v-card figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; }

/* ---------- service area ---------- */
.area { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.area-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(34px, 5vw, 64px);
  align-items: center;
}
.area-copy h2 { margin-bottom: 20px; }
.area-copy p { color: var(--muted); margin: 0 0 16px; }
.area-note { font-size: .98rem; }
.area-note a { color: var(--volt); border-bottom: 1px solid rgba(79,125,255,.4); }
.area-copy .btn { margin-top: 12px; }
.area-map {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  height: 400px; background: var(--surface);
}
.area-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }

/* ---------- contact ---------- */
.contact {
  position: relative;
  background:
    radial-gradient(1100px 420px at 50% -10%, rgba(255,138,0,.16), transparent 60%),
    linear-gradient(180deg, var(--bg-2), #07090b);
  text-align: center;
}
.contact-inner { max-width: 720px; margin-inline: auto; }
.contact h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 18px; }
.contact-sub { color: var(--muted); font-size: 1.1rem; margin: 0 auto 36px; max-width: 560px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #07090b; border-top: 1px solid var(--line-soft); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
  padding: 56px 0 36px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-mark { width: 56px; height: 56px; object-fit: contain; }
.footer-name {
  font-family: "Saira Condensed", sans-serif; font-weight: 800;
  text-transform: uppercase; font-size: 1.3rem; margin: 0; letter-spacing: .5px;
}
.footer-tag { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a, .footer-contact span {
  color: var(--muted);
  font-family: "Saira Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: 1px; font-size: .95rem; transition: color .2s;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--amber); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px 0 40px; border-top: 1px solid var(--line-soft);
  color: var(--muted-2); font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(13,16,20,.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { width: 100%; padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.1rem; }
  .nav a::after { display: none; }
  .menu-toggle { display: block; }
  .header-call { display: none; }
  /* normal-sized logo on mobile (no downward overflow) */
  .brand-mark { width: 46px; height: 46px; margin-block: 0; top: 0; }

  .intro-grid, .training-grid, .area-grid, .founder-grid { grid-template-columns: 1fr; }
  .founder-figure { max-width: 360px; margin-inline: auto; }
  .founder-aside { float: none; width: 100%; margin: 18px 0; }
  .training-figure { order: 2; }
  .training-figure img { aspect-ratio: 16/10; max-height: 420px; }

  .strip-inner { grid-template-columns: 1fr; }
  .strip-inner span { border-left: 0; border-top: 1px solid var(--line-soft); padding: 16px 0; }
  .strip-inner span:first-child { border-top: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-title { font-size: clamp(1.55rem, 7vw, 2.2rem); }
  .hero-title .d-br { display: none; }
  .hero-content { padding-top: 56px; }
  .cap-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .media-grid { grid-template-columns: 1fr; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
  .area-map { height: 320px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .btn { width: 100%; }
  .contact-actions .btn { width: 100%; }
  .gallery-hint { margin-top: -22px; }
  .lb-figure img { max-height: 72vh; }
  .lb-close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-btn { width: 44px; }
}

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