/* =========================================================
   El Mercadito de Antonio
   Design tokens, layout, components, motion
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

figure {
  margin: 0;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Palette: cream base, green primary, gold accent. Nothing else. */
  --cream: #f2ede6;
  --cream-deep: #e8e0d5;
  --green: #016b3a;
  --green-deep: #014d2a;
  --green-wash: #e2eadf;
  --gold: #ded971;
  --ink: #10190f;
  --ink-soft: #5b665b;
  --line: rgba(16, 25, 15, 0.12);
  --line-light: rgba(242, 237, 230, 0.18);

  --nav-h: 76px;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);
  --radius: 6px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-script: "Italianno", cursive;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 900px) {
  :root {
    --nav-h: 92px;
  }
}

/* ---------- 3. Base ---------- */
body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  max-width: 62ch;
}

::selection {
  background-color: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  background-color: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 4. Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--tint {
  background-color: var(--green-wash);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.1rem;
}

.eyebrow--light {
  color: var(--gold);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background-color 0.3s ease,
    color 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--solid {
  background-color: var(--gold);
  color: var(--ink);
}

.btn--solid:hover {
  background-color: var(--cream);
}

.btn--pill {
  padding: 0.62em 1.3em;
  font-size: 0.86rem;
  background-color: var(--gold);
  color: var(--ink);
}

.btn--pill:hover {
  background-color: var(--cream);
}

.btn--outline {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.btn--lg {
  padding: 1em 2.1em;
  font-size: 1.02rem;
}

/* ---------- 6. Wordmark ---------- */
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1;
}

.wordmark__est {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.wordmark__name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}

.wordmark__descriptor {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.36em 0.68em 0.32em;
  border-radius: 999px;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* ---------- 7. Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.4s ease, box-shadow 0.4s ease,
    backdrop-filter 0.4s ease;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  height: var(--nav-h);
  padding-inline: var(--gutter);
}

.nav.is-scrolled {
  background-color: rgba(242, 237, 230, 0.93);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -32px rgba(16, 25, 15, 0.5);
}

/* Transparent state: cream text over the hero photo */
.nav:not(.is-scrolled) .wordmark__est {
  color: var(--gold);
}

.nav:not(.is-scrolled) .wordmark__name {
  color: var(--cream);
}

/* Chip fix: the smallest, weakest text gets its own backing over the photo */
.nav:not(.is-scrolled) .wordmark__descriptor {
  background-color: var(--green);
  color: var(--cream);
}

.nav.is-scrolled .wordmark__est {
  color: var(--ink-soft);
}

.nav.is-scrolled .wordmark__name {
  color: var(--ink);
}

.nav.is-scrolled .wordmark__descriptor {
  background-color: transparent;
  color: var(--ink-soft);
}

.nav__links {
  display: none;
  gap: clamp(20px, 3vw, 40px);
  margin-left: auto;
}

.nav__links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  padding-block: 6px;
  transition: color 0.3s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav:not(.is-scrolled) .nav__links a {
  color: var(--cream);
}

.nav.is-scrolled .nav__links a {
  color: var(--ink);
}

.nav__cta {
  display: none;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease,
    background-color 0.3s ease;
}

.nav:not(.is-scrolled) .nav__toggle-bar {
  background-color: var(--cream);
}

.nav.is-open .nav__toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav.is-open .nav__toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav.is-open .nav__toggle-bar {
  background-color: var(--ink);
}

@media (min-width: 900px) {
  .nav__links,
  .nav__cta {
    display: inline-flex;
  }

  .nav__toggle {
    display: none;
  }
}

/* ---------- 8. Overlay menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 48px;
  background-color: var(--cream);
}

.menu[hidden] {
  display: none;
}

.menu__nav {
  display: flex;
  flex-direction: column;
}

.menu__nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.menu.is-open .menu__nav a,
.menu.is-open .menu__cta,
.menu.is-open .menu__meta {
  animation: menu-in 0.5s var(--ease-out) both;
}

.menu.is-open .menu__nav a:nth-child(2) {
  animation-delay: 0.06s;
}

.menu.is-open .menu__nav a:nth-child(3) {
  animation-delay: 0.12s;
}

.menu.is-open .menu__nav a:nth-child(4) {
  animation-delay: 0.18s;
}

.menu.is-open .menu__cta {
  animation-delay: 0.24s;
}

.menu.is-open .menu__meta {
  animation-delay: 0.3s;
}

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

.menu__cta {
  align-self: flex-start;
  margin-top: 28px;
}

.menu__meta {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--ink);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 18, 12, 0.6) 0%,
      rgba(10, 18, 12, 0.12) 34%,
      rgba(10, 18, 12, 0.74) 100%
    ),
    linear-gradient(
      90deg,
      rgba(10, 18, 12, 0.82) 0%,
      rgba(10, 18, 12, 0.5) 46%,
      rgba(10, 18, 12, 0) 78%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(64px, 13vh, 130px);
}

.hero__content > * {
  animation: hero-in 1s var(--ease-out) both;
}

.hero__content .eyebrow {
  animation-delay: 0.05s;
}

.hero__title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  color: var(--cream);
  margin-bottom: 1.1rem;
  animation-delay: 0.12s;
}

.hero__sub {
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: rgba(242, 237, 230, 0.88);
  margin-bottom: 2.2rem;
  animation-delay: 0.2s;
}

.hero__content .btn {
  animation-delay: 0.28s;
}

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

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  z-index: 2;
  width: 2px;
  height: 64px;
  background-color: rgba(242, 237, 230, 0.28);
  border-radius: 2px;
  overflow: hidden;
}

.hero__scroll span {
  display: block;
  width: 100%;
  height: 18px;
  background-color: var(--gold);
  animation: scroll-dot 2.4s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% {
    transform: translateY(-18px);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateY(64px);
    opacity: 0;
  }
}

@media (max-width: 899px) {
  .hero__scroll {
    display: none;
  }
}

/* ---------- 10. Story ---------- */
.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.story__text h2 {
  margin-bottom: 1.3rem;
}

.story__text p + p {
  margin-top: 1rem;
}

.story__text p {
  color: var(--ink-soft);
}

.story__signature {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--green);
  margin-top: 1.6rem;
}

.story__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.stats__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--green);
}

