.landing { padding-bottom: var(--section-space); }
.home-intro { padding-block: clamp(2rem, 5vw, 4.8rem) clamp(1.3rem, 3.3vw, 2.9rem); }
.home-intro h1 {
  font-size: clamp(3rem, 10.1vw, 10rem);
  line-height: .88;
  letter-spacing: -.1em;
  white-space: nowrap;
}
.home-intro h1 span { color: #a44726; }
.brand-doors { border-radius: var(--radius); overflow: hidden; }

.door {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(22rem, 35vw, 34rem);
  padding: clamp(1.2rem, 3.7vw, 3.5rem);
}
.door--code {
  background-color: #061715;
  --ink: #f4f3e9;
  --brand-accent: #d7f582;
  --on-accent: #202712;
}
.door { text-decoration: none; }
.door--media {
  background-color: #bd4d14;
  --ink: #fff7ec;
  --brand-accent: #ffae84;
  --on-accent: #341b12;
}
.door:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -5px;
}
.door--media::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: linear-gradient(to top, #5c240b66, transparent 46%);
}
.door-content { color: var(--ink); }
.door-content h2 {
  font-size: clamp(2.65rem, 5.25vw, 5.9rem);
  letter-spacing: -.09em;
  line-height: .94;
}
.door-content h2 span { color: var(--brand-accent); }
.door-content p { max-width: 28ch; margin-block: .75rem 1.2rem; font-size: clamp(1rem, 1.5vw, 1.22rem); }

.door-content { width: 100%; }
.door-wordmark {
  display: block;
  width: min(100%, 34rem);
  height: auto;
  margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}
.door-art { position: absolute; pointer-events: none; }
.media-waves {
  inset: -24%;
  z-index: -2;
  background:
    repeating-radial-gradient(
      ellipse at 82% 110%,
      #9c3309 0 7%,
      #bd490d 7.2% 12%,
      #db6416 12.2% 17%,
      #ed801d 17.2% 22%,
      #ffa43e 22.2% 28%
    );
  transform-origin: 60% 48%;
  animation: media-waves-loop 10s ease-in-out infinite;
}
.media-waves::before {
  position: absolute;
  inset: 0;
  content: '';
  background: repeating-radial-gradient(
    ellipse at 12% -18%,
    #ffc272 0 8%,
    #ffab4c 8.2% 15%,
    #f38e28 15.2% 21%,
    #dd6816 21.2% 26%
  );
  mask-image: linear-gradient(145deg, #000 32%, transparent 70%);
}
@keyframes media-waves-loop {
  0%, 100% { transform: translate(-2%, 1%) rotate(-9deg) scale(1.02); }
  50% { transform: translate(3%, -2%) rotate(9deg) scale(1.14, 1.07); }
}
.code-contours {
  inset: -14%;
  z-index: -2;
  background: url('/assets/oni-code-contours.webp') 65% center / cover no-repeat;
  transform-origin: 70% 35%;
  animation: code-contours-loop 10s ease-in-out infinite;
}
@keyframes code-contours-loop {
  0%, 100% { transform: translate(-2%, 1%) scale(1.02); }
  50% { transform: translate(3%, -2%) rotate(5deg) scale(1.13); }
}
@media (max-width: 767.98px) {
  .door { min-height: 19rem; }
  .door-content h2 { font-size: clamp(2.85rem, 10vw, 4.6rem); }
}
@media (prefers-reduced-motion: reduce) {
  .code-contours, .media-waves { animation: none; }
}

.door { --primary: var(--brand-accent); --primary-foreground: var(--on-accent); }

/* The production Media logo uses an optimized WebP asset. */
.media-wordmark { display:block; width:min(100%,34rem); height:auto; margin-bottom:clamp(1.25rem,3vw,2.5rem); }
