.project-page { background: #fff; }
.project-page .site-nav > a[aria-current="page"] { color: var(--cyan); }
.project-page .site-nav > a[aria-current="page"]::after { right: 0; }

.project-hero { position: relative; overflow: hidden; min-height: 720px; padding: 80px 0 88px; background: var(--navy-950); color: white; }
.project-hero-backdrop { position: absolute; inset: 0; background: radial-gradient(circle at 8% 10%, rgba(0,167,200,.24), transparent 30%), linear-gradient(115deg, rgba(3,29,44,.96) 0%, rgba(3,29,44,.9) 48%, rgba(6,45,67,.74) 100%); }
.project-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -230px; bottom: -260px; border: 1px solid rgba(109,226,238,.18); border-radius: 50%; box-shadow: 0 0 0 90px rgba(109,226,238,.025), 0 0 0 180px rgba(109,226,238,.018); }
.project-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .82fr 1.18fr; gap: 76px; align-items: center; }
.project-hero-copy { position: relative; z-index: 2; }
.project-hero .breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 44px; color: rgba(255,255,255,.55); font-size: 11px; }
.project-hero .breadcrumb a:hover { color: var(--cyan-light); }
.project-hero .breadcrumb strong { color: white; }
.project-hero h1 { margin: 15px 0 24px; font-size: clamp(48px, 5.2vw, 78px); line-height: 1.08; letter-spacing: -.055em; }
.project-hero h1 em { color: var(--cyan-light); font-style: normal; }
.project-lead { max-width: 640px; margin: 0; color: rgba(255,255,255,.73); font-size: 16px; line-height: 1.9; }
.project-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 34px 0 36px; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.project-facts div { min-width: 0; padding: 20px 14px; border-right: 1px solid rgba(255,255,255,.12); }
.project-facts div:first-child { padding-left: 0; }
.project-facts div:last-child { border-right: 0; }
.project-facts small, .project-facts strong { display: block; }
.project-facts small { margin-bottom: 8px; color: rgba(255,255,255,.42); font-size: 9px; letter-spacing: .08em; }
.project-facts strong { font-size: 16px; line-height: 1.25; }
.project-hero-visual { position: relative; margin: 0; padding: 14px; border: 1px solid rgba(109,226,238,.24); background: rgba(255,255,255,.035); box-shadow: 0 36px 80px rgba(0,0,0,.32); }
.project-hero-visual::before { content: ""; position: absolute; inset: -1px auto auto -1px; width: 120px; height: 3px; background: var(--cyan-light); }
.project-hero-visual img { width: 100%; aspect-ratio: 2.05 / 1; object-fit: cover; object-position: center; }
.project-hero-visual figcaption { display: flex; gap: 18px; align-items: center; padding: 18px 8px 5px; color: rgba(255,255,255,.65); }
.project-hero-visual figcaption > span { color: var(--cyan-light); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.project-hero-visual figcaption p { margin: 0; font-size: 11px; line-height: 1.5; }
.project-hero-visual figcaption b { display: block; color: white; font-size: 10px; letter-spacing: .12em; }

.project-intro { position: relative; overflow: hidden; }
.project-intro::after { content: "40"; position: absolute; right: -10px; top: 8px; color: rgba(6,45,67,.025); font-size: 320px; font-weight: 900; line-height: 1; }
.project-intro-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .92fr 1.08fr; gap: 120px; align-items: start; }
.project-intro-title h2 { margin: 11px 0 0; color: var(--navy-900); font-size: clamp(38px, 4.2vw, 58px); line-height: 1.18; letter-spacing: -.045em; }
.project-intro-copy { padding-top: 24px; }
.project-intro-copy > p { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.project-intro-copy .project-intro-lead { color: var(--navy-900); font-size: 19px; font-weight: 650; line-height: 1.7; }
.project-record-date { display: flex; justify-content: space-between; align-items: center; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.project-record-date span { color: var(--muted); font-size: 11px; }
.project-record-date b { color: var(--navy-900); font-size: 18px; letter-spacing: .08em; }
.engineering-focus { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border: 1px solid var(--line); }
.focus-card { position: relative; min-height: 310px; padding: 38px 34px; border-right: 1px solid var(--line); background: white; }
.focus-card:last-child { border-right: 0; }
.focus-card > span { position: absolute; top: 24px; right: 24px; color: #e9eff1; font-size: 54px; font-weight: 800; }
.focus-card .eyebrow { margin: 0 0 50px; }
.focus-card h3 { position: relative; margin: 0 0 15px; color: var(--navy-900); font-size: 23px; }
.focus-card > p:last-child { position: relative; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.project-timeline { background: #f2f6f7; }
.timeline-stage { display: grid; grid-template-columns: .8fr 1fr 1fr; min-height: 420px; margin-top: 24px; border-top: 3px solid var(--cyan); background: white; box-shadow: 0 20px 60px rgba(3,29,44,.055); }
.timeline-stage.reverse { grid-template-columns: 1fr 1fr .8fr; }
.timeline-stage.reverse .stage-copy { order: 3; }
.stage-copy { display: flex; flex-direction: column; justify-content: center; padding: 44px 42px; }
.stage-copy > span { color: var(--cyan); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.stage-copy h3 { margin: 18px 0 16px; color: var(--navy-900); font-size: 26px; line-height: 1.36; }
.stage-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.stage-copy small { margin-top: 28px; color: #97a3a9; font-size: 10px; }
.stage-photo { position: relative; min-width: 0; min-height: 420px; padding: 0; border: 0; border-left: 5px solid white; background: #dce5e8; overflow: hidden; cursor: zoom-in; }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .35s; }
.stage-photo.portrait img { object-position: center 58%; }
.stage-photo > span { position: absolute; right: 16px; bottom: 16px; padding: 9px 12px; background: rgba(3,29,44,.84); color: white; font-size: 10px; font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.stage-photo:hover img { transform: scale(1.035); filter: saturate(1.04); }
.stage-photo:hover > span, .stage-photo:focus-visible > span { opacity: 1; transform: none; }

.project-system { overflow: hidden; background: var(--navy-950); color: white; }
.project-system-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: stretch; }
.system-visual { position: relative; min-height: 650px; margin-left: calc((100vw - var(--container)) / -2); }
.system-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.system-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 64%, var(--navy-950)); }
.system-copy { display: flex; flex-direction: column; justify-content: center; padding: 58px 0 58px 76px; }
.system-copy h2 { margin: 12px 0 22px; font-size: clamp(38px, 4vw, 54px); letter-spacing: -.045em; }
.system-copy > p { margin: 0; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.9; }
.system-copy ul { margin: 32px 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.system-copy li { display: flex; gap: 18px; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.11); font-size: 13px; }
.system-copy li span { color: var(--cyan-light); font-size: 10px; font-weight: 800; }
.technical-boundary { padding: 18px 20px; border-left: 2px solid var(--cyan); background: rgba(255,255,255,.045); }
.technical-boundary b { display: block; margin-bottom: 7px; color: var(--cyan-light); font-size: 10px; letter-spacing: .1em; }
.technical-boundary p { margin: 0; color: rgba(255,255,255,.55); font-size: 10px; line-height: 1.75; }

.project-gallery { background: white; }
.gallery-grid { display: grid; grid-auto-rows: 230px; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; background: #dbe4e7; overflow: hidden; cursor: zoom-in; text-align: left; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .4s; }
.gallery-item::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(3,29,44,.84)); pointer-events: none; }
.gallery-item > span { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 17px; color: white; font-size: 11px; font-weight: 700; line-height: 1.45; }
.gallery-item > span b { display: block; margin-bottom: 6px; color: var(--cyan-light); font-size: 9px; letter-spacing: .12em; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.045); filter: saturate(1.08); }
.gallery-wide { grid-column: span 2; }
.gallery-tall { grid-row: span 2; }
.gallery-feature { grid-column: span 2; grid-row: span 2; }
.gallery-feature > span { font-size: 15px; }

.project-cta { padding: 82px 0; background: linear-gradient(115deg, #06334a, #075573); color: white; }
.project-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 80px; }
.project-cta h2 { margin: 10px 0 14px; font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -.04em; }
.project-cta p:last-child { max-width: 720px; margin: 0; color: rgba(255,255,255,.66); font-size: 14px; }
.project-cta .btn { flex: 0 0 auto; }

.project-lightbox { width: min(1380px, calc(100vw - 40px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0; background: #01131d; color: white; box-shadow: 0 40px 120px rgba(0,0,0,.55); overflow: hidden; }
.project-lightbox::backdrop { background: rgba(0,12,18,.84); backdrop-filter: blur(5px); }
.project-lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: min(88vh, 900px); margin: 0; }
.project-lightbox figure img { width: 100%; height: 100%; min-height: 0; padding: 22px 78px 0; object-fit: contain; }
.project-lightbox figcaption { display: flex; justify-content: center; gap: 20px; align-items: center; min-height: 64px; padding: 13px 84px 18px; color: rgba(255,255,255,.82); text-align: center; }
.project-lightbox figcaption span { color: var(--cyan-light); font-size: 10px; letter-spacing: .12em; }
.project-lightbox figcaption strong { font-size: 13px; }
.lightbox-close, .lightbox-nav { position: absolute; z-index: 3; border: 0; color: white; background: rgba(255,255,255,.08); cursor: pointer; }
.lightbox-close { top: 15px; right: 15px; width: 44px; height: 44px; font-size: 27px; }
.lightbox-nav { top: 50%; width: 50px; height: 70px; transform: translateY(-50%); font-size: 38px; }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--cyan); }
.project-page.dialog-open { overflow: hidden; }

@media (min-width: 1700px) {
  .project-hero-grid { gap: 100px; }
  .gallery-grid { grid-auto-rows: 280px; }
}

@media (max-width: 1180px) {
  .project-hero-grid { grid-template-columns: .9fr 1.1fr; gap: 38px; }
  .project-facts { grid-template-columns: repeat(2, 1fr); }
  .project-facts div:nth-child(2) { border-right: 0; }
  .project-facts div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .project-intro-grid { gap: 70px; }
  .timeline-stage, .timeline-stage.reverse { grid-template-columns: .78fr 1fr 1fr; }
  .system-copy { padding-left: 48px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .project-page .site-nav > a[aria-current="page"] { color: var(--cyan-light); }
  .project-hero { min-height: auto; padding: 52px 0 64px; }
  .project-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .project-hero .breadcrumb { margin-bottom: 32px; }
  .project-hero h1 { font-size: clamp(44px, 11vw, 64px); }
  .project-lead { max-width: 680px; }
  .project-hero-visual { width: 100%; }
  .project-intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .project-intro-copy { padding-top: 0; }
  .engineering-focus { grid-template-columns: 1fr; margin-top: 56px; }
  .focus-card { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .focus-card:last-child { border-bottom: 0; }
  .timeline-stage, .timeline-stage.reverse { grid-template-columns: 1fr 1fr; }
  .timeline-stage .stage-copy, .timeline-stage.reverse .stage-copy { grid-column: 1 / -1; order: 0; }
  .stage-photo { min-height: 330px; border-top: 5px solid white; border-left: 0; }
  .stage-photo + .stage-photo { border-left: 5px solid white; }
  .project-system-grid { grid-template-columns: 1fr; }
  .system-visual { min-height: 480px; margin: 0; }
  .system-visual::after { background: linear-gradient(0deg, var(--navy-950), transparent 45%); }
  .system-copy { padding: 30px 0 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .project-cta-inner { align-items: flex-start; flex-direction: column; gap: 34px; }
  .project-lightbox figure img { padding-inline: 58px; }
}

@media (max-width: 560px) {
  .project-hero { padding-top: 38px; }
  .project-hero h1 { margin-top: 12px; font-size: 43px; }
  .project-lead { font-size: 14px; line-height: 1.78; }
  .project-facts { margin: 28px 0; }
  .project-facts div { padding: 16px 10px; }
  .project-facts div:nth-child(odd) { padding-left: 0; }
  .project-facts strong { font-size: 14px; }
  .project-hero-visual { padding: 8px; }
  .project-hero-visual img { aspect-ratio: 1.45 / 1; }
  .project-hero-visual figcaption { gap: 10px; padding-top: 13px; }
  .project-intro::after { display: none; }
  .project-intro-title h2 { font-size: 36px; }
  .project-intro-copy .project-intro-lead { font-size: 17px; }
  .engineering-focus { margin-top: 42px; }
  .focus-card { padding: 32px 26px; }
  .focus-card .eyebrow { margin-bottom: 34px; }
  .timeline-stage, .timeline-stage.reverse { grid-template-columns: 1fr; }
  .stage-copy { grid-column: 1; padding: 34px 27px; }
  .stage-photo { min-height: 260px; }
  .stage-photo + .stage-photo { border-top: 5px solid white; border-left: 0; }
  .system-visual { min-height: 330px; }
  .system-copy h2 { font-size: 36px; }
  .gallery-grid { grid-auto-rows: 190px; grid-template-columns: 1fr 1fr; gap: 7px; }
  .gallery-item > span { left: 12px; right: 12px; bottom: 11px; font-size: 9px; }
  .gallery-wide, .gallery-feature { grid-column: span 2; }
  .gallery-tall { grid-row: span 2; }
  .gallery-feature { grid-row: span 2; }
  .project-cta { padding: 62px 0; }
  .project-lightbox { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .project-lightbox figure { height: calc(100vh - 16px); }
  .project-lightbox figure img { padding: 55px 12px 0; }
  .project-lightbox figcaption { min-height: 84px; padding: 14px 55px 20px; flex-direction: column; gap: 5px; }
  .lightbox-nav { top: auto; bottom: 16px; width: 42px; height: 50px; transform: none; font-size: 30px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
