/* Sensible — global styles (design system tokens) */

:root {
  --color-canvas: #f5f3ef;
  --color-surface: #fafaf8;
  --color-muted: #ede9e2;
  --color-dark: #1a1a18;
  --color-coral: #e8726a;
  --color-coral-light: #f4a89a;
  --color-coral-soft: #fcddd9;
  --color-teal: #5bb8b4;
  --color-teal-light: #a8dad8;
  --color-teal-soft: #d6efee;
  --color-text-primary: #1a1a18;
  --color-text-secondary: #4a453e;
  --color-text-tertiary: #8c8478;
  --color-text-inverse: #fafaf8;
  --color-border: #ede9e2;
  --color-border-strong: #d8d2c8;

  --font-display: "DM Serif Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --color-ink: #1c2535;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  --shadow-soft: 0 2px 16px rgba(26, 26, 24, 0.05);
  --shadow-card: 0 4px 24px rgba(26, 26, 24, 0.07);
  --shadow-float: 0 12px 48px rgba(26, 26, 24, 0.12);

  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  --section-py: clamp(48px, 7vw, 88px);
  --section-px: clamp(20px, 2.5vw, 40px);
  --content-width: min(1400px, calc(100vw - 2 * var(--section-px)));
  --copy-width: min(42rem, 100%);
  --copy-width-wide: min(52rem, 100%);

  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Typography */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow--teal {
  color: var(--color-teal);
}

.eyebrow--coral {
  color: var(--color-coral);
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}

.display--inverse {
  color: var(--color-text-inverse);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.75;
  font-weight: 400;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 400;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-tertiary {
  color: var(--color-text-tertiary);
}

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

.italic {
  font-style: italic;
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 0;
}

.section {
  padding-block: var(--section-py);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition:
    background var(--duration-base) var(--ease-default),
    color var(--duration-base) var(--ease-default),
    border-color var(--duration-base) var(--ease-default),
    transform var(--duration-base) var(--ease-spring),
    box-shadow var(--duration-base) var(--ease-default);
}

.btn--primary {
  background: var(--color-coral);
  color: var(--color-text-inverse);
}

.btn--primary:hover {
  background: var(--color-coral-light);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border-strong);
  padding: 13px 28px;
}

.btn--secondary:hover {
  border-color: var(--color-coral);
  color: var(--color-coral);
}

.btn--dark {
  background: var(--color-dark);
  color: var(--color-text-inverse);
}

.btn--dark:hover {
  background: #2d2d2a;
  transform: translateY(-1px);
}

.link-arrow {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-teal);
  border-bottom: 1px solid rgba(91, 184, 180, 0.35);
  padding-bottom: 2px;
  transition: border-color var(--duration-base) var(--ease-default);
}

.link-arrow:hover {
  border-color: var(--color-teal);
}

/* Nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  overflow: visible;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  transition:
    background var(--duration-slow) var(--ease-default),
    backdrop-filter var(--duration-slow) var(--ease-default),
    box-shadow var(--duration-slow) var(--ease-default);
}

.nav.is-scrolled {
  background: rgba(245, 243, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

/* Shared logo base (footer) */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo__img {
  display: block;
  width: auto;
}

.footer .logo__img {
  height: 48px;
  transform: scale(1.2);
  transform-origin: center center;
  filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
  .footer .logo__img {
    height: 42px;
    transform: scale(1.15);
  }
}

/* Nav logo (center column) */
.nav__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}

.nav__logo-img {
  display: block;
  width: auto;
  height: 72px;
}

/* Nav left links */
.nav__left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) var(--ease-default);
}

.nav__link:hover {
  color: var(--color-coral);
}

/* Nav right actions */
.nav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.nav__cta {
  font-size: 0.875rem;
  padding: 10px 20px;
}

