/* ═══════════════════════════════════════════════════════════════
   DEISE MACEDO — Brand Experience
   Design system: quiet luxury (Aman) × warm personality (Forleo)
   Mobile-first · fluid type · reduced-motion aware
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Palette — warm neutrals */
  --ivory: #f6f3ed;
  --sand: #ece7dd;
  --taupe: #b9ac99;
  --clay: #a5714f;
  --ink: #23201b;
  --ink-soft: #5b5449;
  --dark: #1d1a15;
  --dark-soft: #cfc8bb;
  --line: rgba(35, 32, 27, 0.14);
  --line-light: rgba(246, 243, 237, 0.2);

  /* Type */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --fs-hero: clamp(2.7rem, 9vw, 6.75rem);
  --fs-statement: clamp(1.95rem, 5.2vw, 3.8rem);
  --fs-title: clamp(1.75rem, 4vw, 3rem);
  --fs-body: clamp(1rem, 0.4vw + 0.92rem, 1.125rem);

  /* Rhythm */
  --space-section: clamp(2.5rem, 14vw - 3rem, 7rem);
  --pad-x: clamp(1.375rem, 5vw, 3rem);

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

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 3.5rem; /* fallback; o JS ajusta para a altura real do header */
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 80rem) {
  html { scroll-padding-top: 5.5rem; }
}
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--ink-soft);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--clay); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ─── Layout helpers ─── */
.container {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container.narrow { max-width: 52rem; }

/* ─── Typography ─── */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.eyebrow.light { color: var(--taupe); }

.statement,
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.16;
  text-wrap: balance;
}
.statement { font-size: var(--fs-statement); }
.section-title { font-size: var(--fs-title); }
.statement em,
.section-title em,
.hero-title em,
.interlude-quote em,
.about-goal em {
  font-style: italic;
  font-weight: 300;
  color: var(--clay);
}
.statement.light, .statement.light em ~ * { color: var(--ivory); }

