/* ==========================================================================
   Block 02 — Hero
   Full-bleed video/GIF, box on the left, text + buttons on the right,
   two scrolling marquees along the bottom.
   ========================================================================== */

.hero {
  --marquee-h: 128px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 680px;
  min-height: calc(100svh - var(--announce-h));
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
  background: var(--c-ink);
  color: #fff;
}

@media (min-width: 750px) { .hero { --marquee-h: 150px; } }

/* ---------- media layer: fills the whole hero ---------- */

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__media > video,
.hero__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* shade so text + marquees stay readable on any video */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(10, 10, 10, 0.9) 0, rgba(10, 10, 10, 0) calc(var(--marquee-h) + 120px)),
    linear-gradient(270deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0) 55%);
  pointer-events: none;
}

/* ---------- PLACEHOLDER scene: the box on a desk (remove when the video exists) ---------- */

.hero__scene {
  position: absolute;
  inset: 0;
  perspective: 1800px;
  background:
    radial-gradient(ellipse 40% 35% at 28% 45%, rgba(212, 255, 0, 0.09), transparent 70%),
    radial-gradient(ellipse 80% 60% at 30% 0%, rgba(255, 255, 255, 0.05), transparent 70%),
    #0b0b0b;
}

.hero__desk-item {
  position: absolute;
  left: 6%;
  bottom: calc(var(--marquee-h) + 9%);
  width: clamp(300px, 42vw, 780px);
  /* the device needs its own perspective (the scene's only reaches direct children);
     without it the turned screen renders flat and you can't tell which way it faces */
  perspective: 1100px;
  perspective-origin: 50% 40%;
}

/* the desk the box stands on */
.hero__desk-item::before {
  content: "";
  position: absolute;
  top: calc(100% - 0.6vw);
  left: -200vw;
  right: -200vw;
  height: 100vh;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0, transparent 2px),
    linear-gradient(180deg, #17150f 0%, #0d0c0a 40%, #080808 100%);
}

/* soft reflection of the screen on the desk */
.hero__desk-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 6%;
  right: 6%;
  height: 22%;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(212, 255, 0, 0.12), transparent 70%);
  filter: blur(6px);
}

/* ---------- text + buttons (right half) ---------- */

.hero__main {
  flex: 1;
  display: grid;
  align-items: center;
  padding: 32px var(--gutter);
}

.hero__copy {
  text-align: center;
  justify-self: center;
}

.hero__title { font-size: clamp(56px, 6.4vw, 112px); }

.hero__text {
  max-width: 40ch;
  margin: 14px auto 0;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 990px) {
  .hero__main { grid-template-columns: 1fr 1fr; }
  .hero__copy { grid-column: 2; }
}

/* phones/tablets: box on top, text underneath */
@media (max-width: 989px) {
  .hero__desk-item {
    left: 50%;
    bottom: auto;
    top: calc(var(--header-h) + 28px);
    width: min(84vw, 560px);
    transform: translateX(-50%);
  }
  .hero__main {
    align-items: center;
    padding-top: calc(min(84vw, 560px) / 2 + 56px);
    padding-bottom: 20px;
  }
}

/* ---------- marquees ---------- */

.hero__marquees {
  height: var(--marquee-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  animation: marquee var(--speed, 40s) linear infinite;
}

.marquee--reverse .marquee__track { animation-direction: reverse; }

@keyframes marquee {
  to { transform: translateX(-100%); }
}

.marquee--big {
  --speed: 38s;
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 48px);
  font-style: italic;
  line-height: 1.05;
  text-transform: uppercase;
}

.marquee--big .marquee__item { padding-right: 0.45em; }

.marquee--big .marquee__item::after {
  content: "";
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  margin-left: 0.45em;
  border-radius: 50%;
  background: var(--c-accent);
  vertical-align: middle;
}

.marquee--small {
  --speed: 55s;
  padding: 12px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.marquee--small .marquee__item { padding-right: 1.6em; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Buttons (shared) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 1000rem;
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn--primary { background: var(--c-accent); color: var(--c-accent-ink); }
.btn--primary:hover { background: #fff; }

.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn--ghost:hover svg { transform: translateY(3px); }

/* small phones: buttons side by side, a bit smaller */
@media (max-width: 480px) {
  .hero__actions { flex-wrap: nowrap; gap: 8px; }
  .hero__actions .btn { flex: 1 1 0; height: 46px; padding: 0 12px; font-size: 12px; white-space: nowrap; }
  .hero__actions .btn svg { display: none; }
}

/* ==========================================================================
   TEMPORARY placeholders for the next blocks
   ========================================================================== */

.ph-block {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 80vh;
  padding: 80px var(--gutter);
  border-top: 1px dashed rgba(0, 0, 0, 0.18);
  color: rgba(0, 0, 0, 0.45);
  text-align: center;
}

.ph-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--c-ink);
}
