/* The home composes the existing editorial primitives around a working lighting plan. */
.home { --home-motion: cubic-bezier(.4, 0, .2, 1); }
.home .letter-hero { min-height: 0; grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); gap: 48px; padding-block: 32px 24px; }
.home .salutation { margin-bottom: 16px; font-size: 1.5rem; line-height: 2rem; }
.home .letter-copy h1 { max-width: none; font-size: 4.5rem; font-weight: 500; line-height: 1; letter-spacing: -.04em; overflow-wrap: normal; }
.home .hero-last-line { display: block; }
.home .letter-copy .lede { max-width: 680px; margin: 24px 0 16px; font-size: 1.25rem; line-height: 1.75rem; text-wrap: pretty; }
.home .letter-note { max-width: 680px; margin: 16px 0 0; padding-top: 16px; font-size: 1rem; line-height: 1.5rem; }
.home .letter-note span { margin-top: 8px; font-size: 1.125rem; line-height: 1.75rem; }
.home .letter-portrait { width: min(100%, 336px); justify-self: end; }
.home .start, .home .rooms, .home .calculator, .home .latest-guides, .home .method { padding-block: 64px; }
.home .section-heading h2, .home .calc-intro h2, .home .method h2 { margin: 0 0 16px; font-size: 2.25rem; line-height: 2.5rem; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: normal; }
.home .eyebrow { margin-bottom: 12px; }
.home .section-heading > p:last-child { max-width: none; margin: 0; }
.home .calculator { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; gap: 24px 32px; border-top: 1px solid var(--border); padding-block: 32px 40px; }
.home .calc-intro { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.home .calc-intro h2 { margin: 0; }
.home .calc-intro > p { margin: 0; max-width: 52ch; font-size: 1rem; line-height: 1.5rem; }
.home .calc-panel { padding: 24px; box-shadow: 6px 6px 0 var(--color-gold); }
.home .calc-panel output { margin-top: 16px; padding: 20px; }
.home .calc-panel output strong { font-size: 2.25rem; line-height: 2.5rem; }
.home .lighting-scene { min-width: 0; display: flex; flex-direction: column; background: var(--foreground); color: var(--background); border: 1px solid var(--foreground); }
.home .scene-controls { display: none; flex-wrap: wrap; gap: 8px; padding: 12px; }
.home .is-interactive .scene-controls { display: flex; }
.home .scene-controls button { min-height: 44px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--background) 32%, transparent); background: transparent; color: var(--background); font-size: .875rem; line-height: 1.25rem; font-weight: 600; cursor: pointer; }
.home .scene-controls button[aria-pressed="true"] { color: var(--foreground); background: var(--color-gold); border-color: var(--color-gold); }
.home .scene-controls button:hover { border-color: var(--color-gold); }
.home .scene-photos { position: relative; flex: 1; min-height: 320px; overflow: hidden; }
.home .scene-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 240ms var(--home-motion); }
.home .scene-photo.is-active { opacity: 1; }
.home .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home .start { border-top: 1px solid var(--border); }
.home .start .guide-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 32px; }
.home .start .guide-card:nth-child(n) { grid-column: auto; display: grid; grid-template-columns: 40px minmax(200px, .8fr) minmax(0, 1.5fr) 24px; align-items: center; gap: 24px; padding: 16px 24px; min-height: 0; border: 1px solid var(--border); background: var(--card); transition: background-color 140ms var(--home-motion); }
.home .start .guide-card:hover { background: var(--color-paper-deep); }
.home .path-number { font-family: var(--font-mono); font-size: .875rem; line-height: 1.25rem; }
.home .start .guide-card h3 { margin: 0; font-size: 1.5rem; line-height: 2rem; font-weight: 500; overflow-wrap: normal; }
.home .start .guide-card p { margin: 0; font-size: 1rem; line-height: 1.5rem; text-wrap: pretty; }
.home .guide-card > svg { justify-self: end; }
.home .section-heading.horizontal { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.home .rooms { background: var(--foreground); color: var(--background); }
.home .rooms .section-heading > p { max-width: 40ch; color: var(--background); opacity: .85; font-size: 1rem; line-height: 1.5rem; }
.home .room-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.home .room-card { min-height: 0; padding: 16px; border-color: color-mix(in srgb, var(--background) 24%, transparent); background: transparent; }
.home .room-photo { aspect-ratio: 3 / 2; margin-bottom: 16px; overflow: hidden; }
.home .room-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home .room-card h3 { margin-block: 8px; font-size: 1.5rem; line-height: 2rem; font-weight: 500; }
.home .room-card p { margin-block: 8px 16px; font-size: 1rem; line-height: 1.5rem; }
.home .room-card strong { margin-top: 12px; }
.home .latest-guides .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.home .latest-guides .article-grid article { grid-column: auto; padding: 24px; }
.home .latest-guides .article-grid article:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 32px; }
.home .latest-guides .article-grid article:first-child > .article-kicker { grid-column: 1 / -1; }
.home .latest-guides .article-grid article:first-child > h3 { grid-row: 2 / 4; }
.home .latest-guides .article-grid h3 { margin-block: 8px; font-size: 1.5rem; line-height: 2rem; font-weight: 500; }
.home .latest-guides .article-grid p { margin-block: 8px; font-size: 1rem; line-height: 1.5rem; }
.home .method { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.home .method h2 { font-size: 2.25rem; line-height: 2.5rem; }
.home .method li { grid-template-columns: 40px minmax(0, 1fr); padding-block: 16px; }
.home .benefit-line { display: block; }
.home [data-reveal], .home [data-word] { opacity: 1; }
.home.motion-ready [data-reveal] { transition: opacity 240ms var(--home-motion), transform 240ms var(--home-motion); transition-delay: var(--reveal-delay, 0ms); }
.home.motion-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(8px); }
.home.motion-ready [data-word] { opacity: .4; transition: opacity 240ms var(--home-motion); transition-delay: var(--reveal-delay, 0ms); }
.home.motion-ready [data-word].is-visible { opacity: 1; }
@media (max-width: 1279px) {
  .home .letter-copy h1 { font-size: 3.75rem; }
  .home .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .home .letter-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); gap: 24px; }
  .home .letter-copy h1 { font-size: 3rem; }
  .home .letter-portrait img { aspect-ratio: 4 / 5; }
  .home .calculator { gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home .calc-panel { padding: 24px; }
  .home .start .guide-card:nth-child(n) { grid-template-columns: 32px minmax(160px, .85fr) minmax(0, 1fr) 20px; gap: 16px; }
}
@media (max-width: 767px) {
  .home .letter-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 24px; }
  .home .letter-copy h1 { font-size: 3rem; line-height: 1; }
  .home .hero-last-line { display: inline; }
  .home .letter-copy .lede { font-size: 1.125rem; line-height: 1.75rem; }
  .home .letter-portrait { width: 100%; max-width: none; justify-self: stretch; }
  .home .letter-portrait img { aspect-ratio: 16 / 10; }
  .home .start, .home .rooms, .home .calculator, .home .latest-guides, .home .method { padding-block: 40px; }
  .home .section-heading h2, .home .calc-intro h2, .home .method h2 { font-size: 1.875rem; line-height: 2.25rem; }
  .home .calculator, .home .method { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home .calculator { padding-block: 24px 32px; }
  .home .calc-intro { display: block; }
  .home .calc-intro > p { margin-top: 16px; }
  .home .scene-photos { flex: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .home .start .guide-card:nth-child(n) { grid-template-columns: 24px minmax(0, 1fr) 20px; gap: 8px 16px; padding: 16px; }
  .home .start .guide-card h3 { font-size: 1.5rem; line-height: 2rem; }
  .home .start .guide-card p { grid-column: 2; }
  .home .guide-card > svg { grid-column: 3; grid-row: 1 / 3; }
  .home .room-card { padding: 16px; }
  .home .latest-guides .article-grid article:first-child { display: block; }
}
@media (max-width: 639px) {
  .home .letter-copy h1 { font-size: 2.25rem; line-height: 2.5rem; }
  .home .room-grid, .home .latest-guides .article-grid { grid-template-columns: minmax(0, 1fr); }
  .home .latest-guides .article-grid article:nth-child(n) { grid-column: auto; }
  .home .field-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .home [data-reveal], .home [data-word], .home .scene-photo { animation: none !important; transition: none !important; }
  .home [data-reveal] { opacity: 1 !important; transform: none !important; }
  .home [data-word] { opacity: 1 !important; }
}
.home.motion-static [data-reveal], .home.motion-static [data-word] { opacity: 1; transform: none; transition: none; }
.home.motion-static .scene-photo { transition: none; }
