/* Home — storytelling scroll */

/* Fixed 3D stage that lives behind the first two sections */
#stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#building-canvas { width: 100%; height: 100%; display: block; }

/* Soft paper veils so type stays legible over the wireframe */
.stage-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      var(--paper) 0%,
      color-mix(in srgb, var(--paper) 40%, transparent) 22%,
      transparent 42%,
      transparent 70%,
      color-mix(in srgb, var(--paper) 55%, transparent) 100%);
}

.home-hero {
  position: relative;
  z-index: 2;
  height: 100svh;
  min-height: 680px;
  display: grid;
  grid-template-rows: 1fr auto;
  pointer-events: none;
}
.home-hero .container { width: 100%; }

.hero-head {
  align-self: start;
  padding-top: clamp(120px, 17vh, 200px);
}
.hero-head .eyebrow { margin-bottom: clamp(20px, 3vw, 34px); }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 9.4vw, 158px);
  line-height: 0.96;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 14ch;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-foot {
  align-self: end;
  padding-bottom: clamp(28px, 4vw, 52px);
}
.hero-foot .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero-foot .tag {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  max-width: 30ch;
  line-height: 1.5;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.scroll-cue .bar {
  width: 46px; height: 1px; background: var(--line);
  position: relative; overflow: hidden;
}
.scroll-cue .bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  animation: sweep 2.8s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes sweep {
  0% { transform: translateX(-100%); }
  60%,100% { transform: translateX(100%); }
}

/* Manifesto — building still visible behind */
.manifesto {
  position: relative;
  z-index: 2;
  pointer-events: none;
  padding: clamp(80px, 16vh, 220px) 0;
}
.manifesto .container { pointer-events: auto; }
.manifesto .statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4.6vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
  max-width: 20ch;
}
.manifesto .statement em { font-style: italic; color: var(--accent); }
.manifesto .sig {
  margin-top: clamp(28px, 4vw, 48px);
  max-width: 46ch;
}

/* Everything below the stage gets solid paper so it covers the canvas */
.below {
  position: relative;
  z-index: 3;
  background: var(--paper);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.pillar {
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3vw, 44px) clamp(44px, 5vw, 64px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 320px;
}
.pillar:last-child { border-right: none; }
.pillar .idx {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.pillar p { margin-top: auto; font-size: 14.5px; line-height: 1.62; color: var(--ink-dim); }
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); min-height: 0; }
}

/* Figures */
.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.figure .n {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.figure .n sup { font-size: 0.42em; vertical-align: super; color: var(--accent); }
.figure .c {
  margin-top: 14px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
@media (max-width: 720px) { .figures { grid-template-columns: 1fr 1fr; gap: 36px 20px; } }

/* Featured work teaser */
.feature-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(18px, 2.2vw, 32px);
}
.feature-grid .col { display: grid; gap: clamp(18px, 2.2vw, 32px); }
.work {
  display: block;
  cursor: pointer;
}
.work .img { width: 100%; }
.work.tall .img { aspect-ratio: 4 / 5; }
.work.wide .img { aspect-ratio: 16 / 11; }
.work .cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 16px;
}
.work .cap .t { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 2vw, 27px); letter-spacing: -0.01em; }
.work .cap .m { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); white-space: nowrap; }
.work .img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work:hover .img { transform: scale(0.99); }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }

/* Founder teaser */
.founder-teaser {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.founder-teaser .portrait { aspect-ratio: 4 / 5; }
.founder-teaser .quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.founder-teaser .quote em { font-style: italic; color: var(--accent); }
.founder-teaser .who { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
.founder-teaser .who .nm { font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; }
.founder-teaser .who .rl { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
@media (max-width: 760px) {
  .founder-teaser { grid-template-columns: 1fr; }
  .founder-teaser .portrait { max-width: 360px; }
}

/* Section header used across home + subpages */
.shead {
  display: grid;
  grid-template-columns: 0.7fr 2fr;
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.shead .left { display: flex; align-items: baseline; gap: 14px; }
.shead .left .num { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; color: var(--accent); }
.shead .left .nm { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
@media (max-width: 720px) { .shead { grid-template-columns: 1fr; align-items: start; } }
