/* ==========================================================================
   Purified Solutions — Design System
   Palette: brand blue #40c6fc, deep blue #2b6dab, black, white
   Type: Oswald (display) / IBM Plex Sans (body)
   ========================================================================== */

:root {
  --blue: #40c6fc;
  --blue-deep: #2b6dab;
  --blue-deep-dark: #1f4f7d;
  --ink: #0a0e12;
  --white: #ffffff;
  --paper: #f6fafd;
  --line: #e1ecf3;
  --mist: #eef6fb;
  --gray: #5a6b78;

  --font-display: "Oswald", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;

  --container: 1220px;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(10, 14, 18, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 14, 18, 0.10);
  --shadow-blue: 0 14px 34px rgba(43, 109, 171, 0.28);

  --d: 650ms;
  --e: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; color: var(--gray); }

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

/* Section eyebrow labels removed site-wide — read as filler on a real business site. */
.eyebrow { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary, .btn-dark {
  background: var(--blue-deep);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover, .btn-dark:hover { background: var(--blue-deep-dark); transform: translateY(-2px); }

.btn-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn-light:hover { transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--blue-deep); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
}
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { height: 40px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0;
  color: var(--ink);
  text-transform: lowercase;
}
.brand-word em { font-style: normal; color: var(--blue-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-phone {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue-deep);
}

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: -20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 260px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}
.dropdown a:hover { background: var(--mist); color: var(--blue-deep); }

.nav-toggle { display: none; }
.nav-mobile-icons { display: none; }
.nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-icon-btn:hover { background: var(--line); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  margin-bottom: 18px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { font-size: 0.92rem; transition: color 0.15s ease; }
.footer-grid a:hover { color: var(--blue); }

.footer-brand .brand-footer { margin-bottom: 16px; }
.footer-brand .brand-word { color: var(--white); }
.footer-brand .brand-word em { color: var(--blue); }
.footer-brand p { max-width: 280px; font-size: 0.9rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Utility sections ---------- */

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-paper { background: var(--paper); }
.bg-mist { background: var(--mist); }
.bg-deep {
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-deep-dark) 100%);
  color: var(--white);
}
.bg-deep p { color: rgba(255,255,255,0.75); }
.bg-deep h2, .bg-deep h3 { color: var(--white); }

.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(43,109,171,0.35); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-deep);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page-intro hero (inner pages: about, contact, services, industries) ---------- */

.hero { padding: 64px 0 80px; }
.hero-lede { font-size: 1.1rem; color: var(--gray); max-width: 56ch; }
.hero-cta { display: flex; gap: 16px; margin: 28px 0 8px; flex-wrap: wrap; }

/* ---------- Home hero (dark, full-bleed, homepage only) ---------- */

.home-hero {
  background-image: linear-gradient(90deg, rgba(6,8,10,0.92) 0%, rgba(6,8,10,0.72) 35%, rgba(6,8,10,0.32) 65%, rgba(6,8,10,0.05) 100%), var(--hero-img, none);
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 96px 0 72px;
}
.home-hero h1 { color: var(--white); max-width: 16ch; }
.home-hero .hero-lede { color: rgba(255,255,255,0.82); max-width: 54ch; font-size: 1.15rem; }
.home-hero .hero-cta { margin-top: 30px; }

/* ---------- Photo hero (inner pages with a placed background image) ---------- */

.hero-photo {
  background-image: linear-gradient(120deg, rgba(10,14,18,0.82) 0%, rgba(31,79,125,0.76) 100%), var(--hero-img, none);
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero-photo h1 { color: var(--white); }
.hero-photo .hero-lede { color: rgba(255,255,255,0.85); }

/* ---------- Stat strip ---------- */

.stat-strip { border-bottom: 1px solid var(--line); }
.stat-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-strip-grid > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 30px 28px;
  border-left: 3px solid var(--blue-deep);
}
.stat-icon { display: none; flex-shrink: 0; color: var(--blue-deep); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--ink);
}
.stat-label {
  display: block;
  font-size: 0.86rem;
  color: var(--gray);
  margin-top: 4px;
}

/* ---------- Trust strip label ---------- */

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--gray);
  text-align: center;
  margin: 0;
}

/* ---------- Hover-reveal industry cards ---------- */

