/* ============================================================
   Carla Morales — carlamorales.es
   Dark editorial presentation card
   ============================================================ */

:root {
  --bg: #0d0b08;
  --bg-soft: #14110c;
  --ink: #f2ead9;
  --ink-dim: #a89f8c;
  --gold: #c9a35f;
  --gold-soft: rgba(201, 163, 95, 0.35);
  --line: rgba(242, 234, 217, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--bg); }

/* ---------- texture & light ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

.glow {
  position: fixed;
  top: 0; left: 0;
  width: 55vmax; height: 55vmax;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(201, 163, 95, 0.07) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
  mix-blend-mode: difference;
}

.monogram {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.mono-dot { color: var(--gold); mix-blend-mode: normal; }

.site-nav { display: flex; gap: 2.2rem; align-items: center; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.site-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  border: 1px solid var(--gold-soft);
  padding: 0.55rem 1.2rem;
  border-radius: 99px;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  z-index: 1;
}

.hero-overline {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.hero-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.6rem, 14vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-name .line { display: block; overflow: hidden; }
.hero-name .word { display: inline-block; }
.word-italic {
  font-style: italic;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.hero-role {
  margin-top: 2.2rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--ink-dim);
  letter-spacing: 0.08em;
}
.hero-role em { color: var(--gold); font-style: italic; }

.hero-photo {
  position: relative;
  margin-top: 3.5rem;
  width: clamp(150px, 22vw, 220px);
}
.photo-ring {
  border-radius: 50%;
  padding: 8px;
  border: 1px solid var(--gold-soft);
  background: radial-gradient(circle at 50% 30%, #241e14, var(--bg-soft));
}
.photo-ring img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  filter: saturate(0.92);
}

.badge {
  position: absolute;
  top: -2.2rem; right: -2.6rem;
  width: clamp(80px, 10vw, 110px);
  animation: spin 22s linear infinite;
}
.badge text {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  fill: var(--gold);
}
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  display: block;
  width: 1px; height: 56px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--gold);
  animation: drip 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes drip {
  0% { top: -50%; }
  100% { top: 110%; }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-dim);
  white-space: nowrap;
}
.marquee-track i { color: var(--gold); font-style: normal; font-size: 0.8rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections shared ---------- */
section { position: relative; z-index: 1; }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.section-label::before {
  content: "";
  display: inline-block;
  width: 2.4rem; height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 1rem;
}

.about-title,
.contact-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.about-title em,
.contact-title em {
  font-style: italic;
  color: var(--gold);
}

/* ---------- about ---------- */
.about {
  padding: clamp(6rem, 14vh, 10rem) clamp(1.5rem, 6vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about-body p { color: var(--ink-dim); margin-bottom: 1.3rem; max-width: 52ch; }
.about-body p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  padding-right: 0.12em;
  color: var(--gold);
}

.facts {
  list-style: none;
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.fact-key {
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  align-self: center;
}

.arrow {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--gold);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.contact-row:hover .arrow,
.booking-cta:hover .arrow {
  transform: translateX(6px);
}

/* ---------- contact ---------- */
.contact {
  padding: clamp(6rem, 14vh, 10rem) clamp(1.5rem, 6vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
}
.contact-links {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
}
.contact-row {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.4s, padding 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.contact-row:hover {
  background: linear-gradient(90deg, rgba(201, 163, 95, 0.06), transparent 70%);
  padding-left: 1.4rem;
}
.contact-key {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.contact-value {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-weight: 300;
}
.contact-row:hover .contact-value { color: var(--gold); }

.booking-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 3.2rem;
  padding: 1.1rem 2.2rem;
  border: 1px solid var(--gold);
  border-radius: 99px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.4s, color 0.4s, transform 0.4s;
}
.booking-cta:hover {
  background: var(--gold);
  color: var(--bg);
  transform: translateY(-2px);
}
.booking-cta:hover .arrow { color: var(--bg); }

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 2.4rem clamp(1.5rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

/* ---------- entrance & scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}
body.loaded .reveal {
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
body.loaded .hero-overline { animation-delay: 0.1s; }
body.loaded .hero-name .word:nth-child(1) { animation-delay: 0.25s; }
body.loaded .line:nth-child(2) .word { animation-delay: 0.4s; }
body.loaded .hero-role { animation-delay: 0.6s; }
body.loaded .hero-photo { animation-delay: 0.8s; }
body.loaded .scroll-hint { animation-delay: 1.2s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.observe {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.observe.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr auto; }
  .contact-key { grid-column: 1 / -1; margin-bottom: -0.6rem; }
}

@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .badge { top: -1.6rem; right: -1.2rem; }
  .word-italic { -webkit-text-stroke-width: 1px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .observe { opacity: 1; transform: none; }
  .glow { display: none; }
}
