/* ==========================================================================
   Homepage only
   ========================================================================== */

/* ---------- Hero (home extras; base hero styles are in main.css) ---------- */
.hero__media img { object-position: 50% 70%; }
/* Phones: show the whole stall (like the design) instead of a tight crop.
   A blurred copy of the photo fills the sky above and the floor below. */
@media (max-width: 809px) {
  .hero--home { background: #2a313b; }
  .hero--home .hero__media::before {
    content: ""; position: absolute; inset: -40px; z-index: -1;
    background: url("/assets/images/home/hero-828.webp") 50% 30% / cover no-repeat;
    filter: blur(28px) brightness(0.9);
  }
  .hero--home .hero__media img {
    inset: auto -40% 150px; width: 180%; max-width: none; height: auto; z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 85%, transparent 100%);
  }
}
.hero__rotator { display: inline-flex; justify-content: center; gap: 0.25em; margin-bottom: 4px; }

/* Rotating word ("We Design / Build / Renovate"). */
.rotator { position: relative; display: inline-grid; text-align: left; }
.rotator__word {
  grid-area: 1 / 1; opacity: 0; transform: translateY(60%); filter: blur(4px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.rotator__word.is-active { opacity: 1; transform: none; filter: none; }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-60%); filter: blur(4px); }


/* ---------- Our Studio ---------- */
.studio { display: grid; gap: 40px; padding-top: 150px; padding-bottom: 120px; }
.studio__label { align-self: start; }
.studio__body { display: flex; flex-direction: column; }
.studio__text { font-size: 24px; line-height: 1.52; letter-spacing: -0.04em; font-weight: 500; }

.stats { display: grid; margin: 100px 0 60px; }
.stats__item { border-top: 1px solid var(--color-line); padding: 46px 0 32px; }
.stats__number { font-size: 38px; line-height: 1.1; letter-spacing: -0.04em; font-weight: 500; font-variant-numeric: tabular-nums; margin-bottom: 4px; }

@media (min-width: 810px) {
  .studio { grid-template-columns: 43.1% 1fr; gap: 0; padding-top: 160px; padding-bottom: 160px; }
  .studio__text { font-size: 30px; line-height: 1.44; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 110px 0 90px; }
  .stats__item { padding: 46px 0 0; }
}

/* ---------- Featured projects ---------- */
/* Plain photo cards that scroll normally (no scroll animation), as in the
   Framer design: full width on phones, 1200px wide on desktop. */
.home-projects__list { display: flex; flex-direction: column; gap: 100px; }
.project-panel { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; isolation: isolate; }
.project-panel__frame { position: absolute; inset: 0; z-index: -1; }
.project-panel__frame img { width: 100%; height: 100%; object-fit: cover; }
.project-panel__frame::after { content: ""; position: absolute; inset: 0; background: var(--color-overlay); transition: background-color 0.4s; }
.project-panel:hover .project-panel__frame::after { background: rgba(10, 10, 10, 0.15); }
.project-panel__title {
  position: absolute; inset: 0; display: grid; place-items: center; padding: var(--gutter);
  text-align: center; font-size: var(--text-h2); line-height: 1.3; letter-spacing: -0.03em; font-weight: 500;
}
.project-panel__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: var(--text-mono); letter-spacing: -0.01em;
}
.js .home-projects__list:empty { min-height: 100vh; }

@media (min-width: 810px) {
  .home-projects__list { gap: 150px; padding-inline: var(--gutter); }
  .project-panel { width: 100%; max-width: 1200px; margin: 0 auto; aspect-ratio: 4 / 3; border-radius: var(--radius); }
}

/* ---------- What We Do ---------- */
.services { padding-top: 90px; padding-bottom: 120px; }
.services__head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-bottom: 84px; }
.services__head .statement { max-width: 440px; }
.services__grid { display: flex; flex-direction: column; }
.service { padding: 52px 0 44px; border-bottom: 1px solid var(--color-line); color: var(--color-muted); transition: color 0.5s; cursor: default; }
.service:last-child { border-bottom: 0; }
.service.is-active { color: var(--color-text); }
.service__title { font-size: var(--text-h3); line-height: 1.4; letter-spacing: -0.04em; margin-bottom: 8px; }
.service p { max-width: 400px; line-height: 1.6; }

