/* ──────────────────────────────────────────────
   eyeTech Medical Solutions — zellij + clean theme
   Design system carried over from eyeTech Labs & Studios
   (eyetechLP), with the gold accent swapped for the
   eyeTech brand red.
─────────────────────────────────────────────── */

:root {
  /* Palette */
  --onyx:    #0A0A0A;
  --ink:     #0F1728;   /* eyetech.me's heading/label navy */
  --chalk:   #F7F7F5;
  --paper:   #FFFFFF;
  --stone:   #6B6B6B;
  --muted:   #363636;
  --lighter: #585858;

  /* Red replaces gold as the accent throughout. */
  --red:      #A2172E;
  --red-deep: #7D1223;
  --red-tint: rgba(162, 23, 46, 0.07);
  --border:   rgba(162, 23, 46, 0.32);
  --hairline: rgba(162, 23, 46, 0.16);

  /* Shared surface — soft rounded white panels over the zellij pattern. */
  --card-bg:     rgba(255, 255, 255, 0.82);
  --card-border: transparent;
  --card-radius: 14px;
  --card-shadow: 0 18px 44px rgba(20, 16, 8, 0.07);

  /* Typography — lifted off eyetech.me: Inter Tight 700 for the hero headline,
     Inter 600 for section headings, Inter 400/500 for copy at 18–20px. */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-display: var(--font-sans);
  --font-hero:    'Inter Tight', var(--font-sans);

  --fs-h1:        clamp(34px, 4.6vw, 60px);
  --fs-h2:        clamp(28px, 3.2vw, 40px);
  --fs-statement: clamp(22px, 2.4vw, 28px);
  --fs-h3:        20px;
  --fs-lede:      18px;
  --fs-body:      18px;
  --fs-label:     12px;

  --fw-heading:   600;
  --fw-body:      400;
  --fw-label:     600;

  --lh-h1:        1.03;
  --lh-h2:        1.12;
  --lh-body:      1.7;
  --ls-label:     0.18em;

  /* Layout */
  --max-w:  1180px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --nav-h:  66px;
}

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

body {
  min-height: 100vh;
  background: #fdfcf9;
  color: var(--onyx);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

/* ── Zellij backdrop ─────────────────────────── */

.zellij-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #e0e0e0;
}

.zellij-scene {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
}

/* White veil so the pattern reads as a texture, not a photograph — same
   treatment the Labs & Studios pages put over their scroll container. */
.zellij-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.52)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.5));
}

.zellij-scene--1 { background-image: url('assets/zellij/zellij-user-6.webp'); }
.zellij-scene--2 { background-image: url('assets/zellij/zellij-user-7.webp'); }
.zellij-scene--3 { background-image: url('assets/zellij/zellij-user-9.webp'); }
.zellij-scene--4 { background-image: url('assets/zellij/zellij-user-10.webp'); }
.zellij-scene--5 { background-image: url('assets/zellij/zellij-user-11.webp'); }
.zellij-scene--6 { background-image: url('assets/zellij/zellij-user-13.webp'); }
.zellij-scene--7 { background-image: url('assets/zellij/zellij-user-14.webp'); }
.zellij-scene--8 { background-image: url('assets/zellij/zellij-user-15.webp'); }
.zellij-scene--9 { background-image: url('assets/zellij/zellij-user-16.webp'); }

@media (prefers-reduced-motion: no-preference) {
  /* 9 patterns × 7s = a 63s loop; opacity-only so scrolling stays smooth. */
  .zellij-scene { animation: zellij-crossfade 63s linear infinite; }
  .zellij-scene--1 { animation-delay: -63s; }
  .zellij-scene--2 { animation-delay: -56s; }
  .zellij-scene--3 { animation-delay: -49s; }
  .zellij-scene--4 { animation-delay: -42s; }
  .zellij-scene--5 { animation-delay: -35s; }
  .zellij-scene--6 { animation-delay: -28s; }
  .zellij-scene--7 { animation-delay: -21s; }
  .zellij-scene--8 { animation-delay: -14s; }
  .zellij-scene--9 { animation-delay: -7s; }
}

@media (prefers-reduced-motion: reduce) {
  .zellij-scene--1 { opacity: 1; }
}

@keyframes zellij-crossfade {
  0%    { opacity: 1; }
  6.1%  { opacity: 1; }
  11.1% { opacity: 0; }
  95%   { opacity: 0; }
  100%  { opacity: 1; }
}

/* ── Shared utilities ────────────────────────── */

.shell {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.lbl {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--red);
}

.panel {
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  padding: clamp(1.6rem, 3.2vw, 3rem);
}

/* Section divider: a plain hairline, inset to the content gutter. */
.rule {
  position: relative;
  z-index: 1;
  height: 1px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
  background: var(--hairline);
  background-clip: content-box;
}

