/* ============================================================================
   Homepage (dark page). Source: ajid-homepage-mockup-v6 (Acurela) and v5a
   (Buckminster); identical below the hero. Values from tokens.css.
   ========================================================================= */

/* ---- Hero: film that comes to rest on its own final frame ----------------- */
.hero {
  position: relative; height: 100svh; min-height: 600px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--d-deep);
}
.hero__media { position: absolute; inset: -9% 0; will-change: transform; }
.hero__still,
.hero__film {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__film { z-index: 1; background: transparent; }

/* Handoff: the still (the film's last frame) sits under the film. On rest it
   shows at once and the film fades off it over 140ms, so nothing moves. */
.js .hero__still { opacity: 0; }
.hero.is-rested .hero__still { opacity: 1; }
.hero.is-rested .hero__film { opacity: 0; transition: opacity .14s linear; }
.hero.is-done .hero__film { display: none; }
/* THEME PORT (2026-11-07): the film's first frame as an image under the film and the still
   (js/hero-film.js), so Safari shows the room, not the ground, while the film loads. */
.hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* THEME PORT (2026-11-09): a tiny copy of the first frame, inside the page itself (inc/assets.php),
   softened behind the poster. It paints with the page, so a first visit never shows the navy
   ground, even in a Safari private window with nothing saved. */
.hero__media::before {
  content: ""; position: absolute; inset: -24px;
  background: var(--hero-placeholder, none) center / cover no-repeat;
  filter: blur(14px);
}

/* Scrim per hero. Acurela is a bright room: v4b recipe (darkening pooled
   behind the type). Buckminster is already moody: the lighter v4 recipe. */
.hero__scrim { position: absolute; inset: 0; z-index: 2; }
.hero--acurela .hero__scrim {
  background:
    radial-gradient(92% 70% at 50% 44%, rgba(18,24,34,.68) 0%, rgba(18,24,34,.48) 44%, rgba(18,24,34,0) 82%),
    linear-gradient(180deg, rgba(26,32,42,.50) 0%, rgba(26,32,42,.16) 26%, rgba(26,32,42,.20) 58%, rgba(39,51,72,.92) 100%);
}
.hero--buckminster .hero__scrim {
  background:
    radial-gradient(118% 80% at 50% 46%, rgba(20,26,36,.62) 0%, rgba(20,26,36,.34) 48%, rgba(20,26,36,0) 80%),
    linear-gradient(180deg, rgba(26,32,42,.62) 0%, rgba(26,32,42,.30) 30%, rgba(26,32,42,.34) 60%, rgba(39,51,72,.92) 100%);
}

.hero__inner {
  position: relative; z-index: 3; max-width: 940px;
  padding-inline: var(--gut); text-align: center;
  color: var(--d-display); will-change: transform, opacity;
}
.hero__eyebrow { color: var(--d-quiet); }
.hero__welcome {
  margin-top: 58px;
  font-family: var(--script); font-weight: var(--script-weight); font-synthesis: none;
  font-size: clamp(54px, 8vw, 100px); line-height: 1.34;
  text-shadow: 0 1px 40px rgba(20,26,36,.35);
}
/* "It Begins With You" (Robb, 2026-10-27): longer than "Welcome", so a smaller size that never wraps.
   The line is about 13em wide in the script face, so the size follows the text column (940px at most)
   minus the gutters. */
.hero__welcome--long {
  --ink-gap: clamp(14px, 1.8vw, 24px);
  font-size: clamp(22px, calc((min(100vw, 940px) - 2 * var(--gut)) / 13.6), 92px); white-space: nowrap;
  /* Equal visible space above and below (Robb, 2026-11-03). The swashes reach about .29em above and
     .25em below the line box, so each margin adds that back; the small px values are the eyebrow's
     and the statement's own space between their box and their letters. */
  margin-top: calc(var(--ink-gap) + .29em - 3px);
  margin-bottom: calc(var(--ink-gap) + .25em - 3px);
}
.hero__welcome--long + .hero__statement { margin-top: 0; }
.hero__statement {
  margin-top: 4px;
  font-family: var(--display); font-weight: 100;
  font-size: clamp(26px, 3.5vw, 40px); line-height: 1.16; letter-spacing: -.025em;
  text-shadow: 0 1px 40px rgba(20,26,36,.3);
}
.hero__sub {
  max-width: 640px; margin: 26px auto 0;
  font-size: clamp(15px, 1.25vw, 17px); line-height: 1.62;
  color: color-mix(in srgb, var(--d-display) 88%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .js .hero__still { opacity: 1; }
  .hero__film { display: none; }
}

/* ---- As seen in (press strip, directly under the hero) ------------------- */
.press-strip { padding-block: clamp(38px, 4.6vw, 60px); text-align: center; }
.press__row {
  display: grid; grid-template-columns: repeat(2, 1fr); align-items: center;
  gap: clamp(28px, 3.2vw, 44px); margin-top: 52px;
}
@media (min-width: 760px) {
  .press__row { grid-template-columns: repeat(5, 1fr); gap: clamp(28px, 3.4vw, 56px); }
}
.press__logo { position: relative; aspect-ratio: 5 / 2; }
.press__logo img {
  position: absolute; inset: 25%; width: 50%; height: 50%; object-fit: contain;
}
/* SITE (audit handoff, 2026-09-28): the awards count, quietly, with the press. */
.press__awards {
  margin-top: clamp(24px, 2.8vw, 36px);
  font-size: var(--size-caption); letter-spacing: .02em; color: var(--ink-2);
}

/* ---- The Studio ------------------------------------------------------------ */
.intro {
  display: grid; grid-template-columns: 1fr; align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
@media (min-width: 900px) { .intro { grid-template-columns: .92fr 1.08fr; } }
.intro__stack { position: relative; }
.intro__stack .slot--b {
  position: absolute; right: 0; bottom: -11%; width: 46%;
  border: 8px solid var(--d-base);
  box-shadow: 0 18px 50px rgba(15,20,28,.45);
}
@media (min-width: 900px) { .intro__stack .slot--b { right: -9%; } }
.intro__body { max-width: 520px; }
.intro__body .h2 { margin-top: 20px; }
.intro__body p { margin-top: 24px; color: var(--ink-2); }
.intro__body .tlink { margin-top: 34px; }

/* ---- Photo band (05b tray) ------------------------------------------------- */
.photo-band {
  position: relative; height: clamp(340px, 56vh, 600px); overflow: hidden;
  background: var(--d-deep);
}
.photo-band__media { position: absolute; inset: -16% 0; will-change: transform; }
.photo-band__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Full Service (relief) -------------------------------------------------- */
.svc-jump { text-align: center; }
.svc-jump .h2 { margin-top: 20px; }
.svc-jump .lede { margin-top: 22px; }
.svc-jump__note { max-width: 620px; margin: 18px auto 0; color: var(--ink-2); }
.svc-jump .btn { margin-top: 40px; }

/* ---- How we work (philosophy) --------------------------------------------- */
.phil { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 80px); }
@media (min-width: 900px) {
  .phil { grid-template-columns: 1fr 1fr; align-items: start; }
  .phil__sticky { position: sticky; top: 110px; }
}
.phil__copy .h2 { margin-top: 20px; }
.phil__copy p { margin-top: 24px; color: var(--ink-2); }
.phil__copy .tlink { margin-top: 34px; }
.phil__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }

/* ---- Allison's quote (raised, entered through a long dissolve) ------------ */
.quote { max-width: 860px; margin-inline: auto; text-align: center; }
.quote blockquote {
  margin: 0;
  font-family: var(--display); font-weight: 100;
  font-size: clamp(24px, 3.1vw, 38px); line-height: 1.24; letter-spacing: -.021em;
  color: var(--headline);
}
.quote__attr {
  margin-top: 32px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--quiet);
}
.quote__media { margin-top: clamp(48px, 6vw, 84px); }

