/* ==========================================================================
   FZ Perio — Dr Fahad Zafar
   Layout system modelled on the drsamsaleh.com reference build.
   ========================================================================== */

/* --------------------------------------------------------------- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* --------------------------------------------------------------- Tokens -- */
:root {
  --text:   #3a3a3a;   /* body copy */
  --head:   #3a3a3a;   /* headings */
  --link:   #1e73be;   /* link blue */
  --black:  #000000;   /* header, bands, footer */
  --grey:   #999999;   /* footer text */
  --panel:  #f7f7f7;   /* alternating row background */
  --white:  #ffffff;
  --line:   #e2e2e2;

  --font: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --row-pad: 100px 20px;
  --wrap: 1425px;
}

/* ------------------------------------------------------------- Baseline -- */
body {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 300; color: var(--head); line-height: 1.2; }
h1 strong, h2 strong, h3 strong, h4 strong { font-weight: 700; }

.row-content p { font-size: 16px; line-height: 1.6; }
.row-content p + p { margin-top: 1.2em; }

/* --------------------------------------------------------------- Shells -- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap--narrow { max-width: 1100px; }

/* ------------------------------------------------------------- Top bar --- */
.topbar {
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 9px 20px;
}
.topbar-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  align-items: center;
}
.topbar a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- Header --- */
.site-header {
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
}
.header-bar {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.wordmark { display: inline-block; line-height: 0; }

/* The logo artwork is black on transparency — inverted to read white on the
   black header, band and footer. Fluid height keeps it in proportion with
   the viewport instead of jumping between fixed sizes at each breakpoint. */
.logo {
  height: clamp(38px, 8vw, 62px);
  width: auto;
  filter: invert(1);
}
.logo--band { height: clamp(28px, 5vw, 40px); }
.logo--footer { height: clamp(26px, 4vw, 34px); }

/* ----------------------------------------------------------------- Nav --- */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav-list {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
}
.nav-list a {
  display: block;
  padding: 4px 10px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0a0a0a;
  white-space: nowrap;
}
.nav-list a[aria-current="page"] { font-weight: 700; }

/* "Book a Consultation" — pinned to the far right edge of the nav bar so
   the remaining links stay centred as their own group. Higher specificity
   (.nav-list a.cta) so it wins over the plain link rules above regardless
   of source order. */
.nav-cta {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}
.nav-list a.cta {
  padding: 10px 22px;
  border: 1px solid var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: background .3s ease, color .3s ease;
}
.nav-list a.cta:hover { background: var(--text); color: var(--white); }

/* Hamburger toggle — hidden on desktop, shown beside the logo on mobile */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.burger { position: relative; width: 24px; height: 16px; }
.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 7px; }
.burger span:nth-child(3) { top: 14px; }
.nav-open .burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- Rows --- */
.row { width: 100%; }
.row-content {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--row-pad);
}
.row--panel { background: var(--panel); }
.row--white { background: var(--white); }
.row--tight .row-content { padding-block: 44px; }

/* Affiliations & credentials strip */
.logo-strip-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 30px;
}
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px 64px;
}
.logo-strip img {
  height: 92px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

/* Mobile marquee — hidden on desktop, where the static row above shows
   instead. The track holds the four logos twice; translating exactly -50%
   loops it seamlessly since that's the width of one full set. */
.logo-marquee { display: none; }
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: logo-marquee 16s linear infinite;
}
.logo-marquee-track img {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes logo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}

/* Two-column split, 50/50, as used for the doctor and philosophy rows */
.cols {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 0;
}
.col { flex: 1 1 50%; max-width: 50%; padding-inline: 20px; }
.col--text { text-align: center; }
.col--text h1,
.col--text h2 { font-size: clamp(26px, 4.2vw, 39px); line-height: 1.2; margin-bottom: 24px; }
.col--text p { font-size: 16px; line-height: 1.6; }
.col img { width: 100%; height: auto; }

/* Credential list — role over organisation, divided by hairlines */
.creds { margin-top: 34px; border-top: 1px solid var(--line); }
.creds li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.creds .role {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--head);
}
.creds .where {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: #7a7a7a;
}

/* Small eyebrow tag above a case title */
.case-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link);
}

/* Small centred rule used under the row headings */
.mark {
  width: 34px;
  height: 1px;
  background: var(--text);
  margin: 30px auto 0;
}

/* ---------------------------------------------------------------- Hero --- */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
/* Background video — the still image on .hero stays in place underneath as
   a fallback for the moment before the iframe loads (or if it's blocked).
   The iframe is oversized and centred so it always fills the box, the same
   trick used to make a fixed-ratio video behave like background-size:cover. */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;      /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh;  /* 16:9, height-driven */
  transform: translate(-50%, -50%);
}

/* Full-bleed scrim rather than a hard-edged panel — the gradient keeps the
   photograph readable behind the copy without cutting the image in two. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, .88) 0%,
    rgba(0, 0, 0, .74) 28%,
    rgba(0, 0, 0, .35) 55%,
    rgba(0, 0, 0, .12) 100%
  );
}

.hero-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 22px;
}
.hero-eyebrow-rule { display: inline-block; width: 22px; height: 1px; background: rgba(255, 255, 255, .6); }

.hero-panel h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-panel h1 strong { font-weight: 700; }

/* Credentials — a proper vertical list, one per line with a bullet marker,
   so they read as a credentials block rather than a quiet caption line. */
