/* ============================================================
   MALLAS — base design system
   Two-tone brand: off-white paper + brown ink. No third accent.
   ============================================================ */

:root {
  --ink: oklch(33% 0.035 65);
  --ink-soft: oklch(45% 0.032 65);
  --ink-faint: oklch(58% 0.028 65);
  --ink-06: oklch(33% 0.035 65 / 0.06);
  --ink-10: oklch(33% 0.035 65 / 0.1);
  --ink-14: oklch(33% 0.035 65 / 0.14);
  --ink-30: oklch(33% 0.035 65 / 0.3);
  --ink-60: oklch(33% 0.035 65 / 0.6);

  --paper: oklch(94% 0.015 70);
  --paper-dim: oklch(90% 0.018 70);
  --paper-60: oklch(94% 0.015 70 / 0.6);
  --paper-80: oklch(94% 0.015 70 / 0.82);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-accent: "Petrona", Georgia, serif;

  --container: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  /* semantic z-index scale */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 100;
  --z-nav: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

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

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

html.lenis {
  height: auto;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   Typography scale
   ============================================================ */

.display-1 {
  font-size: clamp(2.75rem, 6.6vw, 5.5rem);
  font-weight: 700;
}

.display-2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
}

.display-3 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 600;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 42ch;
  font-weight: 400;
}

.body-text {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 65ch;
}

.accent-quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.35rem);
  line-height: 1.35;
  text-wrap: balance;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out-quart), filter 0.35s var(--ease-out-quart), background-color 0.35s;
}

.btn:hover {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.btn:active {
  transform: scale(0.98);
}

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

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

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink-30);
  color: var(--ink);
}

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

.btn-outline-light {
  background: transparent;
  border: 1.5px solid var(--paper-60);
  color: var(--paper);
}

.btn-outline-light:hover {
  border-color: var(--paper);
}

.eyebrow-soft {
  color: var(--paper-60);
}

.btn-sm {
  padding: 0.7rem 1.35rem;
  font-size: 0.85rem;
}

.btn svg {
  width: 1em;
  height: 1em;
  transition: transform 0.35s var(--ease-out-quart);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ============================================================
   Nav — glass sidecar
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1.35rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper);
  transition: padding 0.5s var(--ease-out-quart);
}

.site-nav.is-light {
  color: var(--ink);
}

.site-nav.is-scrolled {
  padding-block: 0.85rem;
  color: var(--ink);
}

.nav-glass {
  position: absolute;
  inset: 0;
  background: var(--paper-80);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--ink-10);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-quart);
  z-index: -1;
}

.site-nav.is-scrolled .nav-glass {
  opacity: 1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-mark {
  display: block;
  width: 47.6px;
  aspect-ratio: 400 / 349;
  background-color: currentColor;
  -webkit-mask-image: url("../img/optimized/icone-malla-f-trans.png");
  mask-image: url("../img/optimized/icone-malla-f-trans.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.nav-links {
  display: flex;
  gap: 2.1rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.35s var(--ease-out-quart);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-cta {
  border: 1.5px solid currentColor;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.35s var(--ease-out-quart), color 0.35s;
}

.nav-cta:hover {
  background: var(--paper);
  color: var(--ink);
}

.site-nav.is-light .nav-cta:hover,
.site-nav.is-scrolled .nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  width: 26px;
  height: 20px;
  position: relative;
  z-index: var(--z-overlay);
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-quart), opacity 0.3s;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease-out-expo);
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu a {
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 700;
  display: block;
  padding: 0.4rem 0;
  color: var(--ink);
}

.mobile-menu-footer {
  margin-top: 3rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero-compact {
  height: 68svh;
  min-height: 520px;
}

.hero-compact .hero-media img {
  object-position: 50% 12%;
}

.hero-media {
  position: absolute;
  inset: -6% -2%;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 24, 18, 0.28) 0%, rgba(30, 24, 18, 0.12) 38%, rgba(20, 15, 11, 0.78) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) clamp(3rem, 8vh, 5.5rem);
  color: var(--paper);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(20, 15, 11, 0.4);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(242, 237, 231, 0.28);
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  margin-bottom: 1.3rem;
}