/* Hamburger (mobile only) */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text-primary);
  transition: transform var(--duration-base) var(--ease-default),
    opacity var(--duration-base) var(--ease-default);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.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(-7.5px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 24px var(--section-px) 32px;
  flex-direction: column;
  gap: 20px;
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

@media (max-width: 767px) {
  .nav__left,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 8% 70%, #f0ddd5 0%, transparent 65%),
    radial-gradient(ellipse 65% 85% at 92% 30%, #cfe5dd 0%, transparent 65%),
    #f0ebe3;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-height) + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(48px, 8vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
}

.hero__mark {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.hero__mark-img {
  width: clamp(100px, 14vw, 180px);
  height: clamp(100px, 14vw, 180px);
  object-fit: contain;
  display: block;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-style: normal;
  font-weight: 400;
  color: var(--color-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: min(72rem, 100%);
  margin: 0 auto 20px;
  text-wrap: balance;
}

.hero__tagline-accent {
  display: block;
  color: var(--color-teal);
  font-style: italic;
  margin-top: 0.05em;
}

.hero__sub {
  margin: 0 auto;
  max-width: 54rem;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.7;
  font-weight: 400;
  color: var(--color-text-primary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scroll-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-text-tertiary);
  opacity: 0.35;
}

/* Problem */

.section--muted {
  background: var(--color-muted);
}

.problem__intro {
  max-width: var(--copy-width-wide);
  margin-inline: auto;
  text-align: center;
}

.problem__headline {
  margin-top: 16px;
}

.problem__lead {
  margin-top: 12px;
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
  max-width: 100%;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
  }

  .stat-card + .stat-card {
    border-left: 1px solid var(--color-border);
  }
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 1024px) {
  .stat-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-coral);
}

.stat-card:nth-child(even) .stat-card__number {
  color: var(--color-teal);
}

.stat-card__label {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.problem__closing {
  margin: 48px auto 0;
  text-align: center;
  max-width: var(--copy-width-wide);
  border: none;
  padding: 0;
}

.problem__closing-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-teal);
}

/* Building */

.section--dark {
  background: var(--color-dark);
  color: var(--color-text-inverse);
}

.section--dark .body-lg {
  color: rgba(250, 250, 248, 0.88);
}

.section--dark .display--inverse {
  text-align: center;
  max-width: var(--copy-width-wide);
  margin-inline: auto;
  margin-top: 12px;
}

.building__body {
  max-width: var(--copy-width-wide);
  margin-inline: auto;
  text-align: center;
  margin-top: 16px;
  font-size: 1.1rem;
  line-height: 1.85;
}

/* Credibility — horizontal logo marquee */

.section--recognized {
  overflow: hidden;
}

.section--recognized .container:first-child {
  padding-bottom: 0;
}

.logo-marquee {
  margin-top: 32px;
  width: 100%;
}

.logo-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}

.logo-marquee__viewport:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 4px;
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: logo-marquee-scroll 55s linear infinite;
}

.logo-marquee:hover .logo-marquee__track,
.logo-marquee__viewport:focus-within .logo-marquee__track {
  animation-play-state: paused;
}

.logo-marquee.is-static .logo-marquee__track {
  animation: none;
}

.logo-marquee.is-static .logo-marquee__viewport {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}

.logo-marquee__row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-inline: 10px;
  list-style: none;
  margin: 0;
}

.logo-marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(140px, 16vw, 180px);
  height: 88px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: center;
}

