/* ============================================================
   Mabel Cox — Swiss brutalist system
   Scale: 12/15/18/21/24/27/30/33 · multiples of 3
   ============================================================ */

:root {
  --bg-primary: #0b0b0e;
  --bg-secondary: #0c0d11;
  --bg-surface: #14151b;

  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.22);

  --c-burgundy: #8f173f;
  --c-gold: #D89E28;

  --accent-primary: var(--c-gold);
  /* Dos vinos casi gemelos — luz especial sin chillar */
  --grad-wine: radial-gradient(ellipse 130% 100% at 50% 0%, #2b0f1b 0%, #1c0910 46%, #14060b 100%);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-zoop: cubic-bezier(0.76, 0, 0.24, 1);
}

[data-theme="light"] {
  /* Warm near-white — soft, never blinding */
  --bg-primary: #E8E6E1;
  --bg-secondary: #DFDCD6;
  --bg-surface: #F0EEE9;

  --text-primary: #1A1715;
  --text-secondary: #3A3530;
  --text-muted: #454E57;

  --border-subtle: rgba(114, 12, 50, 0.16);
  --border-active: rgba(114, 12, 50, 0.34);

  --accent-primary: #620b2b;

  --grad-gray: radial-gradient(ellipse 130% 100% at 50% 0%, #F2F0EB 0%, #EAE8E3 46%, #E2E0DA 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Global stipple texture: integrated directly into section backgrounds with background-attachment: fixed
   This guarantees:
   1. Micropoints are continuous and crisp across all content sections (Hero, Work, Services, About).
   2. Zero invasion onto the phone showcase (child element renders strictly above section background).
   3. Prefooter (#contact) remains 100% clean with its own technical grid. */
body::before {
  display: none !important;
}

.hero-full-section,
.work-section,
.services-full-section,
.about-section {
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.2px);
  background-size: 36px 36px;
  background-attachment: fixed;
}

[data-theme="light"] .hero-full-section,
[data-theme="light"] .work-section,
[data-theme="light"] .services-full-section,
[data-theme="light"] .about-section {
  background-image: radial-gradient(rgba(114, 12, 50, 0.24) 1.3px, transparent 1.3px);
  background-size: 36px 36px;
  background-attachment: fixed;
}

/* Contact (prefooter) has its own grid texture — suppress dots there */
.contact-full-section {
  isolation: isolate;
}

/* Images and phone: elevate above dots (z:200) and isolate */
.feed-image-wrap {
  isolation: isolate;
}

.about-visual,
.phone-clipped-wrap,
.about-phone-embed,
.about-phone-embed .phone {
  position: relative;
  z-index: 210 !important;
  isolation: isolate;
}

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

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

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-primary);
  color: #0b0b0e;
}

/* Custom cursor: only active on desktop fine pointers */
@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor [role="button"],
  body.has-custom-cursor input {
    cursor: none !important;
  }
}

.cursor-swiss {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  margin-left: -16px;
  border: 1.5px solid var(--c-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              opacity 0.2s ease;
}

[data-theme="light"] .cursor-swiss {
  border-color: #620b2b;
}

.cursor-swiss.hovered {
  width: 48px;
  height: 48px;
  margin-top: -24px;
  margin-left: -24px;
  background: rgba(216, 158, 40, 0.16);
  border-color: var(--c-gold);
}

[data-theme="light"] .cursor-swiss.hovered {
  background: rgba(98, 11, 43, 0.12);
  border-color: #620b2b;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  margin-left: -3px;
  background: var(--c-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

[data-theme="light"] .cursor-dot {
  background: #620b2b;
}

@media (max-width: 768px), (hover: none), (pointer: coarse) {
  .cursor-swiss, .cursor-dot { display: none !important; }
}

/* ============================================================
   Splash intro — Pierre style
   ============================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #09080c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .splash {
  background: #F4EFE6 !important;
  color: #14070d;
}

[data-theme="light"] .splash-title {
  color: #14070d;
}

.splash.is-exiting {
  opacity: 0;
  pointer-events: none;
}

/* Hide cursor Pierre & dots during splash */
body.splash-locked .cursor-swiss,
body.splash-locked .cursor-dot {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.splash-locked::before {
  display: none !important;
}

body.splash-locked {
  overflow: hidden;
}

.splash-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 23, 63, 0.18) 0%, rgba(43, 15, 27, 0.12) 40%, transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .splash-glow {
  background: radial-gradient(circle, rgba(216, 158, 40, 0.18) 0%, rgba(114, 12, 50, 0.08) 40%, transparent 70%);
}

.splash-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 860px;
  width: 100%;
}

.splash-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

/* ── Hire text — siempre visible (protagonista) ── */
.splash-hire {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 600;
  color: var(--text-primary);
  gap: 0.65rem;
  letter-spacing: -0.01em;
}

.hire-star {
  color: var(--accent-primary);
  font-size: 0.85em;
  vertical-align: 0.12em;
  animation: starBreathe 2.4s ease-in-out infinite;
}

@keyframes starBreathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.92); }
}