.prose { margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.prose p + p { margin-top: 1.25em; }
.prose em { font-style: italic; }

/* ═══ Header ═══ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.1rem, 3vw, 1.5rem) var(--pad-x);
}

/* Wordmark — DEISE MACEDO como logo tipográfico */
.brand { text-decoration: none; }
.brand-name {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 2.6vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: color 0.4s ease;
}

.nav-desktop { display: none; }

/* Header after leaving the hero */
.site-header.scrolled {
  background: rgba(246, 243, 237, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.scrolled .brand-name { color: var(--ink); }

/* ─── Menu toggle (mobile) ─── */
.menu-toggle {
  display: grid;
  gap: 7px;
  padding: 0.75rem 0.25rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-line {
  width: 32px;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.45s var(--ease-out), background-color 0.4s ease;
}
.site-header.scrolled .menu-line { background: var(--ink); }
body.menu-open .menu-line { background: var(--ivory); }
body.menu-open .menu-line:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .menu-line:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ─── Mobile menu ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: var(--pad-x);
  background: var(--dark);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mobile-menu nav a {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.9rem);
  font-weight: 300;
  color: var(--ivory);
  text-decoration: none;
  padding-block: 0.35rem;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
body.menu-open .mobile-menu nav a {
  opacity: 1;
  transform: none;
}
body.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.17s; }
body.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.24s; }
body.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: 0.31s; }
body.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: 0.38s; }
body.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: 0.45s; }
body.menu-open .mobile-menu nav a:nth-child(7) { transition-delay: 0.52s; }
.mobile-menu nav a em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--clay);
  vertical-align: super;
  margin-right: 0.9rem;
}
.mobile-menu-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--taupe);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* ═══ Hero ═══ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: hero-settle 2.8s var(--ease-out) forwards;
}
@keyframes hero-settle {
  to { transform: scale(1); }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* mobile: máscara mais presente para garantir contraste do texto */
  background: linear-gradient(
    to bottom,
    rgba(20, 17, 12, 0.62) 0%,
    rgba(20, 17, 12, 0.34) 22%,
    rgba(20, 17, 12, 0.38) 52%,
    rgba(20, 17, 12, 0.78) 100%
  );
}
@media (min-width: 47.5rem) {
  .hero-media::after {
    background:
      linear-gradient(to bottom, rgba(20, 17, 12, 0.58) 0%, rgba(20, 17, 12, 0.22) 14%, transparent 30%),
      linear-gradient(to top, rgba(20, 17, 12, 0.72) 0%, rgba(20, 17, 12, 0.25) 45%, rgba(20, 17, 12, 0.14) 100%);
  }
}
.hero-inner {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding: 0 var(--pad-x) clamp(6.5rem, 16vh, 9rem);
}
.hero-title {
  font-family: var(--serif);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ivory);
  text-wrap: balance;
}
.hero-title em { color: var(--sand); }
.line-mask {
  display: block;
  overflow: hidden;
  padding-block: 0.06em;
}
.line {
  display: block;
  transform: translateY(112%);
  animation: line-rise 1.3s var(--ease-out) forwards;
}
.line-mask:nth-child(2) .line { animation-delay: 0.18s; }
@keyframes line-rise {
  to { transform: translateY(0); }
}
.hero .eyebrow { margin-bottom: clamp(1.25rem, 3vw, 2rem); color: var(--sand); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  right: var(--pad-x);
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: rgba(246, 243, 237, 0.8);
}
.scroll-cue-text {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue-line {
  width: 1px;
  height: 52px;
  background: rgba(246, 243, 237, 0.5);
  overflow: hidden;
  position: relative;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ivory);
  transform: translateY(-100%);
  animation: cue-drip 2.4s ease-in-out infinite;
}
@keyframes cue-drip {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ═══ Sections ═══ */
section { padding-block: var(--space-section); }

/* Manifesto — composição editorial: ghost word, foto bleed, painel sobreposto */
.manifesto {
  position: relative;
  background: var(--ivory);
  overflow: clip;
}
.manifesto-ghost {
  position: absolute;
  top: clamp(0.5rem, 3vw, 2.5rem);
  left: 0;
  z-index: 0;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.manifesto-ghost span {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(7rem, 24vw, 21rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(185, 172, 153, 0.55);
}
.manifesto-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-areas: "copy" "figure" "panel";
}
.manifesto-copy {
  grid-area: copy;
  padding-inline: var(--pad-x);
  margin-bottom: clamp(2.5rem, 7vw, 4rem);
}
.manifesto .statement { font-size: clamp(2.1rem, 6vw, 4.3rem); }
.manifesto-figure {
  grid-area: figure;
  position: relative;
  margin: 0;
}
.manifesto-figure .figure-crop {
  aspect-ratio: auto;
  height: clamp(26rem, 70vh, 46rem);
}
.manifesto-caption {
  margin-top: 0.9rem;
  padding-inline: var(--pad-x);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--taupe);
}
.manifesto-panel {
  grid-area: panel;
  position: relative;
  z-index: 2;
  margin: -3.5rem var(--pad-x) 0;
  background: var(--ivory);
  padding: clamp(1.75rem, 5vw, 2.75rem);
  box-shadow: 0 30px 60px -35px rgba(35, 32, 27, 0.4);
}
.manifesto-panel .prose { margin-top: 0; }

/* About */
.about {
  background: var(--sand);
  overflow: clip;
}
.about-grid {
  display: grid;
  gap: clamp(2.5rem, 7vw, 5rem);
}
.about-figure {
  position: relative;
  margin-inline: auto;
  max-width: 26rem;
}
/* Figuras com parallax: a moldura corta, a imagem desliza dentro */
.figure-crop {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.figure-crop img {
  display: block;
  width: 100%;
  height: 118%;
  margin-top: -9%;
  object-fit: cover;
  will-change: transform;
}
.about-figure .figure-crop img { object-position: 42% 22%; }

/* Variante zoom: imagem justa na moldura, escala a partir do centro */
.figure-crop.zoom img {
  height: 100%;
  margin-top: 0;
  transform-origin: center;
}

/* Revelação editorial das imagens (clip) */
html.js .img-reveal {
  clip-path: inset(10% 4% 10% 4%);
  opacity: 0;
  transition: clip-path 1.4s var(--ease-out), opacity 1s var(--ease-out);
}
html.js .img-reveal.in-view {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

/* Texto que "acende" palavra por palavra conforme o scroll */
html.js .scrub-words .w {
  opacity: 0.14;
  transition: opacity 0.5s ease;
}
html.js .scrub-words .w.on { opacity: 1; }

/* Títulos: palavras sobem em cascata ao entrar na tela */
html.js .title-rise .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.75em);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 70ms);
}
html.js .title-rise.in-view .w {
  opacity: 1;
  transform: none;
}
.about-figure figcaption {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.about-goal {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.4;
  color: var(--ink);
}
.about-meta {
  list-style: none;
  padding: clamp(1.5rem, 4vw, 2rem) 0 0;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Philosophy — foto sob véu claro (leveza) */
.philosophy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ink-soft);
}
.philosophy-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.philosophy-media img {
  width: 100%;
  height: 126%;
  margin-top: -13%;
  object-fit: cover;
  will-change: transform;
}
.philosophy-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(246, 243, 237, 0.96) 0%,
    rgba(246, 243, 237, 0.84) 45%,
    rgba(246, 243, 237, 0.9) 100%
  );
}
.poem {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2.5vw, 1.4rem);
}
.poem p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}
.poem-close {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  color: var(--ink-soft);
}

