/* ==========================================================================
   Carmín · Estudio digital — portada: cabeceras, hero, rubros y manifiesto
   ========================================================================== */

/* ---------- Cabecera de sección compartida ---------- */
.section-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px var(--gap);
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head .h2 { grid-column: 1 / span 8; }
.section-head__lead {
  grid-column: 9 / -1;
  align-self: end;
  max-width: 38ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--silver-2);
}
@media (max-width: 900px) {
  .section-head .h2,
  .section-head__lead { grid-column: 1 / -1; }
}

/* ================================ HERO ================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: max(680px, 100svh);
  background:
    radial-gradient(60% 70% at 75% 30%, rgba(197, 202, 208, .22), transparent 70%),
    radial-gradient(40% 50% at 85% 70%, rgba(var(--accent-rgb), .18), transparent 70%),
    var(--ink);
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 7, 8, .55) 0%, transparent 22%, transparent 48%, rgba(6, 7, 8, .82) 100%),
    linear-gradient(90deg, rgba(6, 7, 8, .55) 0%, transparent 55%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(28px, 4vw, 56px);
  padding-block: calc(112px + env(safe-area-inset-top, 0px)) clamp(28px, 3.5vw, 48px);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }

.hero__title {
  align-self: end;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 600;
  font-size: var(--fs-hero);
  line-height: .86;
  letter-spacing: -.06em;
  text-shadow: 0 10px 60px rgba(0, 0, 0, .35);
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.hero__title .line__in { display: block; }
.hero__title .line--indent { padding-left: 1.4em; }
.hero__title em { font-size: 1.12em; line-height: .8; letter-spacing: -.03em; text-shadow: none; }

.js .hero__title .line__in { transform: translateY(110%) rotate(3deg); transform-origin: left bottom; }
.is-loaded .hero__title .line__in {
  transform: none;
  transition: transform 1.1s var(--ease);
}
.is-loaded .hero__title .line--indent .line__in { transition-delay: .1s; }

.js .hero__foot,
.js .hero__meta { transform: translateY(16px); }
.is-loaded .hero__foot,
.is-loaded .hero__meta {
  transform: none;
  transition: transform 1s var(--ease) .1s;
}
.hero__inner { will-change: transform; }

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 5fr) auto minmax(0, 3fr);
  align-items: end;
  gap: 24px 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
}
.hero__lead { max-width: 42ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--silver); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__status { justify-self: end; display: grid; gap: 6px; text-align: right; }
.hero__status strong {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.hero__status .label { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 1;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: var(--line);
}
.hero__scroll::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--pearl));
  animation: scroll-cue 2.2s var(--ease-io) infinite;
}
@keyframes scroll-cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

@media (max-width: 1080px) {
  .hero__foot { grid-template-columns: minmax(0, 1fr) auto; }
  .hero__lead { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero__meta > span:nth-child(2) { display: none; }
  .hero__title { font-size: 16.5vw; }
  .hero__title .line--indent { padding-left: .5em; }
  .hero__foot { grid-template-columns: minmax(0, 1fr); }
  .hero__status { justify-self: start; text-align: left; }
  .hero__status .label { justify-content: flex-start; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__scroll { display: none; }
}

/* ================================ TICKER ============================== */
.ticker {
  position: relative;
  overflow: hidden;
  padding-block: 26px;
  border-block: 1px solid var(--line);
  background: var(--ink);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 52s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  list-style: none;
  font-family: var(--f-display);
  font-stretch: 118%;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  letter-spacing: -.03em;
  white-space: nowrap;
  color: var(--pearl);
}
.ticker__list li:nth-child(4n + 3) { color: transparent; -webkit-text-stroke: 1px var(--silver-2); }
.ticker__list .sep svg { width: .5em; height: .5em; fill: var(--accent); filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), .8)); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================== MANIFIESTO ============================ */
.manifesto {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section);
}
.manifesto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(75% 65% at 55% 40%, rgba(6, 7, 8, .82), rgba(6, 7, 8, .25) 75%);
}
.manifesto__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gap);
}
.manifesto .eyebrow { grid-column: 1 / span 3; align-self: start; padding-top: .9em; }
.manifesto__text {
  grid-column: 4 / -1;
  font-family: var(--f-serif);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.manifesto__text em { font-style: italic; color: var(--accent-text); }
.manifesto__text.is-split .w { opacity: .14; filter: blur(2px); transition: opacity .7s var(--ease), filter .7s var(--ease); }
.manifesto__text.is-split .w.is-lit { opacity: 1; filter: none; }

.pillars {
  grid-column: 4 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(40px, 6vw, 96px);
}
.pillar {
  padding: 24px;
  border-radius: 18px;
  background: rgba(18, 20, 24, .5);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.pillar h3 {
  margin-bottom: 10px;
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.pillar p { max-width: 34ch; font-size: var(--fs-sm); color: var(--silver-2); }

.fx-caption {
  position: absolute;
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  bottom: 22px;
  z-index: 1;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--silver-2);
}

@media (max-width: 900px) {
  .manifesto .eyebrow,
  .manifesto__text,
  .pillars { grid-column: 1 / -1; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
}
