/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Palette — crema rugoso · marrón chocolate · amarillo mantequilla (en detalles) */
  --cloud:        #FAF7F0;   /* crema cálido casi blanco — bg principal */
  --cloud-deep:   #F1EADA;   /* sand cálido — bg secundario */
  --paper:        #FFFFFF;
  --choco:        #2B1D14;   /* chocolate profundo — texto principal */
  --choco-soft:   #4A3527;
  --choco-mute:   #8A7864;
  --butter:       #E7B93E;   /* amarillo mantequilla — SOLO detalles discretos */
  --butter-soft:  #F4E0A0;
  --butter-deep:  #C0922B;
  --line:         rgba(43,29,20,.14);

  --bg-dark:      #221609;   /* chocolate casi negro, cálido — nunca #000 */
  --bg-dark-2:    #2E1D0E;
  --cream-on-dark:#F4ECDA;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --script: "Permanent Marker", cursive;
  --display-caps: "Manrope", sans-serif;

  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-in:   cubic-bezier(.7,0,.84,0);
  --ease-soft: cubic-bezier(.25,.46,.45,.94);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);

  --nav-h: 84px;
  --container: 1280px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream-on-dark);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -.01em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--butter); color: var(--choco); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1.2rem; background: var(--choco); color: var(--cloud);
  z-index: 9999; border-radius: 8px; font-weight: 600; font-family: var(--sans);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 960px) { .container { padding-inline: 3rem; } }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section-dark { background: var(--bg-dark); color: var(--cream-on-dark); }
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--butter);
}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.eyebrow-num {
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: rgba(244,236,218,.6);
}
.lede { max-width: 46ch; color: rgba(244,236,218,.78); font-size: 1.05rem; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
em, i { font-style: italic; color: var(--butter); }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.8rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  letter-spacing: .01em; white-space: nowrap;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s, color .3s;
}
.btn-primary {
  background: var(--butter); color: var(--choco);
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(231,185,62,.28), 0 8px 18px rgba(0,0,0,.32);
}
.btn-ghost, .btn-ghost-light {
  border: 1.5px solid rgba(244,236,218,.4); color: var(--cream-on-dark); background: transparent;
}
.btn-ghost:hover, .btn-ghost-light:hover {
  transform: translateY(-3px); background: var(--cream-on-dark); color: var(--bg-dark);
}
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

/* Aspect-ratio utilities (used with .media to frame real photos) */
.ph-1-1  { aspect-ratio: 1 / 1; }
.ph-4-5  { aspect-ratio: 4 / 5; }
.ph-3-4  { aspect-ratio: 3 / 4; }
.ph-16-9 { aspect-ratio: 16 / 9; }
.ph-16-10{ aspect-ratio: 16 / 10; }
.ph-1-1, .ph-4-5, .ph-3-4, .ph-16-9, .ph-16-10 { min-height: 0; }

/* Real photo media — full-bleed, no rounded corners (editorial gallery style) */
.media {
  position: relative; overflow: hidden; border-radius: 0;
  background: var(--bg-dark-2);
}
.media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .8s var(--ease-soft), filter .55s;
}

/* Reveal on scroll (universal) */
[data-reveal] {
  opacity: 0; transform: translateY(42px);
  transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

[data-reveal-mask] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease-soft);
}
[data-reveal-mask].is-revealed { clip-path: inset(0); }