/* Moments gallery */
.moments-section {
  background: var(--ivory);
  overflow: clip;
}
.moments-head {
  padding-inline: var(--pad-x);
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

/* Carrossel automático: a faixa desliza sozinha em loop contínuo,
   arrastável com o mouse/toque (JS); a animação CSS é o fallback sem JS */
.moments-viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}
.moments-viewport.dragging { cursor: grabbing; }
.moments {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.1rem, 2.5vw, 2.5rem);
  padding-right: clamp(1.1rem, 2.5vw, 2.5rem);
  width: max-content;
  animation: moments-drift 55s linear infinite;
  will-change: transform;
}
html.js .moments { animation: none; }
.moments-viewport:hover .moments { animation-play-state: paused; }
@keyframes moments-drift {
  to { transform: translateX(-50%); }
}
.moment img {
  user-select: none;
  -webkit-user-drag: none;
}
.moment {
  flex: 0 0 auto;
  width: clamp(15rem, 62vw, 21rem);
}
.moment:nth-child(even) { margin-top: clamp(1.25rem, 3vw, 2.5rem); }
.moment-media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.moment-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.moment:hover .moment-media img { transform: scale(1.05); }
.moment figcaption {
  margin-top: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clay);
}

/* Principles — vídeo ambiente ao fundo, texto claro */
.principles {
  position: relative;
  isolation: isolate;
  background: var(--dark);
  color: var(--dark-soft);
  overflow: hidden;
}
.principles-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.principles-media video {
  width: 100%;
  height: 134%;
  margin-top: -17%;
  object-fit: cover;
  will-change: transform;
}
.principles-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(29, 26, 21, 0.9) 0%,
    rgba(29, 26, 21, 0.78) 50%,
    rgba(29, 26, 21, 0.9) 100%
  );
}
.principles .section-title { color: var(--ivory); }
.principles-head { max-width: 52rem; }
.principles-list {
  list-style: none;
  padding: 0;
  margin-top: clamp(3rem, 8vw, 5.5rem);
}
.principle {
  padding-block: clamp(0.95rem, 2.5vw, 1.5rem);
  border-top: 1px solid var(--line-light);
  display: grid;
  gap: 0.6rem;
}
.principle:last-child { border-bottom: 1px solid var(--line-light); }
.principle-num {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--taupe);
}
.principle h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 400;
  color: var(--ivory);
}
.principle p { max-width: 41rem; }

/* Interlude */
.interlude {
  background: var(--sand);
  text-align: center;
}
.interlude-quote p {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

/* Services */
.services { padding-bottom: 0; background: var(--ivory); }
.services-list {
  list-style: none;
  padding: 0;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.services-list li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--ink);
  counter-increment: service;
}
.services-list { counter-reset: service; }
.services-list li::before {
  content: counter(service, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--clay);
}

/* Marquee */
.marquee {
  margin-top: clamp(4rem, 10vw, 7rem);
  padding-block: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: baseline;
  gap: 2.5rem;
  padding-right: 2.5rem;
  width: max-content;
  animation: marquee 80s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-style: italic;
  color: var(--taupe);
}
.marquee-track i {
  font-style: normal;
  color: var(--clay);
  font-size: 1rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Contact — dark */
.contact {
  background: var(--dark);
  color: var(--dark-soft);
  text-align: center;
}
.contact .eyebrow { margin-inline: auto; }
.contact-email {
  display: inline-block;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4.2vw, 2.4rem);
  font-weight: 300;
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 0.4rem;
  transition: border-color 0.4s ease, color 0.4s ease;
  overflow-wrap: anywhere;
}
.contact-email:hover {
  color: var(--taupe);
  border-color: var(--taupe);
}
.contact-links {
  list-style: none;
  padding: 0;
  margin-top: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3rem);
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark-soft);
  transition: color 0.4s ease;
}
.contact-links a svg {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: 0.85;
}
.contact-links a:hover { color: var(--ivory); }
.contact-note {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--taupe);
}