.hero-title {
  max-width: 18ch;
  margin-bottom: 1.4rem;
}

.hero-title-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

.hero-title-link:hover {
  opacity: 0.85;
}

.hero-sub {
  max-width: 40ch;
  color: var(--paper-80);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Shockwave sweep — one-time light pulse across the hero on page load */
.hero-shockwave {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.hero-shockwave::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -20vw;
  width: 13vw;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(242, 237, 231, 0) 12%,
    rgba(242, 237, 231, 0.55) 45%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(242, 237, 231, 0.55) 55%,
    rgba(242, 237, 231, 0) 88%,
    transparent 100%);
  transform: skewX(-14deg);
  filter: blur(3px);
  mix-blend-mode: screen;
}

.js-motion .hero-shockwave::before {
  animation: heroShockwaveSweep 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.15s 1 both;
}

@keyframes heroShockwaveSweep {
  from {
    transform: skewX(-14deg) translateX(0);
  }
  to {
    transform: skewX(-14deg) translateX(148vw);
  }
}

/* Stadium-wave stagger — nav items pop in left to right on load, in step with the sweep */
.js-motion .nav-logo,
.js-motion .nav-links a,
.js-motion .nav-right > * {
  opacity: 0;
  transform: translateY(-8px);
  animation: heroNavStagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.js-motion .nav-logo {
  animation-delay: 0.05s;
}

.js-motion .nav-links a:nth-child(1) { animation-delay: 0.14s; }
.js-motion .nav-links a:nth-child(2) { animation-delay: 0.2s; }
.js-motion .nav-links a:nth-child(3) { animation-delay: 0.26s; }
.js-motion .nav-links a:nth-child(4) { animation-delay: 0.32s; }
.js-motion .nav-links a:nth-child(5) { animation-delay: 0.38s; }

.js-motion .nav-right > *:nth-child(1) { animation-delay: 0.44s; }
.js-motion .nav-right > *:nth-child(2) { animation-delay: 0.48s; }

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

/* Hero copy rises in just behind the sweep */
.js-motion .hero-eyebrow,
.js-motion .hero-title,
.js-motion .hero-sub,
.js-motion .hero-actions {
  opacity: 0;
  transform: translateY(16px);
  animation: heroCopyRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.js-motion .hero-eyebrow { animation-delay: 0.3s; }
.js-motion .hero-title { animation-delay: 0.4s; }
.js-motion .hero-sub { animation-delay: 0.5s; }
.js-motion .hero-actions { animation-delay: 0.6s; }

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

.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper-80);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-cue-line {
  width: 1px;
  height: 34px;
  background: var(--paper-60);
  overflow: hidden;
  position: relative;
}

.scroll-cue-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--paper);
  animation: scrollCue 1.8s var(--ease-out-quart) infinite;
}

@keyframes scrollCue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ============================================================
   Sections
   ============================================================ */

section {
  position: relative;
}

.section {
  padding-block: clamp(4.5rem, 10vh, 8rem);
}

.section-tight {
  padding-block: clamp(3rem, 6vh, 5rem);
}

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

.section-ink .body-text,
.section-ink .lede {
  color: var(--paper-80);
}

.section-dim {
  background: var(--paper-dim);
}

.section-white {
  background: #ffffff;
}

.section-black {
  background: #000000;
}

/* Editorial two-column, alternates via .is-reverse */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.editorial.is-reverse .editorial-media {
  order: 2;
}

.editorial-media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-body h2 {
  margin-bottom: 1.25rem;
}

.about-heading-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.about-heading-row h2 {
  margin-bottom: 0;
}

.about-autism-icon {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.editorial-body .eyebrow {
  margin-bottom: 0.9rem;
  display: block;
}

.editorial-body .body-text {
  margin-bottom: 1rem;
}

.editorial-body .body-text + .body-text {
  margin-top: -0.3rem;
}

.editorial-actions {
  margin-top: 1.75rem;
}

/* Logo marquee — supporter/partner brand carousel */
.logo-marquee {
  overflow: hidden;
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: logoMarquee 30s linear infinite;
}

.logo-marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(3rem, 7vw, 5.5rem);
  padding-right: clamp(3rem, 7vw, 5.5rem);
}

