/* luai-digital.css — Editorial-modern · hue 220 · Syne + DM Sans */

:root {
  --color-primary:    oklch(55% 0.18 220deg);
  --color-primary-lt: oklch(75% 0.10 220deg);
  --color-primary-dk: oklch(35% 0.20 220deg);
  --color-bg:         oklch(98% 0.008 220deg);
  --color-surface:    oklch(99.5% 0.004 220deg);
  --color-border:     oklch(88% 0.010 220deg);
  --color-text:       oklch(18% 0.020 220deg);
  --color-text-mid:   oklch(45% 0.015 220deg);
  --color-text-muted: oklch(62% 0.010 220deg);
  --color-accent:     var(--color-primary);
  --color-dark:       oklch(15% 0.025 220deg);
  --font-display: 'Syne', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   clamp(1.5rem, 3vw, 2.25rem);
  --text-2xl:  clamp(2rem, 4.5vw, 3.5rem);
  --text-3xl:  clamp(2.5rem, 6vw, 5rem);
  --leading-tight: 1.15;
  --leading-body:  1.6;
  --leading-dark:  1.7;
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --shadow-sm: 0 1px 4px oklch(0% 0 0deg / 6%);
  --shadow-md: 0 4px 16px oklch(0% 0 0deg / 10%);
  --shadow-lg: 0 12px 40px oklch(0% 0 0deg / 14%);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:  150ms;
  --duration-mid:   250ms;
  --duration-slow:  400ms;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  font-optical-sizing: auto;
  font-kerning: normal;
  line-height: var(--leading-body);
  padding-top: 56px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; max-width: 65ch; }

.section-label,
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-3);
}

/* ─── Container ─── */
.container {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 48px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}
.btn-primary { background: var(--color-primary); color: white; }
.btn-light   { background: white; color: var(--color-dark); }

.btn i.fa-arrow-right {
  transition: translate 0.25s var(--ease-out-quart);
}

/* ─── Nav ─── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--color-dark);
  height: 56px;
  box-shadow: 0 1px 0 oklch(25% 0.020 220deg);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 56px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(220px, 45vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  margin-left: auto;
}
.nav-links li { list-style: none; }

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: oklch(70% 0.010 220deg);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.nav-cta {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  min-height: 36px;
  font-size: var(--text-xs);
}
.nav-toggle-input { display: none; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  color: white;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentcolor;
  border-radius: 2px;
  transition: transform var(--duration-mid) var(--ease-out-quart),
              opacity   var(--duration-fast) linear;
}
.nav-toggle-input:checked + .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked + .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked + .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Section base ─── */
section { padding-block: var(--space-24); }

/* ─── Hero — extra-wide hero layout break ─── */
.hero-section {
  background: var(--color-bg);
  padding-block: var(--space-16) var(--space-24);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 56fr 44fr;
  gap: var(--space-12);
  align-items: center;
}
.hero-eyebrow { margin-bottom: var(--space-4); }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: var(--leading-tight);
  text-wrap: balance;
  margin-bottom: var(--space-6);
  letter-spacing: -0.025em;
}

.hero-subheadline {
  font-size: var(--text-lg);
  color: var(--color-text-mid);
  line-height: var(--leading-body);
  margin-bottom: var(--space-8);
  max-width: 52ch;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.hero-grid-art {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-grid-art::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-lt);
}

/* ─── About — 60/40 split with overlapping image ─── */
.about-section { background: var(--color-surface); }

.about-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-16);
  align-items: start;
}

.about-inner--no-image {
  grid-template-columns: 1fr;
  max-width: 680px;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin-bottom: var(--space-8);
  letter-spacing: -0.015em;
}

.about-text p {
  color: var(--color-text-mid);
  line-height: var(--leading-body);
  margin-bottom: var(--space-5);
}
.about-text p:last-child { margin-bottom: 0; }

.about-image-wrap {
  position: relative;
  top: var(--space-8);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}

.about-img {
  position: absolute;
  inset: -30px 0;
  width: 100%;
  height: calc(100% + 60px);
  object-fit: cover;
  border-radius: 0;
  will-change: transform;
  transform: translateY(var(--ply, 0));
}

/* ─── Services — editorial rows ─── */
.services-section { background: var(--color-bg); }

.services-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: var(--leading-tight);
  color: var(--color-text);
  text-wrap: balance;
  letter-spacing: -0.03em;
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.service-row {
  display: grid;
  grid-template-columns: 3rem 1fr 1fr;
  gap: 0 var(--space-10);
  align-items: baseline;
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration-fast) ease;
}

.service-row:hover { background: var(--color-surface); }