/* Stat block */
.stat { text-align: center; }
.stat-num {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--butter);
  display: block; line-height: 1;
}
.stat-label {
  margin-top: .5rem; font-size: .82rem; letter-spacing: .04em;
  color: rgba(244,236,218,.6); text-transform: uppercase;
}

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Nav --- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  background: rgba(250,247,240,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(43,29,20,.08);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), height .3s;
}
.nav.is-scrolled {
  background: rgba(250,247,240,.96);
  box-shadow: 0 1px 0 rgba(43,29,20,.1); height: 68px;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand {
  display: inline-flex; flex-direction: column; align-items: flex-start; line-height: .78;
  position: relative;
}
.brand-script {
  font-family: var(--script); font-size: 1.7rem; color: var(--choco);
  transform: rotate(-3deg); transform-origin: left bottom;
}
.brand-caps {
  font-family: var(--script); font-size: 1.5rem; color: var(--choco);
  margin-top: -.35rem; margin-left: 1.15rem; position: relative;
  transform: rotate(-2deg); transform-origin: left bottom;
}
.footer-brand .brand-script { font-size: 2.3rem; }
.footer-brand .brand-caps { font-size: 2rem; margin-top: -.5rem; margin-left: 1.5rem; }
.nav-links { display: none; align-items: center; gap: 2.2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; padding-block: .3rem;
  font-family: var(--script); font-weight: 400; font-size: 1.15rem;
  color: var(--choco);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-soft);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
@media (min-width: 720px) {
  .nav-cta {
    display: inline-flex; padding: .7rem 1.5rem;
    font-family: var(--script); font-weight: 400; font-size: 1.05rem;
  }
}
.nav-burger {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(43,29,20,.06);
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--choco); position: relative; }
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--choco);
  transition: transform .3s;
}
.nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg-dark); color: var(--cream-on-dark);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile ul { display: grid; gap: 1.6rem; text-align: center; }
.nav-mobile a { font-family: var(--script); font-weight: 400; font-size: 2.2rem; }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: stretch;
  padding-block: var(--nav-h) 3rem;
  overflow: clip; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 38% 45%;
  filter: grayscale(1) contrast(1.12) brightness(.92);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(260deg, var(--bg-dark) 0%, rgba(34,22,9,.86) 32%, rgba(34,22,9,.38) 56%, rgba(34,22,9,.7) 100%),
    linear-gradient(0deg, var(--bg-dark) 0%, transparent 22%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .1; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.hero-inner {
  width: 100%;
}
.hero-top {
  position: absolute; left: 50%; top: calc(var(--nav-h) + clamp(1.2rem, 4.5svh, 2.6rem)); transform: translateX(-50%);
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
}
.hero-mark {
  font-family: var(--script); font-size: clamp(3.4rem, 7.5vw, 5.6rem); color: var(--cream-on-dark);
  line-height: 1; transform: rotate(-3deg);
}
.hero-mark-spin {
  animation: heroMarkSpinIn 1.3s cubic-bezier(.22,1,.36,1) both;
  animation-delay: .15s;
}
@keyframes heroMarkSpinIn {
  0%   { transform: rotate(-260deg) scale(.55); opacity: 0; }
  55%  { opacity: 1; }
  100% { transform: rotate(-3deg) scale(1); opacity: 1; }
}
/* --- Hang-rail: escaparate con los 3 servicios colgados --- */
.hang-rail { position: relative; padding-top: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.hang-bar {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(92%, 720px); height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(244,236,218,.55) 12%, rgba(244,236,218,.9) 50%, rgba(244,236,218,.55) 88%, transparent);
  box-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.hang-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: clamp(1.8rem, 5vw, 4.2rem); padding-top: .6rem;
}
.hang-sign {
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
  transform-origin: top center; will-change: transform;
}
.hang-hook {
  width: 9px; height: 9px; margin-bottom: .4rem; border-radius: 50%;
  border: 2px solid rgba(244,236,218,.65);
  box-shadow: 0 1px 1px rgba(0,0,0,.4);
}
.hang-text {
  font-family: var(--script); font-weight: 400; letter-spacing: .01em;
  font-size: clamp(1.15rem, 2.6vw, 1.85rem);
  background: linear-gradient(100deg, var(--cream-on-dark) 40%, var(--butter) 50%, var(--cream-on-dark) 60%);
  background-size: 260% 100%; background-position: 200% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hangGlint 6s ease-in-out infinite;
}
.hang-sign:nth-child(2) .hang-text { animation-delay: .6s; }
.hang-sign:nth-child(3) .hang-text { animation-delay: 1.2s; }
.hang-sign:hover .hang-text, .hang-sign:focus-visible .hang-text { animation-play-state: paused; }
@keyframes hangGlint {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -60% 0; }
}
@media (max-width: 640px) {
  .hang-row { flex-wrap: nowrap; gap: .5rem; }
  .hang-sign { flex: 1 1 0; min-width: 0; }
  .hang-text {
    font-size: clamp(.66rem, 3.4vw, .95rem); line-height: 1.15;
    white-space: normal; text-align: center; word-break: break-word;
  }
  .hang-hook { width: 7px; height: 7px; margin-bottom: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hang-text { animation: none; }
  .hang-sign { transform: none !important; }
}
.hero-bottom {
  position: absolute; left: 50%; bottom: clamp(6.4rem, 15svh, 9.4rem); transform: translateX(-50%);
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
}
.hero-actions .btn { font-family: var(--script); font-weight: 400; font-size: 1.1rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.6rem, 4vw, 3.2rem);
  margin-top: clamp(2rem, 4vw, 3.4rem); padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid rgba(244,236,218,.16);
}
.hero-stat { min-width: 96px; }
.hero-stat .stat-num { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(1.6rem, 4svh, 2.6rem); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,236,218,.55);
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(rgba(244,236,218,.55), transparent); animation: cueMove 2.2s ease-in-out infinite; }
@keyframes cueMove { 0%,100% { transform: scaleY(1); opacity: .5; } 50% { transform: scaleY(1.3); opacity: 1; } }

