/* ===========================================================
   Valley PT & Sports Performance — design tokens
   Palette drawn from existing brand: navy #050156, blue #00A0EC
   =========================================================== */

:root{
  --navy: #050156;
  --navy-soft: #14104f;
  --blue: #00A0EC;
  --blue-text: #08689B;
  --blue-light: #3DC5F2;
  --blue-deep: #0B7FBE;
  --blue-soft: #e6f6fd;
  --paper: #F6F7FA;
  --ink: #0B0B12;
  --ink-soft: #4A4E5C;
  --line: #E2E5EC;
  --error: #D64545;

  --font-display: "Lato", "Arial Narrow", sans-serif;
  --font-body: "Lato", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 2px;
  --max: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* -------- eyebrow / mono labels -------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before{
  content: "";
  width: 16px;
  height: 1px;
  background: var(--blue);
  display: inline-block;
}

/* -------- headings -------- */
h1, h2, h3{
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
h1{ font-size: clamp(2.6rem, 5vw, 4.4rem); }
h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3{ font-size: 1.25rem; }

p{ margin: 0 0 1.5em; color: var(--ink-soft); }
p:last-child{ margin-bottom: 0; }

/* -------- header / nav -------- */
header.site{
  border-bottom: 1px solid var(--line);
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--blue-light), var(--blue), var(--blue-deep)) 1;
  position: sticky;
  top: 0;
  background: rgba(246,247,250,0.92);
  backdrop-filter: blur(8px);
  z-index: 20;
}
header.site .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo-mark{
  height: 38px;
  width: auto;
  display: block;
}
.logo{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo span{ color: var(--blue-text); }
nav.primary{ display: flex; align-items: center; gap: 32px; }
nav.primary a{
  text-decoration: none;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}
nav.primary a:hover{ color: var(--blue-text); }

.btn{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary{ background: var(--navy); color: #fff !important; }
.btn-primary:hover{ background: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost{ border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover{ background: var(--navy); color: #fff; }

/* -------- mobile nav toggle -------- */
.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span{
  width: 22px;
  height: 2px;
  background: var(--navy);
  display: block;
}
.nav-scrim{ display: none; }

/* -------- bio -------- */
.bio-grid{
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}
.bio-photo{
  aspect-ratio: 4/5;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
}
.bio-photo span{ padding: 20px; }

.float-img{
  float: left;
  width: 340px;
  margin: 8px 32px 20px 0;
  border-radius: 14px;
}

/* -------- FAQ -------- */
.faq-list{ max-width: 760px; }
.faq-item{
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  font-family: var(--font-mono);
  color: var(--blue-text);
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after{ content: "−"; }
.faq-item p{ margin-top: 14px; padding-right: 40px; }

/* -------- video lightbox -------- */
.video-thumb{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--navy);
  cursor: pointer;
  overflow: hidden;
  border: none;
  border-radius: 14px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  font: inherit;
}
.video-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.video-thumb:hover img{ transform: scale(1.04); }
.video-thumb::after{
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 68px; height: 48px;
  border-radius: 12px;
  background: rgba(0,0,0,.65);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.5v-9l7 4.5-7 4.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px;
  transition: background-color .15s, transform .15s;
}
.video-thumb:hover::after{ background-color: #FF0000; transform: translate(-50%,-50%) scale(1.06); }

.video-lightbox{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,1,86,.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-lightbox.open{ display: flex; }
.video-lightbox-inner{
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}
.video-lightbox-inner iframe{
  width: 100%;
  height: 100%;
  border: 0;
}
#videoLightboxFrame{
  width: 100%;
  height: 100%;
}
.video-lightbox-close{
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* -------- rich youtube cards -------- */
.yt-grid{ display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.yt-card{
  position:relative; border-radius:14px; overflow:hidden;
  background:var(--navy); cursor:pointer; display:block; border:none; padding:0; width:100%;
}
.yt-card img{ width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.yt-card-scrim{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(5,1,86,.55) 0%, rgba(5,1,86,.15) 35%, rgba(5,1,86,.1) 60%, rgba(5,1,86,.55) 100%);
}
.yt-card-header{ position:absolute; top:16px; left:16px; right:16px; display:flex; align-items:center; gap:10px; }
.yt-card-avatar{ width:34px; height:34px; border-radius:50%; object-fit:cover; border:2px solid #fff; flex-shrink:0; }
.yt-card-channel{ color:#fff; font-weight:700; font-size:13.5px; text-shadow:0 1px 4px rgba(0,0,0,.5); }
.yt-card-title{
  position:absolute; top:60px; left:16px; right:16px; color:#fff;
  font-family:var(--font-display); font-weight:800; font-size:1.25rem; line-height:1.15;
  text-shadow:0 2px 10px rgba(0,0,0,.6);
}
.yt-card-play{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:60px; height:60px; border-radius:50%; background:rgba(0,0,0,.55);
  display:flex; align-items:center; justify-content:center; transition:background .15s;
}
.yt-card:hover .yt-card-play{ background:#FF0000; }
.yt-card-watch{
  position:absolute; bottom:14px; right:14px; background:#fff; color:var(--navy);
  font-family:var(--font-mono); font-size:11.5px; font-weight:700; text-transform:uppercase;
  padding:9px 14px; border-radius:6px; display:flex; align-items:center; gap:6px;
  text-decoration:none; letter-spacing:.03em;
}
.yt-card-watch:hover{ background:var(--blue); color:#fff; }
.yt-card-desc{ margin-top:16px; font-size:15px; color:var(--ink-soft); line-height:1.6; }
.yt-channel-cta{
  display:block; text-align:center; margin:40px auto 0; max-width:420px;
  background:var(--navy); color:#fff; font-family:var(--font-mono); font-size:13px;
  font-weight:700; text-transform:uppercase; letter-spacing:.04em; text-decoration:none;
  padding:18px 24px; border-radius:10px; transition:background .15s;
}
.yt-channel-cta:hover{ background:var(--blue-deep); }
.yt-card.video-thumb::after{ content: none; }

/* -------- scroll reveal -------- */
.reveal{
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.reveal-right{ transform: translateX(28px); }
.reveal.reveal-up{ transform: translateY(22px); }
.reveal.visible{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* -------- welcome band -------- */
.welcome-band{
  background: var(--navy);
  padding: 22px 0;
}
.welcome-line{
  color: #fff;
  font-size: 1.05rem;
  margin: 8px 0 0;
  max-width: 60ch;
}

/* -------- nav active state -------- */
nav.primary a.active{
  color: var(--blue-text);
  position: relative;
}
nav.primary a.active::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--blue);
}

/* -------- hero -------- */
.hero{
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(rgba(5,1,86,.74), rgba(5,1,86,.58)), url('/assets/img/hero-mountains.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero .eyebrow{ color: var(--blue-light); }
.hero .eyebrow::before{ background: var(--blue-light); }
.hero h1{ color: #fff; }
.hero .btn-ghost{ border-color: rgba(255,255,255,.65); color: #fff; }
.hero .btn-ghost:hover{ background: #fff; color: var(--navy); }
.hero .gait-figure{ box-shadow: 0 12px 32px rgba(5,1,86,.25); }
.hero .wrap{ position: relative; z-index: 1; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-centered{
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.hero-centered .eyebrow{ justify-content: center; }
.hero-centered .lede{ margin-left: auto; margin-right: auto; }
.hero-centered .hero-ctas{ justify-content: center; }
.hero h1{ margin: 18px 0 22px; }
.hero .lede{
  font-size: 1.15rem;
  max-width: 62ch;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 12px rgba(5,1,86,.5);
  margin-bottom: 34px;
}
.hero-ctas{ display: flex; gap: 14px; flex-wrap: wrap; }

.gait-figure{
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px;
  border-radius: 14px;
}
.gait-figure figcaption{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
}
#compLine{
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
.gait-figure.playing #compLine{
  animation: draw 4.6s ease-out forwards, settle 4.6s ease-out forwards;
}
#fixLine{
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  opacity: 0;
}
.gait-figure.playing #fixLine{
  animation: draw2 2.8s 4.2s ease-out forwards;
}
@keyframes draw{ to{ stroke-dashoffset: 0; } }
@keyframes draw2{ 0%{ opacity:0; } 10%{ opacity:1; } 100%{ stroke-dashoffset: 0; opacity: 1; } }
@keyframes settle{ 0%,88%{ opacity:1; } 100%{ opacity: .25; } }
@keyframes labelSettle{ 0%,88%{ opacity:1; } 100%{ opacity: .55; } }
@keyframes labelFadeIn{ 0%,80%{ opacity:0; } 100%{ opacity:1; } }
@keyframes dotsFadeIn{ 0%,15%{ opacity:0; } 40%,80%{ opacity:1; } 100%{ opacity: .4; } }

#compLabel{ opacity: 0; }
.gait-figure.playing #compLabel{ animation: labelSettle 4.6s ease-out forwards; }
.gait-figure.playing #fixLabel{ animation: labelFadeIn 3.4s 4.2s ease-out forwards; }
#compDots{ opacity: 0; }
.gait-figure.playing #compDots{ animation: dotsFadeIn 4.6s ease-out forwards; }

.gait-caption-row{ display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.gait-caption{
  font-size: 13.5px;
  color: var(--ink-soft);
  opacity: 0;
  max-width: 46%;
}
.gait-caption.before{ text-align: left; }
.gait-caption.after{ text-align: right; }
.gait-figure.playing .gait-caption.before{ animation: labelFadeIn 3.4s ease-out forwards; }
.gait-figure.playing .gait-caption.after{ animation: labelFadeIn 3.4s 4.2s ease-out forwards; }

@media (prefers-reduced-motion: reduce){
  #compLine, #fixLine{ animation: none; stroke-dashoffset: 0; opacity: .9; }
  #compLabel, #fixLabel, #compDots{ animation: none; opacity: 1; }
}

/* -------- stat strip -------- */
.stat-strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.stat-strip .wrap{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat{
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child{ border-right: none; }
.stat .num{
  font-family: var(--font-mono);
  font-size: 1.9rem;
  color: var(--navy);
  font-weight: 700;
}
.stat .lbl{
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* -------- sections -------- */
section{ padding: 84px 0; }
.section-head{
  max-width: 60ch;
  margin-bottom: 48px;
}
.section-head h2{ margin-top: 14px; }

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cert-list{ border-top: 1px solid var(--line); }
.cert-row{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.cert-row h3{ margin: 0; font-size: 1.05rem; }
.cert-row p{ margin: 0; color: var(--ink-soft); }
.card{
  background: #fff;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.card .eyebrow{ margin-bottom: 16px; }
.card h3{ margin-bottom: 10px; }

.values-belt{
  background: var(--navy);
  color: #fff;
}
.values-belt .section-head h2, .values-belt .section-head p{ color: #fff; }
.values-belt .section-head p{ color: rgba(255,255,255,.7); }
.values-row{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.value{ max-width: none; }
.value .letter{
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--blue-text);
  font-weight: 700;
  line-height: 1;
}
.value h4{ color: #fff; margin: 10px 0 6px; font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
.value p{ color: rgba(255,255,255,.65); font-size: 13.5px; margin: 0; }

/* -------- blog list -------- */
.post-row{
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.post-row .thumb{
  width: 90px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.post-row .date{ font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); width: 90px; flex-shrink: 0; }
.post-row h3{ font-size: 1.15rem; transition: color .15s; flex-grow: 1; margin: 0; }
.post-row .arrow{ font-family: var(--font-mono); color: var(--blue-text); flex-shrink: 0; }
.post-row:hover h3{ color: var(--blue-text); }

/* -------- post -------- */
.post-body{ max-width: 68ch; margin: 0 auto; }
.post-body::after{ content: ""; display: table; clear: both; }
.flow-body::after{ content: ""; display: table; clear: both; }
.page-body p{ max-width: 760px; font-size: 1.05rem; color: var(--ink); }
.page-body .callout{ max-width: 760px; }
.page-body h2{ margin-top: 2em; margin-bottom: .5em; font-size: 1.5rem; }
.post-body h2{ margin-top: 2em; margin-bottom: .5em; font-size: 1.5rem; clear: left; }
.post-body p{ font-size: 1.05rem; color: var(--ink); }
.post-body ol, .post-body ul{ padding-left: 1.4em; margin: 0 0 1.2em; }
.post-body li{ margin-bottom: 0.6em; font-size: 1.05rem; }
.post-body .callout{
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  padding: 16px 22px;
  margin: 26px 0;
  font-size: 15px;
}
.post-body .callout strong{ color: var(--navy); }
.post-img{ margin: 32px 0; }
.post-img img{
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.post-img-featured{ margin: 24px 0 36px; }
.post-img-portrait{ max-width: 420px; margin-left: auto; margin-right: auto; }
.post-img-portrait img{ max-height: none; }
.post-img-featured img{ max-height: 420px; object-fit: contain; background: #fff; }
.post-meta{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
}

/* -------- testimonials -------- */
.testimonial{
  background: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial .quote-mark{
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 6px;
}
.testimonial p{
  color: var(--ink);
  font-size: 15px;
  flex-grow: 1;
}
.testimonial .attribution{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--navy);
  margin-top: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* -------- cta band -------- */
.cta-band{
  background: var(--blue-soft);
  text-align: center;
}
.cta-band h2{ margin-bottom: 16px; }
.cta-band p{ max-width: 50ch; margin: 0 auto 32px; }

/* -------- contact form -------- */
.contact-form{ max-width: 560px; }
.contact-form .row2{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form textarea{ min-height: 140px; resize: vertical; }
.contact-form input, .contact-form textarea{
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 14px;
}
#contactStatus{ font-size: 14px; margin-top: 10px; display: none; }
#contactStatus.success{ color: var(--blue-deep); display: block; }
#contactStatus.error{ color: var(--error); display: block; }

/* -------- social icons -------- */
.social-icons{ display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.social-icons a{
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.social-icons a:hover{ background: var(--blue); }

/* -------- accessibility -------- */
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link{
  position: absolute;
  top: -60px; left: 12px;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 300;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus{ top: 12px; }

/* Visible keyboard focus everywhere — never remove this without replacing it */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible{
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.form-confirm{
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  padding: 24px 28px;
  border-radius: 4px;
}
.form-confirm p{ font-size: 1.05rem; margin-bottom: 16px; color: var(--navy); }

.form-disclaimer{
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.field-wrap{ width: 100%; }
.social-icons svg{ width: 16px; height: 16px; fill: #fff; }

/* -------- map -------- */
.map-embed{
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
  filter: grayscale(0.15);
}

/* -------- footer -------- */
footer.site{
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
  font-size: 14px;
}
footer.site .wrap{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
footer.site a{ color: #fff; text-decoration: none; }
footer.site .foot-bottom{
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-family: var(--font-mono);
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 860px){
  .yt-grid{ grid-template-columns: 1fr; }
  .bio-grid{ grid-template-columns: 1fr; gap: 28px; }
  .bio-photo{ aspect-ratio: 16/10; }
  .float-img{ float: none; width: 100%; margin: 0 0 20px; }
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: 1fr; }
  .cert-row{ grid-template-columns: 1fr; gap: 8px; }
  .stat-strip .wrap{ grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2){ border-right: none; }
  .values-row{ grid-template-columns: repeat(2, 1fr); }
  .post-row{ flex-wrap: wrap; gap: 10px 14px; }
  .post-row .thumb{ order: -1; }

  .nav-toggle{ display: flex; }
  nav.primary{
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }
  nav.primary.open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  nav.primary a:not(.btn){
    display: block;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
  }
  nav.primary .btn{
    margin: 12px 28px 4px;
    justify-content: center;
  }
}
