/* Home page — builds on base.css. */

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; min-height: clamp(640px, calc(100vh - var(--header-h)), 820px); background: var(--mauve); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; }
/* A soft wash of the wall colour behind the copy, so the lede never sits on the plant. */
.hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(221, 211, 220, .78) 0%, rgba(221, 211, 220, .55) 30%, rgba(221, 211, 220, 0) 52%); }
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding-top: clamp(56px, 6.4vw, 92px); padding-bottom: clamp(40px, 4.4vw, 64px); }
.hero__title { max-width: min(62%, 820px); font-size: clamp(56px, 7.6vw, 116px); line-height: .96; }
.hero__title .accent { font-size: 1.12em; }
.hero__title .accent { display: block; margin-top: .02em; }
.hero__foot { display: flex; flex-direction: column; gap: 28px; max-width: 540px; }
.hero__lede { max-width: min(21.5em, 34vw); }
.hero__actions { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.hero__actions .link:hover { color: var(--brown); }
.hero__tag { position: absolute; z-index: 2; right: calc(var(--gutter) + clamp(0px, 3vw, 48px)); bottom: clamp(40px, 4.4vw, 64px); display: flex; flex-direction: column; gap: 4px; padding: 14px 20px 15px 18px; background: var(--paper); border-left: 3px solid var(--chartreuse); }
.hero__tag-name { font-family: var(--font-display); font-size: 19px; line-height: 1.1; }
.hero__tag-role { font-family: var(--font-caps); font-size: 12px; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 1440px) { .hero__tag { right: calc((100vw - var(--container)) / 2 + var(--gutter) + 48px); } }

/* ---------- Facts strip ----------
   Four equal columns on the page grid; dividers sit in the gutters so every
   value starts on a column line (first column included). */
.facts { border-bottom: 1px solid var(--line-ink); }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 48px; margin: 0 auto; }
.fact { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 24px 0 26px; }
.fact + .fact::before { content: ""; position: absolute; top: 0; bottom: 0; left: -24px; width: 1px; background: var(--line); }
.fact__value { font-family: var(--font-display); font-size: clamp(28px, 2.5vw, 36px); line-height: 1.08; letter-spacing: -.005em; white-space: nowrap; }
.fact__label { font-size: 17px; line-height: 1.35; color: var(--muted); text-wrap: balance; }

/* ---------- 01 The firm ----------
   The chairs are cropped to their drawn bounds and share a floor line with the
   text column: the feet sit on the baseline of the "About Maya" link. */
.firm { padding-top: clamp(64px, 6.6vw, 96px); padding-bottom: clamp(72px, 7.4vw, 108px); }
.firm__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6.6vw, 96px); align-items: end; }
.firm__illo { width: 100%; max-width: 600px; aspect-ratio: 1200 / 760; object-fit: cover; object-position: 50% 54%; margin-bottom: -6px; }
.firm__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: clamp(0px, 1vw, 12px); }
.firm__text .h2 { max-width: 9em; }
.firm__text .link { margin-top: 4px; }
.firm__text .body { max-width: 25em; }

/* ---------- 02 Practice ---------- */
.areas { margin-top: clamp(40px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; border-top: 1px solid var(--paper); }
.areas > li { display: grid; grid-row: span 3; grid-template-rows: subgrid; border-left: 1px solid var(--dark-line-2); }
.areas > li:first-child { border-left: 0; }
.area { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 16px; padding: 32px 32px 40px; transition: background .2s var(--ease); }
.areas > li:first-child .area { padding-left: 0; }
.areas > li:last-child .area { padding-right: 0; }
.area__key { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-caps); font-size: 15px; letter-spacing: .08em; color: var(--chartreuse); }
.area__go { font-family: var(--font-serif); font-size: 22px; line-height: 1; letter-spacing: 0; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--ease); }
.area__title { max-width: 11em; font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 34px); line-height: 1.05; text-wrap: balance; transition: color .15s; }
.area__body { font-size: 19px; line-height: 1.5; color: var(--dark-text-2); max-width: 24em; text-wrap: pretty; }
.area:hover .area__title, .area:focus-visible .area__title { color: var(--chartreuse); }
.area:hover .area__go, .area:focus-visible .area__go { opacity: 1; transform: none; }
.area:focus-visible { outline-offset: -2px; }

/* ---------- 03 How I work ---------- */
/* The intro column stretches to the steps; the cord sits at its foot, its
   tail ending on the last step rule. */
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6.6vw, 96px); align-items: stretch; }
.how__intro { display: flex; flex-direction: column; gap: 20px; padding-bottom: 46px; }
.how__illo { margin-top: auto; width: 100%; max-width: 520px; aspect-ratio: 1200 / 860; object-fit: cover; object-position: 50% 100%; }
.steps { border-bottom: 1px solid var(--line-ink); }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 24px; padding: 28px 0 30px; border-top: 1px solid var(--line-ink); }
.step__n { font-family: var(--font-caps); font-size: 15px; letter-spacing: .08em; color: var(--brown); padding-top: 8px; font-variant-numeric: tabular-nums; }
.step__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.2vw, 30px); line-height: 1.15; }
.step__body { margin-top: 8px; font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 34em; text-wrap: pretty; }
.steps__foot { padding-top: 24px; }

/* ---------- 04 Resources ---------- */
.resources__grid { margin-top: clamp(36px, 3.4vw, 48px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .step { grid-template-columns: 56px minmax(0, 1fr); }
  }
@media (max-width: 960px) {
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3)::before { display: none; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .areas { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .areas > li { display: block; grid-row: auto; border-left: 0; border-top: 1px solid var(--dark-line-2); }
  .areas > li:first-child { border-top: 0; }
  .area, .areas > li:first-child .area, .areas > li:last-child .area { display: flex; flex-direction: column; gap: 12px; padding: 28px 0 32px; }
  .area__go { opacity: 1; transform: none; }
  .area__body { max-width: 40ch; }
  .how__grid { grid-template-columns: minmax(0, 1fr); }
  .how__intro { padding-bottom: 0; }
  .how__illo { margin-top: 8px; max-width: 380px; }
}
@media (max-width: 860px) {
  .firm__grid { grid-template-columns: minmax(0, 1fr); }
  .firm__illo { max-width: 480px; justify-self: start; margin-bottom: 0; }
  .firm__grid { align-items: start; }
}
@media (max-width: 900px) {
  .hero { flex-direction: column; min-height: 0; }
  .hero__inner { order: 1; padding-top: 40px; padding-bottom: 40px; gap: 32px; }
  .hero__title { max-width: none; }
  .hero__media { position: relative; order: 2; height: clamp(380px, 110vw, 560px); }
  .hero__media img { object-position: 84% 22%; }
  .hero__media::after { display: none; }
  .hero__tag { right: var(--gutter); bottom: 20px; }
  .hero__foot { max-width: none; }
  .hero__lede { max-width: 26em; }
}
@media (max-width: 560px) {
  .facts__grid { grid-template-columns: minmax(0, 1fr); }
  .fact { padding: 18px 0 20px; border-top: 1px solid var(--line); }
  .fact::before, .fact + .fact::before { display: none; }
  .fact:first-child { border-top: 0; }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 12px; padding: 24px 0 26px; }
  .step__n { padding-top: 6px; }
}