/* ── Buttons ─────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}

.btn .icon { width: 15px; height: 15px; flex: none; }

.btn-red {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border);
  color: var(--muted);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ── Nav ─────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  min-height: var(--nav-h);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.92) 18% 82%, rgba(255, 255, 255, 0.18)),
    url('assets/zellij/zellij-reference.webp') center / cover no-repeat;
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 1.9rem);
  min-height: var(--nav-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex: 0 0 auto;
  color: var(--onyx);
  white-space: nowrap;
}
.logo-glyph { flex: none; }

.logo-mark {
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--red);
}

.links {
  display: flex;
  gap: clamp(0.9rem, 1.8vw, 2rem);
  list-style: none;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.ni {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #666;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.ni:hover { color: var(--red); }
.ni.on { color: var(--onyx); border-bottom-color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; }
.nav-login { color: var(--lighter); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--onyx);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.hero .lbl { display: block; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }

.display {
  font-family: var(--font-hero);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.display .line {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  animation: hero-lockup-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.display .line:nth-child(1) { animation-delay: .10s; }
.display .line:nth-child(2) { animation-delay: .24s; }

.hero .bar {
  width: 34px;
  height: 1px;
  margin: clamp(1.1rem, 2vw, 1.45rem) auto 0;
  background: var(--red);
  animation: grow-bar .55s ease .8s both;
}

.hero .sub {
  max-width: 560px;
  margin: clamp(1.2rem, 2.4vw, 1.8rem) auto 0;
  font-size: 20px;
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
}

/* The mockup PNGs are cut out with their own shadow, so they sit straight on
   the zellij backdrop — no card behind them. */
.hero-shot { margin-top: clamp(2.5rem, 5vw, 4rem); }
.hero-shot img { margin: 0 auto; }

/* ── Section scaffolding ─────────────────────── */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.head {
  max-width: 720px;
  margin: 0 auto clamp(2.2rem, 4vw, 3.4rem);
  text-align: center;
}
.head .lbl { display: block; margin-bottom: 1rem; }

.head h2,
.resource-panel h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-heading);
  line-height: var(--lh-h2);
  letter-spacing: -0.02em;
  color: var(--onyx);
}

.italic { font-style: italic; font-weight: 500; color: var(--red); }

.lede {
  margin-top: 1.1rem;
  font-size: var(--fs-lede);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--muted);
}
.lede.wide { max-width: 720px; margin-inline: auto; }

/* ── Awards ──────────────────────────────────── */

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.8rem, 4vw, 3.3rem);
}
.logos a { flex: none; display: block; transition: opacity .2s ease; }
.logos a:hover { opacity: .7; }
/* Several award PNGs ship with a baked-in white box; multiply drops it
   into the panel so the row reads as one surface. */
.logos img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.logos a:nth-child(1) { width: 108px; height: 108px; }
.logos a:nth-child(2) { width: 108px; height: 108px; }
.logos a:nth-child(3) { width: 127px; height: 108px; }
.logos a:nth-child(4) { width: 107px; height: 108px; }
.logos a:nth-child(5) { width: 175px; height: 98px; }
.logos a:nth-child(6) { width: 195px; height: 96px; }
.logos a:nth-child(7) { width: 196px; height: 108px; }
.logos a:nth-child(8) { width: 196px; height: 108px; }

/* ── Features carousel ───────────────────────── */

/* Side padding is what keeps the arrows clear of the copy. */
.carousel {
  position: relative;
  padding-inline: clamp(3.2rem, 6vw, 4.6rem);
}

/* All three slides share one grid cell, so the panel keeps the height of the
   tallest and nothing jumps as they cross-fade. */
.car-track { display: grid; }

.slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.slide.is-active { opacity: 1; pointer-events: auto; }

.emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red-tint);
  color: var(--red);
}
.emblem svg { width: 20px; height: 20px; fill: currentColor; }

.slide h3 {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-size: var(--fs-statement);
  font-weight: var(--fw-heading);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--onyx);
}

.prose {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--muted);
}

.slide .prose { max-width: 520px; margin-top: 0.7rem; }

.feature-shot {
  width: 100%;
  max-width: 820px;
  margin-top: clamp(1.8rem, 3.4vw, 2.6rem);
  border-radius: 8px;
}

.car-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  /* Opaque + shadowed so they read as buttons against the zellij pattern. */
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(20, 16, 8, 0.10);
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease;
}
.car-arrow svg { width: 18px; height: 18px; }
.car-arrow:hover { color: var(--red); border-color: var(--border); }
.car-prev { left: clamp(0.5rem, 1.4vw, 1.1rem); }
.car-next { right: clamp(0.5rem, 1.4vw, 1.1rem); }

.car-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: clamp(1.4rem, 2.4vw, 1.9rem);
}

.car-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--hairline);
  transition: width .25s ease, background-color .25s ease;
}
/* Invisible padding so the 9px dots still take a finger. */
.car-dot::after { content: ''; position: absolute; inset: -10px; }
.car-dot.on { width: 24px; background: var(--red); }

/* ── Testimonials ────────────────────────────── */

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 2.6vw, 2rem);
}

.quote { display: flex; flex-direction: column; justify-content: space-between; }

.quote blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-statement);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--onyx);
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  padding-top: clamp(1.2rem, 2.4vw, 1.6rem);
  border-top: 1px solid var(--hairline);
}
.quote figcaption img {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}
.who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who .name { font-size: 14px; font-weight: 500; color: var(--onyx); }
.who .role { font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--stone); }