.stats__label {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .story__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .story__figure {
    margin-top: clamp(0px, 4vw, 56px);
  }

  .story__figure img {
    aspect-ratio: 4 / 5;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .stats__item + .stats__item {
    padding-left: 32px;
    border-left: 1px solid var(--line);
  }
}

/* ---------- 11. Values ---------- */
.values__head {
  max-width: 34ch;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.values__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 48px);
}

.values__item {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.values__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--green);
  margin-bottom: 1rem;
}

.values__item h3 {
  margin-bottom: 0.6rem;
}

.values__item p {
  color: var(--ink-soft);
  max-width: 34ch;
}

@media (min-width: 768px) {
  .values__list {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 3.5vw, 56px);
  }
}

/* ---------- 12. Catalog ---------- */
.catalog__head {
  max-width: 42ch;
  margin-bottom: clamp(48px, 6vw, 84px);
}

.catalog__sub {
  margin-top: 1rem;
  color: var(--ink-soft);
}

.catalog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 3vw, 44px);
  align-items: start;
}

.card__figure {
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--cream-deep);
}

.card__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.card:hover .card__figure img {
  transform: scale(1.04);
}

.card__body {
  padding-top: 1.1rem;
}

.card__body h3 {
  margin-bottom: 0.35rem;
}

.card__body p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.card--wide .card__figure img {
  aspect-ratio: 16 / 10;
}

.card--tall .card__figure img {
  aspect-ratio: 4 / 5;
}

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

  .card--wide {
    grid-column: span 7;
  }

  .card--tall {
    grid-column: span 5;
    margin-top: clamp(24px, 4vw, 64px);
  }

  .card:nth-child(3) {
    grid-column: span 4;
  }

  .card:nth-child(3) .card__figure img {
    aspect-ratio: 1 / 1;
  }

  .card:nth-child(4) {
    grid-column: span 4;
    margin-top: clamp(16px, 3vw, 44px);
  }

  .card:nth-child(5) {
    grid-column: span 4;
  }

  .card:nth-child(5) .card__figure img {
    aspect-ratio: 4 / 5;
  }

  .card:nth-child(6) {
    grid-column: 6 / span 5;
    margin-top: clamp(16px, 3vw, 44px);
  }

  .card:nth-child(6) .card__figure img {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- 13. Band ---------- */
.band {
  background-color: var(--green-deep);
  color: var(--cream);
  padding-bottom: clamp(72px, 9vw, 130px);
}

.band__head {
  max-width: var(--container);
  margin-bottom: clamp(44px, 5vw, 72px);
}

.band__title {
  max-width: 22ch;
  color: var(--cream);
}

.band__strip {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.band__figure {
  flex: 0 0 74%;
  scroll-snap-align: start;
}

.band__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .band__strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--container);
    margin-inline: auto;
    overflow: visible;
    padding-inline: var(--gutter);
  }

  .band__figure {
    flex: initial;
  }

  .band__figure:nth-child(even) {
    margin-top: clamp(24px, 4vw, 64px);
  }

  .band__figure img {
    aspect-ratio: 4 / 5;
  }
}

