/* ============================================
   Caóticamente Hermosa · Coming Soon
   Single-viewport · Photo left, copy right
   ============================================ */

:root {
  --rojo: #F6042E;
  --rosa: #FFB9FF;
  --rosa-claro: #FFE8FB;
  --negro: #2C2C2C;
  --blanco: #FFFFFF;

  --font-display: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Caveat", "Brush Script MT", cursive;

  --easing: cubic-bezier(0.2, 0.8, 0.2, 1);
  --easing-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --ticker-h: 44px;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* Subtle film grain (atmospheric) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='220' height='220' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ---------- TICKER ---------- */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  white-space: nowrap;
  z-index: 5;
  background: var(--rojo);
}

.ticker__track {
  display: inline-block;
  animation: ticker-scroll 42s linear infinite;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  color: var(--blanco);
  padding-left: 1rem;
  will-change: transform;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ============================================
   STAGE: full viewport split
   Mobile: stacked (photo top, copy bottom)
   Desktop: 2 cols (photo left, copy right)
   ============================================ */
.stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  padding-top: var(--ticker-h);
  display: grid;
  grid-template-rows: 0.85fr 1.15fr;
  align-items: stretch;
}

/* ---------- PORTRAIT ---------- */
.portrait {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.portrait__halo {
  position: absolute;
  inset: -10% -15% 0 -15%;
  width: 130%;
  height: 110%;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) saturate(100%) invert(83%) sepia(33%) saturate(1500%) hue-rotate(254deg) brightness(108%) contrast(101%);
  opacity: 0.85;
  z-index: 1;
  animation: halo-drift 18s var(--easing-soft) infinite alternate;
}

.portrait__photo {
  position: relative;
  width: auto;
  max-width: 95%;
  max-height: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  z-index: 2;
  animation: photo-rise 1.2s var(--easing) 0.1s both;
}

@keyframes photo-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes halo-drift {
  from { transform: translate(-1%, 1%) scale(1); }
  to   { transform: translate(2%, -1%) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .portrait__halo { animation: none; }
  .portrait__photo { animation: none; opacity: 1; transform: none; }
}

/* ---------- COPY ---------- */
.copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.5rem 1.5rem;
  gap: 1rem;
  text-align: center;
  align-items: center;
}

.copy__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.logo__mark {
  width: clamp(180px, 44vw, 240px);
}
.logo__by {
  width: clamp(110px, 26vw, 140px);
}

/* ---------- DATEBLOCK ---------- */
.dateblock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.dateblock__eye {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.78rem, 2.4vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--rosa);
  padding-left: 0.5em; /* compensate trailing tracking */
}

.dateblock__date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 13vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--blanco);
}

.dateblock__dot {
  display: inline-block;
  color: var(--rosa);
  transform: translateY(-0.05em);
  margin: 0 0.04em;
}

.dateblock__sub {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1.2rem, 3.8vw, 1.7rem);
  color: var(--rosa);
  line-height: 1;
  margin-top: 0.15rem;
}

/* ---------- LEDE ---------- */
.lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.92rem, 2.5vw, 1.05rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36ch;
}

/* ---------- CTA ---------- */
.cta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-body);
  margin-top: 0.25rem;
}

.cta__lead {
  font-weight: 300;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
}

.cta__handle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  color: var(--rosa);
  letter-spacing: 0.01em;
  text-transform: lowercase;
  background-image: linear-gradient(var(--rosa), var(--rosa));
  background-position: 0 calc(100% - 1px);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  transition: color 0.3s var(--easing-soft), background-size 0.4s var(--easing-soft);
}

.cta__arrow {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--rosa);
  display: inline-block;
  transition: transform 0.4s var(--easing);
  transform: translateY(0.05em);
}

.cta:hover .cta__handle,
.cta:focus-visible .cta__handle {
  color: var(--blanco);
  background-image: linear-gradient(var(--blanco), var(--blanco));
  background-size: 100% 2px;
}
.cta:hover .cta__arrow,
.cta:focus-visible .cta__arrow {
  color: var(--blanco);
  transform: translate(3px, -3px);
}
.cta:focus-visible {
  outline: 2px solid var(--blanco);
  outline-offset: 6px;
  border-radius: 2px;
}

/* ============================================
   DESKTOP: 2-column magazine spread
   ============================================ */
@media (min-width: 880px) {
  .stage {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .portrait {
    align-items: flex-end;
    justify-content: flex-end;
    padding-right: 0;
  }

  .portrait__halo {
    inset: -5% -10% 0 -25%;
    width: 130%;
    height: 105%;
  }

  .portrait__photo {
    max-width: 100%;
    width: auto;
    max-height: calc(100vh - var(--ticker-h));
    height: 100%;
    object-position: right bottom;
  }

  .copy {
    padding: 2rem 4rem 2rem 3rem;
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
    justify-content: center;
  }

  .copy__head { align-items: flex-start; }
  .dateblock { align-items: flex-start; }
  .cta { justify-content: flex-start; }

  .dateblock__eye::after {
    content: "";
    display: inline-block;
    width: 2.5rem;
    height: 1px;
    background: var(--rosa);
    opacity: 0.55;
    vertical-align: middle;
    margin-left: 1rem;
    margin-bottom: 2px;
  }
}

@media (min-width: 1280px) {
  .copy {
    padding: 2.5rem 6rem 2.5rem 4rem;
    gap: 1.75rem;
  }
  .dateblock__date { font-size: clamp(5rem, 8.5vw, 8rem); }
}

@media (min-width: 1600px) {
  .copy { padding: 3rem 8rem 3rem 5rem; }
}

/* ============================================
   ENTRANCE: staggered reveals
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.85s var(--easing) forwards;
  animation-delay: var(--d, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Selection */
::selection {
  background: var(--rosa);
  color: var(--rojo);
}

/* ============================================
   MOBILE FINE-TUNING
   ============================================ */
@media (max-width: 879px) {
  .stage {
    grid-template-rows: minmax(0, 0.55fr) minmax(0, 0.45fr);
  }

  .portrait__halo {
    inset: -15% -45% -8% -25%;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: 30% 50%;
  }
  .portrait__photo {
    max-height: 100%;
    object-position: center bottom;
  }
  .copy {
    padding: 0.85rem 1.25rem 1.25rem;
    gap: 0.75rem;
  }
  .copy__head { gap: 0.3rem; }
  .lede { font-size: 0.88rem; line-height: 1.45; }
  .dateblock__date { font-size: clamp(2.8rem, 14vw, 4.5rem); }
}

/* Very short viewports (landscape phones, small laptops) */
@media (max-height: 700px) and (min-width: 880px) {
  .copy { gap: 1rem; padding: 1.5rem 3rem; }
  .dateblock__date { font-size: clamp(3.5rem, 6vw, 5rem); }
  .lede { font-size: 0.95rem; }
}