.splash-hire-link {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.splash-hire-link:hover {
  border-bottom-color: var(--accent-primary);
}

/* ── Loader — debajo del Available, desaparece al 100% ── */
.splash-loader {
  width: min(360px, 82vw);
  margin: 1.5rem auto 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 1, 1);
}

.splash-loader.bar-done {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.splash-bar {
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  border-radius: 1px;
}

[data-theme="light"] .splash-bar {
  background: rgba(114, 12, 50, 0.15);
}

.splash-bar i {
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--c-gold);
  box-shadow: 0 0 14px var(--c-gold);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .splash-bar i {
  background: var(--accent-primary);
  box-shadow: 0 0 12px rgba(114, 12, 50, 0.4);
}

.splash-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

[data-theme="light"] .splash-meta {
  color: rgba(58, 53, 48, 0.6);
}

.splash-meta b {
  font-weight: 600;
  color: var(--c-gold);
  font-variant-numeric: tabular-nums;
}

[data-theme="light"] .splash-meta b {
  color: var(--accent-primary);
}

/* Email — discreto bajo todo */
.splash-email {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
}

[data-theme="light"] .splash-email {
  color: var(--text-secondary);
}

.splash-email:hover {
  color: var(--text-primary);
}

/* ============================================================
   Zoop links (roll on hover)
   ============================================================ */
.zoop-link {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.4em;
  vertical-align: middle;
  text-decoration: none;
  color: inherit;
}

.zoop-link .zoop-inner-default {
  display: block;
  line-height: 1.4;
  transition: transform 0.35s var(--ease-zoop);
}

.zoop-link .zoop-inner-hover {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  line-height: 1.4;
  color: var(--c-gold);
  transition: transform 0.35s var(--ease-zoop);
}

.zoop-link:hover .zoop-inner-default {
  transform: translateY(-100%);
}

.zoop-link:hover .zoop-inner-hover {
  transform: translateY(-100%);
}

/* ============================================================
   Header & Modular Layout Components
   ============================================================ */
site-header, site-prefooter, site-footer {
  display: block;
  width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 3rem;
  background: transparent;
  transition: background 0.36s ease, padding 0.36s ease, backdrop-filter 0.36s ease, -webkit-backdrop-filter 0.36s ease;
}

.header-inner {
  max-width: 1248px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.site-header.is-scrolled {
  background: rgba(11, 11, 14, 0.94) !important;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .site-header.is-scrolled {
  background: rgba(244, 239, 230, 0.94) !important;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.brand-wrap {
  justify-self: start;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.brand-star {
  color: var(--accent-primary);
  font-size: 0.78em;
  margin-right: 0.4em;
  vertical-align: 0.08em;
}

.header-right-group {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.6875rem;
}

.nav-menu .btn-nav {
  margin-left: 0.5625rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.control-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
}

[data-theme="light"] .control-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(114, 12, 50, 0.16);
}

.pill-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

[data-theme="light"] .pill-btn {
  color: rgba(26, 23, 21, 0.65);
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

[data-theme="light"] .pill-btn:hover {
  background: rgba(114, 12, 50, 0.08);
  color: var(--accent-primary);
}

.pill-btn:active {
  transform: scale(0.96);
}

.pill-btn-icon {
  padding: 4px 6px;
  width: 28px;
  height: 24px;
}

.pill-btn-icon svg {
  display: block;
}

.pill-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  user-select: none;
  padding: 0 2px;
}

[data-theme="light"] .pill-divider {
  color: rgba(114, 12, 50, 0.2);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

/* ============================================================
   Buttons — flat, invert on hover
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.9375rem 1.6875rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--c-burgundy);
  color: #ffffff !important;
  border-color: var(--c-burgundy);
}

.btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0b0b0e !important;
}

[data-theme="light"] .btn-primary {
  background: var(--c-gold);
  color: #0b0b0e !important;
  border-color: var(--c-gold);
}

[data-theme="light"] .btn-primary:hover {
  background: #0b0b0e;
  border-color: #0b0b0e;
  color: #ffffff !important;
}

.btn-nav {
  padding: 0.5625rem 1.125rem;
  font-size: 0.9375rem;
  background: var(--c-burgundy);
  color: #ffffff !important;
  border-color: var(--c-burgundy);
}

.btn-nav:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0b0b0e !important;
}

[data-theme="light"] .btn-nav {
  background: var(--accent-primary);
  color: #ffffff !important;
  border-color: var(--accent-primary);
}

[data-theme="light"] .btn-nav:hover {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: #0b0b0e !important;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-active);
  background: var(--bg-surface);
}

[data-theme="light"] .btn-secondary:hover {
  border-color: var(--c-gold);
  background: var(--c-gold);
  color: #0b0b0e !important;
}

/* ============================================================
   Hero
   ============================================================ */
.hero-full-section {
  min-height: 96dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6.5rem 3rem 2.5rem;
  overflow: hidden;
  z-index: 10;
  background: linear-gradient(180deg, #210b14 0%, #14070d 32%, var(--bg-primary) 82%);
}

[data-theme="light"] .hero-full-section {
  /* Luz dorada sutil en la cima — la fuente de luz del modo claro */
  background:
    radial-gradient(ellipse 55% 42% at 50% 0%, rgba(216, 158, 40, 0.09) 0%, rgba(216, 158, 40, 0.035) 45%, transparent 72%),
    var(--grad-gray);
}

.hero-watermark {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-burgundy);
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
}

[data-theme="light"] .hero-watermark {
  color: var(--accent-primary);
  opacity: 0.08;
}

.hero-container {
  max-width: 1248px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.eyebrow-cursor {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-left: 0.2em;
  vertical-align: -0.08em;
  background: var(--accent-primary);
  animation: cursorBlink 1.1s steps(1) infinite;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

.hero-title {
  font-size: clamp(2.8125rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-highlight {
  color: var(--accent-primary);
}

.hero-description {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  color: var(--text-secondary);
  max-width: 640px;
}

.hero-cta-group {
  margin-top: 2.25rem;
  display: flex;
  gap: 1.125rem;
  flex-wrap: wrap;
}

.hero-cta-group .btn {
  width: fit-content;
}

/* Hero entrance stagger */
html.js .hero-container > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .hero-full-section.hero-in .hero-container > * {
  opacity: 1;
  transform: none;
}

html.js .hero-full-section.hero-in .hero-container > :nth-child(2) {
  transition-delay: 0.12s;
}

html.js .hero-full-section.hero-in .hero-container > :nth-child(3) {
  transition-delay: 0.24s;
}

html.js .hero-full-section.hero-in .hero-container > :nth-child(4) {
  transition-delay: 0.36s;
}

/* ============================================================
   Section rhythm: hero dark → 01 gray → 02 dark → 03 gray
   ============================================================ */
main {
  position: relative;
  z-index: 110;
}

.work-section {
  position: relative;
  z-index: 10;
  padding: 6rem 3rem;
  max-width: calc(1248px + 6rem);
  margin: 0 auto;
  background: #08080a;
  box-shadow: 0 0 0 100vmax #08080a;
  clip-path: inset(0 -100vmax);
}

[data-theme="light"] .work-section {
  background: var(--bg-secondary);
  box-shadow: 0 0 0 100vmax var(--bg-secondary);
}

.services-full-section {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 6rem 3rem;
  background: var(--bg-primary);
}

.about-section {
  position: relative;
  z-index: 105;
  padding: 6rem 3rem 0;
  max-width: calc(1248px + 6rem);
  margin: 0 auto;
  background: var(--bg-secondary);
  box-shadow: 0 0 0 100vmax var(--bg-secondary);
  clip-path: inset(0 -100vmax);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin-bottom: 3.5rem;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.work-more-link {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-primary);
  white-space: nowrap;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.subtitle-link {
  color: var(--accent-primary);
  font-weight: 600;
  display: inline-block;
  transition: color var(--transition-fast);
}

.subtitle-link:hover {
  color: var(--text-primary);
}

/* ============================================================
   Work: filters + cards
   ============================================================ */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.feed-item[hidden] {
  display: none;
}

.feed-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feed-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.feed-category {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.1875rem 0.5625rem;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.feed-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px dashed var(--border-subtle);
  padding: 0.1875rem 0.5625rem;
}

.feed-image-wrap {
  position: relative;
  z-index: 14;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-surface);
  padding: 0;
}

.feed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-zoop), opacity var(--transition-smooth);
}

.feed-img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.feed-image-wrap:hover .feed-img-base,
.feed-image-wrap:focus-visible .feed-img-base {
  opacity: 0;
}

.feed-image-wrap:hover .feed-img-hover,
.feed-image-wrap:focus-visible .feed-img-hover {
  opacity: 1;
}

.feed-image-wrap:hover .feed-img-base {
  transform: scale(1.03);
}

.feed-image-badge {
  position: absolute;
  bottom: 0.9375rem;
  right: 0.9375rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b0b0e;
  background: var(--c-gold);
  padding: 0.375rem 0.75rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feed-image-wrap:hover .feed-image-badge,
.feed-image-wrap:focus-visible .feed-image-badge {
  opacity: 1;
}

.feed-content {
  margin-top: 1.125rem;
}

.feed-title {
  font-family: var(--font-display);
  font-size: 1.6875rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  min-height: 2.25rem;
}

.feed-desc {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.55;
  min-height: 4.5rem;
}

.feed-links {
  margin-top: 0.75rem;
}

.feed-link {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-primary);
}

/* ============================================================
   Services (Editorial Style with Vertical Dividers)
   ============================================================ */
.services-container {
  max-width: 1248px;
  margin: 0 auto;
}

.services-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.service-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.75rem 2rem;
  border-right: 1px solid var(--border-subtle);
  transition: background var(--transition-smooth);
}

.service-row:first-child {
  padding-left: 0.5rem;
}

.service-row:last-child {
  border-right: none;
  padding-right: 0.5rem;
}

.service-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .service-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

.service-row-header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  width: 100%;
  min-height: 3.75rem;
}

.service-icon-wrap {
  color: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-top: 2px;
}

[data-theme="light"] .service-icon-wrap {
  color: var(--c-burgundy);
}

.service-row-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.service-row-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 4.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.service-row-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  transition: border-color var(--transition-fast);
}

.service-row:hover .service-row-tags {
  border-top-color: var(--border-active);
}

[data-theme="light"] .service-row-tags {
  border-top: 1px solid var(--border-subtle);
}

.service-tag-pill {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.service-tag-pill::before {
  content: '—';
  color: var(--c-gold);
  margin-right: 0.5em;
}

[data-theme="light"] .service-tag-pill::before {
  color: var(--c-burgundy);
}

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 420px;
  gap: 3rem;
  align-items: end;
  justify-content: space-between;
}

.about-content {
  align-self: flex-start;
  padding-top: 0.9375rem;
  padding-bottom: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.375rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 1.125rem;
  text-wrap: balance;
}

.about-paragraphs {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
}

.about-cta-row {
  margin-top: 1.5rem;
}

.about-cta-row .btn-primary {
  background: var(--c-burgundy);
  border-color: var(--c-burgundy);
  color: #ffffff !important;
}

.about-cta-row .btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0b0b0e !important;
}

[data-theme="light"] .about-cta-row .btn-primary {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: #0b0b0e !important;
}

[data-theme="light"] .about-cta-row .btn-primary:hover {
  background: #0b0b0e;
  border-color: #0b0b0e;
  color: #ffffff !important;
}

/* Phone mockup — emerges from the section bottom */
.about-visual {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
  z-index: 210;
  isolation: isolate;
}

.phone-clipped-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 210;
  isolation: isolate;
}

.phone-clipped-frame {
  width: 100%;
  height: 520px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: none;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  box-shadow: 0 -9px 24px -6px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 20;
  overflow: hidden;
}

[data-theme="light"] .phone-clipped-frame {
  border-color: rgba(26, 23, 21, 0.22);
  box-shadow: 0 -9px 24px -6px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  z-index: 20;
}

/* Glass reflection — very subtle, static */
.phone-clipped-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 30%, transparent 48%);
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.phone-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.36s ease, transform 0.36s ease;
  pointer-events: none;
}

