/* =========================================================
   HOME
   ========================================================= */

/* ---------- 1 · hero ---------- */
.hero__pin { position: relative; height: 100svh; overflow: hidden; background: var(--concrete); }
.hero__bg, .hero__window, .hero__shade { position: absolute; inset: 0; }
.hero__bg img, .hero__window img { width: 100%; height: 100%; object-fit: cover; }
.hero__window { clip-path: inset(50% 50% 50% 50%); will-change: clip-path; }
.hero__window img { transform: scale(1.5); transform-origin: 50% 50%; }
.hero__shade {
  /* keeps the photo quiet: an overall veil, deepest behind the caption (bottom-left) */
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.55) 0%, rgba(10, 9, 8, 0.15) 60%, transparent 100%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.4) 0%, rgba(10, 9, 8, 0.28) 40%, rgba(10, 9, 8, 0.82) 100%);
  opacity: 0;
}
.hero__stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(28px, 5vh, 56px); padding-top: 4vh;
}
.hero__frame { position: relative; width: clamp(96px, 9vw, 160px); aspect-ratio: 3 / 4; display: grid; place-items: center; }
.hero__frame i { position: absolute; background: rgba(255, 255, 255, 0.8); }
.hero__frame .t, .hero__frame .b { left: 0; right: 0; height: 1px; }
.hero__frame .l, .hero__frame .r { top: 0; bottom: 0; width: 1px; }
.hero__frame .t { top: 0; transform-origin: 0 50%; }
.hero__frame .r { right: 0; transform-origin: 50% 0; }
.hero__frame .b { bottom: 0; transform-origin: 100% 50%; }
.hero__frame .l { left: 0; transform-origin: 50% 100%; }
.hero__frame .mark { width: 72%; } /* 58% before the folds widened the viewBox (302 → 374) */
.hero__copy { text-align: center; position: relative; z-index: 2; }
.hero__word { font-size: clamp(22px, 3.1vw, 48px); letter-spacing: 0.34em; margin-right: -0.34em; line-height: 1; }
.hero__word { position: relative; }
/* ® hangs outside the wordmark so BRICKWEAVERS itself is optically centred */
.hero__word sup { position: absolute; top: -0.35em; font-size: 0.4em; font-weight: 300; margin-left: 0.1em; letter-spacing: 0; }
.hero__tag { margin-top: 18px; opacity: 0.9; letter-spacing: 0.28em; margin-right: -0.28em; } /* cancel the trailing letter-space */
.hero__tag span { opacity: 0.5; margin-inline: 0.5em; }
.hero__meta {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vh, 40px);
  display: flex; justify-content: space-between; align-items: center;
}
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; }
.hero__scroll i { width: 1px; height: 38px; background: rgba(255, 255, 255, 0.35); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; inset: 0; background: var(--bone); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__caption {
  position: absolute; left: 0; bottom: clamp(28px, 7vh, 72px);
  max-width: 980px; opacity: 0; visibility: hidden;
}
.hero__title { font-size: clamp(34px, 5vw, 84px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.04; margin: 14px 0 18px; max-width: 17ch; }
.hero__desc { max-width: 42ch; margin-bottom: 26px; opacity: 0.9; }

/* ---------- 2 · manifesto ---------- */
.manifesto__pin {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  gap: clamp(28px, 5vh, 56px); padding-block: calc(var(--header-h) + 4vh) 8vh;
}
.manifesto__text {
  font-size: clamp(30px, 4.6vw, 80px); line-height: 1.08; letter-spacing: -0.02em;
  max-width: 20ch;
}
.manifesto__text em { font-style: normal; color: var(--brick); }
.manifesto__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line-dark); padding-top: 24px; }

/* ---------- 3 · services ---------- */
.services__pin { position: relative; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.services__track {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 72px);
  padding-inline: var(--gutter) 12vw; will-change: transform;
}
.services__intro { flex: 0 0 auto; width: clamp(300px, 34vw, 560px); display: grid; gap: 28px; }
.svc { flex: 0 0 auto; width: clamp(260px, min(30vw, 44vh), 520px); }
.svc:nth-child(odd) { transform: translateY(5vh); }
.svc:nth-child(even) { transform: translateY(-5vh); }
.svc__media { aspect-ratio: 4 / 5; overflow: hidden; position: relative; background: var(--ink-2); border-radius: var(--radius-sm); }
.svc__media img { position: absolute; inset: -6% -14%; width: 128%; height: 112%; object-fit: cover; max-width: none; }
.svc__body { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-top: 20px; }
.svc__num { font-family: var(--f-ui); font-size: 13px; opacity: 0.5; padding-top: 10px; }
.svc__title { font-size: clamp(26px, 2.3vw, 38px); font-weight: 300; letter-spacing: -0.01em; line-height: 1.1; }
.svc__body p { grid-column: 2; font-size: 15px; line-height: 1.55; opacity: 0.92; max-width: 36ch; }
.svc--end { width: clamp(260px, 26vw, 420px); display: grid; gap: 24px; }
.svc--end .h2 { font-size: clamp(30px, 3.2vw, 54px); }
.services__hud {
  position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 8px);
  display: flex; align-items: center; gap: 24px;
}
.services__bar { flex: 1; height: 1px; background: var(--line-light); position: relative; }
.services__bar i { position: absolute; inset: 0; background: var(--terra); transform-origin: 0 50%; transform: scaleX(0); }
.eq {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 11vh;
  display: flex; align-items: flex-end; justify-content: space-between; pointer-events: none;
}
.eq span { width: 1px; height: 100%; background: rgba(239, 234, 227, 0.4); transform-origin: 50% 100%; transform: scaleY(0.15); }