/* ---- Selected Work (relief) ----------------------------------------------- */
.folio__head { margin-bottom: clamp(40px, 5vw, 68px); text-align: center; }
.folio__head .h2 { margin-top: 18px; }
.folio {
  display: grid; grid-template-columns: 1fr;
  column-gap: clamp(22px, 2.4vw, 34px); row-gap: clamp(48px, 5vw, 76px);
}
@media (min-width: 760px) { .folio { grid-template-columns: 1fr 1fr; } }
.proj { position: relative; display: block; }
.proj__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline);
}
.proj__name { font-family: var(--display); font-weight: 300; font-size: 22px; line-height: 1.25; color: var(--headline); }
.proj__loc { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--quiet); white-space: nowrap; }
.js .proj:hover .slot__inner { transform: scale(1.05); }
.folio__more { margin-top: clamp(44px, 5vw, 72px); text-align: center; }

/* ---- In their words (dark, entered through a long dissolve) --------------- */
.quote-client { max-width: var(--measure); }
.quote-client blockquote {
  margin: 22px 0 0;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(21px, 2.2vw, 28px); line-height: 1.4; letter-spacing: -.011em;
  color: var(--headline);
}
.quote-client__attr {
  margin-top: 26px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--quiet);
}
.quote-client .tlink { margin-top: 24px; }