.reveal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.reveal-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 300px;
  padding: 1.75rem;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.reveal-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 110%;
  background-image: var(--card-img, none);
  background-color: var(--blue-deep-dark);
  background-size: cover;
  background-position: center;
  transition: transform calc(var(--d) * 1.5) var(--e);
  pointer-events: none;
}
.reveal-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 200%;
  pointer-events: none;
  background-image: linear-gradient(
    to bottom,
    hsla(210, 30%, 8%, 0) 0%,
    hsla(210, 30%, 8%, 0.05) 20%,
    hsla(210, 30%, 8%, 0.18) 40%,
    hsla(210, 30%, 8%, 0.38) 58%,
    hsla(210, 30%, 8%, 0.6) 74%,
    hsla(210, 30%, 8%, 0.8) 88%,
    hsla(210, 30%, 8%, 0.88) 100%
  );
  transform: translateY(-50%);
  transition: transform calc(var(--d) * 2) var(--e);
}
.reveal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  transition: transform var(--d) var(--e);
}
.reveal-content > * + * { margin-top: 0.6rem; }
.reveal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}
.reveal-copy { color: rgba(255,255,255,0.85); font-size: 0.92rem; margin: 0; }
.reveal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 6px;
  padding: 9px 16px;
}

@media (min-width: 600px) {
  .reveal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .reveal-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (hover: hover) and (min-width: 900px) {
  .reveal-card::after { transform: translateY(0); }
  .reveal-content { transform: translateY(calc(100% - 3.2rem)); }
  .reveal-content > *:not(.reveal-title) {
    opacity: 0;
    transform: translateY(0.75rem);
    transition: transform var(--d) var(--e), opacity var(--d) var(--e);
  }
  .reveal-card:hover::before,
  .reveal-card:focus-within::before { transform: translateY(-4%); }
  .reveal-card:hover::after,
  .reveal-card:focus-within::after { transform: translateY(-50%); }
  .reveal-card:hover .reveal-content,
  .reveal-card:focus-within .reveal-content { transform: translateY(0); }
  .reveal-card:hover .reveal-content > *:not(.reveal-title),
  .reveal-card:focus-within .reveal-content > *:not(.reveal-title) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--d) / 8);
  }
}

/* ---------- Photo card (image bg + overlay content) ---------- */

.photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  padding: 28px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
}
.photo-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--card-img, none);
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
}
.photo-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,14,18,0.86) 0%, rgba(10,14,18,0.15) 65%, rgba(10,14,18,0) 100%);
}
.photo-card-content { position: relative; z-index: 1; }
.photo-card-content h3 { color: var(--white); margin-bottom: 10px; }
.photo-card-content p { color: rgba(255,255,255,0.85); margin: 0; }
.photo-card-content .check-list-light li { font-size: 0.92rem; }

/* ---------- Catalog card thumbnails ---------- */

.card-thumb {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 18px;
}
.card-thumb-contain {
  object-fit: contain;
  background: var(--white);
  padding: 14px;
}

/* ---------- Dark catalog card (photo + white text on brand blue) ---------- */

.card-dark {
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-deep-dark) 100%);
  border-color: transparent;
}
.card-dark h3 { color: var(--white); }
.card-dark p { color: rgba(255,255,255,0.78); }

/* ---------- Check lists ---------- */

.check-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 5px;
  width: 8px; height: 13px;
  border-right: 2.5px solid var(--blue-deep);
  border-bottom: 2.5px solid var(--blue-deep);
  transform: rotate(45deg);
}
.check-list-light li { color: var(--white); }
.check-list-light li::before { border-color: var(--blue); }

/* ---------- Stack cards (hero-adjacent) ---------- */

.stack-cards { display: grid; gap: 20px; }
.photo-card-short { min-height: 200px; padding: 24px; }

.nx-feature { align-items: center; }
.nx-image { width: 100%; max-width: 520px; margin: 0 auto; display: block; }
.nx-thumb { height: 240px; }

.fleet-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Scent grid / industry cards ---------- */

.scent-grid .card { padding: 24px; }
.scent-grid h3 { margin-bottom: 8px; font-size: 1.1rem; }
.scent-grid p { font-size: 0.9rem; margin: 0; }

.section-head { max-width: 640px; margin: 0 auto 48px; }

.industry-card { display: block; }
.industry-card h3 { margin-bottom: 8px; }
.industry-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Contact page ---------- */

.contact-grid { align-items: start; gap: 32px; }

.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 6px; }
.form-row-split { grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
}
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(43,109,171,0.2);
}
.contact-form .btn { justify-self: start; }
.form-fallback-note { font-size: 0.85rem; color: var(--gray); margin: 4px 0 0; }
.form-fallback-note a { color: var(--blue-deep); font-weight: 600; text-decoration: underline; }

.contact-info { display: grid; gap: 20px; }
.contact-info-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 14px;
  font-weight: 600;
}
.contact-info-item { margin: 0 0 10px; font-weight: 500; color: var(--ink); }
.contact-info-item a { color: var(--ink); }
.contact-info-item a:hover { color: var(--blue-deep); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
}

/* ---------- Step grid (8-step process) ---------- */