/* ---------- 14. More ---------- */
.more__head {
  max-width: 36ch;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.more__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px clamp(18px, 2.4vw, 34px);
}

.more__item {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.3em 0.9em 0.35em;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out), background-color 0.3s ease,
    color 0.3s ease, border-color 0.3s ease;
}

.more__item:hover {
  transform: translateY(-2px);
  background-color: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

.more__item--md {
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
}

.more__item--lg {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  padding: 0.25em 0.8em 0.3em;
}

.more__note {
  margin-top: clamp(40px, 5vw, 64px);
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ---------- 15. Voice ---------- */
.voice {
  background-color: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding-bottom: clamp(80px, 10vw, 150px);
}

.voice__head {
  max-width: var(--container);
  margin-bottom: clamp(44px, 5vw, 72px);
}

.voice__head h2 {
  max-width: 26ch;
  color: var(--cream);
}

.voice__sub {
  max-width: 44ch;
  margin-top: 1rem;
  color: rgba(242, 237, 230, 0.62);
}

.marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.marquee__track {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: clamp(24px, 3vw, 44px);
  padding-right: clamp(24px, 3vw, 44px);
  animation: marquee 52s linear infinite;
}

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

.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.7rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  white-space: nowrap;
  color: var(--cream);
}

.marquee__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold);
}

/* ---------- 16. Visit ---------- */
.visit__head {
  max-width: 34ch;
  margin-bottom: clamp(44px, 5vw, 72px);
}

.visit__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.5vw, 32px);
}

.visit__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: clamp(28px, 4vw, 52px);
  background-color: var(--cream-deep);
  border-radius: var(--radius);
}

.visit__card h3 {
  margin-bottom: 0.3rem;
}

.visit__card .btn {
  margin-top: auto;
}

.visit__line {
  color: var(--ink-soft);
}

.visit__line--hours {
  font-weight: 500;
  color: var(--ink);
}

.visit__card--green {
  background-color: var(--green);
  color: var(--cream);
}

.visit__card--green .visit__line {
  color: rgba(242, 237, 230, 0.82);
}

.visit__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0.4rem;
}

.visit__contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  color: var(--cream);
  border-bottom: 1px solid var(--line-light);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.visit__contacts a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

@media (min-width: 768px) {
  .visit__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---------- 17. Footer ---------- */
.footer {
  background-color: var(--ink);
  color: var(--cream);
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 48px);
}

.wordmark--footer .wordmark__est {
  color: var(--gold);
}

.wordmark--footer .wordmark__name {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--cream);
}

.wordmark--footer .wordmark__descriptor {
  color: rgba(242, 237, 230, 0.6);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(20px, 3vw, 34px);
}

.footer__links a {
  font-size: 0.95rem;
  color: rgba(242, 237, 230, 0.78);
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  color: rgba(242, 237, 230, 0.6);
}

.footer__bottom {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.footer__bottom p {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(242, 237, 230, 0.5);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    align-items: start;
  }
}

/* ---------- 18. Scroll reveals ---------- */
/* Hidden state only applies when JS is available, so no-JS renders stay readable */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

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

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

  .reveal,
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee {
    flex-wrap: wrap;
  }

  .marquee__track {
    animation: none;
    flex-wrap: wrap;
  }

  .marquee__track[aria-hidden="true"] {
    display: none;
  }

  .card:hover .card__figure img,
  .btn:hover,
  .more__item:hover {
    transform: none;
  }
}

/* ---- qa: touch targets >= 44px ---- */
.skip-link { min-height: 44px; }

.nav__links a,
.footer__links a,
a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