.service-num {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  padding-top: 0.2em;
  transition: color var(--duration-mid) var(--ease-out-quart);
}

.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: var(--leading-tight);
  min-width: 0;
  overflow-wrap: break-word;
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  line-height: var(--leading-body);
  max-width: 44ch;
  margin: 0;
  min-width: 0;
  overflow-wrap: break-word;
}

/* ─── CTA Strip — dark section ─── */
.cta-strip {
  background: var(--color-dark);
  padding-block: var(--space-24);
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}

.cta-strip-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  line-height: var(--leading-tight);
  text-wrap: balance;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.cta-strip p {
  color: oklch(70% 0.010 220deg);
  font-size: var(--text-base);
  line-height: var(--leading-dark);
  letter-spacing: 0.01em;
  max-width: 48ch;
}

.cta-strip-btn {
  flex-shrink: 0;
  padding: 1rem 2rem;
  min-height: 52px;
  font-weight: 700;
  font-size: var(--text-base);
  box-shadow: var(--shadow-md);
}

/* ─── Info section — contact + inquiry form ─── */
.info-section {
  background: var(--color-surface);
  padding-block: var(--space-16);
}

.info-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (width >= 900px) {
  .info-inner { grid-template-columns: 38fr 62fr; gap: var(--space-16); }
}

.contact-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  max-width: none;
}

.contact-col h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.contact-tagline {
  font-size: var(--text-base);
  color: var(--color-text-mid);
  line-height: var(--leading-body);
  margin-bottom: var(--space-8);
  max-width: 32ch;
}
.contact-list { display: flex; flex-direction: column; gap: var(--space-6); }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-mid);
}
.contact-icon { color: var(--color-primary); margin-top: 3px; flex-shrink: 0; }
.contact-social { display: flex; gap: var(--space-3); margin-top: var(--space-8); }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-mid);
  font-size: var(--text-lg);
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

/* ─── Inquiry form (editorial-modern: airy spacing, display labels, slate-blue accent) ─── */
.inquiry-form-col { display: flex; flex-direction: column; }

.inquiry-flash {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: 6px;
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}

.inquiry-flash p {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin: 0;
  max-width: none;
}

.inquiry-flash--success {
  background: oklch(95% 0.04 220deg);
  border: 1px solid oklch(85% 0.08 220deg);
  color: var(--color-primary-dk);
}

.inquiry-flash--error {
  background: oklch(98% 0.012 25deg);
  border: 1px solid oklch(88% 0.06 25deg);
  color: oklch(38% 0.16 25deg);
}

.inquiry-form { display: flex; flex-direction: column; gap: var(--space-5); }

.inquiry-field { display: flex; flex-direction: column; gap: var(--space-2); }

.inquiry-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (width <= 540px) {
  .inquiry-field-row { grid-template-columns: 1fr; }
}

.inquiry-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

.inquiry-input {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  padding: var(--space-3) var(--space-4);
  min-height: 48px;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  outline: none;
  width: 100%;
}

.inquiry-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(55% 0.18 220deg / 14%);
}
.inquiry-input::placeholder { color: var(--color-text-muted); }

.inquiry-textarea { min-height: 120px; resize: vertical; }

.inquiry-submit {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: 4px;
  padding: var(--space-3) var(--space-8);
  min-height: 48px;
  cursor: pointer;
  transition: background var(--duration-fast), transform var(--duration-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.inquiry-submit:hover { background: var(--color-primary-dk); transform: translateY(-1px); }
.inquiry-submit:active { transform: translateY(0); }

/* ─── Gallery ─── */
.gallery-section { background: var(--color-bg); }

.gallery-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.015em;
}

.gallery-subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
  max-width: 60ch;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (width >= 900px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-family: inherit;
  transition: transform var(--duration-mid) var(--ease-out-quart),
              box-shadow var(--duration-mid) var(--ease-out-quart);
}

.gallery-preview {
  overflow: hidden;
  flex-shrink: 0;
  border-bottom: 1px solid var(--color-border);
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out-quart);
}

.gallery-full { display: none; }