.logo-marquee__item img {
  display: block;
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

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

.credibility__tagline {
  margin-top: 32px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

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

  .logo-marquee__viewport {
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--duration-base) var(--ease-spring),
    box-shadow var(--duration-base) var(--ease-default);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.card__pub {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.card__headline {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text-primary);
  transition: color var(--duration-fast) var(--ease-default);
}

a.card:hover .card__headline {
  color: var(--color-teal);
}

.card__date {
  margin-top: 20px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.section__footer-link {
  margin-top: 28px;
  text-align: center;
}

/* CTA / Waitlist */

.section--cta {
  background: var(--color-coral-soft);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.cta__headline {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}

.cta__body {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: var(--copy-width);
}

.cta__actions {
  margin-top: 24px;
}

.waitlist-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.waitlist-panel__sub {
  margin-top: 12px;
  margin-bottom: 28px;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.waitlist-form {
  position: relative;
}

.waitlist-form__input {
  width: 100%;
  height: 52px;
  padding: 0 140px 0 24px;
  font-family: var(--font-sans);
  font-size: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-default);
}

.waitlist-form__input::placeholder {
  color: var(--color-text-tertiary);
}

.waitlist-form__input:focus {
  border-color: var(--color-teal);
}

.waitlist-form__submit {
  position: absolute;
  top: 4px;
  right: 4px;
  height: 44px;
  padding: 0 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.waitlist-form__message {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-teal);
  min-height: 1.25em;
}

@media (max-width: 480px) {
  .waitlist-form__input {
    padding-right: 24px;
    margin-bottom: 12px;
  }

  .waitlist-form__submit {
    position: static;
    width: 100%;
    height: 48px;
  }
}

/* Work with us panel */

.work-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0;
}

.work-panel__label {
  margin: 0 0 24px;
}

.work-links {
  display: flex;
  flex-direction: column;
}

.work-links li {
  border-top: 1px solid rgba(26, 26, 24, 0.12);
}

.work-links li:last-child {
  border-bottom: 1px solid rgba(26, 26, 24, 0.12);
}

.work-link {
  display: block;
  padding: 18px 4px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-primary);
  transition:
    color var(--duration-fast) var(--ease-default),
    padding-left var(--duration-fast) var(--ease-default);
}

.work-link:hover {
  color: var(--color-coral);
  padding-left: 10px;
}

.work-link strong {
  color: var(--color-teal);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Loop tabs panel */

.loop-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.loop-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--color-muted);
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.loop-tab {
  flex: 1;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background var(--duration-base) var(--ease-default),
    color var(--duration-base) var(--ease-default),
    box-shadow var(--duration-base) var(--ease-default);
}

.loop-tab.is-active {
  background: var(--color-surface);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-soft);
}

.loop-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.loop-tab-panel.is-hidden {
  display: none;
}

.loop-tab-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

/* Footer */

.footer {
  background: var(--color-dark);
  color: var(--color-text-inverse);
  padding: 48px 0 36px;
}

.footer__inner {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.footer__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(250, 250, 248, 0.85);
  padding: 8px 0;
  display: inline-block;
  transition: color var(--duration-fast) var(--ease-default);
}

.footer__nav a:hover {
  color: var(--color-coral-light);
}

.footer__meta {
  font-size: 14px;
  color: rgba(250, 250, 248, 0.55);
  line-height: 1.8;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0;
    justify-content: space-between;
    padding-inline: 12px;
  }

  /* Logo on the left */
  .footer > a.nav__logo,
  .footer .logo__img {
    order: 1;
  }

  /* Centered nav links */
  .footer__nav {
    order: 2;
    flex: 1 1 auto;
    justify-content: center;
    gap: 18px 28px;
    align-items: center;
  }

  .footer__left {
    display: flex;
    gap: 18px;
    align-items: center;
  }

  /* CTA on the right */
  .footer__right {
    order: 3;
    margin-left: 24px;
  }

  .footer__meta {
    margin-left: 24px;
    order: 4;
  }
}

.footer__meta a:hover {
  color: var(--color-text-inverse);
}

.footer__copy {
  font-size: 12px;
  color: rgba(250, 250, 248, 0.35);
  margin-top: 8px;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms var(--ease-decelerate),
    transform 600ms var(--ease-decelerate);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Small-phone layout tightening */

@media (max-width: 480px) {
  .card {
    padding: 20px;
  }

  .loop-panel {
    padding: 20px;
  }

  .hero__tagline {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