.hero-quals {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 50ch;
  padding-top: 20px;
  margin-bottom: 4px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-quals li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--white);
}
.hero-quals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

.hero-desc {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
  color: #e2e2e2;
  margin: 22px 0 0;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 40px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-stats strong {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.hero-stats span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, .68);
}

/* -------------------------------------------------------------- Buttons -- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 0.8px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.btn:hover { background: var(--white); color: var(--black); }

.btn--dark { border-color: var(--text); color: var(--text); }
.btn--dark:hover { background: var(--text); color: var(--white); }

.btn--solid { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--solid:hover { background: transparent; color: var(--white); }

/* ---------------------------------------------------------- Black band --- */
.band {
  background: var(--black);
  color: var(--white);
  padding: 20px;
}
.band-inner { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.band h2 {
  font-size: clamp(16px, 3vw, 23px);
  letter-spacing: clamp(2px, 0.6vw, 5px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--white);
}
.band .sep { height: 1px; background: rgba(255,255,255,.35); margin: 20px 0; }
.band .band-mark {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}
.band a.band-cta { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* -------------------------------------------------------------- Footer --- */
.site-footer {
  background: var(--black);
  color: var(--grey);
  font-size: 14px;
  line-height: 1.6;
  padding: 56px 20px 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-brand { flex: 1 1 260px; }
.footer-brand .logo--footer { filter: invert(1); margin-bottom: 14px; }
.footer-brand p { margin: 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8a8a; }

/* Social icons — plain letter monograms in a circle, kept deliberately
   generic rather than reproducing any platform's stylised logo mark. */
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--grey);
  transition: border-color .3s ease, color .3s ease;
}
.footer-social a:hover { border-color: var(--white); color: var(--white); }

.footer-col { flex: 1 1 180px; }
.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--grey); font-size: 14px; }
.footer-nav a:hover { color: var(--white); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a,
.footer-contact span { color: var(--grey); font-size: 14px; }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 12px;
  color: #6f6f6f;
}
.footer-bottom a:hover { color: var(--white); }

