/* ─────────────────────────────────────────────
   MiFlow — CiRG Labs
   ───────────────────────────────────────────── */

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

:root {
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", sans-serif;
  --teal: #0fa896;
  --teal2: #0e7c6e;
  --gold: #c9a84a;
  --black: #080808;
  --offwhite: #f2f0eb;
  --white: #fdfcfa;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: #080808;
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 3.2rem;
  transition: background 0.4s, border-color 0.4s;
}

nav.lit {
  background: rgba(242, 240, 235, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

nav.lit .nav-logo {
  color: #0a0a0a;
}

.nav-right {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

nav.lit .nav-right {
  color: rgba(10, 10, 10, 0.35);
}

.nav-right sup {
  font-size: 0.46rem;
  letter-spacing: 0.14em;
  vertical-align: super;
  opacity: 0.7;
  text-transform: uppercase;
}

/* ─── SNAP FRAMES ─── */
.frame {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

/* ════════════════════════════════════
   FRAME 1 — HERO
════════════════════════════════════ */
#f1 {
  display: grid;
  grid-template-columns: 70% 30%;
  height: 100vh;
  height: 100dvh;
}

.f1-photo {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.f1-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 59%;
  animation: imgIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes imgIn {
  from {
    opacity: 0;
    transform: scale(1.05) translateX(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

.f1-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(
      to right,
      rgba(8, 8, 8, 0.04) 0%,
      transparent 40%,
      rgba(8, 8, 8, 0.88) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(8, 8, 8, 0.5) 0%,
      transparent 16%,
      transparent 68%,
      rgba(8, 8, 8, 0.65) 100%
    );
}

/* Device pin */
.pin {
  position: absolute;
  left: 49%;
  top: 65%;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 0;
  animation: fadeIn 0.5s 1.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.pin-r {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: ringExp 2.4s ease-out infinite;
}

.pin-r1 {
  width: 38px;
  height: 38px;
  animation-delay: 0s;
  border-color: rgba(15, 168, 150, 0.9);
  border-width: 1.5px;
}

.pin-r2 {
  width: 60px;
  height: 60px;
  animation-delay: 0.7s;
  border-color: rgba(15, 168, 150, 0.5);
}

.pin-r3 {
  width: 84px;
  height: 84px;
  animation-delay: 1.4s;
  border-color: rgba(15, 168, 150, 0.25);
}

@keyframes ringExp {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.88);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

.pin-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(15, 168, 150, 0.5),
    0 0 12px rgba(15, 168, 150, 0.7);
}

.pin-lbl {
  position: absolute;
  top: 50%;
  right: calc(100% + 52px);
  transform: translateY(-50%);
  text-align: right;
  white-space: normal;
  max-width: 200px;
}

.pin-caption {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  display: block;
}

/* Mobile caption — sibling of pin, sits on photo */
.pin-caption-bar {
  display: none;
}

.pin-line {
  position: absolute;
  top: 50%;
  right: calc(100% + 14px);
  width: 34px;
  height: 1px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.45), transparent);
  transform: translateY(-50%);
}

/* Text column */
.f1-text {
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3rem 0 2.8rem;
  position: relative;
  z-index: 10;
}

.f1-text::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 0;
  bottom: 15%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.07) 30%,
    rgba(255, 255, 255, 0.07) 70%,
    transparent
  );
}

.hw {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 4.6vw, 5.8rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: #fff;
  opacity: 0;
  transform: translateY(26px);
  animation: wUp 0.65s ease forwards;
}

.hw.dim {
  color: rgba(255, 255, 255, 0.42);
  font-style: italic;
}

.hw.teal {
  color: var(--teal);
  font-style: normal;
}

.hw:nth-child(1) {
  animation-delay: 1s;
}
.hw:nth-child(2) {
  animation-delay: 1.15s;
}
.hw:nth-child(3) {
  animation-delay: 1.3s;
}
.hw:nth-child(4) {
  animation-delay: 1.45s;
}
.hw:nth-child(5) {
  animation-delay: 1.6s;
}

@keyframes wUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bottom metrics */
.f1-metrics {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: wUp 0.7s 2.5s forwards;
}

.f1-metric {
  padding: 1.4rem 2.4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.f1-metric:last-child {
  border-right: none;
}

.m-n {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

.m-l {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
}

/* ════════════════════════════════════
   FRAME 3 — SCIENCE
════════════════════════════════════ */
#f3 {
  background: var(--black);
  color: #fff;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.f3-top {
  padding: 7rem 3.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  gap: 2rem;
}

.f3-eyebrow {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.f3-eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--white);
  flex-shrink: 0;
}

.f3-h2 {
  font-family: var(--serif);
  font-size: clamp(3.8rem, 6vw, 7rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
}

.f3-h2 em {
  font-style: italic;
  color: var(--white);
}

.f3-right-desc {
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
  max-width: 340px;
  text-align: right;
}

.f3-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  margin-top: 3cm;
}

.f3-stat {
  padding: 1.8rem 3rem;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.f3-stat:last-child {
  border-right: none;
}

.fs-n {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

.fs-l {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
}

/* ════════════════════════════════════
   FRAME 4 — ACCESS
════════════════════════════════════ */
#f4 {
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 3rem;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}

#f4::before {
  content: "MiFlow";
  position: absolute;
  font-family: var(--serif);
  font-size: 22vw;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.025);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.04em;
}