.gallery-caption {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.gallery-domain {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
}

.gallery-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: var(--space-1) 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: var(--space-1);
  max-width: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Gallery Modal ─── */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-modal__backdrop {
  position: fixed;
  inset: 0;
  background: oklch(5% 0.010 220deg / 82%);
  backdrop-filter: blur(6px);
}

.gallery-modal__panel {
  position: relative;
  background: white;
  border-radius: 14px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px oklch(5% 0 0deg / 35%);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-modal.is-open .gallery-modal__panel {
  transform: translateY(0) scale(1);
}

.gallery-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  flex-shrink: 0;
  gap: var(--space-4);
}

.gallery-modal__domain {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-modal__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.gallery-modal__visit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  padding: var(--space-1) var(--space-3);
  border-radius: 6px;
  border: 1px solid var(--color-border);
  transition: background var(--duration-fast), border-color var(--duration-fast);
  white-space: nowrap;
}

.gallery-modal__visit:hover { background: oklch(95% 0.008 220deg); border-color: var(--color-primary-lt); }

.gallery-modal__close {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  transition: background var(--duration-fast), color var(--duration-fast);
  flex-shrink: 0;
}

.gallery-modal__close:hover { background: var(--color-border); color: var(--color-text); }

.gallery-modal__scroll {
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.gallery-modal__img {
  width: 100%;
  display: block;
  height: auto;
}

/* ─── Footer ─── */
.site-footer { background: var(--color-dark); padding-block: var(--space-16) var(--space-8); }

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid oklch(28% 0.020 220deg);
}

.footer-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}
.footer-tagline { color: oklch(58% 0.010 220deg); font-size: var(--text-sm); }
.footer-nav { display: flex; gap: var(--space-6); align-items: center; }

.footer-nav a {
  font-size: var(--text-sm);
  color: oklch(58% 0.010 220deg);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.footer-bottom { padding-top: var(--space-6); }
.footer-copy { font-size: var(--text-xs); color: oklch(45% 0.010 220deg); }

/* ─── Mobile CTA bar ─── */
.mobile-cta-bar { display: none; }

/* ─── Focus indicators ─── */
.btn:focus-visible,
.nav-links a:focus-visible,
.nav-hamburger:focus-visible,
.nav-brand:focus-visible,
.nav-cta:focus-visible,
.social-link:focus-visible,
.mobile-cta-call:focus-visible,
.mobile-cta-whatsapp:focus-visible,
.mobile-cta-instagram:focus-visible,
.footer-nav a:focus-visible,
.gallery-item:focus-visible,
.gallery-modal__close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ─── Hover states — touch-aware ─── */
@media (hover: hover) {
  .nav-links a:hover              { color: white; }
  .btn-primary:hover              { background: var(--color-primary-dk); transform: translateY(-1px); }
  .btn-light:hover                { background: oklch(95% 0.008 220deg); transform: translateY(-1px); }
  .gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .gallery-item:hover .gallery-img { transform: scale(1.04); }
  .social-link:hover              { background: var(--color-primary); color: white; border-color: var(--color-primary); }
  .footer-nav a:hover             { color: white; }
  .btn:hover i.fa-arrow-right     { translate: 5px 0; }
  .service-row:hover .service-num { color: var(--color-primary); }
}

/* ─── OVERDRIVE: Scroll cinema ─── */

/* Hero word spans need inline-block for transform */
.hero-word { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero cascade — fires on load once js-loaded is set */
  .js-loaded .hero-eyebrow {
    animation: ld-fade-up 0.5s cubic-bezier(0.25, 1, 0.5, 1) 50ms both;
  }

  .js-loaded .hero-word {
    animation: ld-word-rise 0.55s cubic-bezier(0.25, 1, 0.5, 1) both;
    animation-delay: calc(var(--word-i, 0) * 35ms + 80ms);
  }

  .js-loaded .hero-visual {
    animation: ld-fade-up 0.7s cubic-bezier(0.25, 1, 0.5, 1) 100ms both;
  }

  .js-loaded .hero-subheadline {
    animation: ld-fade-up 0.65s cubic-bezier(0.25, 1, 0.5, 1) 460ms both;
  }

  .js-loaded .hero-actions {
    animation: ld-fade-up 0.6s cubic-bezier(0.25, 1, 0.5, 1) 610ms both;
  }

  @keyframes ld-word-rise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes ld-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* Services heading — clip container carries the bottom margin */
.services-heading-clip {
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: var(--space-12);
}

@media (prefers-reduced-motion: no-preference) {
  .js-loaded .services-heading {
    transform: translateY(106%);
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.08s;
  }

  .js-loaded .services-section.in-view .services-heading {
    transform: translateY(0);
  }
}

/* CTA strip — heading clip + staggered body/button */
.cta-strip-heading-clip {
  overflow: hidden;
  padding-bottom: 0.04em;
}

@media (prefers-reduced-motion: no-preference) {
  .js-loaded .cta-strip .cta-strip-heading {
    transform: translateY(110%);
    transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1) 0.1s;
  }

  .js-loaded .cta-strip.animatable.in-view .cta-strip-heading {
    transform: translateY(0);
  }

  .js-loaded .cta-strip.animatable .cta-strip-text p {
    opacity: 0;
    transition: opacity 0.65s ease 0.42s;
  }
  .js-loaded .cta-strip.animatable.in-view .cta-strip-text p { opacity: 1; }

  .js-loaded .cta-strip.animatable .cta-strip-btn {
    opacity: 0;
    translate: 0 10px;
    transition: opacity 0.55s ease 0.62s, translate 0.55s cubic-bezier(0.25, 1, 0.5, 1) 0.62s;
  }

  .js-loaded .cta-strip.animatable.in-view .cta-strip-btn {
    opacity: 1;
    translate: 0;
  }
}

/* Service rows — staggered fade-up */
@media (prefers-reduced-motion: no-preference) {
  .js-loaded .service-row.animatable {
    opacity: 0;
    translate: 0 12px;
    transition:
      opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1) calc(var(--i, 0) * 70ms),
      translate 0.55s cubic-bezier(0.25, 1, 0.5, 1) calc(var(--i, 0) * 70ms);
  }

  .js-loaded .service-row.animatable.in-view {
    opacity: 1;
    translate: 0;
  }
}

