/* ============================================================
   First Site Studio - home.css
   Homepage-only styles. Loaded on index.html after styles.css,
   so anything here wins over the shared rule of the same
   specificity. Nothing in this file is used by any other page.

   Direction: "solid ground". One bold move (a large geometric
   staircase in the hero, echoing the logo's first-step motif),
   then a calmer page below it: fewer boxes, fewer alternating
   bands, sentence-case eyebrows with a short sky-blue rule.
   ============================================================ */

/* All colour tokens live in the single block at the top of
   styles.css. This file declares none of its own. */

/* ============================================================
   Shared bits, restyled for the homepage
   ============================================================ */

/* Scroll-reveal fade-ups are switched off on the homepage so the
   hero staircase is the only motion on the page. The .reveal
   class stays in the HTML; elements are simply visible. */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden; /* the staircase bleeds off the right edge and is clipped here */
  padding-block: 88px 96px;
}

.hero-inner {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

/* "found and booked" stays bright sky: large display type at every
   breakpoint (smallest is 41.6px), where 3.52:1 passes AA. */
.hero h1 .accent-dot {
  color: var(--blue);
}

.hero .lead {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-top: 26px;
  max-width: 30em;
}

.hero .lead-sub {
  margin-top: 16px;
  max-width: 34em;
}

.hero-actions {
  margin-top: 36px;
}

/* The grey box goes; the drawing sits directly on the page */
.hero-art {
  background: transparent;
  border-radius: 0;
  padding: 0;
  max-width: none;
  margin: 0;
}

/* Artwork beyond the viewBox on the right is allowed to show;
   the section's overflow: hidden clips it at the viewport edge. */
.hero-art svg {
  overflow: visible;
  display: block;
}

/* ---- The one animation: the four steps rise into place ----
   Opacity plus a 14px lift on each SVG group, staggered, then the
   green marker settles last. The SVG box never changes size, so
   nothing on the page shifts. */
.hero-step,
.hero-marker {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-step:nth-of-type(1) { animation-delay: 0.05s; }
.hero-step:nth-of-type(2) { animation-delay: 0.17s; }
.hero-step:nth-of-type(3) { animation-delay: 0.29s; }
.hero-step:nth-of-type(4) { animation-delay: 0.41s; }
.hero-marker            { animation-delay: 0.7s; }

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-step,
  .hero-marker {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Sound familiar - speech bubbles
   (the bubble shape is shared, in styles.css)
   ============================================================ */
.familiar {
  background: transparent;
  border-block: none;
  padding-block: 24px 96px;
}

.quote-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 20px;
  margin-top: 28px;
  max-width: 900px;
}

.familiar-answer {
  margin-top: 36px;
  max-width: 34em;
  font-size: 1.15rem;
}

/* ============================================================
   What we do - icon list (shared component in styles.css)
   ============================================================ */
.features-home {
  background: transparent;
  padding-block: 32px 108px;
}

.features-home .section-intro {
  margin-bottom: 44px;
}

/* ============================================================
   How it works - treads instead of boxes
   ============================================================ */
.step {
  background: transparent;
  border: none;
  border-top: 3px solid var(--blue);
  border-radius: 0;
  padding: 22px 0 0;
}

/* Large sky-blue numeral (4.85:1 on navy). Numbers stay because
   this genuinely is a sequence. */
.step-number {
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 14px;
}

/* ============================================================
   About
   ============================================================ */
.about {
  background: transparent;
  border-block: none;
}

.about-photo img {
  border: none;
}

/* ============================================================
   Our work
   ============================================================ */
.work-sector {
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    padding-block: 56px 72px;
  }

  /* Re-declared here because the two-column rule above loads after
     the shared stylesheet and would otherwise beat its mobile rule */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    max-width: none;
  }

  /* Art sits under the copy at full column width, still bleeding right */
  .hero-art {
    max-width: none;
    margin-inline: 0;
  }
}

@media (max-width: 720px) {
  .familiar {
    padding-block: 8px 64px;
  }

  .features-home {
    padding-block: 16px 72px;
  }
}