.f4-eyebrow {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: center;
}

.f4-eyebrow::before,
.f4-eyebrow::after {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--teal);
}

.f4-h2 {
  font-family: var(--serif);
  font-size: clamp(4rem, 7.5vw, 9rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 2rem;
}

.f4-h2 em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.42);
}

.f4-body {
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.9;
  max-width: 460px;
  margin: 0 auto 3rem;
}

.f4-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  background: #fff;
  color: var(--black);
  border: 1px solid #fff;
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.32s;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
}

.f4-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  max-width: 520px;
  width: 100%;
  margin: 0 auto 3.5rem;
}

.f4-card {
  background: var(--black);
  padding: 2.2rem 1.8rem;
  text-align: left;
  cursor: default;
  transition: background 0.25s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.f4-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.02);
  transition: height 0.3s;
}

.f4-card:hover {
  border-color: rgba(15, 168, 150, 0.3);
}

.f4-card:hover::before {
  height: 100%;
}

.f4-card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
  display: block;
}

.f4-card-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.4rem;
}

.f4-card-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
}

/* ─── FOOTER ─── */
footer {
  background: #050505;
  padding: 2.5rem 3.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 1rem;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #fff;
}

.foot-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.foot-links a {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  transition: color 0.2s;
}

.foot-links a:hover {
  color: #fff;
}

.foot-copy {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.2);
}

