/* ==========================================================
   Home page blocks (shared components live in style.css)
   ========================================================== */

/* Hero */
.home-hero { position: relative; height: calc(100vh - var(--hdr)); min-height: 560px; overflow: hidden; color: #fff; background: #111; }
.home-hero .media { position: absolute; inset: 0; overflow: hidden; }
.home-hero .media img { width: 100%; height: 115%; object-fit: cover; transform-origin: 50% 40%; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 60%); pointer-events: none; }
.home-hero .copy { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.home-hero h1 { font-size: clamp(48px, 7.4vw, 120px); line-height: .92; letter-spacing: -0.045em; }
.home-hero .meta { max-width: 300px; display: grid; gap: 28px; font-size: 15px; color: rgba(255,255,255,.85); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; }
.scroll-cue i { width: 1px; height: 40px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }

/* Introduction */
.home-intro { display: grid; grid-template-columns: 1fr 3fr; gap: var(--gut); padding-top: 160px; padding-bottom: 160px; }
.home-intro .side { display: grid; gap: 28px; align-content: start; }

/* Expanding image */
.expand { position: relative; }
/* The pinned area sits below the sticky header, so the frame grows from the visible centre */
.expand .pin { position: relative; height: 100vh; padding-top: var(--hdr); overflow: hidden; display: grid; place-items: center; }
.expand .frame { position: absolute; inset: var(--hdr) 0 0 0; overflow: hidden; clip-path: inset(0 0 0 0); }
.expand .frame img { width: 100%; height: 100%; object-fit: cover; }
.expand .frame::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); pointer-events: none; }
/* Words start 28px outside the frame's starting edges (frame begins at inset 34% left/right);
   home.js moves them with those edges so they never overlap the image */
.expand .word { position: absolute; top: calc(50% + var(--hdr) / 2); z-index: 4; margin-top: -.5em; font-size: clamp(36px, 5.2vw, 84px); letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
html:not(.motion) .expand .word { display: none; }
.expand .w-left { right: calc(66% + 28px); }
.expand .w-right { left: calc(66% + 28px); }
.expand .over { position: relative; z-index: 3; color: #fff; text-align: center; display: grid; gap: 22px; }
.expand .over .label { color: rgba(255,255,255,.85); }
.expand .over h2 { display: flex; gap: .35em; flex-wrap: wrap; justify-content: center; font-size: clamp(40px, 7vw, 112px); letter-spacing: -0.045em; line-height: .95; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.expand .over h2 span:nth-child(2) { font-family: var(--serif); }

/* Horizontal projects */
.hs .pin { height: 100vh; padding-top: calc(var(--hdr) + 28px); padding-bottom: 36px; display: flex; flex-direction: column; overflow: hidden; }
.hs-head { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.hs-meta { display: flex; align-items: center; gap: 24px; }
.hs-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hs-count b { color: var(--ink); font-weight: 500; }
.hs-bar { width: 160px; height: 2px; background: var(--line); overflow: hidden; }
.hs-bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.hs-track { display: flex; gap: var(--gut); padding: 0 var(--gut); flex: 1; min-height: 0; will-change: transform; }
.hs-card { flex: 0 0 auto; width: min(44vw, 680px); display: flex; flex-direction: column; }
.hs-card:nth-child(even) { width: min(30vw, 460px); }
.hs-card .ph { flex: 1; min-height: 0; overflow: hidden; background: var(--soft); position: relative; }
.hs-card .ph img { position: absolute; top: 0; left: -8%; width: 116%; max-width: none; height: 100%; object-fit: cover; transition: filter .5s; }
.hs-card:hover .ph img { filter: brightness(.85); }
.hs-card .ph .view { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 13px; font-weight: 500; transform: scale(0); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.hs-card:hover .ph .view { transform: scale(1); }
.hs-card .cap { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; }
.hs-card .cap b { font-weight: 500; font-size: 18px; letter-spacing: -0.02em; }
.hs-card .cap .idx { font-size: 13px; color: var(--muted); }
.hs-card .cap .muted { font-size: 14px; }
.hs-end { flex: 0 0 auto; width: min(30vw, 420px); display: grid; place-items: center; border: 1px solid var(--line); text-align: center; padding: 24px; }
.hs-end .h3 { margin-bottom: 20px; }

/* Founder + numbers */
.founder-band { padding: 160px 0; }
.founder-band .quote { margin: 28px 0 0; font-family: var(--serif); font-size: clamp(32px, 4.6vw, 70px); line-height: 1.04; letter-spacing: -0.025em; max-width: 1150px; }
.founder-band .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); margin: 100px 0 60px; border-top: 1px solid #262626; }
.founder-band .nums div { padding-top: 24px; }
.founder-band .nums b { display: block; font-weight: 400; font-size: clamp(72px, 10vw, 160px); line-height: .9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.founder-band .nums span { color: #9a9a9a; }

@media (max-width: 960px) {
  .home-hero .copy { flex-direction: column; align-items: flex-start; gap: 24px; }
  .home-intro { grid-template-columns: 1fr; gap: 28px; padding-top: 96px; padding-bottom: 96px; }
  .expand .word { display: none; }
  /* Projects become a native swipe row on small screens */
  .hs .pin { height: auto; padding: 96px 0 72px; }
  .hs-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; transform: none !important; }
  .hs-card, .hs-card:nth-child(even) { width: 78vw; scroll-snap-align: start; }
  .hs-card .ph { flex: none; aspect-ratio: 4/5; }
  .hs-card .ph img { left: 0; width: 100%; }
  .hs-end { width: 60vw; }
  .hs-bar { display: none; }
  .founder-band { padding: 110px 0; }
  .founder-band .nums { grid-template-columns: 1fr; margin: 60px 0 40px; }
}