/* ---------- 4 · featured stacking cards ---------- */
.featured { padding-top: clamp(96px, 12vw, 180px); background: var(--ink); }
.featured__head { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-bottom: clamp(48px, 7vw, 100px); align-items: start; }
.featured__head .h2 { max-width: 18ch; }
.featured__stack { padding-bottom: 12vh; }
.fcard {
  position: relative; /* pinned by ScrollTrigger (sticky would confuse trigger maths) */
  display: block; height: calc(100svh - var(--header-h) - 7vh);
  margin-bottom: 10vh;
}
.fcard:last-child { margin-bottom: 0; }
.fcard__inner { position: relative; height: 100%; overflow: hidden; border-radius: var(--radius); transform-origin: 50% 0; background: var(--ink-2); }
.fcard__media { position: absolute; inset: 0; }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.fcard__dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.fcard__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  padding: clamp(20px, 3vw, 44px);
  background: linear-gradient(0deg, rgba(10, 9, 8, 0.7), transparent);
}
.fcard__title { font-size: clamp(48px, 8vw, 140px); font-weight: 300; letter-spacing: -0.03em; line-height: 0.9; }
.fcard__meta { display: grid; gap: 8px; text-align: right; }

/* ---------- 5 · index list ---------- */
.index__head { display: grid; grid-template-columns: 1fr 2fr auto; gap: 24px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.index__list { list-style: none; border-top: 1px solid var(--line-light); }
.index__list li { border-bottom: 1px solid var(--line-light); }
.index__row {
  position: relative; display: grid; grid-template-columns: 70px 1.5fr 1fr 1fr auto 40px; align-items: center; gap: 16px;
  padding: clamp(18px, 2.2vw, 30px) 0; overflow: hidden; isolation: isolate;
}
.index__row::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bone);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.4s var(--ease-out);
}
.index__row.is-hover::before { transform: scaleY(1); transform-origin: 50% 0; }
.index__row.is-hover { color: var(--ink); }
.index__row { transition: color 0.25s; }
.index__num { font-family: var(--f-ui); font-size: 13px; opacity: 0.5; padding-left: 8px; }
.index__name { font-size: clamp(24px, 3vw, 48px); letter-spacing: -0.01em; line-height: 1.1; transition: transform 0.4s var(--ease-out); }
.index__row.is-hover .index__name { transform: translateX(18px); }
.index__meta, .index__place { font-family: var(--f-ui); font-size: 14px; opacity: 0.6; }
.index__arrow { width: 14px; height: 14px; stroke: currentColor; justify-self: end; margin-right: 10px; transition: transform 0.4s var(--ease-out); }
.index__row.is-hover .index__arrow { transform: rotate(45deg); }
.index__thumb { display: none; }

/* Hover bubble — anchored at the row's right end, never follows the cursor. */
.index__bubble {
  position: relative; justify-self: end;
  width: clamp(150px, 13vw, 220px); height: clamp(60px, 5.4vw, 92px);
  border-radius: 999px; overflow: hidden; background: var(--ink-2);
  opacity: 0; transform: scale(0.6); transform-origin: 100% 50%;
  transition: opacity 0.25s, transform 0.45s var(--ease-out);
}
.index__bubble img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.2); transition: transform 0.8s var(--ease-out), opacity 0.25s;
}
.index__bubble img + img { opacity: 0; }
.index__row.is-hover .index__bubble,
.index__row:focus-visible .index__bubble { opacity: 1; transform: none; }
.index__row.is-hover .index__bubble img,
.index__row:focus-visible .index__bubble img { transform: none; }
/* today's hover image-swap, slowed into a crossfade after a short dwell */
.index__row.is-hover .index__bubble img + img { opacity: 1; transition: transform 0.8s var(--ease-out), opacity 0.7s 0.8s; }

