/* Homepage hero tokens are isolated from the existing portfolio palette. */
.mood-home {
 --bg: #102029;
 --fg: #F5F3EC;
 --fg-mute: rgba(245, 243, 236, 0.62);
 --accent: #E0526B;
 --header-height: 96px;
 background: var(--bg);
}
.mood-home > header, .mood-home .hero {
 --line: rgba(245, 243, 236, 0.14);
 color: var(--fg);
 background: var(--bg);
}
.mood-home > header { border-color: var(--line); }
.mood-home header nav a { transition:color 300ms ease; }
.mood-home header nav a:hover { color:var(--accent); }
.mood-home main > :not(.hero) { background-color: var(--paper); }
.mood-home main > .services { background-color: var(--ink); }
.mood-home .mood-logo { position:relative; width:100px; height:44px; }
.mood-home .mood-logo::before { content:''; position:absolute; inset:0; background:currentColor; mask:url('/assets/mood-ink.png') center/contain no-repeat; }
/* A feathered alpha mask fades the artwork from left to right. */
@media(prefers-reduced-motion:no-preference) {
 .mood-home .mood-logo {
  -webkit-mask-image:linear-gradient(to right, #000 33.333%, transparent 66.667%);
  mask-image:linear-gradient(to right, #000 33.333%, transparent 66.667%);
  -webkit-mask-size:300% 100%;
  mask-size:300% 100%;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  animation:logo-reveal 2800ms cubic-bezier(.4,0,.2,1) both;
 }
}
@keyframes logo-reveal {
 from { -webkit-mask-position:100% 0; mask-position:100% 0; }
 to { -webkit-mask-position:0 0; mask-position:0 0; }
}
.mood-home .mood-logo img { visibility:hidden; }
.mood-home .nav-cta { border:1px solid var(--fg); border-radius:999px; transition:background-color 300ms, color 300ms; }
.mood-home .nav-cta:hover { background:var(--fg); color:var(--bg); }
.mood-home header :focus-visible { outline-color:var(--fg); }
.mood-home .hero { padding:0 5%; }
.hero-intro { position:relative; min-height:calc(100svh - var(--header-height)); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:72px 0 100px; }
.hero-intro .eyebrow { color:var(--fg); letter-spacing:.18em; }
.hero-intro .dot { background:var(--accent); }
.hero-intro h1 { font-size:clamp(48px,7.5vw,120px); line-height:.95; letter-spacing:-.04em; font-weight:500; margin:28px 0; }
.hero-line { display:block; position:relative; white-space:pre; }
.hero-line strong { position:relative; display:inline-block; color:var(--accent); font-weight:800; }
.hero-intro .mood-type { width:3.35em; height:.95em; line-height:.95; font-style:normal; }
.hero-intro .mood-type span { width:100%; line-height:.95; text-align:center; }
.hero-intro .hero-bottom { display:flex; justify-content:center; align-items:center; margin:0; }
.hero-intro .hero-bottom p { max-width:52ch; margin:0; font-size:clamp(16px,1.3vw,18px); line-height:1.6; color:var(--fg-mute); }
@media(prefers-reduced-motion:no-preference) {
 .hero-intro .eyebrow { animation:hero-fade-in 700ms cubic-bezier(.22,1,.36,1) 150ms both; }
 .hero-intro h1 { animation:hero-rise 800ms cubic-bezier(.22,1,.36,1) both; }
 .hero-intro .hero-bottom p { animation:hero-fade-in 700ms cubic-bezier(.22,1,.36,1) 400ms both; }
}
/* Keep the main heading readable from first paint while retaining its entrance. */
@keyframes hero-rise {
 from { transform:translateY(12px); }
 to { transform:translateY(0); }
}
@keyframes hero-fade-in {
 from { opacity:0; transform:translateY(12px); }
 to { opacity:1; transform:translateY(0); }
}
@media(max-width:800px) { .mood-home { --header-height:80px; } }
@media(max-width:600px) {
 .mood-home .mood-logo { width:76px; }
 .hero-intro h1 { font-size:clamp(40px,10.5vw,60px); }
 .hero-intro { padding:64px 0 100px; }
 .hero-intro .hero-bottom p { max-width:34ch; }
 .mood-home .mobile-menu-toggle { color:var(--fg); border-color:var(--fg); }
 .mood-home .mobile-menu-toggle[aria-expanded="true"] { color:var(--bg); background:var(--fg); }
 .mood-home .mobile-menu-panel:not([hidden]) { background:var(--bg); color:var(--fg); box-shadow:none; }
 .mood-home .mobile-menu-panel nav a, .mood-home .mobile-menu-panel nav a[href^="/contacto"] { color:var(--fg); border-color:var(--line); }
 .mood-home .mobile-menu-panel nav a > span, .mood-home .mobile-menu-email { color:var(--fg-mute); }
}

/* One continuous pointer field across the header and opening section. */
/* Keep the field inside a full-width box: overflowing a margined header can
   leave hard corner cutouts when Chrome composites the fixed background. */
.mood-home > header { position:relative; isolation:isolate; border-bottom:0; margin:0 auto; padding-inline:5%; }
.mood-home .hero { isolation:isolate; overflow:hidden; }
.mood-home > header::before, .mood-home .hero::before {
 content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
 background-image:radial-gradient(ellipse 650px 500px at var(--opening-x,50vw) var(--opening-y,50vh),rgba(134,48,78,.55) 0%,rgba(89,43,70,.36) 32%,rgba(23,62,76,.3) 65%,transparent 100%);
 background-attachment:fixed;
 opacity:0; transition:opacity 400ms ease;
}
@media(hover:hover) and (pointer:fine) {
 .mood-home.opening-pointer-active > header::before,
 .mood-home.opening-pointer-active .hero::before { opacity:1; }
}
@media(prefers-reduced-motion:reduce) {
 .mood-home > header::before, .mood-home .hero::before { transition:none; }
}
