.house-case { --house-blue: #1177b7; --house-gold: #f5b724; --house-cream: #edf2f4; }
.house-hero { background: var(--navy-deep); color: white; }
.house-case .case-header { color: white; }
.house-case .case-header.is-scrolled { background: rgba(10,28,49,.92); }
.house-case .case-kicker { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.55); }
.house-case .company-badge { margin-top: -34px; background: white; color: var(--navy-deep); }
.house-case .case-hero h1 { color: white; }
.house-case .case-hero h1 em { color: var(--house-gold); }
.house-case .case-summary dl div { border-color: rgba(255,255,255,.2); }
.house-case .case-summary dt { color: rgba(255,255,255,.48); }

.house-cover { display: grid; grid-template-columns: .78fr 1.22fr; min-height: 850px; overflow: hidden; background: var(--house-cream); }
.house-cover-copy { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(70px, 8vw, 130px) var(--pad); background: var(--house-blue); color: white; }
.house-cover-copy > span { color: var(--house-gold); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.house-cover-copy h2 { margin: auto 0 0; font-family: var(--display); font-size: clamp(50px, 6.7vw, 98px); font-weight: 500; letter-spacing: -.06em; line-height: .96; }
.email-stack { position: relative; min-height: 850px; background: #e7ecef; }
.email-card { position: absolute; width: min(62%, 560px); min-height: 570px; padding: 38px; background: white; box-shadow: 0 28px 75px rgba(10,28,49,.16); }
.email-card-back { top: 8%; left: 10%; transform: rotate(-8deg); opacity: .55; }
.email-card-mid { top: 13%; left: 20%; transform: rotate(5deg); opacity: .72; }
.email-card-front { top: 16%; left: 28%; z-index: 2; }
.email-card > span { color: var(--muted); font-size: .75rem; }
.email-card > i { display: block; height: 15px; margin-top: 25px; background: #dde4e8; }
.email-card > i:nth-of-type(2) { width: 76%; }.email-card > i:nth-of-type(3) { width: 54%; }
.email-card-front b { display: block; color: var(--house-blue); font-family: var(--display); font-size: 26px; letter-spacing: -.04em; }
.email-card-front small { display: block; margin-top: 38px; color: var(--house-blue); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.email-card-front h3 { margin: 22px 0; color: var(--navy); font-family: var(--display); font-size: clamp(42px, 4.8vw, 72px); font-weight: 500; letter-spacing: -.06em; line-height: .94; }
.email-card-front p { color: var(--muted); }
.email-card-front button { margin-top: 45px; padding: 14px 18px; border: 0; background: var(--house-blue); color: white; }

.house-metrics article:nth-child(2) strong { font-size: clamp(42px, 5.4vw, 74px); }

.email-insight-section { padding-top: 0; padding-bottom: clamp(110px, 14vw, 190px); background: var(--paper); }
.insight-controls { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.insight-controls button { display: grid; grid-template-columns: 32px 1fr; min-height: 145px; padding: 22px 18px 20px 0; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; color: var(--navy); text-align: left; cursor: pointer; }
.insight-controls button:last-child { border-right: 0; }
.insight-controls button > span { grid-row: span 2; color: var(--coral); font-size: .75rem; }
.insight-controls strong { align-self: end; font-family: var(--display); font-size: 22px; font-weight: 500; transition: color .25s ease, transform .25s ease; }
.insight-controls small { margin-top: 5px; color: var(--muted); }
.insight-controls button:hover strong, .insight-controls button:focus-visible strong, .insight-controls button[aria-selected="true"] strong { color: var(--house-blue); transform: translateY(-4px); }
.insight-stage { position: relative; min-height: 760px; margin-top: 55px; }
.insight-panel { position: absolute; inset: 0; display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(55px, 8vw, 125px); align-items: center; animation: house-panel-in .52s cubic-bezier(.2,.7,.2,1) both; }
.insight-panel[hidden] { display: none; }
.insight-copy h3 { margin: 24px 0; color: var(--navy); font-family: var(--display); font-size: clamp(44px, 5.4vw, 80px); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.insight-copy > p:not(.case-label) { color: var(--muted); font-size: 17px; line-height: 1.7; }
.insight-copy ul { margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.insight-copy li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 13px; }
.insight-copy li::before { content: "↳"; margin-right: 12px; color: var(--coral); }
.email-reconstruction { max-width: 700px; padding: clamp(30px, 5vw, 60px); background: #f1f3f3; box-shadow: 0 25px 70px rgba(10,28,49,.08); }
.email-top { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid #cfd7da; color: var(--muted); font-size: .75rem; }
.email-top b { color: var(--house-blue); font-weight: 500; }
.email-hero-block { margin-top: 24px; padding: clamp(28px, 4vw, 50px); background: white; }
.email-hero-block small { color: var(--house-blue); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.email-hero-block strong { display: block; margin-top: 28px; color: var(--navy); font-family: var(--display); font-size: clamp(38px, 4.5vw, 66px); font-weight: 500; letter-spacing: -.055em; line-height: .94; }
.email-hero-block button { margin-top: 42px; padding: 13px 17px; border: 0; background: var(--house-blue); color: white; }
.email-content-row { display: grid; grid-template-columns: 78px 1fr; gap: 22px; margin-top: 12px; padding: 18px; background: white; }
.email-content-row i { min-height: 65px; background: var(--house-gold); }
.email-content-row p { display: flex; flex-direction: column; justify-content: center; margin: 0; }
.email-content-row b { color: var(--navy); }.email-content-row span { margin-top: 5px; color: var(--muted); font-size: .75rem; }
.signal-chart { display: grid; grid-template-columns: 120px 1fr; gap: 9px 20px; align-items: center; margin-top: 38px; }
.signal-chart > span { color: var(--navy); font-size: .75rem; }
.signal-chart > i { height: 7px; overflow: hidden; background: #d9dfe1; }
.signal-chart > i b { display: block; width: 50%; height: 100%; background: var(--house-blue); animation: signal-in .7s .15s cubic-bezier(.2,.7,.2,1) both; }
.signal-chart.signal-high > i b { width: 86%; }
.signal-chart.signal-medium > i b { width: 66%; }
.signal-chart.signal-base > i b { width: 50%; }
.signal-chart small { grid-column: 2; color: var(--muted); font-size: .75rem; }
.reconstruction-note { max-width: 740px; margin: 32px 0 0 auto; color: var(--muted); font-size: .75rem; }
@keyframes house-panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes signal-in { from { width: 0; } }

.accessibility-section { padding-top: clamp(110px, 14vw, 190px); padding-bottom: clamp(110px, 14vw, 190px); background: var(--house-cream); }
.accessibility-section > div:first-child { display: grid; grid-template-columns: .5fr 2fr; gap: 55px; }
.accessibility-section h2 { max-width: 950px; margin: 0; color: var(--navy); font-family: var(--display); font-size: clamp(45px, 6vw, 88px); font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.accessibility-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 95px; }
.accessibility-grid article { min-height: 285px; padding: 28px; background: white; }
.accessibility-grid article > span { display: block; color: var(--house-blue); font-family: var(--display); font-size: 44px; letter-spacing: -.05em; }
.accessibility-grid h3 { margin: 55px 0 12px; color: var(--navy); font-family: var(--display); font-size: 28px; font-weight: 500; }
.accessibility-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.hackathon-section { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 850px; background: var(--navy-deep); color: white; }
.hackathon-section figure { position: relative; margin: 0; overflow: hidden; }
.hackathon-section img { width: 100%; height: 100%; object-fit: cover; }
.hackathon-section figcaption { position: absolute; left: 28px; right: 28px; bottom: 25px; display: flex; justify-content: space-between; color: white; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.hackathon-copy { display: flex; flex-direction: column; justify-content: center; }
.hackathon-copy > strong { display: block; margin: 45px 0 8px; color: var(--house-gold); font-family: var(--display); font-size: clamp(75px, 10vw, 150px); font-weight: 500; letter-spacing: -.07em; line-height: .82; }
.hackathon-copy h2 { margin: 35px 0 25px; font-family: var(--display); font-size: clamp(40px, 5vw, 75px); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.hackathon-copy > p:not(.case-label) { max-width: 600px; color: rgba(255,255,255,.6); line-height: 1.7; }
.house-takeaway { background: var(--paper); }

@media (max-width: 1000px) {
  .house-cover { grid-template-columns: 1fr; }
  .house-cover-copy { min-height: 600px; }
  .insight-panel { grid-template-columns: 1fr; }
  .insight-stage { min-height: 1180px; }
  .accessibility-grid { grid-template-columns: 1fr 1fr; }
  .hackathon-section { grid-template-columns: 1fr; }
  .hackathon-section figure { min-height: 650px; }
}

@media (max-width: 760px) {
  .house-cover-copy { min-height: 520px; }
  .email-stack { min-height: 700px; }
  .email-card { width: 76%; min-height: 510px; padding: 25px; }
  .email-card-back { left: 4%; }.email-card-mid { left: 11%; }.email-card-front { left: 17%; }
  .insight-controls { grid-template-columns: 1fr 1fr; }
  .insight-controls button:nth-child(2) { border-right: 0; }
  .insight-stage { min-height: 1280px; }
  .email-reconstruction { padding: 22px; }
  .accessibility-section > div:first-child { grid-template-columns: 1fr; }
  .accessibility-grid { grid-template-columns: 1fr; }
  .hackathon-section figure { min-height: 470px; }
  .hackathon-section figcaption { flex-direction: column; gap: 6px; }
}

.signal-chart { display: flex; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.signal-chart > span, .signal-chart small { font-size: .875rem; }
.wbf-evidence { padding-top: 0; padding-bottom: 110px; background: var(--paper); }
.wbf-evidence figure { min-width: 0; margin: 0; }
.wbf-evidence img { width: 100%; height: auto; }
.wbf-evidence figcaption { padding: 16px 0 30px; color: var(--muted); font-size: .875rem; }
.wbf-overview { max-width: 1120px; margin: 0 auto !important; }
.wbf-email-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.wbf-print-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-top: 32px; align-items: start; }
.evidence-note { color: var(--muted); font-size: .875rem; }
@media(max-width:760px) { .wbf-email-pair, .wbf-print-grid { grid-template-columns: 1fr; } }

.house-cover { min-height: 620px; }
.house-cover-copy { min-height: 620px; }
.house-cover-original { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: clamp(26px,5vw,80px); background: #c1dbe4; }
.house-cover-original img { width: 100%; height: auto; }
.house-cover-original figcaption { margin-top: 24px; font-size: .875rem; color: #244555; }
@media(max-width:760px) { .house-cover-copy { min-height: 440px; }.house-cover-original { min-height: 320px; } }

.insight-stage { min-height: 0; }
.insight-panel { position: relative; inset: auto; }