/* ═══ Lightbox ═══ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 4rem);
  background: rgba(20, 17, 12, 0.93);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox figure {
  position: relative;
  max-width: min(88vw, 58rem);
  text-align: center;
  transform: scale(0.96);
  transition: transform 0.5s var(--ease-out);
}
.lightbox.open figure { transform: none; }
.lightbox img {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  transition: opacity 0.35s ease;
}
.lightbox figcaption {
  margin-top: 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--taupe);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--ivory);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.3s ease;
  padding: 0.9rem;
}
.lightbox-close:hover,
.lightbox-nav:hover { opacity: 1; }
.lightbox-close {
  top: clamp(0.75rem, 3vw, 2rem);
  right: clamp(0.75rem, 3vw, 2rem);
}
.lightbox-close svg { width: 26px; height: 26px; }
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-nav svg { width: 34px; height: 34px; }
.lightbox-nav.prev { left: clamp(0.25rem, 2.5vw, 2rem); }
.lightbox-nav.next { right: clamp(0.25rem, 2.5vw, 2rem); }
body.lightbox-open { overflow: hidden; }

/* Footer */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--line-light);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ivory);
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--taupe);
  font-size: 0.95rem;
}
.footer-legal {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(207, 200, 187, 0.55);
  text-transform: uppercase;
}

/* ═══ Reveal animations (only when JS is available) ═══ */
html.js .reveal,
html.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js .reveal.in-view,
html.js [data-stagger].in-view > * {
  opacity: 1;
  transform: none;
}

/* ═══ Tablet ≥ 760px ═══ */
@media (min-width: 47.5rem) {
  .manifesto-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "copy figure"
      "panel figure";
    align-items: start;
    column-gap: clamp(2rem, 4vw, 4rem);
    padding-left: max(var(--pad-x), calc((100% - 76rem) / 2 + var(--pad-x)));
  }
  .manifesto-copy {
    padding-inline: 0;
    margin-bottom: clamp(2rem, 5vw, 3rem);
  }
  .manifesto-figure .figure-crop {
    height: clamp(30rem, 88vh, 52rem);
  }
  .manifesto-caption {
    position: absolute;
    left: -2.3rem;
    bottom: 0;
    margin: 0;
    padding: 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }
  .manifesto-panel {
    margin: clamp(1.5rem, 3vw, 2.5rem) calc(-1 * clamp(4rem, 12vw, 10rem)) clamp(3rem, 8vh, 5rem) 0;
  }
  .about-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }
  .about-figure { margin: 0; max-width: none; }
  .about-meta { flex-direction: row; justify-content: space-between; gap: 2rem; }
  .moment { width: min(24rem, 28vw); }
  .services-list {
    columns: 2;
    column-gap: clamp(2.5rem, 6vw, 5rem);
  }
  .services-list li { break-inside: avoid; }
  .principle {
    grid-template-columns: 5rem minmax(0, 16rem) 1fr;
    align-items: baseline;
    gap: 2rem;
  }
}

/* ═══ Desktop ≥ 1280px (nav completo) ═══ */
@media (min-width: 80rem) {
  .menu-toggle { display: none; }
  .mobile-menu { display: none; }
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(1.4rem, 1.8vw, 2.2rem);
  }
  .nav-desktop a {
    position: relative;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ivory);
    transition: color 0.4s ease;
    padding-block: 0.3rem;
  }
  .nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
  }
  .nav-desktop a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  .site-header.scrolled .nav-desktop a { color: var(--ink); }
  .nav-desktop .nav-cta {
    border: 1px solid rgba(246, 243, 237, 0.45);
    padding: 0.75rem 1.5rem;
    transition: color 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
  }
  .nav-desktop .nav-cta::after { display: none; }
  .nav-desktop .nav-cta:hover {
    background: var(--ivory);
    color: var(--ink) !important;
    border-color: var(--ivory);
  }
  .site-header.scrolled .nav-desktop .nav-cta { border-color: var(--ink); }
  .site-header.scrolled .nav-desktop .nav-cta:hover {
    background: var(--ink);
    color: var(--ivory) !important;
  }
}

/* ═══ Reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal,
  html.js [data-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js .img-reveal {
    clip-path: none;
    opacity: 1;
    transition: none;
  }
  html.js .scrub-words .w {
    opacity: 1;
    transition: none;
  }
  html.js .title-rise .w {
    opacity: 1;
    transform: none;
    transition: none;
  }
  [data-parallax],
  [data-zoom] { transform: none !important; }
  .philosophy-media img { height: 100%; margin-top: 0; }
  .principles-media video { height: 100%; margin-top: 0; }
  .hero-media img { animation: none; transform: none; }
  .line { animation: none; transform: none; }
  .marquee-track { animation: none; }
  .scroll-cue-line::after { animation: none; }
  .moments { animation: none; }
  html:not(.js) .moments-viewport { overflow-x: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
