/* Homepage layout. Components and tokens come from the design system (tokens.css, components.css);
   this file only arranges them. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); }
body.rh { min-height: 100vh; }
img { max-width: 100%; }

.container { max-width: var(--size-container); margin: 0 auto; padding: 0 var(--space-30); }
.section { padding: 120px 0; }
.section--raised { background: var(--surface-raised); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip:focus { left: var(--space-20); top: var(--space-20); }

/* Header over the hero ------------------------------------------------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.site-header .rh-header { max-width: 1400px; margin: 0 auto; }
.site-header .rh-header__logo img { height: 56px; }
.menu-toggle {
  display: none;
  width: var(--size-control); height: var(--size-control);
  align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--ink-heading); font-size: 22px; cursor: pointer;
}

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background:
    radial-gradient(120% 60% at 50% 52%, rgba(255,77,77,.55) 0%, rgba(190,0,0,.35) 8%, rgba(60,0,0,.6) 22%, rgba(0,0,0,0) 55%),
    var(--black);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.hero canvas.is-live { opacity: 1; }
.hero::after {  /* legibility veil behind the caption */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 50%, rgba(0,0,0,.75) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto; padding: 140px var(--space-30) 96px; }
@media (max-height: 640px) {
  .hero__inner { padding-bottom: 56px; }
  .hero__scroll { display: none; }
}
.hero h1 {
  margin: 0; max-width: 820px;
  font-family: var(--font-display); font-size: clamp(40px, 7vw, 88px); font-weight: 700; line-height: .95;
  letter-spacing: 2px; text-transform: uppercase; color: var(--white);
}
.hero__lead { margin: var(--space-30) 0 0; max-width: 520px; font-size: 18px; line-height: 28px; color: var(--neutral-300); }
.hero__actions { margin-top: var(--space-40); display: flex; flex-wrap: wrap; gap: var(--space-10); }
.hero__actions .rh-button { margin: 0; }
.hero .rh-button--border { color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.hero__scroll {
  position: absolute; right: var(--space-30); bottom: 96px; z-index: 2;
  writing-mode: vertical-rl; font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--neutral-300);
}
.rh .hero__scroll:hover { color: var(--white); }
.hero__scroll::after { content: ""; display: inline-block; width: 1px; height: 56px; margin-top: var(--space-15); background: var(--accent); }

/* About ----------------------------------------------------------------- */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-50); }
.triad p { margin: 0; }
.platforms {
  margin: 96px 0 0; padding-top: var(--space-30);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-10) var(--space-30);
}
.platforms .rh-eyebrow { margin: 0 var(--space-10) 0 0; color: var(--ink-muted); }
.platforms ul { display: contents; list-style: none; }
.platforms li { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-heading); }

/* Expertise ------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 72px var(--space-60); }
.rh-feature p { font-size: 16px; line-height: 26px; }

/* Works ----------------------------------------------------------------- */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-30); }
.works .rh-work { max-width: none; }
.works .rh-work__media img { transition: transform .6s ease; }
.works .rh-work:hover .rh-work__media img { transform: scale(1.04); }
.works .rh-work__desc { text-align: left; padding: var(--space-20) 0 0; }
.works .rh-work__desc h3 { font-size: 24px; line-height: 1.25; }
.works .rh-work__desc span { font-size: 16px; line-height: 26px; }

/* Quote band ------------------------------------------------------------ */
.quote { background: var(--black) url(/assets/img/imagine-spectrum.jpg) center / cover no-repeat; }
.quote .rh-quote__plate { max-width: 760px; }

/* Contact --------------------------------------------------------------- */
.contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-30); }
.rh-contact__icon .rh-mark { font-size: 40px; }

/* Footer ---------------------------------------------------------------- */
.site-footer .rh-footer { max-width: var(--size-container); margin: 0 auto; }
.site-footer { background: var(--surface-alt); }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 991px) {
  .menu-toggle { display: inline-flex; }
  .site-header .rh-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: var(--space-10) var(--space-30) var(--space-20);
    background: var(--surface); border-bottom: 1px solid var(--border);
  }
  .site-header.is-open .rh-nav { display: flex; }
  .site-header .rh-nav a { padding: var(--space-15) 0; }
  .site-header .rh-header { position: relative; }
  .triad, .features { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 88px 0; }
}
@media (max-width: 640px) {
  .container, .hero__inner { padding-left: var(--space-20); padding-right: var(--space-20); }
  .site-header .rh-header { padding: 0 var(--space-20); min-height: 80px; }
  .site-header .rh-header__logo img { height: 44px; }
  .works, .contacts { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .hero__inner { padding-bottom: 64px; }
  .rh-feature { padding-left: 64px; }
  .rh-feature__icon { font-size: 40px; }
  .rh-heading h2 { font-size: 28px; }
  .rh-quote__plate h2 { font-size: 24px; }
}