/* --- Manifesto --- */
.manifesto-grid {
  display: grid; gap: 2.4rem;
}
@media (min-width: 860px) {
  .manifesto-grid { grid-template-columns: .8fr 1.6fr; gap: 4rem; align-items: start; }
}
.manifesto-num { font-family: var(--serif); font-style: italic; font-size: 5rem; color: var(--butter); line-height: 1; }
.manifesto-text p + p { margin-top: 1.1rem; }
.manifesto-text p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(244,236,218,.82); max-width: 62ch; }
.manifesto-sign { margin-top: 1.8rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; }

/* --- Services + portfolio (merged) — mosaico de formatos, no mezclar categorías --- */
.trabajo-scroller { position: relative; }
.trabajo-index {
  position: sticky; top: calc(var(--nav-h) + 14px); z-index: 5;
  display: inline-flex; align-items: baseline; gap: .7rem; width: fit-content;
  background: rgba(250,247,240,.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(43,29,20,.14); border-radius: 999px;
  padding: .55rem 1.2rem .55rem 1rem; margin-bottom: 1.8rem;
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.trabajo-index.is-swapping { opacity: 0; transform: translateY(-4px); }
.trabajo-index-num { font-family: var(--serif); font-style: italic; color: var(--butter-deep); font-size: 1rem; }
.trabajo-index-name { font-family: var(--script); font-weight: 400; font-size: 1rem; color: var(--choco); }
.category-block + .category-block { margin-top: clamp(2.6rem, 5vw, 4rem); }
.category-heading {
  display: flex; align-items: baseline; gap: .9rem; margin-bottom: 1.2rem;
}
.category-heading .num { font-family: var(--serif); font-style: italic; color: var(--butter); font-size: 1.1rem; }
.category-heading h3 { font-family: var(--script); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* Editorial mosaic — real photo formats, never cropped (justified-row layout) */
.ed-row {
  display: flex; gap: .6rem; margin-block: 1rem;
  height: var(--rh, 320px);
}
.ed-row .ed-item { min-width: 0; display: flex; }
.ed-row .ed-item img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  background: var(--bg-dark-2);
}
.ed-feature { margin-block: 1rem; }
.ed-feature img { width: 100%; height: auto; display: block; }

.ed-video { margin-block: 1.2rem; position: relative; }
.ed-video video {
  width: 100%; height: auto; display: block; background: var(--bg-dark-2);
}
.ed-video.is-portrait { max-width: min(420px, 70vw); margin-inline: auto; }
@media (max-width: 640px) {
  /* Stack vertically on small screens — every photo still shown at its own ratio, never cropped */
  .ed-row { flex-direction: column; height: auto; gap: .8rem; }
  .ed-row .ed-item { flex: none !important; width: 100%; }
  .ed-row .ed-item img { height: auto; object-fit: contain; }
}

/* --- Testimonials --- */
.testi-wrap { position: relative; max-width: 980px; margin-inline: auto; }
.testi-slide {
  display: none; grid-template-columns: 1fr; gap: 2rem; align-items: center;
}
.testi-slide.is-active { display: grid; animation: fadeSlide .7s var(--ease-soft); }
@media (min-width: 780px) { .testi-slide { grid-template-columns: .8fr 1.2fr; gap: 3rem; } }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.testi-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.35; }
.testi-quote::before { content: "“"; color: var(--butter); }
.testi-quote::after { content: "”"; color: var(--butter); }
.testi-name { margin-top: 1.2rem; font-weight: 700; font-size: .95rem; }
.testi-role { font-size: .85rem; color: rgba(244,236,218,.55); }
.testi-dots { display: flex; gap: .6rem; justify-content: center; margin-top: 2.4rem; }
.testi-dots button {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(244,236,218,.2);
  transition: background .3s, width .3s;
}
.testi-dots button.is-active { background: var(--butter); width: 26px; border-radius: 999px; }

/* --- CTA band --- */
.cta-band {
  position: relative; text-align: center; overflow: clip; isolation: isolate;
}
.cta-halo {
  position: absolute; inset: -60% -10% -40% -10%; z-index: -1;
  background: radial-gradient(45% 45% at 50% 40%, rgba(231,185,62,.35), transparent 70%);
  filter: blur(90px);
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; margin-top: 1rem; }
.cta-band .btn { margin-top: 2rem; }

/* --- Contact --- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }
.contact-info-item { display: flex; gap: 1rem; padding-block: 1.1rem; border-top: 1px solid rgba(244,236,218,.16); }
.contact-info-item:first-of-type { border-top: none; }
.contact-info-label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,236,218,.55); min-width: 110px; }
.contact-info-value { font-family: var(--serif); font-size: 1.15rem; }
.contact-social { display: flex; gap: 1rem; margin-top: 1.6rem; }
.contact-social a { font-size: .85rem; font-weight: 600; border-bottom: 1px solid rgba(244,236,218,.4); padding-bottom: 2px; }

.field { position: relative; margin-bottom: 1.3rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.4rem 1rem .55rem; border-radius: 12px;
  border: 1px solid rgba(244,236,218,.24); background: rgba(244,236,218,.06);
  color: var(--cream-on-dark);
}
.field textarea { min-height: 120px; resize: vertical; }
.field label {
  position: absolute; left: 1rem; top: 1.05rem; pointer-events: none;
  color: rgba(244,236,218,.5); transition: all .25s var(--ease-out); font-size: .95rem;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field.has-value label {
  top: .45rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}
.field select { color-scheme: dark; }
.field-select select { padding-block: 1rem; }
.field select:invalid { color: rgba(244,236,218,.5); }

.cta-form { position: relative; transition: opacity .5s var(--ease-out), transform .5s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-10px); pointer-events: none; position: absolute; inset: 0; }
.cta-submit { position: relative; width: 100%; }
.cta-submit .cta-form-label,
.cta-submit .cta-form-spinner,
.cta-submit .cta-form-check { transition: opacity .25s; }
.cta-submit .cta-form-spinner, .cta-submit .cta-form-check {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none;
}
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px; border: 2px solid rgba(43,29,20,.3);
  border-top-color: var(--choco); border-radius: 50%; animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cta-success {
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-soft);
  padding: 2.2rem; border-radius: 18px; background: rgba(244,236,218,.08);
  border: 1px solid rgba(244,236,218,.18); text-align: center;
}
.cta-success.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cta-success svg { width: 44px; height: 44px; margin-inline: auto 1rem; color: var(--butter); }
.cta-success path { stroke: currentColor; stroke-width: 2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease-out) .2s; }
.cta-success.is-visible path { stroke-dashoffset: 0; }

/* --- Footer --- */
.footer { padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-top { display: grid; gap: 2.4rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(244,236,218,.14); }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand .brand { font-size: 1.6rem; }
.footer-brand .brand-script, .footer-brand .brand-caps { color: var(--cream-on-dark); }
.footer-brand p { margin-top: .8rem; color: rgba(244,236,218,.7); max-width: 32ch; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,236,218,.5); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a:hover { color: var(--butter); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 1.6rem; font-size: .82rem; color: rgba(244,236,218,.5); }

/* =============================================================
   7. Effects — halo helper (used on cta-band icons etc.)
   ============================================================= */
.has-halo { position: relative; isolation: isolate; }
.has-halo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(231,185,62,.3), transparent 62%);
  opacity: 0; transition: opacity .35s; mix-blend-mode: multiply;
}
.has-halo:hover::before { opacity: 1; }

/* =============================================================
   8. Responsive helpers already inlined above per component.
   Breakpoints used: 540 / 720 / 860-960 / 1280 / 1600 (fixed scale)
   ============================================================= */
@media (min-width: 1600px) { .container { max-width: 1440px; } }

/* =============================================================
   9. Reduced motion — only gate INTRUSIVE effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .scroll-cue .line { animation: none; }
  /* Do NOT disable: tilt, hover, fades, marquee, count-up, reveals */
}