/* ---------- 6 · numbers ---------- */
.numbers { padding-block: clamp(40px, 6vw, 100px) clamp(96px, 12vw, 180px); }
.numbers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat i { display: block; height: 1px; background: var(--line-light); margin-bottom: 24px; }
.stat__num { font-size: clamp(64px, 8vw, 140px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.stat .label { opacity: 0.6; max-width: 24ch; line-height: 1.5; }

/* ---------- 7 · process ---------- */
.process__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 8vw, 140px); }
.process__side { position: sticky; top: calc(var(--header-h) + 5vh); align-self: start; display: grid; gap: 28px; }
.process__meter { width: 1px; height: 22vh; background: var(--line-dark); position: relative; margin-top: 12px; }
.process__meter i { position: absolute; inset: 0; background: var(--brick); transform-origin: 50% 0; transform: scaleY(0); }
.process__steps { list-style: none; }
.step { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding-block: clamp(40px, 7vh, 80px); border-top: 1px solid var(--line-dark); opacity: 0.22; transition: opacity 0.6s; }
.step.is-on { opacity: 1; }
.step__num { font-size: clamp(34px, 3.4vw, 56px); line-height: 1; letter-spacing: -0.03em; color: var(--brick); }
.step h3 { font-size: clamp(26px, 2.6vw, 42px); font-weight: 300; letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 14px; }
.step p { max-width: 44ch; opacity: 0.8; }

/* ---------- 8 · faq ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 7vw, 120px); }
.faq__side { display: grid; gap: 24px; align-content: start; }
.faq__list { border-top: 1px solid var(--line-light); }
.qa { border-bottom: 1px solid var(--line-light); }
.qa__q {
  width: 100%; display: grid; grid-template-columns: 50px 1fr 28px; align-items: center; gap: 12px; text-align: left;
  padding-block: clamp(20px, 2.4vw, 30px); font-size: clamp(19px, 1.7vw, 26px); font-weight: 300; line-height: 1.3;
}
.qa__num { font-family: var(--f-ui); font-size: 13px; opacity: 0.5; }
.qa__icon { width: 28px; height: 28px; border: 1px solid var(--line-light); border-radius: 50%; position: relative; }
.qa__icon::before, .qa__icon::after { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px; background: currentColor; transition: transform 0.5s var(--ease-out); }
.qa__icon::after { transform: rotate(90deg); }
.qa.is-open .qa__icon::after { transform: rotate(0deg); }
.qa__a { height: 0; overflow: hidden; }
.qa__a p { padding: 0 40px clamp(22px, 2.4vw, 30px) 62px; opacity: 0.72; max-width: 64ch; }

/* ---------- 9 · journal ---------- */
.journal__head { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-bottom: clamp(48px, 6vw, 90px); }
.journal__head .h2 { max-width: 20ch; }
.journal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 40px); }
.post { display: grid; gap: 16px; align-content: start; }
.post__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-sm); }
.post__zoom { height: 100%; transition: transform 1.2s var(--ease-out); }
.post:hover .post__zoom { transform: scale(1.06); }
.qa h3 { font: inherit; }
.post .label { opacity: 0.6; }
.post h3 { font-size: clamp(20px, 1.7vw, 28px); font-weight: 300; line-height: 1.25; }
.journal__grid .post:nth-child(2) { margin-top: 12vh; }
.journal__grid .post:nth-child(3) { margin-top: 5vh; }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
  .services__pin { height: auto; display: block; padding-block: 100px 16vh; }
  .services__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); gap: 20px; align-items: stretch; flex-wrap: nowrap; scrollbar-width: none; }
  .services__track::-webkit-scrollbar { display: none; }
  .services__intro { width: 82vw; scroll-snap-align: start; align-content: center; }
  .svc, .svc--end { width: 74vw; scroll-snap-align: start; transform: none !important; }
  .services__hud { display: none; }
  .eq { height: 8vh; }
  .featured__head, .journal__head, .faq__grid, .process__grid { grid-template-columns: 1fr; }
  .index__head { grid-template-columns: 1fr; }
  .index__row { grid-template-columns: 34px 64px 1fr 20px; }
  .index__thumb { display: block; width: 64px; aspect-ratio: 1; object-fit: cover; }
  .index__meta, .index__place { display: none; }
  .index__bubble { display: none; }
  .numbers__grid { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .numbers__grid .stat:last-child { grid-column: 1 / -1; }
  .process__side { position: relative; top: 0; }
  .process__meter { display: none; }
  .step { grid-template-columns: 60px 1fr; opacity: 1; }
  .journal__grid { grid-template-columns: 1fr; }
  .journal__grid .post:nth-child(n) { margin-top: 0; }
  .fcard__meta { text-align: left; }
  .qa__a p { padding-left: 0; padding-right: 0; }
  .qa__q { grid-template-columns: 34px 1fr 28px; }
}
@media (max-width: 520px) {
  .hero__word { font-size: 19px; letter-spacing: 0.24em; margin-right: -0.24em; }
  .hero__tag { font-size: 11px; letter-spacing: 0.16em; }
}
