/* ── Elarix · full-site sections ─────────────────────────────── */

body.elarix-site {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
}

/* ── HERO (Reel, responsive) ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 96px 56px 40px;
  display: flex; flex-direction: column;
  background: var(--bg);
}
.hero .eb-nav { position: absolute; top: 28px; left: 56px; right: 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  flex: 1;
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 88px 28px 28px; }
}

.hero-cap { padding-top: 8px; }
.hero-num {
  font-size: 48px; line-height: 1;
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 4px;
}
.hero-num span:first-child { animation: fadeUp .55s cubic-bezier(.6,0,.2,1); }
.hero-num__t {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.1em;
}
.hero-title {
  font-size: clamp(38px, 4.2vw, 56px);
  font-style: italic;
  margin: 0 0 32px;
  line-height: 1;
  animation: fadeUp .65s .05s both cubic-bezier(.6,0,.2,1);
}
.hero-meta { display: grid; gap: 12px; margin-bottom: 32px;
  animation: fadeUp .65s .1s both cubic-bezier(.6,0,.2,1);
}
.hero-meta > div {
  display: grid; grid-template-columns: 100px 1fr; gap: 12px;
  align-items: baseline;
  font-size: 13.5px; color: var(--ink-2);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.hero-ctrls { display: flex; align-items: center; gap: 12px; }

.hero-media {
  display: flex; flex-direction: column;
  gap: 22px;
  max-width: 1080px;
}
.hero-focal {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c0c0c;
  overflow: hidden;
  box-shadow: 0 24px 50px -22px rgba(40,32,18,0.35);
}
.hero-focal__layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-focal__layer.is-in  { animation: fadeIn  .55s ease both; }
.hero-focal__layer.is-out { animation: fadeOut .55s ease both; }

.hero-focal__chrome {
  position: absolute; left: 18px; right: 18px; top: 18px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 5;
}
.hero-focal__cinema {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; color: #f3efe5;
  background: rgba(0,0,0,.45);
  padding: 7px 11px;
  display: inline-flex; align-items: center; gap: 9px;
  backdrop-filter: blur(4px);
}
.hero-focal__cinema .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #e25a3a;
  animation: blink 1.6s infinite;
}
.hero-focal__tc {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; color: #f3efe5; opacity: .8;
}

/* thumbnail strip — ALL thumbs exact same fixed size */
.hero-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: start;
}
.hero-thumb-wrap {
  display: flex; flex-direction: column;
  gap: 7px; cursor: pointer;
  min-width: 0;
}
.hero-thumb-video {
  position: relative;
  width: 100%;
  height: 100px;
  background: #1a1a1a;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-thumb-video video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.hero-thumb-wrap:not(.is-on) .hero-thumb-video { opacity: .5; filter: grayscale(30%); }
.hero-thumb-wrap:hover .hero-thumb-video { opacity: .8; filter: grayscale(0); }
.hero-thumb-wrap.is-on .hero-thumb-video { opacity: 1; filter: none; }
.hero-thumb-active {
  position: absolute; inset: 0;
  border: 1.5px solid var(--ink);
  pointer-events: none;
}
.hero-thumb-cap {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 2px;
  gap: 8px;
}
.hero-thumb-brand {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
  text-align: right;
}
.hero-thumb-wrap:not(.is-on) .hero-thumb-cap { opacity: .55; }
.hero-thumb-wrap.is-on .hero-thumb-cap { opacity: 1; }

.hero-foot {
  margin-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.hero-foot__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero-foot__line {
  width: 36px; height: 1px; background: var(--ink);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0%,100% { transform: scaleX(.4); transform-origin: left; } 50% { transform: scaleX(1); } }

/* ── CLIENTS / SOCIAL PROOF ──────────────────────────────────── */
.clients {
  padding: 120px 56px 100px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.clients-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 56px;
}
.clients-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  line-height: .95; margin: 0; max-width: 760px;
  letter-spacing: -0.015em;
}
.clients-head h2 em { color: var(--ink-2); font-style: italic; }
.clients-head .meta {
  text-align: right; max-width: 280px;
  font-size: 13px; color: var(--ink-2); line-height: 1.55;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.clients-grid .cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 24px;
  min-height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: background .35s ease, color .35s ease;
}
.clients-grid .cell:hover { background: var(--ink); color: var(--bg); }
.clients-grid .cell.is-quote {
  grid-column: span 3;
  padding: 36px 32px;
  text-align: left;
  align-items: flex-start; justify-content: flex-start;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-2);
}
.clients-grid .cell.is-quote:hover { background: var(--bg-2); color: var(--ink); }
.clients-grid .cell.is-quote q {
  font-family: var(--serif);
  font-size: 22px; font-style: italic;
  line-height: 1.3; quotes: "“" "”";
  color: var(--ink);
}
.clients-grid .cell.is-quote .by {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}

/* Press marquee */
.press {
  margin-top: 56px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.press-track {
  display: flex; gap: 56px;
  animation: marquee 38s linear infinite;
  width: max-content;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.press-track span { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; }
.press-track span::after { content: "·"; opacity: .35; margin-left: 56px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── shared blink/fade ─────────────────────────────── */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