.services__media {
  position: relative; aspect-ratio: 352 / 430; margin: 30px 0 22px;
  border-radius: var(--radius); overflow: hidden;
}
.services__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 0.8s var(--ease), transform 1.2s var(--ease);
}
.services__media img.is-active { opacity: 1; transform: none; }
.services__media::after { content: ""; position: absolute; inset: 0; background: var(--color-overlay); }
.services__word { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; }
.services__word span { display: inline-block; transition: opacity 0.4s; }

@media (min-width: 810px) {
  .services { padding-top: 90px; padding-bottom: 160px; }
  .services__grid {
    display: grid; grid-template-columns: 1fr 340px 1fr; grid-template-rows: auto auto;
    column-gap: 30px; padding-top: 80px;
  }
  .service { padding: 0 0 72px; border: 0; }
  .service[data-service="0"] { grid-area: 1 / 1; border-bottom: 1px solid var(--color-line); margin-bottom: 84px; }
  .service[data-service="1"] { grid-area: 2 / 1; padding-bottom: 0; }
  .service[data-service="2"] { grid-area: 1 / 3; border-bottom: 1px solid var(--color-line); margin-bottom: 84px; }
  .service[data-service="3"] { grid-area: 2 / 3; padding-bottom: 0; }
  .service--right { text-align: right; }
  .service--right p { margin-left: auto; }
  .services__media { grid-area: 1 / 2 / 3 / 3; margin: 0; aspect-ratio: auto; height: 424px; }
}

/* ---------- Founder quote ---------- */
.quote { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; isolation: isolate; }
.quote__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.quote::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 10, 10, 0.25); }
.quote__inner { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 60px; padding-block: 120px; }
.quote__figure { max-width: 560px; }
.quote__figure blockquote { margin-bottom: 20px; }
.label--plain::before { display: none; }

@media (min-width: 810px) {
  .quote__inner { padding-block: 0; }
  .quote__figure { margin-left: 30.9%; }
  .quote__link { position: absolute; right: var(--gutter); bottom: 48px; }
}

/* ---------- Gallery ---------- */
.home-gallery { padding-top: 120px; padding-bottom: 40px; }
.home-gallery__head { display: flex; flex-direction: column; gap: 24px; }
.home-gallery__head .statement { max-width: 520px; margin-top: 6px; }
.home-gallery__divider { margin: 50px 0 40px; }
/* Masonry: photos keep their own shape and stack in columns. */
.home-gallery__grid { columns: 2; column-gap: 12px; }
.home-gallery__item {
  position: relative; display: block; margin-bottom: 12px; break-inside: avoid;
  border-radius: var(--radius); overflow: hidden; background: #1a1a1a;
}
.home-gallery__item img { width: 100%; }

@media (min-width: 810px) {
  .home-gallery { padding-top: 160px; padding-bottom: 60px; }
  .home-gallery__head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .home-gallery__grid { columns: 4; column-gap: 20px; }
  .home-gallery__item { margin-bottom: 20px; }
}

/* ---------- FAQ ---------- */
.faq { padding-top: 90px; padding-bottom: 120px; }
.faq__divider { margin: 80px 0 60px; }
.faq__grid { display: grid; gap: 40px; }
.faq__email { color: var(--color-muted); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; word-break: break-word; }
.faq__email:hover { color: var(--color-text); }
.faq__media { margin-top: 24px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 352 / 400; background: #1a1a1a; }
.faq__video { width: 100%; height: 100%; object-fit: cover; }

.faq__item { border-bottom: 1px solid var(--color-line); }
.faq__item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 40px 0; min-height: 44px; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--color-text); transition: transform 0.4s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px;
  background: var(--color-bg); border-radius: 1px;
}
.faq__icon::after { transform: rotate(90deg); transition: transform 0.4s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { overflow: hidden; }
.faq__answer p { padding-bottom: 36px; max-width: 640px; color: var(--color-soft); line-height: 1.6; }

@media (min-width: 810px) {
  .faq { padding-top: 90px; padding-bottom: 160px; }
  .faq__divider { margin: 90px 0 60px; }
  .faq__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .faq__media { aspect-ratio: auto; height: 200px; }
  .faq__item summary { padding: 28px 0 44px; }
}
