/* ============================================================
   Home page sections
   ============================================================ */

.section { padding: 130px 0; position: relative; }
.section-tight { padding: 90px 0; }
@media (max-width: 700px) {
  .section { padding: 80px 0; }
  .section-tight { padding: 60px 0; }
}

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-bottom: 64px;
}
.section-head .lede { margin-top: 18px; }
@media (max-width: 760px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; height: 100svh; min-height: 640px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--text-on-dark); background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  clip-path: inset(100% 0 0 0);
}
.hero.revealed .hero-media img { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease-arch); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.55) 0%, rgba(20,18,15,0.15) 32%, rgba(20,18,15,0.75) 100%);
}
.hero-parallax { position: absolute; inset: -6% -6% -6% -6%; will-change: transform; }

.hero-content { position: relative; z-index: 2; padding: 0 var(--gutter) 56px; }
.hero-meta-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 26px; gap: 20px; flex-wrap: wrap; }
.hero-coords { display: flex; gap: 24px; flex-wrap: wrap; }

.hero-headline { max-width: 15ch; overflow: hidden; }
.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .line span { display: block; transform: translateY(110%); transition: transform 1s var(--ease-arch); }
.hero.revealed .hero-headline .line span { transform: translateY(0); }
.hero-headline .line:nth-child(2) span { transition-delay: 0.08s; }
.hero-headline .line:nth-child(3) span { transition-delay: 0.16s; }

.hero-sub {
  margin-top: 26px; max-width: 44ch; color: var(--text-on-dark-soft);
  opacity: 0; transform: translateY(14px); transition: all 0.9s var(--ease-arch) 0.5s;
}
.hero.revealed .hero-sub { opacity: 1; transform: translateY(0); }

.hero-actions {
  margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(14px); transition: all 0.9s var(--ease-arch) 0.65s;
}
.hero.revealed .hero-actions { opacity: 1; transform: translateY(0); }

.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 40px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.15em; color: var(--text-on-dark-soft);
  writing-mode: vertical-rl;
  opacity: 0; transition: opacity 1s ease 1s;
}
.hero.revealed .hero-scroll { opacity: 1; }
.hero-scroll .line-anim { width: 1px; height: 46px; background: var(--line-on-dark); position: relative; overflow: hidden; writing-mode: horizontal-tb; }
.hero-scroll .line-anim::after { content: ""; position: absolute; top: -100%; left: 0; right: 0; height: 100%; background: var(--brass); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { 0% { top: -100%; } 50% { top: 0; } 100% { top: 100%; } }

@media (max-width: 700px) {
  .hero-headline { max-width: 11ch; }
  .hero-coords { display: none; }
}

/* ---------------- Philosophy ---------------- */
.philosophy { background: var(--stone); }
.philosophy-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6vw; align-items: center; }
.philosophy-media { overflow: hidden; position: relative; aspect-ratio: 4/5; }
.philosophy-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.4s var(--ease-arch); }
.philosophy-media.in-view img { transform: scale(1); }
.philosophy-text .display-3 { margin-top: 20px; }
.philosophy-text .lede { margin-top: 24px; }
.philosophy-facts { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.philosophy-facts div { border-top: 1px solid var(--line-on-light); padding-top: 14px; }
.philosophy-facts b { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.philosophy-facts span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--text-on-light-soft); text-transform: uppercase; }
@media (max-width: 860px) {
  .philosophy-grid { grid-template-columns: 1fr; }
}

/* ---------------- Featured projects ---------------- */
.projects-strip { background: var(--stone); }
.project-scroller {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 20px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--brass) transparent;
}
.project-card {
  flex: 0 0 min(420px, 78vw); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 18px;
}
.project-card-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--ink); }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-arch); }
.project-card:hover .project-card-media img { transform: scale(1.07); }
.project-card-number {
  position: absolute; top: 18px; left: 18px; font-family: var(--font-mono); color: var(--text-on-dark);
  font-size: 0.72rem; letter-spacing: 0.1em; z-index: 2;
}
.project-card-arrow {
  position: absolute; bottom: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--text-on-dark); color: var(--ink); display: flex; align-items: center; justify-content: center;
  transform: translateY(10px) scale(0.8); opacity: 0; transition: all 0.35s var(--ease-soft);
}
.project-card:hover .project-card-arrow { transform: translateY(0) scale(1); opacity: 1; }
.project-card-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.project-card-meta h3 { font-size: 1.35rem; font-weight: 500; }
.project-card-meta .pc-loc { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-on-light-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }
.project-card-meta .pc-style { text-align: right; font-family: var(--font-mono); font-size: 0.7rem; color: var(--brass); text-transform: uppercase; letter-spacing: 0.06em; }
.project-card-meta .pc-area { display: block; color: var(--text-on-light-soft); margin-top: 6px; }

.section-foot { margin-top: 56px; display: flex; justify-content: center; }

/* ---------------- Transformation slider ---------------- */
.transformation { background: var(--ink); color: var(--text-on-dark); }
.transformation .section-head { color: inherit; }
.ba-slider {
  position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; cursor: ew-resize;
  user-select: none; touch-action: pan-y;
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-tag { position: absolute; top: 24px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(20,18,15,0.7); color: var(--text-on-dark); padding: 8px 14px; z-index: 3; }
.ba-tag.before-tag { left: 24px; }
.ba-tag.after-tag { right: 24px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--brass); transform: translateX(-1px); z-index: 4;
}
.ba-handle-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%; background: var(--brass); color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.ba-caption { margin-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-on-dark-soft); letter-spacing: 0.04em; }