.credit { color: #f4c430; font-weight: 700; }
.credit:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------- Interior page header -- */
.page-title {
  background: var(--panel);
  padding: 60px 20px;
  text-align: center;
}
.page-title h1 { font-size: clamp(26px, 4.2vw, 39px); line-height: 1.2; }
.page-title p { font-size: 16px; line-height: 1.6; max-width: 780px; margin: 18px auto 0; }

/* ---------------------------------------------------------------- Grid --- */
/* CSS Grid with a gap, so the gutter lives between cards instead of as
   padding inside them — that keeps card imagery flush to the card edges. */
.grid { display: grid; gap: 36px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card > img { width: 100%; height: 240px; object-fit: cover; }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px 28px;
}
.card h3 { font-size: 20px; line-height: 1.3; margin: 0 0 12px; }
.card p { font-size: 15px; line-height: 1.65; }
.more {
  display: inline-block;
  color: #8f8f8f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color .25s ease;
}
.more:hover { color: var(--black); }
.card .more { margin-top: auto; padding-top: 20px; }

/* Case cards — the whole card is clickable via a stretched link rather than
   an <a> wrapper, so the draggable slider can sit above it without nesting
   interactive elements inside an anchor. */
.card--link { position: relative; color: inherit; }
.card--link:hover,
.card--link:has(.more:focus-visible) {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
  border-color: #cdcdcd;
}
.card--link:hover .more { color: var(--black); }

.more--stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Slider outranks the stretched link so dragging never navigates. */
.card--link .ba { position: relative; z-index: 2; }

/* ------------------------------------------------ Before / after slider -- */
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;          /* let the page scroll vertically on touch */
  cursor: ew-resize;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
/* The "after" frame is clipped from the left, so the divider position
   reveals more of it as the handle travels leftward. */
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: var(--white);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  touch-action: none;
}
.ba-handle::before,
.ba-handle::after {
  content: "";
  width: 0;
  height: 0;
  border-block: 5px solid transparent;
}
.ba-handle::before { border-right: 6px solid #2b2b2b; }
.ba-handle::after  { border-left: 6px solid #2b2b2b; }
.ba-handle:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.ba-tag {
  position: absolute;
  top: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, .55);
  padding: 4px 10px;
  pointer-events: none;
}
.ba-tag--before { left: 10px; }
.ba-tag--after { right: 10px; }

/* -------------------------------------------------------- Case elements -- */
/* Portfolio grid cards — stacked so each photo shows at full width */
.pair { display: flex; flex-direction: column; gap: 2px; }
.pair figure { margin: 0; position: relative; }
.pair img { width: 100%; height: auto; object-fit: contain; background: #000; }

/* Home page case study only — same width, ~30% shorter than the natural
   stacked height, cropped to a consistent frame instead of each photo's
   own aspect ratio. */
.pair--compact img { aspect-ratio: 2.68 / 1; object-fit: cover; }
.pair figcaption {
  position: absolute; left: 8px; top: 8px;
  background: rgba(255,255,255,.9);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 9px; color: var(--text);
}

/* Case detail hero — before/after side by side */
.pair--large { flex-direction: row; gap: 2px; }
.pair--large figure { flex: 1 1 50%; max-width: 50%; }
.pair--large img { width: 100%; height: 480px; object-fit: cover; background: #000; }

/* Additional case gallery — supporting photos below the treatment summary */
.gallery { display: flex; gap: 2px; margin-top: 2px; }
.gallery figure { flex: 1 1 33.333%; max-width: 33.333%; margin: 0; }
.gallery img { width: 100%; height: 220px; object-fit: cover; background: #000; }

.spec { border-top: 1px solid var(--line); text-align: left; }
.spec > div { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { flex: 0 0 200px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #7a7a7a; }
.spec dd { flex: 1 1 320px; margin: 0; font-size: 16px; line-height: 1.6; }

.case-nav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.case-nav a { color: var(--link); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.case-nav a:hover { text-decoration: underline; }

.note { font-size: 14px; color: #7a7a7a; font-style: italic; }

/* -------------------------------------------------------------- Contact -- */
.info { text-align: left; }
.info li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.info .k { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #7a7a7a; margin-bottom: 4px; }
.info .v { font-size: 17px; color: var(--text); }
.info a.v { color: var(--link); }
.info a.v:hover { text-decoration: underline; }

.form { text-align: left; display: flex; flex-wrap: wrap; margin-inline: -10px; }
.field { flex: 1 1 50%; max-width: 50%; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.field--full { flex-basis: 100%; max-width: 100%; }
.field label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #7a7a7a; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 16px; color: var(--text);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.form-foot { flex-basis: 100%; padding: 10px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.form-foot .fine { font-size: 13px; color: #7a7a7a; }

/* ----------------------------------------------------------- Responsive -- */
@media (max-width: 1024px) {
  .nav-list a { font-size: 15px; padding: 4px 8px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet / mobile nav switches to the burger menu */
@media (max-width: 880px) {
  :root { --row-pad: 60px 20px; }

  .header-bar { justify-content: space-between; }
  .nav-toggle { display: flex; }

  .site-nav { position: relative; }
  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
  }
  .nav-open .nav-list { max-height: 70vh; padding: 8px 20px 18px; overflow-y: auto; }
  .nav-list a {
    font-size: 17px;
    letter-spacing: 0.03em;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    position: static;
    transform: none;
    width: 100%;
    margin: 16px 0 0;
  }
  .nav-list a.cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 4px;
    border: 1px solid var(--text);
  }

  .col { flex-basis: 100%; max-width: 100%; padding-inline: 0; }
  .cols { gap: 34px 0; }
  .col--photo { order: -1; }

  /* aspect-ratio (not min-height) would lock the box to a fixed height —
     on a narrow phone that's shorter than the copy needs, and the overflow
     spills out above the image with no overlay behind it. min-height keeps
     the portrait feel while letting the box grow to fit the content. */
  .hero {
    min-height: 100vh;
    aspect-ratio: auto;
    align-items: flex-end;
  }
  /* Skip the video on smaller screens — a landscape iframe would letterbox
     badly against the portrait crop, and autoplaying video on mobile data
     is a poor default. The still image on .hero shows through instead. */
  .hero-video-wrap { display: none; }
  /* Portrait crop — the scrim runs bottom-up, darkest at the base, so the
     copy always sits on solid black rather than fading photo detail. */
  .hero::before {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, .96) 0%,
      rgba(0, 0, 0, .82) 30%,
      rgba(0, 0, 0, .4) 62%,
      rgba(0, 0, 0, .1) 100%
    );
  }
  .hero-panel {
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
    padding: 0 24px 44px;
  }
  .hero-panel h1 { max-width: none; }

  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn {
    flex: 0 1 auto;
    white-space: nowrap;
    padding: 12px 16px;
    font-size: 12px;
    letter-spacing: 0.01em;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
  }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .field { flex-basis: 100%; max-width: 100%; }

  .topbar-inner { justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; }

  .pair--large img { height: 300px; }
  .spec dt { flex-basis: 100%; }
}

/* Small phones — tighten spacing and stack anything still two-up */
@media (max-width: 560px) {
  .row-content,
  .page-title,
  .band-inner { padding-inline: 16px; }

  .card img { height: 200px; }

  .logo-strip { display: none; }
  .logo-marquee { display: block; overflow: hidden; width: 100%; }
  .gallery { flex-direction: column; }
  .gallery figure { flex-basis: 100%; max-width: 100%; }
  .gallery img { height: 240px; }

  .pair--large { flex-direction: column; }
  .pair--large figure { flex-basis: 100%; max-width: 100%; }
  .pair--large img { height: 260px; }

  .case-nav { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .logo { height: 34px; }
  .nav-list a { font-size: 16px; }
  .topbar { font-size: 10px; }
}