.phone-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  background: rgba(11, 11, 14, 0.72);
  padding: 9px 15px;
  border-radius: 999px;
  z-index: 9;
}

.phone-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 3px solid transparent;
  background-clip: content-box;
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 0.75;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.phone-dot:hover {
  opacity: 1;
}

.phone-dot.active {
  background-color: var(--c-gold);
  opacity: 1;
  transform: scale(1.15);
}

/* ============================================================
   Marquee band — Golden Brand Ribbon
   ============================================================ */
.marquee-wrap {
  position: relative;
  z-index: 20;
  width: 100%;
  overflow: hidden;
  background: var(--c-gold);
  padding: 1.125rem 0;
  display: flex;
  user-select: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.marquee-track {
  display: flex;
  width: max-content;
  flex-shrink: 0;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0b0b0e !important;
  text-transform: uppercase;
}

.marquee-dot {
  color: #0b0b0e !important;
}

[data-theme="light"] .marquee-wrap {
  background: var(--c-burgundy);
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .marquee-group {
  color: #F4EFE6 !important;
}

[data-theme="light"] .marquee-dot {
  color: var(--c-gold) !important;
}

/* ============================================================
   Contact — "Rojo con rayitas" (Technical grid over rich velvet wine in both modes)
   ============================================================ */
.contact-full-section {
  width: 100%;
  padding: 6rem 3rem;
  text-align: center;
  background: radial-gradient(ellipse 110% 90% at 50% 10%, #691230 0%, #440d21 45%, #1d0811 100%);
  color: #ffffff;
  position: relative;
  z-index: 120; /* above body::before stipple (z-index: 100) */
  overflow: hidden;
}

[data-theme="light"] .contact-full-section {
  background: radial-gradient(ellipse 110% 90% at 50% 10%, #691230 0%, #440d21 45%, #1d0811 100%);
  color: #ffffff;
  z-index: 120;
}

.contact-full-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
  z-index: 1;
}

.contact-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.125rem;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.625rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-align: center;
}

.contact-desc {
  font-size: 1.3125rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

[data-theme="light"] .contact-desc {
  color: rgba(255, 255, 255, 0.88);
}

.contact-box {
  margin-top: 1.125rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.contact-email-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  position: relative;
  padding-bottom: 6px;
}

.email-copy-btn {
  font-family: var(--font-display);
  font-size: clamp(1.6875rem, 4vw, 3.375rem);
  font-weight: 700;
  color: var(--c-gold);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: center;
  line-height: 1.1;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.email-copy-btn:hover {
  color: #FFFFFF;
}

.email-copy-btn:hover {
  color: #FFFFFF;
}

[data-theme="light"] .email-copy-btn:hover {
  color: #FFFFFF;
}

.email-copy-btn.is-copied {
  color: #FFFFFF;
  text-shadow: 0 0 16px rgba(216, 158, 40, 0.45);
}

[data-theme="light"] .email-copy-btn.is-copied {
  color: #FFFFFF;
  text-shadow: 0 0 14px rgba(216, 158, 40, 0.45);
}

.email-mailto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.8vw, 3rem);
  font-weight: 700;
  color: var(--c-gold);
  text-decoration: none;
  line-height: 1;
  padding: 0 4px;
  transition: transform var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
}

.email-mailto-btn:hover {
  transform: translate(2px, -2px);
  color: #FFFFFF;
}

[data-theme="light"] .email-mailto-btn:hover {
  color: #FFFFFF;
}

.contact-email-row::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--c-gold);
  border-radius: 2px;
  transition: background-color var(--transition-fast);
}