/* ─── SCROLL REVEAL ─── */
.sr {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.sr.on {
  opacity: 1;
  transform: translateY(0);
}

.srl {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.srl.on {
  opacity: 1;
  transform: translateX(0);
}

.srr {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.srr.on {
  opacity: 1;
  transform: translateX(0);
}

/* ─── SCROLL DOTS ─── */
.scroll-dots {
  position: fixed;
  right: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sd {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.sd.active {
  background: #fff;
  transform: scale(1.5);
}

/* ════════════════════════════════════
   RESPONSIVE — TABLET
════════════════════════════════════ */
@media (max-width: 1024px) {
  nav {
    padding: 1.4rem 2rem;
  }

  #f1 {
    grid-template-columns: 55% 45%;
  }

  .f1-text {
    padding: 0 1.75rem 0 1.5rem;
  }

  .hw {
    font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  }

  .f1-metric {
    padding: 1.1rem 1.2rem;
    gap: 0.75rem;
  }

  .m-n {
    font-size: 1.7rem;
  }

  .m-l {
    font-size: 0.65rem;
  }

  .pin-lbl {
    max-width: 140px;
    right: calc(100% + 32px);
  }

  .f3-top {
    padding: 6rem 2rem 3rem;
  }

  .f3-stats {
    margin-top: 2rem;
  }

  .f3-stat {
    padding: 1.4rem 1.25rem;
    gap: 0.85rem;
  }

  .fs-n {
    font-size: 2rem;
  }

  #f4 {
    padding: 6rem 2rem;
  }

  footer {
    padding: 2rem;
  }
}

/* ════════════════════════════════════
   RESPONSIVE — MOBILE
════════════════════════════════════ */
@media (max-width: 768px) {
  html {
    scroll-snap-type: none;
  }

  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  nav {
    padding:
      max(0.9rem, env(safe-area-inset-top))
      max(1.15rem, env(safe-area-inset-right))
      0.9rem
      max(1.15rem, env(safe-area-inset-left));
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .nav-right {
    font-size: 0.88rem;
  }

  /* Bottom section pills — compact thumb bar */
  .scroll-dots {
    top: auto;
    bottom: calc(0.85rem + env(safe-area-inset-bottom));
    right: 50%;
    left: auto;
    transform: translateX(50%);
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0.2rem 0.28rem;
    background: rgba(8, 8, 8, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
  }

  .sd {
    width: 28px;
    height: 28px;
    background: transparent;
    position: relative;
    transform: none;
  }

  .sd::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: translate(-50%, -50%);
    transition: background 0.25s, transform 0.25s;
  }

  .sd.active {
    background: transparent;
    transform: none;
  }

  .sd.active::after {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.35);
  }

  /* Hero: natural stack — no overlapping metrics */
  #f1 {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .f1-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: min(62vh, 560px);
    min-height: 260px;
    flex-shrink: 0;
  }

  .f1-img {
    object-position: 42% 42%;
  }

  .f1-photo::after {
    background:
      linear-gradient(
        to bottom,
        rgba(8, 8, 8, 0.45) 0%,
        transparent 22%,
        transparent 52%,
        rgba(8, 8, 8, 0.75) 100%
      );
  }

  /* Caption visible at bottom of photo (not clipped by pin) */
  .pin-line,
  .pin-lbl {
    display: none;
  }

  .pin-caption-bar {
    display: block;
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 6;
    padding: 0.75rem 0.9rem;
    background: rgba(8, 8, 8, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
  }

  .pin-caption-bar .pin-caption {
    font-size: 0.72rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
  }

  /* Make sure hero text / pin are visible */
  .pin {
    left: 50%;
    top: 52%;
    opacity: 1;
    animation: none;
  }

  .hw {
    font-size: clamp(2.55rem, 10.5vw, 3.5rem);
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hw:nth-child(1),
  .hw:nth-child(2),
  .hw:nth-child(3),
  .hw:nth-child(4),
  .hw:nth-child(5) {
    animation: none;
  }

  /* Scroll-reveal content always visible on mobile */
  .sr,
  .srl,
  .srr {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pin-r1 {
    width: 26px;
    height: 26px;
  }

  .pin-r2 {
    width: 42px;
    height: 42px;
  }

  .pin-r3 {
    width: 58px;
    height: 58px;
  }

  .pin-dot {
    width: 8px;
    height: 8px;
  }

  .f1-text {
    padding: 1.75rem 1.35rem 1.25rem;
    flex: 0 0 auto;
  }

  .f1-text::before {
    display: none;
  }

  .f1-metrics {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    opacity: 1;
    animation: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 8, 8, 0.96);
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
  }

  .f1-metric {
    padding: 1.15rem 0.85rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .m-n {
    font-size: 1.65rem;
  }

  .m-l {
    font-size: 0.62rem;
    line-height: 1.45;
    letter-spacing: 0.07em;
  }

  /* Frame 3 */
  #f3 {
    min-height: 0;
  }

  .f3-top {
    padding: 5rem 1.35rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .f3-eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.62rem;
    flex-wrap: wrap;
  }

  .f3-h2 {
    font-size: clamp(2.5rem, 9.5vw, 3.6rem);
  }

  .f3-h2 br {
    display: none;
  }

  .f3-right-desc {
    text-align: left;
    max-width: none;
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .f3-stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }

  .f3-stat {
    padding: 1.35rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    min-height: 88px;
  }

  .f3-stat:nth-child(2n) {
    border-right: none;
  }

  .fs-n {
    font-size: 1.85rem;
  }

  .fs-l {
    font-size: 0.64rem;
    line-height: 1.55;
  }

  /* Frame 4 */
  #f4 {
    min-height: 0;
    padding: 5rem 1.35rem calc(5.5rem + env(safe-area-inset-bottom));
    justify-content: flex-start;
  }

  #f4::before {
    font-size: 38vw;
  }

  .f4-eyebrow {
    margin-top: 0.5rem;
    letter-spacing: 0.18em;
    font-size: 0.62rem;
  }

  .f4-h2 {
    font-size: clamp(2.7rem, 11vw, 4rem);
    margin-bottom: 1.25rem;
  }

  .f4-body {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    max-width: 34rem;
  }

  .f4-cards {
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
    max-width: none;
  }

  .f4-card {
    padding: 1.5rem 1.25rem;
  }

  .f4-card-title {
    font-size: 1.25rem;
  }

  .f4-card-desc {
    font-size: 0.86rem;
    line-height: 1.7;
  }

  .f4-btns {
    width: 100%;
  }

  .btn-white {
    width: 100%;
    max-width: none;
    text-align: center;
    min-height: 48px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  footer {
    padding:
      2rem 1.35rem
      calc(1.75rem + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: flex-start;
    gap: 1.35rem;
  }

  .foot-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0;
  }

  .foot-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .foot-copy {
    line-height: 1.65;
    max-width: 36rem;
  }
}

/* ════════════════════════════════════
   RESPONSIVE — SMALL PHONES
════════════════════════════════════ */
@media (max-width: 480px) {
  .f1-photo {
    aspect-ratio: 3 / 4;
    max-height: min(56vh, 480px);
    min-height: 240px;
  }

  .pin {
    left: 48%;
    top: 54%;
  }

  .pin-caption-bar {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
    padding: 0.65rem 0.75rem;
  }

  .pin-caption-bar .pin-caption {
    font-size: 0.64rem;
  }

  .f1-text {
    padding: 1.4rem 1.1rem 1rem;
  }

  .hw {
    font-size: clamp(2.25rem, 11.5vw, 2.9rem);
  }

  .f1-metric {
    padding: 1rem 0.55rem;
  }

  .m-n {
    font-size: 1.4rem;
  }

  .m-l {
    font-size: 0.56rem;
    letter-spacing: 0.05em;
  }

  .m-l br {
    display: none;
  }

  .f3-top {
    padding: 4.5rem 1.1rem 1.75rem;
  }

  .f3-eyebrow {
    letter-spacing: 0.12em;
    font-size: 0.56rem;
  }

  .f3-h2 {
    font-size: clamp(2.2rem, 10vw, 2.9rem);
  }

  .f3-stats {
    grid-template-columns: 1fr;
  }

  .f3-stat {
    border-right: none;
    min-height: 72px;
    padding: 1.15rem 1.1rem;
  }

  #f4 {
    padding: 4.5rem 1.1rem calc(5.25rem + env(safe-area-inset-bottom));
  }

  .f4-h2 {
    font-size: clamp(2.35rem, 11.5vw, 3.2rem);
  }

  .f4-h2 br {
    display: none;
  }

  .f4-body {
    font-size: 0.86rem;
  }

  .scroll-dots {
    bottom: calc(0.7rem + env(safe-area-inset-bottom));
    padding: 0.15rem 0.22rem;
  }

  .sd {
    width: 24px;
    height: 24px;
  }

  .sd::after {
    width: 4px;
    height: 4px;
  }
}

/* ════════════════════════════════════
   LANDSCAPE PHONES / SHORT HEIGHT
════════════════════════════════════ */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  html {
    scroll-snap-type: none;
  }

  .scroll-dots {
    display: none;
  }

  #f1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .f1-photo {
    grid-row: 1 / 3;
    height: 100%;
    max-height: none;
    min-height: 100%;
    aspect-ratio: auto;
  }

  .pin-caption-bar {
    display: none;
  }

  .f1-text {
    grid-column: 2;
    padding: 3.5rem 1.25rem 0.75rem;
    justify-content: center;
  }

  .hw {
    font-size: clamp(1.6rem, 5.5vh, 2.4rem);
  }

  .f1-metrics {
    grid-column: 2;
    position: relative;
    padding-bottom: 0.75rem;
  }

  .f1-metric {
    padding: 0.65rem 0.75rem;
  }

  .m-n {
    font-size: 1.2rem;
  }

  .f3-top,
  #f4 {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
  }

  .f3-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .f3-stat {
    border-bottom: none;
    min-height: 0;
    padding: 1rem 0.75rem;
  }
}

/* Touch devices: remove hover-only reliance */
@media (hover: none) {
  .btn-white:active {
    background: transparent;
    color: #fff;
  }

  .f4-card:active {
    border-color: rgba(15, 168, 150, 0.35);
  }

  .foot-links a:active {
    color: #fff;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .sr,
  .srl,
  .srr,
  .hw,
  .f1-metrics,
  .pin,
  .f1-img {
    opacity: 1;
    transform: none;
  }
}