/* ── Values ──────────────────────────────────── */

.value-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.4rem);
}

.value {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.6rem, 2.6vw, 2.2rem) clamp(1.1rem, 1.8vw, 1.5rem);
}

/* The 8-point khatim star, borrowed from the Labs & Studios collective list. */
.role-emblem { width: 44px; height: 44px; margin-bottom: 1.1rem; }
.role-emblem svg { display: block; width: 100%; height: 100%; }
.role-emblem .star-fill rect { fill: var(--red); }
.role-emblem .star-hole rect { fill: #faf8f3; }

.value h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-heading);
  line-height: 1.3;
  color: var(--onyx);
}

.value p {
  margin-top: 0.7rem;
  font-size: 14px;
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--muted);
}

/* ── Invest ──────────────────────────────────── */

.invest-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 2.6vw, 2.2rem);
}
.metrics .metric:last-child { grid-column: 1 / -1; }

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.metric .big {
  font-family: var(--font-display);
  font-size: clamp(42px, 4vw, 60px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--red);
}
.metric .tight {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.56;
  color: var(--ink);
}

.invest-divider { align-self: stretch; display: flex; justify-content: center; }
.invest-divider span { width: 1px; background: var(--hairline); }

.invest-shot { width: 100%; border-radius: 10px; }

/* ── Resources ───────────────────────────────── */

.resource-panel { max-width: 760px; margin: 0 auto; text-align: center; }
.resource-panel .lbl { display: block; margin-bottom: 1rem; }
.resource-panel .lede { max-width: 520px; margin-inline: auto; }
.resource-panel .btn { margin-top: 1.8rem; }

/* ── FAQ ─────────────────────────────────────── */

.accordion { max-width: 860px; margin: 0 auto; padding-block: 0.6rem; }

.ac-item + .ac-item { border-top: 1px solid var(--hairline); }

.ac-q {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  padding: 1.35rem 0;
  text-align: left;
}

/* Plus that rotates into a cross — drawn, so it stays crisp at any size. */
.ac-sign {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--red);
  transition: transform .28s ease;
}
.ac-sign::before,
.ac-sign::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.ac-sign::before { width: 14px; height: 1.5px; }
.ac-sign::after  { width: 1.5px; height: 14px; }
.ac-q[aria-expanded="true"] .ac-sign { transform: rotate(135deg); }

.ac-label {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--onyx);
}

.ac-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.ac-a > p {
  overflow: hidden;
  padding-left: 2rem;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--muted);
}
.ac-item.open .ac-a { grid-template-rows: 1fr; }
.ac-item.open .ac-a > p { padding-bottom: 1.5rem; }
.ac-a a { color: var(--red); border-bottom: 1px solid var(--border); }

.faq-cta {
  max-width: 620px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  text-align: center;
}
.faq-cta h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-heading);
  color: var(--onyx);
}
.faq-cta p {
  margin-top: 0.6rem;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--muted);
}
.faq-cta .btn { margin-top: 1.6rem; }

/* ── Footer ──────────────────────────────────── */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
}

.footer .inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 60px;
  padding-block: 0.6rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.42rem; white-space: nowrap; }
.brand-mark { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: var(--red); }

.loc {
  justify-self: end;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lighter);
}

/* ── Motion ──────────────────────────────────── */

@keyframes hero-lockup-in {
  from { opacity: 0; filter: blur(4px); transform: translateY(14px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}

@keyframes grow-bar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { animation: rise-in .65s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 1100px) {
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .invest-panel { grid-template-columns: minmax(0, 1fr); }
  .invest-divider { display: none; }
  .invest-shot { max-width: 560px; margin: 0 auto; }
}

@media (max-width: 1024px) {
  .nav-inner { flex-wrap: wrap; gap: 0.75rem; }
  .nav-toggle { display: flex; order: 3; margin-left: 0; }
  .nav-actions { order: 2; margin-left: auto; }
  .nav-login { display: none; }

  .links {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 0.75rem;
    border-top: 1px solid var(--hairline);
  }
  .links.open { display: flex; }
  .links > li { width: 100%; }
  .links .ni { width: 100%; min-height: 44px; }

  .quotes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  .nav-inner { padding-inline: 1.1rem; gap: 0.6rem; }
  .btn { padding: 10px 18px; }

  .display { font-size: clamp(30px, 8.4vw, 44px); }
  .hero-actions .btn { flex: 1 1 auto; }

  .logos a { transform: scale(.8); margin: -10px; }

  /* Arrows tuck over the shot's edge rather than eating the copy width. */
  .carousel { padding-inline: 1rem; }
  .car-arrow { width: 34px; height: 34px; margin-top: -17px; }
  .car-prev { left: 0.35rem; }
  .car-next { right: 0.35rem; }

  .value-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metrics .metric:last-child { grid-column: auto; }

  .footer .inner { grid-template-columns: 1fr; justify-items: start; gap: 0.6rem; }
  .loc { justify-self: start; }
}