[data-theme="light"] .contact-email-row::after {
  background: var(--c-gold);
}

/* ============================================================
   Footer — legal | credits | top
   ============================================================ */
.site-footer {
  width: 100%;
  padding: 1.5rem 3rem;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-primary);
  position: relative;
  z-index: 120;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.25px, transparent 1.25px);
  background-size: 32px 32px;
  opacity: 0.64;
  pointer-events: none;
  z-index: 1;
}

[data-theme="light"] .site-footer::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.25px, transparent 1.25px);
  opacity: 0.5;
}

.site-footer > * {
  position: relative;
  z-index: 2;
}

[data-theme="light"] .site-footer {
  background: #0b0b0e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-center-credits {
  display: flex;
  align-items: center;
  gap: 0.375rem 0.9375rem;
  justify-self: start;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-credit-block {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.footer-credit-link {
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color var(--transition-fast);
}

.footer-credit-link:hover {
  color: var(--accent-primary);
}

[data-theme="light"] .footer-credit-link {
  color: #CBD5E1;
}

[data-theme="light"] .footer-credit-link:hover {
  color: var(--c-gold);
}

[data-theme="light"] .footer-center-credits {
  color: #94A3B8;
}

.footer-sep {
  color: var(--accent-primary);
  opacity: 0.85;
}

[data-theme="light"] .footer-sep {
  color: var(--c-gold);
}

.footer-bottom-row {
  display: contents;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  justify-self: end;
}

.legal-link {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.legal-link:hover {
  color: var(--accent-primary);
}

[data-theme="light"] .legal-link {
  color: #94A3B8;
}

[data-theme="light"] .legal-link:hover {
  color: var(--c-gold);
}

.legal-sep {
  color: var(--text-muted);
  opacity: 0.6;
}

[data-theme="light"] .legal-sep {
  color: rgba(255, 255, 255, 0.3);
}

.footer-top-slot {
  position: relative;
  justify-self: end;
  display: flex;
  align-items: center;
}

.back-to-top-clean {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gold);
  background: transparent;
  border: 1px solid var(--border-active);
  border-radius: 50%;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.back-to-top-clean:hover {
  border-color: var(--c-gold);
  color: #FFFFFF;
  transform: translateY(-2px);
}

[data-theme="light"] .back-to-top-clean {
  border-color: rgba(244, 239, 230, 0.3);
  color: var(--c-gold);
}

[data-theme="light"] .back-to-top-clean:hover {
  border-color: var(--c-gold);
  color: #FFFFFF;
}

/* ============================================================
   Mobile pill nav
   ============================================================ */
.mobile-pill-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 11, 14, 0.94);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  justify-content: space-around;
  padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

[data-theme="light"] .mobile-pill-nav {
  background: rgba(244, 239, 230, 0.94);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.mobile-nav-item {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.mobile-nav-item:hover {
  color: var(--accent-primary);
}

/* ============================================================
   Modal — flat lightbox
   ============================================================ */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-modal.is-open {
  display: flex;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 2.25rem;
}

.modal-close {
  position: absolute;
  top: 1.125rem;
  right: 1.125rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
}

.modal-category {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2.0625rem;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0.5625rem;
}

.modal-description {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.modal-gallery {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
}

.modal-image-wrap {
  overflow: hidden;
  background: var(--bg-surface);
}

.modal-image-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.modal-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .site-header { padding: 1.125rem 2.25rem; }
  .work-section { padding: 4.5rem 2.25rem; }
  .about-section { padding: 4.5rem 2.25rem 0; }
  .services-full-section { padding: 4.5rem 2.25rem; }
  .services-index { grid-template-columns: 1fr; }
  .feed-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-content { padding-bottom: 0; }
  .about-visual { justify-content: center; width: 100%; margin-top: 2rem; }
  .about-phone-embed { width: 100%; display: flex; justify-content: center; }
  .modal-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Mobile Performance: Pure Swiss Mode (No heavy 3D GPU load) */
  #gl,
  #bg-scrim,
  #vignette,
  #grain,
  #fg-sky,
  .fg {
    display: none !important;
    visibility: hidden !important;
  }

  [data-theme="dark"] body {
    background: var(--bg-primary);
  }

  [data-theme="dark"] body::before {
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) !important;
    background-size: 36px 36px !important;
    opacity: 0.22 !important;
    z-index: 5 !important;
    mix-blend-mode: overlay !important;
  }

  [data-theme="dark"] .hero-full-section {
    background: linear-gradient(180deg, #210b14 0%, #14070d 32%, var(--bg-primary) 82%) !important;
  }

  [data-theme="dark"] .work-section {
    background: var(--bg-secondary) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  [data-theme="dark"] .services-full-section {
    background: var(--bg-primary) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  [data-theme="dark"] .about-section {
    background: var(--bg-secondary) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  [data-theme="dark"] .contact-full-section {
    background: radial-gradient(ellipse 110% 90% at 50% 10%, #240613 0%, #14030a 48%, #080205 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .site-header { padding: 1.125rem 1.5rem; }
  .header-inner { grid-template-columns: auto auto; }
  .nav-menu { display: none; }
  .btn-nav { display: none; }
  .header-right-group { gap: 1.125rem; }
  .work-section { padding: 3.75rem 1.5rem; }
  .about-section { padding: 3.75rem 1.5rem 0; }
  .services-full-section { padding: 3.75rem 1.5rem; }
  .contact-full-section { padding: 3.75rem 1.5rem; }
  .section-header { margin-bottom: 2.75rem; }
  .feed-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .service-row-tags { align-items: flex-start; }
  
  /* Unified Phone visible, centered and anchored directly over marquee */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-content { padding-bottom: 0; }
  .about-visual {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 0;
  }
  .about-phone-embed {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .about-phone-embed .phone-stage {
    width: min(340px, 94vw);
    height: 480px;
    margin: 0 auto;
  }
  .about-phone-embed .phone {
    width: 100%;
    height: 480px;
    transform: translateY(22px);
  }

  .marquee-wrap { display: block; }
  .marquee-band { padding: 0.75rem 0; font-size: 0.8125rem; }
  .cursor-swiss, .cursor-dot { display: none; }
  .mobile-pill-nav { display: flex; }
  /* Responsive Footer — exact order: (1) Créditos, (2) Privacy + Flecha a un lado */
  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.25rem 1.5rem calc(4.5rem + 1rem);
    text-align: center;
  }

  .footer-center-credits {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    justify-self: center;
  }

  .footer-bottom-row {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
  }

  .footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    justify-self: center;
  }

  .footer-top-slot {
    position: static;
    display: flex;
    align-items: center;
    justify-self: auto;
  }

  .back-to-top-clean {
    position: static;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 560px) {
  .hero-full-section { padding: 5.625rem 1.125rem 2.25rem; }
  .hero-cta-group { flex-direction: column; align-items: flex-start; width: 100%; }
  .hero-cta-group .btn { width: 100%; text-align: center; }
  .splash-title { font-size: clamp(2.0625rem, 8.5vw, 2.625rem); }
  .work-section { padding: 3.375rem 1.125rem; }
  .services-full-section { padding: 3.375rem 1.125rem; }
  .about-section { padding: 3.375rem 1.125rem 0; }
  .contact-full-section { padding: 3.375rem 1.125rem; }
  .section-header { margin-bottom: 2.25rem; }
  .about-visual { margin-top: 1.125rem; }
  .email-copy-btn { font-size: clamp(1.3125rem, 6.5vw, 1.6875rem); }
  .email-mailto-btn { font-size: clamp(1.3125rem, 5.5vw, 1.6875rem); }
  .feed-title { font-size: 1.6875rem; }
  .modal-card { padding: 1.125rem; }
  .about-phone-embed .phone-stage {
    width: min(324px, 93vw);
    height: 462px;
  }
  .about-phone-embed .phone {
    height: 462px;
    transform: translateY(21px);
  }
  .footer-center-credits {
    flex-direction: column;
    gap: 0.1875rem;
  }
  .footer-center-credits .footer-sep {
    display: none;
  }
}

/* ============================================================
   Reduced motion — keep animations alive (site policy),
   only soften navigation behavior
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.js .hero-container > * { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Cinematic 3D WebGL Background (Dark Mode Only)
   ============================================================ */

/* WebGL canvas & ambient post-processing layers */
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background: #05070a;
}

#grain {
  position: fixed;
  inset: -1px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-repeat: repeat;
  background-size: 180px 180px;
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(120% 95% at 50% 40%, transparent 25%, rgba(1, 2, 4, 0.82) 100%);
}

#fg-sky {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 4;
  pointer-events: none;
}

/* Foreground bush stage and keyframe sway */
.fg {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: visible;
  pointer-events: none;
}

.fg-el {
  position: absolute;
  display: block;
  opacity: 0;
}

.fg-el > img {
  width: 100%;
  height: auto;
  opacity: 1;
  filter: saturate(0.88) brightness(0.86);
}

[data-fg-in="up"] {
  transform: translate3d(0, 13%, 0);
}

.fg.fg-active, .fg.fg-retiring {
  position: fixed;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  height: min(56svh, 680px);
  z-index: 4;
  overflow: visible;
  pointer-events: none;
}

.fg.fg-active .fg-el {
  opacity: 1;
  transform: none;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fg.fg-retiring .fg-el {
  opacity: 0;
  transform: translate3d(0, 8vh, 0) scale(0.98);
  filter: blur(18px);
  transition: opacity 0.68s cubic-bezier(0.16, 1, 0.3, 1), transform 0.78s cubic-bezier(0.16, 1, 0.3, 1), filter 0.78s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Dark Mode: Scrim transparency & glassmorphic depth
   ============================================================ */
#bg-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(6, 7, 11, 0.28);
}

[data-theme="dark"] body {
  background: transparent;
}

/* Hero: Subtle wine glow into 3D scenery */
[data-theme="dark"] .hero-full-section {
  background: linear-gradient(180deg, rgba(33, 11, 20, 0.40) 0%, rgba(20, 7, 13, 0.30) 45%, rgba(11, 11, 14, 0.22) 100%);
}

/* Sections: Tonal rhythmic separation with seamless glassmorphic continuity */
[data-theme="dark"] .work-section,
[data-theme="dark"] .services-full-section,
[data-theme="dark"] .about-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
}

/* Work (01) — Obsidian Graphite */
[data-theme="dark"] .work-section {
  background: rgba(14, 16, 22, 0.40);
}

/* Services (02) — Pure Deep Obsidian */
[data-theme="dark"] .services-full-section {
  background: rgba(9, 10, 14, 0.50);
}

/* About (03) — Obsidian Graphite */
[data-theme="dark"] .about-section {
  background: rgba(14, 16, 22, 0.40);
}

/* Contact (Prefooter) — Rich deep velvet wine/obsidian */
[data-theme="dark"] .contact-full-section {
  background: radial-gradient(ellipse 110% 90% at 50% 10%, #240613 0%, #14030a 48%, #080205 100%) !important;
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

/* Ensure inner contents are perfectly centered in 1248px grid */
.work-section .section-header,
.work-section .feed-grid,
.about-section .about-grid {
  max-width: 1248px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}


/* Text protective glow for optimal contrast with illuminated 3D scenery */
[data-theme="dark"] .hero-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .about-title,
[data-theme="dark"] .contact-title {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.92);
}

[data-theme="dark"] .hero-description,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .about-paragraphs p,
[data-theme="dark"] .contact-desc {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.88);
}

/* Marquee: Golden Brand Ribbon in Dark Mode */
[data-theme="dark"] .marquee-wrap {
  position: relative;
  z-index: 20;
  background: var(--c-gold);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(0, 0, 0, 0.30);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .marquee-group {
  color: #0b0b0e !important;
}

/* Prefooter Contact — "Rojo con rayitas": technical grid dominates, stipple suppressed */
.contact-full-section {
  position: relative;
  z-index: 120; /* sits above body::before stipple so grid is 100% crisp */
}

/* Contact (Prefooter) — Rich deep velvet wine/obsidian */
[data-theme="dark"] .contact-full-section {
  background: radial-gradient(ellipse 110% 90% at 50% 10%, #240613 0%, #14030a 48%, #080205 100%) !important;
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  z-index: 120;
}

/* Footer: Full opacity obsidian ground plane */
[data-theme="dark"] .site-footer {
  background: #05070a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 120;
}

[data-theme="dark"] .footer-center-credits,
[data-theme="dark"] .footer-legal-links,
[data-theme="dark"] .footer-credit-block {
  color: #94A3B8;
}

[data-theme="dark"] .footer-credit-link {
  color: var(--c-gold);
}

[data-theme="dark"] .footer-credit-link:hover {
  color: #FFFFFF;
}

/* ============================================================
   Foreground Sakura Petals Layer (Ambient organic blossom fall)
   ============================================================ */
#sakura-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 150;
  pointer-events: none;
  display: block;
}

/* ============================================================
   Light Mode: Strict 100% suppression of 3D WebGL elements
   ============================================================ */
[data-theme="light"] #gl,
[data-theme="light"] #bg-scrim,
[data-theme="light"] #vignette,
[data-theme="light"] #grain,
[data-theme="light"] #fg-sky,
[data-theme="light"] .fg {
  display: none !important;
  visibility: hidden !important;
}