/* Gallery — clip-path wipe from left to right.
   Initial state: opacity:0 only (no clip-path). Chrome clips the IO intersection
   rect against clip-path, so inset(0 100% 0 0) makes ratio=0 → IO never fires.
   Wipe uses a CSS animation (not transition) so the from-keyframe sets the
   clip-path to fully-hidden the moment .in-view is added. */
@keyframes gallery-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .js-loaded .gallery-item.animatable {
    opacity: 0;
    transition: opacity 0.1s linear calc(var(--i, 0) * 90ms);
  }

  .js-loaded .gallery-item.animatable.in-view {
    opacity: 1;
    animation: gallery-wipe 0.75s cubic-bezier(0.25, 1, 0.5, 1) calc(var(--i, 0) * 90ms) both;
  }
}

/* About section reveal */
@media (prefers-reduced-motion: no-preference) {
  .js-loaded .about-section.animatable {
    opacity: 0;
    translate: 0 24px;
    transition:
      opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1),
      translate 0.85s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .js-loaded .about-section.animatable.in-view {
    opacity: 1;
    translate: 0;
  }
}

/* Info section reveal */
@media (prefers-reduced-motion: no-preference) {
  .js-loaded .info-section.animatable {
    opacity: 0;
    translate: 0 20px;
    transition:
      opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
      translate 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .js-loaded .info-section.animatable.in-view {
    opacity: 1;
    translate: 0;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Responsive ─── */
@media (width <= 768px) {
  section { padding-block: var(--space-12); }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .hero-visual { order: -1; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .about-image-wrap { top: 0; }

  .service-row {
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto;
  }
  .service-desc { grid-column: 2; margin-top: var(--space-2); }

  .cta-strip-inner { flex-direction: column; text-align: center; }
  .cta-strip p { margin-inline: auto; }

  .info-inner { grid-template-columns: 1fr; gap: var(--space-12); }

  .gallery-modal { padding: 0; align-items: flex-end; }
  .gallery-modal__panel { border-bottom-left-radius: 0; border-bottom-right-radius: 0; max-height: 85vh; }

  .footer-inner { flex-direction: column; gap: var(--space-6); }
  .footer-nav { flex-wrap: wrap; gap: var(--space-4); }

  body { padding-bottom: 80px; }

  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: white;
    box-shadow: 0 -2px 16px oklch(0% 0 0deg / 12%);
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    gap: 0.75rem;
  }

  .mobile-cta-call,
  .mobile-cta-whatsapp,
  .mobile-cta-instagram {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9375rem;
    min-height: 48px;
    text-decoration: none;
    transition: opacity var(--duration-fast);
  }
  .mobile-cta-call      { background: var(--color-primary); color: white; }
  .mobile-cta-whatsapp  { background: #25D366; color: white; }
  .mobile-cta-instagram { background: var(--color-primary); color: white; }

  .mobile-cta-call:active,
  .mobile-cta-whatsapp:active,
  .mobile-cta-instagram:active { opacity: 0.85; }
}

@media (width <= 640px) {
  .nav-hamburger { display: flex; }
  .nav-cta       { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 98;
    background: var(--color-dark);
    flex-direction: column;
    padding: 0.5rem 0;
    margin-left: 0;
    gap: 0;
  }
  .nav-links li { list-style: none; }

  .nav-links li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    min-height: 44px;
    border-bottom: 1px solid oklch(25% 0.020 220deg);
    font-size: var(--text-base);
  }
  .nav-toggle-input:checked ~ .nav-links { display: flex; }
}