.step-grid {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-grid li {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.step-grid .step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 10px;
}
.step-grid h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.step-grid p { color: rgba(255,255,255,0.65); font-size: 0.86rem; margin: 0; }

@media (max-width: 980px) {
  .step-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .step-grid { grid-template-columns: 1fr; }
}

/* ---------- Service tiers ---------- */

.tier-card { position: relative; text-align: center; }
.tier-card h3 { margin-bottom: 12px; }
.tier-card p { font-size: 0.92rem; }
.tier-card-highlight { border-color: var(--blue-deep); box-shadow: var(--shadow-blue); }
.tier-card-highlight .service-hub-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; }

/* ---------- Service hub grid ---------- */

.service-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-hub-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-hub-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(43,109,171,0.35); }
.service-hub-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--mist);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.service-hub-card h2 { font-size: 1.5rem; margin-bottom: 12px; }
.service-hub-card p { font-size: 0.94rem; }
.service-hub-link { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--ink); font-size: 0.92rem; }

@media (max-width: 980px) {
  .service-hub-grid { grid-template-columns: 1fr; }
}

/* ---------- Compare grid (about page) ---------- */

.compare-grid { margin-top: 40px; gap: 28px; align-items: stretch; }
.compare-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); }
.compare-card h3 { color: var(--white); margin-bottom: 18px; }
.compare-card-highlight { background: var(--white); border-color: transparent; }
.compare-card-highlight h3 { color: var(--ink); }
.compare-card-highlight .check-list li { color: var(--ink); }

.x-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.x-list li {
  position: relative;
  padding-left: 30px;
  color: rgba(255,255,255,0.7);
  font-size: 0.98rem;
}
.x-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.x-list li::after {
  content: "\2715";
  position: absolute;
  left: 4px; top: 2px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-deep-dark) 100%);
  border-radius: 12px;
  margin: 96px auto;
  max-width: calc(var(--container) - 0px);
}
.cta-band h2 { color: var(--white); }
.cta-band-sub { color: var(--gray); max-width: 46ch; margin: 0 auto 32px; }
.cta-band .cta-band-sub { color: rgba(255,255,255,0.78); }

@media (max-width: 980px) {
  .step-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* Narrow viewports crop the hero photo horizontally around its center,
     which pulls the trailer's logo/QR code right under the headline text.
     Shift the crop left so plain wall/sky sits behind the text instead. */
  .home-hero {
    background-position: left center;
    background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), var(--hero-img, none);
  }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-icons { display: flex; align-items: center; gap: 8px; margin-right: 4px; }
  .brand { flex-shrink: 1; }
  .brand-word { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-toggle {
    display: block;
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
  }
  .nav-links-open {
    display: flex !important;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }
  .nav-links-open li { width: 100%; }
  .nav-links-open a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.1s ease, color 0.1s ease, border-color 0.1s ease;
  }
  /* No hover underline on mobile — it's a hover-state effect that gets
     stuck "on" after a tap on touch devices instead of clearing. */
  .nav-links-open a::after { content: none; }

  /* Sub-menus are always expanded on mobile — tap-to-reveal doesn't work
     well on touch (no real hover state) and hid content behind an extra
     tap for no reason. They're just an indented, always-visible section
     of the same list now, styled as flat rows instead of a floating
     desktop-style card. */
  .nav-links-open .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none;
    padding: 0 0 4px 16px;
    min-width: 0;
    display: block;
    transition: none;
  }
  .nav-links-open .dropdown a {
    border-radius: 0;
    padding: 10px 0;
    font-size: 0.88rem;
    color: var(--gray);
  }

  /* The one animation kept on mobile: the whole menu cascades in when the
     hamburger opens it, instead of snapping open instantly. */
  .nav-links-open > li {
    opacity: 0;
    animation: nav-cascade-in 0.32s ease forwards;
  }
  .nav-links-open > li:nth-child(1) { animation-delay: 0.02s; }
  .nav-links-open > li:nth-child(2) { animation-delay: 0.08s; }
  .nav-links-open > li:nth-child(3) { animation-delay: 0.14s; }
  .nav-links-open > li:nth-child(4) { animation-delay: 0.20s; }
  .nav-links-open > li:nth-child(5) { animation-delay: 0.26s; }
  @keyframes nav-cascade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Tap feedback: flash the row blue/white, then main.js navigates. */
  .nav-links-open a.nav-link-active {
    background: var(--blue-deep);
    color: var(--white);
    border-color: transparent;
  }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-strip-grid { grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
  .stat-strip-grid > div {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 22px 10px;
    border-left: none;
    background: var(--white);
  }
  .stat-icon { display: block; }
  .stat-num { font-size: 1.35rem; }
  .stat-label { margin-top: 0; font-size: 0.76rem; }
  .section { padding: 56px 0; }
  .cta-band { margin: 56px 12px; border-radius: 10px; }
}