.logo-marquee-item {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.78;
  transition: opacity 0.3s;
}

.logo-marquee-item:hover {
  opacity: 1;
}

.logo-marquee-item-decorcom {
  height: 35px;
}

@keyframes logoMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-12.5%);
  }
}

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

  .logo-marquee-group[aria-hidden="true"] {
    display: none;
  }
}

/* Card grid (auto-fit, breakpoint-free) */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.tile {
  --tile-pad: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--ink-10);
  border-radius: 16px;
  padding: var(--tile-pad);
  transition: transform 0.5s var(--ease-out-quart), border-color 0.5s;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: var(--ink-30);
}

.tile-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin: calc(-1 * var(--tile-pad)) calc(-1 * var(--tile-pad)) 1.5rem;
  border-radius: 15px 15px 0 0;
}

.tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  transition: transform 0.7s var(--ease-out-quart);
}

.tile:hover .tile-media img {
  transform: scale(1.05);
}

.tile-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.5rem;
}

.tile h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

/* Hub / teaser link cards used on the MALLAS home page.
   Image and caption are visually separate — captions never sit on top of
   photos that already carry their own baked-in text/graphics. */
.hub-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.hub-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: var(--ink-06);
}

.hub-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-quart);
}

.hub-card:hover .hub-card-media img {
  transform: scale(1.06);
}

/* Shockwave reveal — the hero's light sweep, re-cast on the hub cards.
   The band crosses each card and carries its image in behind it; the photo
   is only whole once the wave clears the far edge of the card. */
.card-shock-wave {
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: 0;
  width: 55%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(242, 237, 231, 0) 20%,
    rgba(242, 237, 231, 0.5) 46%,
    rgba(255, 255, 255, 0.92) 50%,
    rgba(242, 237, 231, 0.5) 54%,
    rgba(242, 237, 231, 0) 80%,
    transparent 100%);
  transform: skewX(-14deg) translateX(-72%);
  filter: blur(4px);
  mix-blend-mode: screen;
}

/* Reveal edge is tilted "/" to match the band's skewX(-14deg): the top of the
   edge leads (further right) and the bottom trails, so the photo emerges along
   the same diagonal the wave travels, not against it.
   The end state stops the trailing (bottom) edge exactly at 100% — no overshoot
   past the card — so the image finishes revealing at the very end of the
   timeline instead of ~60% in. That kills the invisible ease-out tail that used
   to sit between one card looking done and the next starting. */
@keyframes cardShockWipe {
  from { clip-path: polygon(0 0, -3% 0, -36% 100%, 0 100%); }
  to   { clip-path: polygon(0 0, 133% 0, 100% 100%, 0 100%); }
}

@keyframes cardShockBand {
  0%   { transform: skewX(-14deg) translateX(-72%); opacity: 0; }
  12%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { transform: skewX(-14deg) translateX(152%); opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Until the wave arrives, the image is clipped away behind the leading edge. */
  .js-motion .hub-card-media img {
    clip-path: polygon(0 0, -3% 0, -36% 100%, 0 100%);
  }

  .js-motion .hub-card-media.is-shocked img {
    animation: cardShockWipe 1.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .js-motion .hub-card-media.is-shocked .card-shock-wave {
    animation: cardShockBand 1.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
}

.hub-card-body {
  padding-top: 1.35rem;
}

.hub-card .eyebrow {
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.hub-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.hub-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  max-width: 34ch;
}

.hub-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.hub-card .card-link svg {
  width: 1em;
  height: 1em;
  transition: transform 0.35s var(--ease-out-quart);
}

.hub-card:hover .card-link svg {
  transform: translateX(4px);
}

/* Palestras showcase — full-bleed keynote-scale photos, stage presence */
.palestras-showcase {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--ink);
  overflow: hidden;
}

.palestras-showcase-media {
  position: relative;
  height: 86vh;
  min-height: 580px;
  overflow: hidden;
}

.palestras-showcase-media img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
}

.palestras-showcase-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 15, 11, 0) 55%, rgba(20, 15, 11, 0.8) 100%);
}

