.project-page { background: #faf8f3; }
.project-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.project-eyebrow { color: #815b20; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.project-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 0; font-size: 12px; color: #596371; }
.project-breadcrumb a { color: #354155; text-underline-offset: 4px; }
.project-hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; padding: 18px 0 60px; }
.project-hero h1 { font: 400 clamp(38px, 4.3vw, 62px)/1.04 'DM Serif Display', serif; letter-spacing: -.025em; margin-bottom: 24px; }
.project-lede { color: #4a5568; font-size: 17px; line-height: 1.8; max-width: 580px; }
.project-hero figure { margin: 0; }
.project-hero img { width: 100%; height: auto; border-radius: 4px 48px 4px 4px; display: block; }
.project-page figcaption { color: #576173; font-size: 12px; line-height: 1.7; margin-top: 12px; }
.project-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.project-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 14px 23px; border: 1px solid #0b1d3a; border-radius: 6px; background: #0b1d3a; color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; }
.project-btn:hover { background: #1b3558; }
.project-text-link { color: #0b1d3a; font-size: 14px; font-weight: 700; text-underline-offset: 5px; }
.project-facts { border-top: 1px solid #deddd5; border-bottom: 1px solid #deddd5; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 25px 0; }
.project-facts dt { color: #5e6875; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 7px; }
.project-facts dd { font-weight: 600; font-size: 14px; line-height: 1.65; }
.project-section { padding-top: 84px; padding-bottom: 84px; }
.project-heading { max-width: 670px; margin-bottom: 32px; }
.project-page h2 { font: 400 clamp(30px, 3.5vw, 46px)/1.12 'DM Serif Display', serif; letter-spacing: -.018em; margin-bottom: 18px; }
.project-page h3 { font: 400 25px/1.2 'DM Serif Display', serif; margin-bottom: 12px; }
.project-copy { color: #4a5568; font-size: 16px; line-height: 1.85; }
.project-copy p + p { margin-top: 18px; }
.project-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-comparison figure { position: relative; margin: 0; }
.project-comparison img { display: block; width: 100%; height: auto; border-radius: 5px; }
.project-image-label { position: absolute; top: 18px; left: 18px; color: #fff; background: #0b1d3a; padding: 8px 15px; font-size: 12px; font-weight: 700; border-radius: 4px; }
.project-image-label.after { background: #faf8f3; color: #0b1d3a; }
.project-door { display: grid; grid-template-columns: .85fr 1fr; gap: 76px; align-items: center; }
.project-door figure { margin: 0; }
.project-door img { width: 100%; height: auto; display: block; border-radius: 4px; }
.project-door .project-copy { max-width: 530px; }
.project-gallery-section { background: #fff; }
.project-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.project-gallery figure { margin: 0; }
.project-gallery img { width: 100%; height: auto; display: block; border-radius: 4px; }
.project-gallery figcaption strong { color: #0b1d3a; font-size: 15px; display: block; margin: 16px 0 4px; }
.project-next { text-align: center; max-width: 740px; }
.project-next .project-actions { justify-content: center; }
.project-page a:focus-visible { outline: 3px solid #815b20; outline-offset: 5px; }
.project-page section[id] { scroll-margin-top: 110px; }
.project-post-link { margin: 30px 0; padding: 22px 24px; background: #faf6f0; border-left: 3px solid #9a6b26; border-radius: 0 8px 8px 0; }
.post-body .project-post-link p { font-size: 15px; margin: 0; }
.post-body .project-post-link strong { display: block; margin-bottom: 6px; }
.post-body .project-post-link a { color: #755015; font-weight: 600; }
.post-figure.real-project-portrait { max-width: 480px; margin-left: auto; margin-right: auto; }
.post-figure .real-project-caption { margin-top: 12px; text-align: left; font-size: 12px; color: #596371; line-height: 1.7; }
.post-figure .real-project-caption a { color: #755015; }
@media (max-width: 900px) {
  .project-hero { gap: 28px; grid-template-columns: 1fr 1fr; }
  .project-hero h1 { font-size: 42px; }
  .project-door { gap: 36px; }
}
@media (max-width: 680px) {
  .project-wrap { width: min(100% - 36px, 560px); }
  .project-breadcrumb { padding: 18px 0; font-size: 11px; }
  .project-hero { grid-template-columns: 1fr; padding: 12px 0 38px; gap: 28px; }
  .project-hero h1 { font-size: 42px; max-width: 430px; margin-bottom: 18px; }
  .project-lede { font-size: 15px; line-height: 1.8; }
  .project-hero img { border-top-right-radius: 32px; }
  .project-facts { gap: 18px; grid-template-columns: 1fr; padding: 23px 0; }
  .project-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 15px; }
  .project-facts dt { margin-bottom: 0; padding-top: 3px; }
  .project-section { padding-top: 54px; padding-bottom: 54px; }
  .project-heading { margin-bottom: 24px; }
  .project-comparison { grid-template-columns: 1fr; gap: 28px; }
  .project-door { grid-template-columns: 1fr; gap: 32px; }
  .project-door figure { max-width: 430px; }
  .project-gallery { grid-template-columns: 1fr; gap: 36px; }
  .project-gallery figure:nth-child(2) { max-width: 430px; }
  .project-actions { gap: 20px; }
  .project-post-link { padding: 20px; }
}

.project-mobile-actions { display: none; }
@media (max-width: 680px) {
  .project-page { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .project-mobile-actions { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset: auto 0 0; z-index: 900; min-height: 64px; padding-bottom: env(safe-area-inset-bottom); background: #0b1d3a; }
  .project-mobile-actions a { display: flex; align-items: center; justify-content: center; padding: 20px 8px; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
  .project-mobile-actions a:last-child { background: #c18b35; color: #0b1d3a; }
}

.project-page #before-after { padding-bottom: 0; }
