:root {
  --wine: #5a0e11;
  --orange: #f89721;
  --paper: #e9e8e8;
  --project-accent: #f89721;
  --project-ink: #5a0e11;
  --project-paper: #e9e8e8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--project-paper); color: var(--project-ink); font-family: Montserrat, Arial, sans-serif; font-synthesis: none; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { text-align: left; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
::selection { background: var(--project-accent); color: var(--project-ink); }

.project-nav { position: absolute; z-index: 10; inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 28px 4.5%; color: #fff; mix-blend-mode: difference; }
.project-nav .home { width: 88px; }
.project-nav .home img { filter: brightness(0) invert(1); }
.project-nav .index-link { justify-self: center; font-size: .75rem; font-weight: 600; letter-spacing: .05em; }
.project-nav .contact { justify-self: end; font-size: .75rem; }

.project-hero { position: relative; min-height: 100svh; overflow: hidden; background: #19080a; color: #fff; }
.project-hero-media { position: absolute; inset: 0; }
.project-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #1804071f 35%, #180407c7 100%); }
.project-hero-media img { height: 100%; object-fit: cover; transform: scale(1.025); will-change: transform; }
.project-hero-copy { position: absolute; z-index: 2; left: 4.5%; right: 4.5%; bottom: 4.5%; display: block; }
.project-hero h1 { max-width: 1050px; font-size: clamp(4rem, 11vw, 10.5rem); font-weight: 800; line-height: .82; letter-spacing: -.04em; }
.project-hero-meta { display: flex; gap: 16px; min-width: 190px; margin-top: 24px; padding-bottom: 10px; font-size: .75rem; line-height: 1.7; text-align: left; }
.project-hero-meta span { display: inline; }
.project-hero-meta span + span::before { content: "·"; margin-right: 16px; }
.scroll-mark { position: absolute; z-index: 2; right: 4.5%; top: 50%; width: 1px; height: 112px; background: #ffffff55; }
.scroll-mark i { display: block; width: 100%; height: 34%; background: #fff; animation: travel 2.2s ease-in-out infinite; }

.project-intro { display: grid; grid-template-columns: 1.5fr .72fr; gap: 8vw; padding: 110px 6% 125px; background: var(--project-paper); color: var(--project-ink); }
.project-story { grid-column: 1; grid-row: 1; }
.project-facts { grid-column: 2; grid-row: 1; }
.project-facts { position: sticky; top: 40px; align-self: start; display: grid; grid-template-columns: 1fr; gap: 26px; font-size: .75rem; line-height: 1.55; }
.project-facts div { padding-bottom: 20px; border-bottom: 1px solid color-mix(in srgb, currentColor 42%, transparent); }
.project-facts strong { display: block; margin-bottom: 8px; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.project-facts span { display: block; }
.project-story h2 { max-width: 910px; font-size: clamp(2.4rem, 5.7vw, 6.4rem); font-weight: 700; line-height: .98; letter-spacing: -.04em; }
.project-story p { max-width: 670px; margin-top: 40px; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.65; }
.project-type { display: inline-flex; margin-top: 46px; padding: 11px 17px; border: 1px solid currentColor; border-radius: 99px; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

.chapter { padding: 120px 6%; background: var(--project-ink); color: var(--project-paper); }
.chapter-head { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 60px; }
.chapter-number { font-size: .72rem; font-weight: 600; letter-spacing: .09em; }
.chapter-head h2 { max-width: 900px; font-size: clamp(2.1rem, 5vw, 5.6rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.chapter-head p { max-width: 590px; margin-top: 28px; font-size: 1rem; line-height: 1.65; }
.full-image { overflow: hidden; background: #21090c; }
.full-image img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.full-image:hover img { transform: scale(1.015); }
.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 5px; margin-top: 5px; }
.detail-crop { min-height: 62vw; max-height: 920px; overflow: hidden; background: #21090c; }
.detail-crop img { height: 100%; object-fit: cover; }
.detail-crop.crop-left img { object-position: 18% center; }
.detail-crop.crop-right img { object-position: 86% center; }
.image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.image-pair figure { min-height: 52vw; max-height: 820px; overflow: hidden; }
.image-pair img { height: 100%; object-fit: cover; }
.project-note { display: grid; grid-template-columns: .72fr 1.5fr; gap: 8vw; padding: 110px 6%; background: var(--project-accent); color: var(--project-ink); }
.project-note span { font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.project-note p { max-width: 900px; font-size: clamp(1.8rem, 4vw, 4.4rem); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; }
.external-link { display: inline-block; margin-top: 38px; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: .8rem; font-weight: 600; }

.next-project { position: relative; display: block; min-height: 68svh; overflow: hidden; background: #17070a; color: #fff; }
.next-project img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: .48; transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.next-project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #17070acd, #17070a40); }
.next-project:hover img { transform: scale(1.025); opacity: .63; }
.next-copy { position: absolute; z-index: 2; left: 6%; right: 6%; bottom: 12%; }
.next-copy span { font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.next-copy strong { display: block; margin-top: 18px; font-size: clamp(3rem, 9vw, 9rem); font-weight: 800; line-height: .86; letter-spacing: -.04em; }

.project-footer { display: flex; justify-content: space-between; gap: 25px; padding: 24px 4.5%; background: var(--wine); color: var(--paper); font-size: .75rem; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes travel { 0%,100% { transform: translateY(0); } 50% { transform: translateY(74px); } }

@media (max-width: 760px) {
  .project-nav { grid-template-columns: 1fr auto; padding: 21px 6%; }
  .project-nav .home { width: 72px; }
  .project-nav .index-link { display: none; }
  .project-nav .contact { font-size: .75rem; }
  .project-hero { min-height: 86svh; }
  .project-hero-copy { left: 6%; right: 6%; bottom: 5%; }
  .project-hero h1 { font-size: clamp(3.4rem, 18vw, 6rem); }
  .project-hero-meta { display: flex; gap: 14px; min-width: 0; padding: 0; text-align: left; }
  .project-hero-meta span + span::before { margin-right: 14px; }
  .scroll-mark { display: none; }
  .project-intro, .chapter-head, .project-note { grid-template-columns: 1fr; }
  .project-intro { gap: 55px; padding: 72px 6% 82px; }
  .project-facts { position: static; order: 2; }
  .project-story, .project-facts { grid-column: auto; grid-row: auto; }
  .project-story h2 { font-size: 10vw; }
  .project-story p { margin-top: 28px; font-size: .95rem; }
  .chapter { padding: 76px 6%; }
  .chapter-head { gap: 22px; margin-bottom: 38px; }
  .chapter-head h2 { font-size: 9.5vw; }
  .chapter-head p { font-size: .9rem; }
  .detail-grid, .image-pair { grid-template-columns: 1fr; }
  .detail-crop, .image-pair figure { min-height: 92vw; }
  .project-note { gap: 28px; padding: 72px 6%; }
  .project-note p { font-size: 8.5vw; }
  .next-project { min-height: 54svh; }
  .next-copy { left: 6%; right: 6%; bottom: 10%; }
  .project-footer { padding: 20px 6%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