.palestras-showcase-caption {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(1.5rem, 4vh, 2.75rem);
  z-index: 2;
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  max-width: 32ch;
}

@media (max-width: 900px) {
  .palestras-showcase-media {
    height: 68vh;
    min-height: 460px;
  }
}

/* Asset placeholder — for photos/videos not yet supplied by the client */
.asset-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, var(--ink-06) 0 2px, transparent 2px 14px),
    var(--paper-dim);
  border: 1px dashed var(--ink-30);
  color: var(--ink-soft);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.asset-placeholder.is-wide {
  aspect-ratio: 16 / 9;
}

.asset-placeholder.is-logo {
  aspect-ratio: 5 / 3;
  border-radius: 10px;
}

.play-glyph {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-30);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.play-glyph svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.insta-tile.is-placeholder {
  background: linear-gradient(150deg, var(--ink) 0%, oklch(38% 0.035 65) 100%);
}

.insta-tile.is-placeholder svg {
  width: 26px;
  height: 26px;
  color: var(--paper-60);
}

/* Contact directory */
.contact-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem 2.5rem;
}

.contact-item h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

.contact-item a,
.contact-item p {
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.contact-item a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.asset-placeholder-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  max-width: 22ch;
}

/* Glass panel (sidecar) */
.glass-panel {
  background: var(--paper-80);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--ink-10);
  border-radius: 22px;
  box-shadow: 0 20px 60px -20px var(--ink-14);
}

/* Instagram grid */
.insta-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.insta-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.insta-handle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.insta-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.insta-name strong {
  display: block;
  font-size: 0.98rem;
}

.insta-name span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.insta-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.insta-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insta-tile .insta-tag {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.6rem;
  background: linear-gradient(180deg, transparent 50%, rgba(20,15,11,0.55) 100%);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.35s;
}

.insta-tile:hover .insta-tag {
  opacity: 1;
}

/* Agenda — service selection + steps */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.service-tile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.85rem;
  border-radius: 14px;
  border: 1px solid var(--ink-10);
  background: var(--paper);
  transition: border-color 0.35s, transform 0.35s var(--ease-out-quart);
}

.service-tile:hover {
  border-color: var(--ink-30);
  transform: translateY(-2px);
}

.service-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.service-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.step-num {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--ink-14);
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

.booking-panel {
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.booking-panel-copy h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-bottom: 0.6rem;
}

.booking-panel-copy p {
  color: var(--ink-soft);
  max-width: 42ch;
}

.badge-powered {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.badge-powered .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
}

/* Footer — same glass sidecar treatment as the scrolled nav */
.site-footer {
  background: var(--paper-80);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--ink-10);
  color: var(--ink);
  padding-block: clamp(3.5rem, 8vh, 5.5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--ink-10);
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.65rem;
  transition: opacity 0.3s;
}

.footer-col a:hover {
  opacity: 0.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-map-buttons {
  display: flex;
  gap: 0.6rem;
}

.footer-map-btn {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ink-10);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-quart), border-color 0.3s;
}

.footer-map-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-map-btn:hover {
  transform: translateY(-2px);
  border-color: var(--ink-30);
}

/* ============================================================
   Reveal / motion utilities (JS toggles .is-visible on scroll)
   Content is visible by default — animation enhances, never gates.
   ============================================================ */

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

@media (prefers-reduced-motion: no-preference) {
  .js-motion .reveal {
    opacity: 0;
    transform: translateY(28px);
  }

  .js-motion .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
  }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .editorial,
  .editorial.is-reverse {
    grid-template-columns: 1fr;
  }

  .editorial.is-reverse .editorial-media {
    order: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .scroll-cue {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-autism-icon {
    width: 44px;
  }
}
