.project-shell { padding-bottom: 100px; }
.eyebrow { display: block; color: var(--accent); font-size: .73rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; }
.projects-hero { padding: 76px 0 62px; max-width: 800px; }
.projects-hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.6rem); line-height: 1.08; letter-spacing: -.04em; margin: 22px 0; }
.projects-hero p { max-width: 620px; font-size: 1.12rem; line-height: 1.8; }
.overview-label { display: flex; justify-content: space-between; padding: 18px 0; border-top: 1px solid #30434b; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.project-feature { display: grid; grid-template-columns: 1.15fr 1fr; border: 1px solid #30434b; border-radius: 16px; overflow: hidden; background: var(--bg-2); margin-bottom: 24px; }
.feature-image { position: relative; display: block; overflow: hidden; min-height: 390px; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feature-image:hover img { transform: scale(1.025); }
.feature-body { padding: clamp(24px, 4vw, 44px); align-self: center; }
.feature-body h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.035em; line-height: 1.15; margin: 20px 0; }
.feature-body p { line-height: 1.8; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.project-tags span { border: 1px solid #314850; border-radius: 5px; padding: 6px 9px; color: #b8cece; font-size: .75rem; }
.text-link { display: inline-flex; align-items: center; gap: 28px; color: var(--accent); padding: 12px 0; border-bottom: 1px solid #3e7978; font-weight: 600; }
.text-link:hover { color: var(--text); }
.home-project > .eyebrow { margin-bottom: 20px; }
.back-link { display: inline-block; margin: 35px 0 45px; color: var(--muted); font-size: .88rem; }
.back-link:hover { color: var(--accent); }
.report-hero h1 { max-width: 850px; font-size: clamp(2.7rem, 6vw, 4.8rem); line-height: 1.05; letter-spacing: -.045em; margin: 22px 0; }
.report-lead { max-width: 800px; font-size: 1.15rem; line-height: 1.85; }
.hero-photo { margin: 36px 0 0; position: relative; overflow: hidden; border-radius: 12px; }
.hero-photo img { width: 100%; max-height: 590px; object-fit: cover; object-position: center 58%; }
.project-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 70px; border-bottom: 1px solid #30434b; padding: 26px 0; gap: 24px; }
.project-facts dt { color: var(--muted); font-size: .75rem; margin-bottom: 10px; }
.project-facts dd { margin: 0; font-size: 1.12rem; }
.report-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 55px; }
.report-layout > *, .project-feature > * { min-width: 0; }
.report-toc nav { position: sticky; top: 105px; display: grid; gap: 13px; border-left: 1px solid #30434b; padding-left: 20px; }
.report-toc .eyebrow { margin-bottom: 10px; }
.report-toc a { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.report-toc a:hover { color: var(--accent); }
.report-section { scroll-margin-top: 100px; padding-bottom: 56px; margin-bottom: 48px; border-bottom: 1px solid #263b43; }
.report-section h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -.025em; margin: 16px 0 24px; }
.report-section p { line-height: 1.85; margin-top: 16px; }
.report-figure { margin: 28px 0 0; }
.report-figure img { width: 100%; max-height: 470px; object-fit: contain; background: #10191e; border-radius: 9px; }
figcaption { color: var(--muted); font-size: .78rem; line-height: 1.6; padding-top: 12px; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.comparison img { height: 220px; }
.module-diagram { display: flex; align-items: center; gap: 12px; margin: 30px 0; }
.module-diagram > div { flex: 1; padding: 22px 12px; border: 1px solid #37525a; background: #14262d; border-radius: 8px; text-align: center; }
.module-diagram small { display: block; font-size: .68rem; color: var(--muted); }
.module-diagram strong { display: block; font-size: 1.7rem; margin-top: 8px; }
.module-diagram .diagram-result { border-color: var(--accent); color: var(--accent); }
.learning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.learning-card { padding: 24px; border: 1px solid #30464e; border-radius: 10px; background: #12242bd9; }
.learning-number { color: var(--accent); font-size: .75rem; }
.learning-card h3 { font-size: 1.1rem; line-height: 1.4; margin: 16px 0 10px; }
.learning-card p { font-size: .9rem; margin-top: 0; }
.project-gallery { margin-top: 28px; }
.gallery-slide { margin: 0 0 24px; }
[hidden] { display: none !important; }
.gallery-expand { display: block; position: relative; padding: 0; width: 100%; background: #080e12; border: 0; cursor: zoom-in; color: var(--text); border-radius: 9px; overflow: hidden; }
.gallery-expand img, .gallery-slide video { width: 100%; height: 440px; object-fit: contain; background: #080e12; border-radius: 9px; }
.gallery-expand span { position: absolute; bottom: 12px; right: 12px; padding: 7px 10px; background: #0b1217dd; border-radius: 5px; font-size: .72rem; }
.video-download { display: inline-block; font-size: .78rem; color: var(--accent); margin-top: 8px; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; gap: 16px; }
.gallery-controls button, .image-lightbox button { min-width: 44px; min-height: 44px; border: 1px solid #45626a; border-radius: 6px; background: #152932; color: var(--text); cursor: pointer; font: inherit; }
.gallery-controls span { font-size: .8rem; color: var(--muted); }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 5px 3px 12px; }
.gallery-thumbs button { flex: 0 0 78px; padding: 3px; background: #14232b; border: 2px solid transparent; border-radius: 6px; cursor: pointer; position: relative; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery-thumbs img { width: 68px; height: 54px; object-fit: cover; border-radius: 3px; }
.gallery-thumbs span { position: absolute; inset: 14px 0 auto; color: white; text-shadow: 0 1px 6px black; }
.gallery-stage { touch-action: pan-y; }
.image-lightbox { width: min(1200px, 96vw); max-height: 95dvh; padding: 20px; border: 1px solid #45626a; border-radius: 12px; background: #0b1217; color: var(--text); }
.image-lightbox::backdrop { background: #03070bec; }
.image-lightbox button { display: block; padding: 8px 16px; margin: 0 0 12px auto; }
.image-lightbox img { max-height: 73dvh; width: 100%; object-fit: contain; }
.image-lightbox p { font-size: .8rem; margin-top: 12px; }
@media (max-width: 900px) {
  .report-layout { grid-template-columns: 1fr; gap: 35px; }
  .report-toc nav { position: static; display: flex; flex-wrap: wrap; gap: 12px 20px; }
  .report-toc .eyebrow { flex-basis: 100%; margin: 0; }
  .project-facts { margin-bottom: 35px; }
  .feature-image { min-height: 340px; }
}
@media (max-width: 640px) {
  .projects-hero { padding: 45px 0 38px; }
  .project-feature { grid-template-columns: 1fr; }
  .feature-image { min-height: 0; height: 280px; }
  .feature-body { padding: 26px; }
  .project-facts { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .report-hero h1 { font-size: 2.65rem; overflow-wrap: anywhere; }
  .report-lead { font-size: 1rem; }
  .hero-photo img { height: 340px; }
  .back-link { margin-bottom: 32px; }
  .learning-grid, .comparison { grid-template-columns: 1fr; }
  .comparison img { height: auto; max-height: 330px; }
  .module-diagram { gap: 6px; flex-wrap: wrap; }
  .module-diagram > div { padding: 17px 5px; }
  .module-diagram strong { font-size: 1.2rem; }
  .module-diagram small { font-size: .6rem; }
  .gallery-expand img, .gallery-slide video { height: 320px; }
  .report-section { margin-bottom: 32px; padding-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) { .feature-image img { transition: none; } }
