/* New Day AFH. Every color comes from the house: cream trim for the ground, tan siding for the contour
   lines and light panels, charcoal roof for actions and dark panels, brick chimney for marks and focus.
   Structure: the home is a front door (headline beside a full-height photo plate) followed by one paper
   sheet and a charcoal colophon. Inner pages are split: a pinned side over the contours holds the title
   and the page's tools, and the content scrolls on a single paper sheet divided by rules, not cards. */

:root {
  --ground: #f3ecdf;
  --card: #fbf8f2;
  --siding: #cdbb98;
  --siding-light: #e6d9bf;
  --plate: #e4d6bc;
  --ink: #2b2621;
  --ink-soft: #5b5048;
  --roof: #3e3d3b;
  --roof-deep: #2b2a29;
  --roof-raised: #4a4846;
  --brick: #8a4f3a;
  --brick-light: #f0c4b1;
  --rule: rgba(62, 61, 59, 0.14);
  --rule-dark: rgba(246, 240, 228, 0.16);
  --on-roof: #f6f0e4;
  --on-roof-soft: #cfc6b8;
  --serif: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --page: 78rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --edge: max(var(--gutter), calc((100vw - var(--page)) / 2));
  --radius: 1.25rem;
  --sheet-radius: clamp(1.5rem, 3vw, 2.5rem);
  --lift: 0 22px 44px -28px rgba(62, 61, 59, 0.4), 0 3px 8px -3px rgba(62, 61, 59, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  scrollbar-color: var(--siding) var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  caret-color: var(--brick);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

::selection {
  background: rgba(138, 79, 58, 0.2);
  color: var(--ink);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}

.colophon :focus-visible,
.doc-dark :focus-visible,
.booking-summary :focus-visible,
.viewer :focus-visible {
  outline-color: var(--on-roof);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

.skip {
  position: absolute;
  z-index: 60;
  top: -5rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--roof);
  color: var(--on-roof);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* Details not yet confirmed by the home: a dotted brick underline, explained on each page. */
.tbd,
.tbd-list li {
  text-decoration: underline dotted var(--brick);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.24em;
}

.colophon .tbd,
.doc-dark .tbd,
.booking-summary .tbd {
  text-decoration-color: var(--brick-light);
}

.tbd-key {
  width: 1.4rem;
  flex: none;
  border-bottom: 1.5px dotted var(--brick);
}

/* ---------- Page transitions ---------- */

@view-transition {
  navigation: auto;
}

.contours {
  view-transition-name: contours;
}

.dock {
  view-transition-name: dock;
}

.wordmark {
  view-transition-name: wordmark;
}

::view-transition-old(root) {
  animation: page-out 0.28s var(--ease) both;
}

::view-transition-new(root) {
  animation: page-in 0.5s var(--ease) both;
}

@keyframes page-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- Background ---------- */

.contours {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.contours.is-live {
  opacity: 1;
}

main,
.wordmark {
  position: relative;
  z-index: 1;
}

/* ---------- Wordmark ---------- */

.wordmark {
  position: absolute;
  top: calc(1.5rem + env(safe-area-inset-top));
  left: var(--edge);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-mark {
  width: 2.1rem;
  height: 2.1rem;
  fill: none;
  stroke: var(--roof);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.wordmark span {
  display: grid;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.05;
}

.wordmark small {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Buttons, links, icons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.1 var(--sans);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-solid {
  background: var(--roof);
  color: var(--on-roof);
}

.btn-solid:hover {
  background: var(--roof-deep);
}

.btn-line {
  border-color: rgba(62, 61, 59, 0.45);
  background: transparent;
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--roof);
  background: rgba(62, 61, 59, 0.06);
}

.btn-light {
  border: 0;
  background: var(--on-roof);
  color: var(--roof-deep);
}

.btn-light:hover {
  background: #fff;
}

.btn-line-light {
  border-color: rgba(246, 240, 228, 0.5);
  background: transparent;
  color: var(--on-roof);
}

.btn-line-light:hover {
  border-color: var(--on-roof);
}

.actions,
.side-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.link-btn {
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--brick);
  font: 600 1rem var(--sans);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.i {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: var(--roof);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

/* Photo frames until the house is photographed: a plain siding tone, nothing pretending to be a photo. */
.photo-slot {
  display: block;
  background: var(--plate);
}

.photo-pending {
  color: var(--ink-soft);
  font-weight: 400;
}

/* ---------- Home: the front door ---------- */

.door {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  min-height: 100vh;
  min-height: 100svh;
}

.door-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem clamp(1.5rem, 5vw, 5rem) 6rem var(--edge);
}

.door h1 {
  max-width: 12ch;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.door-lede {
  max-width: 30rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
}

.door-hours {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 600;
}

/* The photo plate hangs from the top of the screen to the right edge, not a card. */
.door-plate {
  position: relative;
  margin: 0;
}

.door-plate .photo-slot {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  border-radius: 0 0 0 var(--sheet-radius);
}

.door-plate figcaption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.94);
  font-size: 1rem;
  font-weight: 600;
}

/* ---------- Home: the paper sheet ---------- */

.paper {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) var(--edge) clamp(5rem, 9vw, 8rem);
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  background: var(--card);
  box-shadow: 0 -24px 50px -40px rgba(62, 61, 59, 0.45);
}

.paper > * + * {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--rule);
}

.paper-label,
.legend h2,
.questions h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.index-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.index-list a {
  display: grid;
  grid-template-columns: minmax(12rem, 0.85fr) minmax(0, 1.4fr) 2.5rem;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}

.index-list li:last-child a {
  border-bottom: 1px solid var(--rule);
}

.index-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.1;
  transition: transform 0.45s var(--ease), color 0.3s var(--ease);
}

.index-text {
  max-width: 34rem;
  color: var(--ink-soft);
}

.index-go {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: var(--roof);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 0.45s var(--ease);
}

.index-list a:hover .index-name {
  color: var(--brick);
  transform: translateX(0.4rem);
}

.index-list a:hover .index-go {
  transform: translateX(0.4rem);
}

.legend,
.questions {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.3rem 0.75rem 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(205, 187, 152, 0.32);
  font-size: 1rem;
  font-weight: 600;
}

.status-dot {
  position: relative;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brick);
}

.status-dot::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brick);
  content: "";
  animation: breathe 3.2s var(--ease) infinite;
}

@keyframes breathe {
  from {
    opacity: 0.5;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.6);
  }
}

.legend-note,
.doc-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.4;
}

.legend-table {
  margin: 0;
}

.legend-table div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}

.legend-table div:last-child {
  border-bottom: 1px solid var(--rule);
}

.legend-table dt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 600;
}

.legend-table dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
}

.legend-table small {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1rem;
}

.legend-table small a {
  color: var(--roof);
  font-weight: 600;
  text-decoration-color: var(--brick);
}

.questions-head p {
  max-width: 22rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

/* ---------- Questions ---------- */

.faq details {
  border-top: 1px solid var(--rule);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 1.1rem 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  width: 0.85rem;
  height: 0.85rem;
  flex: none;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' fill='none' stroke='%233E3D3B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  content: "";
  transition: transform 0.4s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  overflow: hidden;
}

.faq-body p {
  max-width: 40rem;
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

/* ---------- Home: colophon ---------- */

.colophon {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: calc(-1 * var(--sheet-radius));
  padding: clamp(3.5rem, 7vw, 6rem) var(--edge) calc(7rem + env(safe-area-inset-bottom));
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  background: var(--roof);
  color: var(--on-roof);
}

.colophon h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
}

.colophon-main p {
  max-width: 30rem;
  margin: 1rem 0 0;
  color: var(--on-roof-soft);
}

.colophon-facts {
  margin: 0;
}

.colophon-facts div,
.side-facts div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule-dark);
}

.colophon-facts dt {
  color: var(--on-roof-soft);
  font-size: 1rem;
  font-weight: 600;
}

.colophon-facts dd,
.side-facts dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hours caption {
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  text-align: left;
}

.hours th,
.hours td {
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule-dark);
  text-align: left;
  vertical-align: top;
}

.hours th {
  padding-right: 1rem;
  color: var(--on-roof-soft);
  font-weight: 600;
}

.hours--light th,
.hours--light td {
  border-top-color: var(--rule);
}

.hours--light th {
  color: var(--ink-soft);
}

.colophon-fine {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--on-roof-soft);
  font-size: 1rem;
}

/* ---------- Inner pages: pinned side, scrolling sheet ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(21rem, 0.42fr) minmax(0, 1fr);
  min-height: 100vh;
}

.split--wide {
  grid-template-columns: minmax(20rem, 0.34fr) minmax(0, 1fr);
}

.split-side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100svh;
  overflow-y: auto;
  padding: 7.5rem clamp(1.5rem, 3vw, 3rem) 7rem var(--edge);
  scrollbar-width: none;
}

.split-side h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.6vw, 4.4rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.side-lede {
  max-width: 26rem;
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
}

.split-side .chips {
  margin-top: 1.75rem;
}

.side-facts {
  max-width: 26rem;
  margin: 1.75rem 0 0;
}

.side-facts div {
  grid-template-columns: 7rem minmax(0, 1fr);
  border-top-color: var(--rule);
}

.side-facts dt {
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 600;
}

.split-side .hours {
  max-width: 26rem;
  margin-top: 1.75rem;
}

.on-page {
  margin-top: 2rem;
}

.on-page ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.on-page a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.75rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.on-page a::before {
  width: 1rem;
  height: 1.5px;
  background: var(--siding);
  content: "";
  transition: width 0.4s var(--ease), background-color 0.3s var(--ease);
}

.on-page a:hover,
.on-page a[aria-current] {
  color: var(--ink);
}

.on-page a[aria-current]::before {
  width: 2rem;
  background: var(--brick);
}

.sheet-doc {
  min-height: 100vh;
  padding: 7.5rem clamp(1.5rem, 5vw, 5rem) 9rem;
  border-radius: var(--sheet-radius) 0 0 0;
  background: var(--card);
  box-shadow: -24px 0 60px -44px rgba(62, 61, 59, 0.5);
}

.sheet-doc > * {
  max-width: 46rem;
}

.sheet-doc--gallery > * {
  max-width: none;
}

.sheet-doc section + section {
  margin-top: clamp(3.5rem, 6vw, 5rem);
}

.sheet-doc h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.doc-lead {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
}

.doc-note {
  margin: 0 0 1.5rem;
}

/* ---------- Care ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  min-height: 2.75rem;
  padding: 0.6rem 1.05rem;
  border: 1.5px solid rgba(62, 61, 59, 0.3);
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.7);
  color: var(--ink);
  font: 600 1rem/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.chip:hover {
  border-color: var(--roof);
}

.chip[aria-pressed="true"] {
  border-color: var(--roof);
  background: var(--roof);
  color: var(--on-roof);
}

.need-summary {
  min-height: 1.6em;
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.care-doc {
  margin: 0;
  padding: 0;
  list-style: none;
}

.care-doc > li {
  padding: 2rem 1rem 2.1rem;
  border-top: 1px solid var(--rule);
  border-radius: 0 0 0.85rem 0.85rem;
  background: linear-gradient(90deg, rgba(205, 187, 152, 0.3), rgba(205, 187, 152, 0.3)) no-repeat;
  background-size: 0% 100%;
  transition: opacity 0.4s var(--ease), background-size 0.6s var(--ease);
}

.care-doc > li.is-match {
  background-size: 100% 100%;
}

.care-doc > li.is-dim {
  opacity: 0.4;
}

.care-doc h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
}

.care-doc p {
  max-width: 38rem;
  margin: 0.6rem 0 0;
}

.detail {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.detail li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.4rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.detail li::before {
  position: absolute;
  top: 0.95em;
  left: 0;
  width: 0.7rem;
  height: 1.5px;
  background: var(--brick);
  content: "";
}

.doc-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.doc-end p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
}

/* ---------- House gallery ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(13rem, 19vw, 17rem);
  gap: 1.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tiles li[hidden] {
  display: none;
}

.tile--wide {
  grid-column: span 2;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 1rem var(--sans);
  text-align: left;
  cursor: zoom-in;
}

.tile .photo-slot {
  flex: 1;
  width: 100%;
  border-radius: 0.85rem;
  transition: filter 0.3s var(--ease), transform 0.5s var(--ease);
}

.tile:hover .photo-slot {
  filter: brightness(0.95);
  transform: scale(0.99);
}

.viewer {
  width: min(92vw, 62rem);
  max-width: none;
  padding: 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--roof);
  color: var(--on-roof);
}

.viewer::backdrop {
  background: rgba(43, 38, 33, 0.82);
}

.viewer[open] {
  animation: viewer-in 0.4s var(--ease);
}

@keyframes viewer-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.viewer-photo {
  aspect-ratio: 3 / 2;
  width: 100%;
  max-height: 70vh;
  border-radius: 0.85rem;
}

.viewer-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.85rem 0.25rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.viewer-count {
  color: var(--on-roof-soft);
  font-family: var(--sans);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.viewer-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ---------- Moving in ---------- */

.timeline {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: stage;
}

.timeline li {
  position: relative;
  padding: 0 0 2.25rem 4.25rem;
  counter-increment: stage;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--roof);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.3rem;
  content: counter(stage);
}

.timeline li:not(:last-child)::after {
  position: absolute;
  top: 3.25rem;
  bottom: 0.5rem;
  left: 1.37rem;
  width: 1px;
  background: var(--siding);
  content: "";
}

.timeline h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
}

.timeline p {
  max-width: 38rem;
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

.timeline .when {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(205, 187, 152, 0.35);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.checklist {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
}

.checklist input {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  margin: 0;
  border: 1.5px solid rgba(62, 61, 59, 0.5);
  border-radius: 0.35rem;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.checklist input:checked {
  border-color: var(--roof);
  background: var(--roof) center / 0.85rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%23F6F0E4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.checklist input:checked + span {
  color: var(--ink-soft);
}

.checklist-count {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* A charcoal block inside the sheet, so each inner page has one dark moment. */
.doc-dark {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--roof);
  color: var(--on-roof);
}

.doc-dark .doc-lead {
  color: var(--on-roof-soft);
}

.paper-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.paper-list li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule-dark);
}

/* ---------- Book a visit ---------- */

.step {
  min-width: 0;
  margin: 0 0 2.5rem;
  padding: 0;
  border: 0;
}

.step legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.step-n {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--roof);
  border-radius: 50%;
  font: 600 1rem var(--sans);
}

.days {
  display: grid;
  grid-auto-columns: 4.75rem;
  grid-auto-flow: column;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.75rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.day,
.time {
  border: 1.5px solid rgba(62, 61, 59, 0.25);
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.day {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  padding: 0.7rem 0.25rem;
  border-radius: 0.9rem;
  scroll-snap-align: start;
}

.day-name,
.day-month {
  font-size: 0.9rem;
  font-weight: 600;
}

.day-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
}

.times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.5rem;
}

.time {
  min-height: 3rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.day:hover:not(:disabled),
.time:hover:not(:disabled) {
  border-color: var(--roof);
}

.day[aria-checked="true"],
.time[aria-checked="true"] {
  border-color: var(--roof);
  background: var(--roof);
  color: var(--on-roof);
}

.day:disabled,
.time:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.hint[hidden],
.booking-form[hidden] {
  display: none;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.optional {
  color: var(--ink-soft);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid rgba(62, 61, 59, 0.3);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--ink);
  font: 400 1.05rem/1.4 var(--sans);
  transition: border-color 0.2s var(--ease);
}

.field select {
  padding-right: 2.5rem;
  background: #fff right 0.9rem center / 0.8rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233E3D3B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  appearance: none;
  -webkit-appearance: none;
}

.field textarea {
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(62, 61, 59, 0.55);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--roof);
}

.field [aria-invalid="true"] {
  border-color: var(--brick);
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--brick);
  font-size: 1rem;
  font-weight: 600;
}

.field-error:empty {
  display: none;
}

.booking-summary {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--roof);
  color: var(--on-roof);
}

.booking-summary h2 {
  font-size: 1.6rem;
}

.booking-summary dl {
  margin: 0;
}

.booking-summary dl div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule-dark);
}

.booking-summary dt {
  color: var(--on-roof-soft);
  font-size: 1rem;
  font-weight: 600;
}

.booking-summary dd {
  margin: 0;
}

.booking-summary .btn {
  width: 100%;
}

.form-error {
  margin: 0;
  color: var(--brick-light);
  font-weight: 600;
}

.form-error:empty {
  display: none;
}

.fine {
  margin: 0;
  color: var(--on-roof-soft);
  font-size: 1rem;
}

.booking-done h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.done-mark {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--brick);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.done-mark path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw-check 0.6s 0.2s var(--ease) forwards;
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

/* Spam trap: invisible to people, filled in only by bots. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.time.is-booked {
  text-decoration: line-through;
}

.booking-done > p {
  margin: 0.75rem 0 0;
}

.booking-done .fine {
  margin-top: 1.25rem;
  color: var(--ink-soft);
}

/* ---------- Dock ---------- */

.dock {
  position: fixed;
  z-index: 30;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.4rem 0.4rem 0.75rem;
  border: 1px solid rgba(62, 61, 59, 0.1);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 18px 40px -20px rgba(62, 61, 59, 0.45), 0 2px 6px -2px rgba(62, 61, 59, 0.15);
  transform: translateX(-50%);
}

.dock-links {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock-links a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease);
}

.dock-links a:hover {
  background: rgba(62, 61, 59, 0.06);
}

.dock-links a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--brick);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.dock-menu,
.dock-call {
  display: none;
}

.dock-book {
  margin-left: 0.35rem;
}

.sheet {
  position: fixed;
  z-index: 29;
  right: 0.75rem;
  bottom: calc(5.25rem + env(safe-area-inset-bottom));
  left: 0.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--lift);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}

.sheet[data-open] {
  opacity: 1;
  transform: none;
}

.sheet ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sheet a {
  display: block;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.45rem;
  text-decoration: none;
}

.sheet li:first-child a {
  border-top: 0;
}

.sheet a[aria-current] {
  color: var(--brick);
}

/* ---------- Responsive ---------- */

@media (max-width: 999px) {
  .door {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .door-copy {
    padding: 7.5rem var(--gutter) 3rem;
  }

  .door-plate .photo-slot {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }

  .paper {
    margin-top: calc(-1 * var(--sheet-radius));
  }

  .index-list a {
    grid-template-columns: minmax(0, 1fr) 2.25rem;
    gap: 0.4rem 1rem;
  }

  .index-text {
    grid-row: 2;
  }

  .index-go {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .legend,
  .questions {
    grid-template-columns: 1fr;
  }

  .colophon {
    grid-template-columns: 1fr 1fr;
  }

  .colophon-main {
    grid-column: 1 / -1;
  }

  .split,
  .split--wide {
    display: block;
  }

  .split-side {
    position: static;
    height: auto;
    overflow: visible;
    padding: 7.5rem var(--gutter) 3.5rem;
  }

  .sheet-doc {
    min-height: 0;
    padding: clamp(2rem, 6vw, 3rem) var(--gutter) calc(8rem + env(safe-area-inset-bottom));
    border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dock {
    right: 0.75rem;
    left: 0.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 0.4rem;
    padding: 0.4rem;
    transform: none;
  }

  .dock-links {
    display: none;
  }

  .dock-menu,
  .dock-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border: 1.5px solid rgba(62, 61, 59, 0.3);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: 600 1rem/1 var(--sans);
    text-decoration: none;
    cursor: pointer;
  }

  .dock-menu[aria-expanded="true"] {
    border-color: var(--roof);
    background: rgba(62, 61, 59, 0.08);
  }

  .dock-book {
    margin: 0;
  }

  .colophon {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .legend-table div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .tiles {
    grid-template-columns: 1fr;
    grid-auto-rows: 14rem;
  }

  .tile--wide {
    grid-column: auto;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .actions .btn,
  .side-actions .btn {
    flex: 1 1 100%;
  }

  .viewer-controls .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ---------- Home: Mekdi's banner ---------- */

.paper > .owner-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-top: 0;
  border-radius: var(--sheet-radius);
  background: var(--siding-light);
}

.owner-ornament {
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: clamp(14rem, 30vw, 22rem);
  height: clamp(14rem, 30vw, 22rem);
  fill: none;
  stroke: rgba(138, 79, 58, 0.22);
  stroke-width: 1.2;
  pointer-events: none;
}

/* The headshot sits in an arch, the same shape as the arcs in the logo. */
.headshot {
  position: relative;
  margin: 0;
}

.headshot .photo-slot {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 20rem;
  border: 6px solid var(--card);
  border-radius: 999px 999px 1.25rem 1.25rem;
  background: var(--plate);
  box-shadow: var(--lift);
}

.headshot figcaption {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.owner-banner-copy {
  position: relative;
}

.owner-banner h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.owner-role {
  margin: 0.5rem 0 0;
  color: var(--brick);
  font-weight: 700;
}

.owner-banner-copy > p:not(.owner-role) {
  max-width: 34rem;
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.55;
}

/* ---------- Inner pages: contact line at the foot of each sheet ---------- */

.sheet-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: clamp(3.5rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 1rem;
}

.sheet-foot p {
  margin: 0;
}

.sheet-foot a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--brick);
}

.colophon-fine a {
  color: var(--on-roof);
}

/* ---------- Owner page and 404 ---------- */

.owner {
  padding: 8rem var(--gutter) calc(4rem + env(safe-area-inset-bottom));
}

.owner-sheet {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--sheet-radius);
  background: var(--card);
  box-shadow: var(--lift);
}

.owner-sheet[hidden] {
  display: none;
}

.owner-sheet--wide {
  max-width: 56rem;
}

.owner-sheet h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.owner-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.owner-form[hidden] {
  display: none;
}

.owner-form .btn {
  justify-self: start;
}

.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.requests {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.request {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.request p {
  margin: 0;
}

.request-when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.request-status {
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: rgba(138, 79, 58, 0.14);
  color: var(--brick);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
}

.request--confirmed .request-status {
  background: var(--roof);
  color: var(--on-roof);
}

.request--declined .request-status {
  background: rgba(62, 61, 59, 0.1);
  color: var(--ink-soft);
}

.request--declined .request-when,
.request--declined .request-who {
  color: var(--ink-soft);
}

.request-who {
  margin-top: 0.35rem !important;
}

.request-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.25rem !important;
}

.request-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration-color: var(--brick);
}

.request-note {
  max-width: 40rem;
  margin-top: 0.5rem !important;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(205, 187, 152, 0.22);
  color: var(--ink-soft);
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.requests-empty {
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
}

@media (max-width: 999px) {
  /* On phones and tablets the booking form comes first; hours and address repeat in the sheet's footer. */
  [data-page="visit"] .split-side .hours,
  [data-page="visit"] .split-side .side-facts {
    display: none;
  }

  [data-page="visit"] .split-side {
    padding-bottom: 2.5rem;
  }

  .paper > .owner-banner {
    grid-template-columns: 1fr;
  }

  .headshot .photo-slot {
    max-width: 15rem;
  }
}


/* Real photos drop into the same frames and crop to fill them. */
img.photo-slot {
  object-fit: cover;
  object-position: center;
}

.tile img.photo-slot {
  min-height: 0;
  height: 100%;
}

/* ---------- Critique fixes, hardening and finishing touches ---------- */

p {
  text-wrap: pretty;
}

h1,
h2,
.index-name {
  overflow-wrap: break-word;
}

/* The photo caption sits top right on the plate, so the dock never covers it. */
.door-plate figcaption {
  top: calc(1.5rem + env(safe-area-inset-top));
  right: 1.5rem;
  bottom: auto;
  left: auto;
}

@media (max-width: 999px) {
  .door-plate .photo-slot {
    aspect-ratio: 16 / 10;
    max-height: 52vh;
  }

  .door-plate figcaption {
    top: 1rem;
    right: 1rem;
  }
}

/* Dimmed care items stay readable (4.6:1); matches get a brick check before the heading. */
.care-doc > li.is-dim {
  opacity: 1;
}

.care-doc > li.is-dim h2,
.care-doc > li.is-dim p,
.care-doc > li.is-dim li {
  color: #7a6f66;
}

.care-doc > li.is-match h2::before {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.4em;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%238A4F3A'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23FBF8F2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  content: "";
  vertical-align: -0.08em;
}

/* The house page's narrow side stacks each label above its value. */
.split--wide .side-facts div {
  grid-template-columns: 1fr;
  gap: 0.15rem;
}

.colophon .hours {
  width: auto;
}

.colophon .hours th {
  padding-right: 2rem;
}

/* On the home page the phone dock waits until the hero's own buttons scroll away. */
@media (max-width: 760px) {
  [data-page="home"] .dock {
    transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
  }

  [data-page="home"] .dock.is-tucked {
    opacity: 0;
    transform: translateY(calc(100% + 2rem));
    pointer-events: none;
  }
}

/* A new day: on the first page of a visit, the logo's arcs rise one after another. */
.sunrise .wordmark-mark path {
  stroke-dasharray: 80;
  animation: arc-rise 1.4s var(--ease) both;
}

.sunrise .wordmark-mark path:nth-child(2) {
  animation-delay: 0.15s;
}

.sunrise .wordmark-mark path:nth-child(3) {
  animation-delay: 0.3s;
}

.sunrise .wordmark-mark path:nth-child(4) {
  animation-delay: 0s;
}

@keyframes arc-rise {
  from {
    stroke-dashoffset: 80;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.door-hours.is-open .i {
  stroke: var(--brick);
}

/* After a visit request: what happens next, in order. */
.next-steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
}

.next-steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: baseline;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
  counter-increment: next;
}

.next-steps li::before {
  color: var(--brick);
  font-family: var(--serif);
  font-size: 1.3rem;
  content: counter(next);
}

/* Text families type in can be long; it wraps instead of breaking the layout. */
.request-who,
.request-note,
.request-contact a,
[data-done-text] {
  overflow-wrap: anywhere;
}

/* Windows high contrast: keep every control and panel edge visible. */
@media (forced-colors: active) {
  .btn,
  .chip,
  .day,
  .time,
  .dock,
  .card,
  .paper,
  .sheet-doc,
  .colophon,
  .booking-summary,
  .doc-dark {
    border: 1px solid CanvasText;
  }

  .contours {
    display: none;
  }
}

/* Printing a page (case managers often do): just the content, in black on white. */
@media print {
  .contours,
  .dock,
  .sheet,
  .skip,
  .door-plate,
  .headshot,
  .actions,
  .side-actions,
  .chips,
  .tiles,
  .booking-form,
  .viewer {
    display: none !important;
  }

  body,
  .paper,
  .sheet-doc,
  .colophon,
  .doc-dark {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .split,
  .door {
    display: block;
  }

  .split-side {
    position: static;
    height: auto;
    padding: 1rem 0;
  }

  .wordmark {
    position: static;
  }

  .tbd,
  .tbd-list li {
    text-decoration: none;
  }

  a[href^="tel:"]::after {
    content: "";
  }
}

/* ==========================================================================
   Interactive layer: floating photo card, hover cards, rise-in, and the three
   home-page looks (card, split, full) the owner can choose between.
   ========================================================================== */

/* ---------- Hero photo as a floating card (the default look) ---------- */

.door {
  align-items: center;
}

.door-media {
  position: relative;
  justify-self: center;
  width: min(100% - 3rem, 30rem);
  margin: 7rem var(--edge) 6rem 0;
}

.door-card {
  position: relative;
  margin: 0;
  padding: 0.6rem;
  border-radius: 1.6rem;
  background: var(--card);
  box-shadow: 0 40px 80px -40px rgba(62, 61, 59, 0.55), 0 6px 16px -6px rgba(62, 61, 59, 0.18);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-1.5deg);
  transition: transform 0.7s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}

.door-card.is-tilting {
  transition: transform 0.15s linear, box-shadow 0.4s var(--ease);
}

.door-card:hover {
  box-shadow: 0 50px 90px -40px rgba(62, 61, 59, 0.6), 0 8px 20px -6px rgba(62, 61, 59, 0.2);
}

.door-card .photo-slot {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 1.15rem;
}

.door-card figcaption {
  position: absolute;
  top: 1.3rem;
  left: 1.3rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.95);
  font-size: 1rem;
  font-weight: 600;
}

/* Two small tags float beside the card. */
.door-chip {
  position: absolute;
  margin: 0;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 18px 36px -18px rgba(62, 61, 59, 0.5), 0 2px 6px -2px rgba(62, 61, 59, 0.15);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite alternate;
}

.door-chip strong {
  margin-right: 0.2rem;
  color: var(--brick);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
}

.door-chip--beds {
  bottom: 2.5rem;
  left: -2.5rem;
}

.door-chip--place {
  top: 38%;
  right: -2rem;
  animation-delay: -3s;
}

@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

/* ---------- Floating hover cards ---------- */

.legend {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.legend-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.legend-head .status,
.legend-head .legend-note {
  margin: 0;
}

.legend-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}

.legend-table div,
.legend-table div:last-child {
  display: block;
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid rgba(62, 61, 59, 0.1);
  border-radius: 1.15rem;
  background: var(--ground);
}

.legend-table dd {
  margin-top: 0.7rem;
}

.index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.index-list a,
.index-list li:last-child a {
  grid-template-columns: minmax(0, 1fr) 2.5rem;
  grid-template-rows: auto auto;
  align-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 11rem;
  padding: 1.75rem 1.75rem 1.6rem;
  border: 1px solid rgba(62, 61, 59, 0.1);
  border-radius: 1.25rem;
  background: var(--ground);
}

.index-name {
  grid-column: 1;
}

.index-text {
  grid-column: 1;
  grid-row: 2;
}

.index-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

.index-list a:hover .index-name {
  transform: none;
}

.faq details,
.faq details:last-child {
  margin-bottom: 0.75rem;
  padding: 0 1.25rem;
  border: 1px solid rgba(62, 61, 59, 0.1);
  border-radius: 1rem;
  background: var(--ground);
}

.faq details[open] {
  background: #fff;
  box-shadow: var(--lift);
}

.care-doc > li {
  margin-bottom: 0.9rem;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid rgba(62, 61, 59, 0.1);
  border-radius: 1.15rem;
  background-color: var(--ground);
}

/* Every card lifts toward the pointer; on touch screens it presses in instead. */
.legend-table div,
.index-list a,
.faq details,
.care-doc > li,
.timeline li,
.checklist label {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.4s var(--ease);
}

@media (hover: hover) {
  .legend-table div:hover,
  .index-list a:hover,
  .care-doc > li:hover {
    border-color: rgba(138, 79, 58, 0.3);
    background-color: #fff;
    box-shadow: 0 26px 50px -30px rgba(62, 61, 59, 0.5), 0 4px 10px -4px rgba(62, 61, 59, 0.12);
    transform: translateY(-6px);
  }

  .faq details:hover {
    border-color: rgba(138, 79, 58, 0.3);
    transform: translateY(-2px);
  }

  .btn:hover {
    transform: translateY(-2px);
  }

  .btn-solid:hover {
    box-shadow: 0 14px 28px -14px rgba(43, 42, 41, 0.7);
  }

  .owner-banner:hover .headshot .photo-slot {
    transform: translateY(-6px) rotate(-1deg);
  }
}

.headshot .photo-slot {
  transition: transform 0.6s var(--ease);
}

.legend-table div:active,
.index-list a:active,
.care-doc > li:active {
  transform: scale(0.985);
}

/* ---------- Rise into place on scroll ---------- */

.rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.rise.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Look: split (photo fills the right half) ---------- */

[data-look="split"] .door {
  align-items: stretch;
}

[data-look="split"] .door-media {
  width: auto;
  margin: 0;
}

[data-look="split"] .door-card {
  height: 100%;
  padding: 0;
  border-radius: 0 0 0 var(--sheet-radius);
  box-shadow: none;
  transform: none;
}

[data-look="split"] .door-card .photo-slot {
  height: 100%;
  min-height: 24rem;
  aspect-ratio: auto;
  border-radius: 0 0 0 var(--sheet-radius);
}

[data-look="split"] .door-chip--beds {
  bottom: 3rem;
  left: 2rem;
}

[data-look="split"] .door-chip--place {
  top: auto;
  right: 2rem;
  bottom: 3rem;
}

/* ---------- Look: full (photo behind the whole hero) ---------- */

[data-look="full"] .door {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
}

[data-look="full"] .door-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: auto;
  margin: 0;
}

[data-look="full"] .door-card {
  height: 100%;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

[data-look="full"] .door-card .photo-slot {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

/* A cream fade from the left keeps the headline readable over any photo. */
[data-look="full"] .door-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243, 236, 223, 0.97) 0%, rgba(243, 236, 223, 0.9) 38%, rgba(243, 236, 223, 0.35) 70%, rgba(243, 236, 223, 0) 100%);
  content: "";
  pointer-events: none;
}

[data-look="full"] .door-copy {
  position: relative;
  z-index: 1;
}

[data-look="full"] .door-card figcaption {
  top: auto;
  right: 2rem;
  bottom: 3rem;
  left: auto;
  z-index: 2;
}

[data-look="full"] .door-chip {
  z-index: 2;
}

[data-look="full"] .door-chip--beds {
  right: 2rem;
  bottom: 7rem;
  left: auto;
}

[data-look="full"] .door-chip--place {
  top: 9rem;
  right: 2rem;
}

/* ---------- Look switcher: only on the preview copy on this PC ---------- */

.look-switch {
  position: fixed;
  z-index: 40;
  top: calc(1rem + env(safe-area-inset-top));
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.3rem 0.3rem 0.85rem;
  border: 1px solid rgba(62, 61, 59, 0.12);
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.96);
  box-shadow: var(--lift);
  font-size: 0.95rem;
  font-weight: 600;
}

.look-switch button {
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 0.95rem var(--sans);
  cursor: pointer;
}

.look-switch button[aria-pressed="true"] {
  background: var(--roof);
  color: var(--on-roof);
}

/* ---------- Phones and tablets ---------- */

@media (max-width: 999px) {
  .door-media {
    width: auto;
    margin: 0 var(--gutter) 3.5rem;
  }

  .door-card {
    transform: rotate(-1deg);
  }

  .door-card .photo-slot {
    aspect-ratio: 4 / 3;
  }

  .door-chip--beds {
    bottom: -1.2rem;
    left: 1rem;
  }

  .door-chip--place {
    top: auto;
    right: 1rem;
    bottom: -1.2rem;
  }

  .index-list {
    grid-template-columns: 1fr;
  }

  .index-list a,
  .index-list li:last-child a {
    min-height: 0;
  }

  [data-look="split"] .door-media {
    margin: 0 0 2rem;
  }

  [data-look="split"] .door-card,
  [data-look="split"] .door-card .photo-slot {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 0;
  }

  [data-look="split"] .door-chip--beds,
  [data-look="split"] .door-chip--place {
    bottom: 1.25rem;
  }

  [data-look="full"] .door-media::after {
    background: linear-gradient(180deg, rgba(243, 236, 223, 0.95) 0%, rgba(243, 236, 223, 0.88) 60%, rgba(243, 236, 223, 0.55) 100%);
  }

  [data-look="full"] .door-card figcaption {
    right: 1rem;
    bottom: 1.25rem;
  }

  [data-look="full"] .door-chip {
    display: none;
  }

  .look-switch {
    top: auto;
    right: 0.75rem;
    bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .legend-table {
    grid-template-columns: 1fr 1fr;
  }

  .legend-table div,
  .legend-table div:last-child {
    padding: 1.1rem;
  }
}

@media (max-width: 400px) {
  .legend-table {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .door-chip {
    animation: none;
  }

  .rise {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .look-switch,
  .door-media {
    display: none !important;
  }
}

/* The split and full looks stretch the photo container to fill its area. */
[data-look="split"] .door-media {
  justify-self: stretch;
  align-self: stretch;
}

[data-look="full"] .door-media {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  height: 100%;
}

[data-look="full"] .door-copy {
  grid-column: 1;
  grid-row: 1;
}

@media (min-width: 1000px) {
  [data-look="split"] .door-chip--beds {
    right: 2rem;
    bottom: 7rem;
    left: auto;
  }
}

@media (max-width: 999px) {
  .door-media {
    justify-self: stretch;
  }

  [data-look="full"] .door-card figcaption {
    display: none;
  }
}

@media (max-width: 560px) {
  .door-chip--place {
    display: none;
  }
}

/* ==========================================================================
   Motion system. One easing (--ease) everywhere; feedback 150-300ms, state
   changes 300-500ms, the hero entrance ~900ms. Exits are faster than entrances.
   ========================================================================== */

/* Focal moment: the photo card settles onto the chart, the photo develops top to bottom,
   then the two tags arrive. Fill mode "backwards" only, so the resting transform (and the
   pointer tilt) takes over the moment the entrance ends. */
.door-card {
  animation: card-settle 0.9s var(--ease) 0.15s backwards;
}

.door-card .photo-slot {
  animation: photo-develop 1.1s var(--ease) 0.35s backwards;
}

.door-chip--beds {
  animation: chip-in 0.6s var(--ease) 0.85s backwards, float 6s ease-in-out 1.5s infinite alternate;
}

.door-chip--place {
  animation: chip-in 0.6s var(--ease) 1s backwards, float 6s ease-in-out -1.5s infinite alternate;
}

@keyframes card-settle {
  from {
    opacity: 0;
    transform: perspective(1000px) translateY(28px) rotate(1.5deg) scale(0.96);
  }
}

@keyframes photo-develop {
  from {
    clip-path: inset(0 0 100% 0 round 1.15rem);
  }
  to {
    clip-path: inset(0 0 0 0 round 1.15rem);
  }
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }
}

/* In the split and full looks the photo is part of the page, so it only develops. */
[data-look="split"] .door-card,
[data-look="full"] .door-card {
  animation: none;
}

[data-look="split"] .door-card .photo-slot,
[data-look="full"] .door-card .photo-slot {
  animation-name: photo-develop-flat;
}

@keyframes photo-develop-flat {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Continuity: a page card's title glides into the title of the page it opens. */
::view-transition-group(title-care),
::view-transition-group(title-house),
::view-transition-group(title-moving),
::view-transition-group(title-visit) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Feedback: a picked option presses in and settles. */
.day[aria-checked="true"],
.time[aria-checked="true"],
.chip[aria-pressed="true"],
.checklist input:checked {
  animation: pick 0.28s var(--ease);
}

@keyframes pick {
  from {
    transform: scale(0.92);
  }
}

/* Hover settles slightly faster than the lift rises. */
@media (hover: hover) {
  .legend-table div,
  .index-list a,
  .care-doc > li {
    transition-duration: 0.3s;
  }

  .legend-table div:hover,
  .index-list a:hover,
  .care-doc > li:hover {
    transition-duration: 0.45s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .door-card,
  .door-card .photo-slot,
  .door-chip--beds,
  .door-chip--place {
    animation: none;
  }

  ::view-transition-group(title-care),
  ::view-transition-group(title-house),
  ::view-transition-group(title-moving),
  ::view-transition-group(title-visit) {
    animation: none;
  }
}

/* ---------- Alternate site: menu at the top ---------- */

[data-nav="top"] .dock {
  top: calc(1rem + env(safe-area-inset-top));
  bottom: auto;
}

[data-nav="top"] .wordmark {
  top: calc(1.6rem + env(safe-area-inset-top));
}

[data-nav="top"] .sheet {
  top: calc(5.25rem + env(safe-area-inset-top));
  bottom: auto;
  transform: translateY(-1.5rem);
}

[data-nav="top"] .sheet[data-open] {
  transform: none;
}

[data-nav="top"] .door-copy,
[data-nav="top"] .split-side,
[data-nav="top"] .owner {
  padding-top: 9rem;
}

[data-nav="top"] .footer,
[data-nav="top"] .colophon {
  padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
}

[data-nav="top"] .sheet-doc {
  padding-bottom: 5rem;
}

@media (max-width: 1100px) {
  [data-nav="top"] .wordmark {
    top: calc(5.5rem + env(safe-area-inset-top));
  }
}

@media (max-width: 760px) {
  [data-nav="top"] .dock {
    top: calc(0.75rem + env(safe-area-inset-top));
  }

  [data-nav="top"] .door-copy,
  [data-nav="top"] .split-side {
    padding-top: 10rem;
  }

}
/* Until the real photo arrives, the big photo area shows the house's lap siding,
   so it reads as a place for a picture rather than an empty panel. */
[data-look="split"] .door-card .photo-slot:not(img),
[data-look="full"] .door-card .photo-slot:not(img) {
  background:
    repeating-linear-gradient(180deg, rgba(62, 61, 59, 0.07) 0 1px, transparent 1px 1.4rem),
    linear-gradient(160deg, #e9dcc3 0%, #d8c6a4 55%, #cdbb98 100%);
}

/* Split look: the caption sits at the bottom of the photo, clear of a top menu. */
[data-look="split"] .door-card figcaption {
  top: auto;
  bottom: 3rem;
  left: 2rem;
}

@media (max-width: 999px) {
  [data-look="split"] .door-card figcaption {
    display: none;
  }
}

/* ---------- Real photos and live facts (v6, 2026-11-13) ---------- */
picture { display: contents; }

/* Care: words on the left, a photo of the room on the right. */
.care-doc > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; align-items: start; }
.care-photo { width: 11rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.85rem; display: block; }
@media (max-width: 700px) {
  .care-doc > li { grid-template-columns: 1fr; }
  .care-photo { width: 100%; order: -1; }
}

/* Home: Mekdi in her own words. */
.owner-quote { margin: 0.75rem 0 1rem; padding: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; color: var(--ink); }
.owner-quote p { margin: 0; }
.owner-facts { margin: 0 0 1.25rem; padding: 0; list-style: none; display: grid; gap: 0.4rem; color: var(--ink-soft); }
.owner-facts li { padding-left: 1.1rem; position: relative; }
.owner-facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--brick); }
.door-card figcaption a { color: inherit; }

/* Home: a short row of rooms that leads to the full gallery. */
.peek { margin-block: clamp(2.5rem, 6vw, 4rem); }
.peek-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.peek-head h2 { margin: 0; }
.peek-all { color: var(--ink); font-weight: 600; }
.peek-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.peek-list a { display: grid; gap: 0.45rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.peek-list img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0.85rem; display: block; transition: filter 0.3s var(--ease); }
.peek-list a:hover img { filter: brightness(0.94); }
@media (max-width: 700px) {
  .peek-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
  .peek-list li { scroll-snap-align: start; }
}

/* House: counts on the room chips, and the full-size viewer photo. */
.chip-count { opacity: 0.6; font-weight: 400; margin-left: 0.15rem; }
img.viewer-photo { width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: var(--roof-deep); }

/* Moving in and visit: one photo beside a step, one by the address. */
.step-photo { display: block; width: min(100%, 22rem); aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0.85rem; margin-top: 0.85rem; }
.side-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0.85rem; margin: 1.25rem 0 0.25rem; }
.summary-meet { display: flex; align-items: center; gap: 0.6rem; margin: 0.75rem 0; font-size: 0.95rem; }
.summary-meet img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; flex: none; }
.care-doc > li > .care-copy { grid-column: 1; grid-row: 1; }
.care-doc > li .care-photo { grid-column: 2; grid-row: 1; width: 13rem; }
@media (max-width: 700px) {
  .care-doc > li > .care-copy { grid-row: 2; }
  .care-doc > li .care-photo { grid-column: 1; width: 100%; }
}

/* ---------- Look: frame (2026-11-13), the house photo framed like Alder House ----------
   A rounded photo beside the headline with a deep soft shadow, the address on a dark pill at its
   bottom left, and a small kitchen photo in a cream border overlapping its bottom right corner. */
[data-look="frame"] .door { align-items: center; }
[data-look="frame"] .door-media { justify-self: end; align-self: center; width: min(100%, 40rem); margin: 8rem var(--edge) 4rem 0; padding-bottom: 4.5rem; }
[data-look="frame"] .door-card { padding: 0; background: none; border-radius: 1.45rem; box-shadow: 0 2px 4px rgba(43, 38, 33, 0.08), 0 30px 60px -28px rgba(43, 38, 33, 0.6); transform: none !important; animation: none; }
[data-look="frame"] .door-card:hover { box-shadow: 0 2px 4px rgba(43, 38, 33, 0.08), 0 30px 60px -28px rgba(43, 38, 33, 0.6); }
[data-look="frame"] .door-card .photo-slot { display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 11; border-radius: 1.45rem; }
[data-look="frame"] .door-card figcaption { display: block; top: auto; right: auto; bottom: 1rem; left: 1rem; padding: 0.4rem 0.8rem; border-radius: 999px; background: rgba(43, 38, 33, 0.72); color: #fbf8f2; font-size: 0.85rem; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
[data-look="frame"] .door-card figcaption a { color: inherit; text-decoration: none; }
[data-look="frame"] .door-chip { display: none; }
.door-inset { display: none; }
[data-look="frame"] .door-inset { display: block; position: absolute; right: -0.8rem; bottom: 0; width: 34%; margin: 0; }
[data-look="frame"] .door-inset img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 5px solid var(--card); border-radius: 1.45rem; box-shadow: 0 2px 4px rgba(43, 38, 33, 0.1), 0 22px 44px -20px rgba(43, 38, 33, 0.65); }
[data-look="frame"] .door-inset figcaption { position: absolute; bottom: 0.7rem; left: 0.7rem; padding: 0.3rem 0.65rem; border-radius: 999px; background: rgba(43, 38, 33, 0.72); color: #fbf8f2; font-size: 0.8rem; font-weight: 600; }
@media (max-width: 999px) {
  [data-look="frame"] .door-media { justify-self: stretch; width: auto; margin: 0 var(--gutter) 3rem; padding-bottom: 3.5rem; }
  [data-look="frame"] .door-card .photo-slot { aspect-ratio: 4 / 3; }
  [data-look="frame"] .door-inset { right: 0.6rem; width: 42%; }
}

/* New Day's own frame (2026-11-13 later): taller photo, cream labels, and the living room
   overlapping the bottom LEFT corner instead of the right, so it is not a copy of Alder House. */
[data-look="frame"] .door-media { padding: 0 0 0 0; margin-bottom: 6rem; }
[data-look="frame"] .door-card { border-radius: 2rem 2rem 2rem 0.6rem; box-shadow: var(--lift); }
[data-look="frame"] .door-card .photo-slot { aspect-ratio: 5 / 4; border-radius: 2rem 2rem 2rem 0.6rem; }
[data-look="frame"] .door-card figcaption { top: 1rem; right: 1rem; bottom: auto; left: auto; background: rgba(251, 248, 242, 0.94); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
[data-look="frame"] .door-inset { right: auto; left: -2.5rem; bottom: -3rem; width: 40%; }
[data-look="frame"] .door-inset img { aspect-ratio: 1 / 1; border: 6px solid var(--ground); border-radius: 50% 50% 1.2rem 1.2rem; box-shadow: var(--lift); }
[data-look="frame"] .door-inset figcaption { bottom: 0.8rem; left: 50%; transform: translateX(-50%); white-space: nowrap; background: rgba(251, 248, 242, 0.94); color: var(--ink); }
@media (max-width: 999px) {
  [data-look="frame"] .door-media { margin: 0 var(--gutter) 5rem; }
  [data-look="frame"] .door-inset { left: 0.75rem; bottom: -3rem; width: 38%; }
}
/* The living room photo he picked is wide (sofa, flower painting, hall); show it whole, not cropped to an arch. */
[data-look="frame"] .door-inset { width: 46%; }
[data-look="frame"] .door-inset img { aspect-ratio: 3 / 2; border-radius: 1.2rem; }
[data-look="frame"] .door-inset figcaption { left: 0.8rem; transform: none; }
@media (max-width: 999px) { [data-look="frame"] .door-inset { width: 52%; } }
/* Three photos he picked: the front of the house, the living room (bottom left) and a bedroom (top right).
   The address moves to the bottom right so the bedroom photo never covers it. */
[data-look="frame"] .door-card .photo-slot { animation: none; }
[data-look="frame"] .door-card figcaption { top: auto; bottom: 1rem; right: 1rem; }
[data-look="frame"] .door-inset--bed { left: auto; right: -1.75rem; top: -2.5rem; bottom: auto; width: 36%; }
@media (max-width: 999px) {
  [data-look="frame"] .door-media { margin-top: 2.5rem; }
  [data-look="frame"] .door-inset--bed { right: 0.75rem; top: -2rem; left: auto; bottom: auto; width: 42%; }
}

/* New Day's own touch (2026-11-13): the living room is a printed photo with a white border,
   tilted a little, its name written in the headline serif under the picture (no pill label). */
[data-look="frame"] .door-inset { padding: 0.55rem 0.55rem 0; border-radius: 0.35rem; background: #fffdf8; box-shadow: var(--lift); transform: rotate(-3deg); }
[data-look="frame"] .door-inset img { border: 0; border-radius: 0.15rem; box-shadow: none; }
[data-look="frame"] .door-inset figcaption { position: static; transform: none; padding: 0.5rem 0.2rem 0.65rem; border-radius: 0; background: none; color: var(--ink); font-family: var(--serif); font-size: 1rem; font-style: italic; font-weight: 400; text-align: center; }

/* ---------- Background (2026-11-13): soft fir shadows instead of contour lines ----------
   New Day sits among tall firs, so the page carries the faint, blurred shadow of fir boughs, the way
   branches throw shade on a wall. Two boughs sway slowly on their own, out of step, on every device. */
.contours { display: none; }
.shade { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.shade i { position: absolute; width: min(70vmax, 62rem); aspect-ratio: 8 / 7; background: url("../img/fir-bough.svg") center / contain no-repeat; opacity: 0.075; filter: blur(5px); will-change: transform; }
.shade i:first-child { top: -8%; right: -12%; transform-origin: 95% 0; animation: bough-sway 11s ease-in-out infinite alternate; }
.shade i:last-child { bottom: -14%; left: -18%; transform: scale(-0.75, -0.75); transform-origin: 5% 100%; animation: bough-sway-2 14s ease-in-out -4s infinite alternate; opacity: 0.055; }
@keyframes bough-sway { from { rotate: -2.2deg; translate: 0 0; } to { rotate: 2deg; translate: -1.2% 0.8%; } }
@keyframes bough-sway-2 { from { rotate: 1.8deg; translate: 0 0; } to { rotate: -2deg; translate: 1% -0.8%; } }
@media (max-width: 760px) { .shade i { width: 115vmax; opacity: 0.07; } }
@media (prefers-reduced-motion: reduce) { .shade i { animation: none; } }

/* ---------- Scroll animations below the hero ---------- */
.sr { opacity: 0; transform: translateY(2rem); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.sr.sr-in { opacity: 1; transform: none; }
/* Photos open from the bottom up like a blind being raised, and settle from a slight zoom. */
.sr-photo { clip-path: inset(100% 0 0 0); transition: clip-path 1.15s var(--ease); }
.sr-photo.sr-in { clip-path: inset(0 0 0 0); }
.sr-photo img, img.sr-photo { transform: scale(1.12); transition: clip-path 1.15s var(--ease), transform 1.6s var(--ease); }
.sr-photo.sr-in img, img.sr-photo.sr-in { transform: none; }
.headshot.sr-photo { clip-path: inset(100% 0 0 0 round 50% 50% 0 0); }
.headshot.sr-photo.sr-in { clip-path: inset(0 0 0 0 round 0); }
/* The shade falls over the page itself (sheets, cards and photos), like real shade from the trees,
   so the white sections below the hero are no longer flat. Multiply keeps it a soft darkening only. */
.shade { z-index: 30; mix-blend-mode: multiply; }
.shade i:first-child { opacity: 0.09; }
.shade i:last-child { opacity: 0.07; }

/* ==========================================================================
   Fix pass 2026-11-13 (night): framing, background, menu, scroll effects
   ========================================================================== */

/* Inner pages on wide screens: the side panel padded itself by the page edge (about 376px at 2000px
   wide), leaving the title 80px to sit in, one letter per line. Fixed side width and plain padding. */
.split { grid-template-columns: clamp(22rem, 30vw, 34rem) minmax(0, 1fr); }
.split--wide { grid-template-columns: clamp(21rem, 26vw, 30rem) minmax(0, 1fr); }
.split-side { padding-left: clamp(1.5rem, 3.5vw, 4rem); padding-right: clamp(1.25rem, 2.5vw, 2.5rem); }
@media (max-width: 999px) { .split-side { padding: 7.5rem var(--gutter) 3.5rem; } }
.sheet-doc--gallery { padding-inline: clamp(1.25rem, 3vw, 3.5rem); }
/* Gallery: no empty holes next to wide photos. */
.tiles { grid-auto-flow: dense; }
@media (min-width: 1600px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(14rem, 14vw, 19rem); } }

/* Background: no leaf shadows. A calm wash of warm light drifts slowly across the cream, on its own. */
.shade { z-index: 0; mix-blend-mode: normal; }
.shade i, .shade i:first-child, .shade i:last-child { width: 75vmax; height: 75vmax; aspect-ratio: auto; background: radial-gradient(closest-side, rgba(255, 252, 245, 0.95), rgba(255, 252, 245, 0)); filter: none; opacity: 1; transform: none; border-radius: 50%; }
.shade i:first-child { top: -30vmax; right: -25vmax; animation: light-a 22s ease-in-out infinite alternate; }
.shade i:last-child { bottom: -35vmax; left: -30vmax; background: radial-gradient(closest-side, rgba(226, 211, 184, 0.55), rgba(226, 211, 184, 0)); animation: light-b 26s ease-in-out -8s infinite alternate; }
@keyframes light-a { from { translate: 0 0; } to { translate: -22vw 18vh; } }
@keyframes light-b { from { translate: 0 0; } to { translate: 26vw -16vh; } }
@media (prefers-reduced-motion: reduce) { .shade i { animation: none !important; } }

/* Hero: the living room print gets soft rounded corners like the house photo. */
[data-look="frame"] .door-inset { padding: 0.5rem 0.5rem 0; border-radius: 1.25rem; transform: rotate(-2deg); }
[data-look="frame"] .door-inset img { border-radius: 0.85rem; }

/* Visit: the summary line without the face photo. */
.summary-meet { display: block; color: var(--ink-soft); }

/* Menu, phone: each page with a photo and one line, then hours and a call button. */
.sheet { padding: 0.75rem; max-height: calc(100svh - 7rem); overflow-y: auto; }
.sheet .menu-page { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0.85rem; align-items: center; padding: 0.6rem; border: 0; border-radius: 0.9rem; font-family: var(--sans); font-size: 1rem; }
.sheet .menu-page:hover, .sheet .menu-page[aria-current] { background: rgba(62, 61, 59, 0.06); color: var(--ink); }
.sheet .menu-page img { width: 3.5rem; height: 3.5rem; border-radius: 0.7rem; object-fit: cover; }
.sheet .menu-page strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; line-height: 1.2; }
.sheet .menu-page small { display: block; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.35; }
.sheet .menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.5rem 0.25rem 0.25rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.95rem; }
.sheet .menu-foot a { padding: 0.6rem 1rem; border: 1.5px solid rgba(62, 61, 59, 0.3); border-radius: 999px; color: var(--ink); font-family: var(--sans); font-size: 0.95rem; font-weight: 600; }

/* Menu, computer: hovering a page name opens a small preview card with its photo and what's there. */
.nav-preview { position: fixed; z-index: 31; width: 17rem; padding: 0.5rem; border-radius: 1.1rem; background: var(--card); box-shadow: var(--lift); opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top center; transition: opacity 0.22s var(--ease), transform 0.3s var(--ease); pointer-events: none; }
.nav-preview.is-on { opacity: 1; transform: none; }
.nav-preview img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0.75rem; }
.nav-preview strong { display: block; margin: 0.6rem 0.4rem 0.15rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.nav-preview small { display: block; margin: 0 0.4rem 0.4rem; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.4; }
@media (hover: none), (max-width: 999px) { .nav-preview { display: none; } }

/* Moving in: the line between the four steps draws itself down as you scroll. */
.timeline { position: relative; }
.timeline-fill { position: absolute; left: var(--fill-x, 1.05rem); top: 0; width: 2px; height: var(--fill, 0%); background: var(--brick); border-radius: 2px; transition: height 0.15s linear; pointer-events: none; }
.timeline-fill { left: calc(1.37rem - 0.5px); top: 1.4rem; }
.timeline li::before { z-index: 1; background: var(--card); }
.sheet .menu-foot { flex-wrap: wrap; }
.sheet .menu-foot a { white-space: nowrap; }

/* ==========================================================================
   Warmth pass 2026-11-13: colors taken from the photos (fir green outside, a red maple in the garden,
   amber fall decor, honey wood floors), a swaying maple, and a search box in the menu.
   ========================================================================== */
:root {
  --roof: #2f4538;        /* fir green: buttons and dark bands */
  --roof-deep: #22352b;
  --roof-raised: #3b5747;
  --brick: #b4452a;       /* maple red: accents, underlines, dots */
  --brick-light: #f2c9b4;
  --amber: #d99a3a;
}
.btn-solid:hover { background: var(--brick); }
.door h1, .split-side h1 { color: #2b2621; }
.dock-links a[aria-current] { text-decoration-color: var(--brick); }
.peek-all, .faq summary::marker { color: var(--brick); }
.legend-table dt .i, .door-hours .i { stroke: var(--brick); }

/* The maple grows behind the house photo, its crown showing above it like the real one in the garden. */
[data-look="frame"] .door-media { isolation: isolate; }
[data-look="frame"] .door-media::before { content: ""; position: absolute; z-index: -1; right: -1.5rem; top: -10.5rem; width: 21rem; aspect-ratio: 420 / 660; background: url("../img/maple.svg") center / contain no-repeat; pointer-events: none; }
.door { overflow-x: clip; }
@media (max-width: 999px) {
  [data-look="frame"] .door-media { margin-top: 6rem; }
  [data-look="frame"] .door-media::before { right: 0; top: -7.5rem; width: 13rem; }
}
/* Inner pages: a small maple at the foot of the side panel. */
@media (min-width: 1000px) {
  .split-side { background: url("../img/maple.svg") left 0.5rem bottom -4.5rem / 12rem auto no-repeat; }
}

/* ---------- Search: type what you need, jump straight there ---------- */
.dock-find { display: inline-flex; align-items: center; gap: 0.45rem; margin-left: 0.25rem; padding: 0.55rem 0.8rem; border: 1px solid var(--rule); border-radius: 999px; background: rgba(255, 255, 255, 0.6); color: var(--ink-soft); font: 600 0.95rem var(--sans); cursor: pointer; }
.dock-find:hover { border-color: var(--brick); color: var(--ink); }
.dock-find svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dock-find kbd { padding: 0.05rem 0.35rem; border: 1px solid var(--rule); border-radius: 0.35rem; font: 600 0.75rem var(--sans); }
@media (max-width: 999px) { .dock-find { display: none; } }
.sheet .menu-find { display: flex; width: 100%; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; padding: 0.8rem 1rem; border: 1px solid var(--rule); border-radius: 0.9rem; background: #fff; color: var(--ink-soft); font: 600 1rem var(--sans); text-align: left; }
.finder { width: min(92vw, 38rem); max-height: min(78vh, 36rem); margin: 12vh auto auto; padding: 0; border: 0; border-radius: 1.25rem; background: var(--card); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(34, 53, 43, 0.6); overflow: hidden; }
.finder::backdrop { background: rgba(34, 53, 43, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.finder[open] { display: flex; flex-direction: column; animation: finder-in 0.25s var(--ease); }
@keyframes finder-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
.finder-top { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); }
.finder-top svg { width: 1.2rem; height: 1.2rem; flex: none; fill: none; stroke: var(--brick); stroke-width: 2; stroke-linecap: round; }
.finder input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: 400 1.2rem var(--sans); outline: none; }
.finder-close { padding: 0.3rem 0.6rem; border: 1px solid var(--rule); border-radius: 0.5rem; background: none; color: var(--ink-soft); font: 600 0.8rem var(--sans); cursor: pointer; }
.finder ul { margin: 0; padding: 0.5rem; overflow-y: auto; list-style: none; }
.finder li a { display: grid; grid-template-columns: 2.6rem 1fr auto; gap: 0.8rem; align-items: center; padding: 0.6rem 0.75rem; border-radius: 0.8rem; color: var(--ink); text-decoration: none; }
.finder li a[aria-selected="true"], .finder li a:hover { background: rgba(180, 69, 42, 0.08); }
.finder li img, .finder .f-dot { width: 2.6rem; height: 2.6rem; border-radius: 0.6rem; object-fit: cover; }
.finder .f-dot { display: grid; place-items: center; background: var(--roof); color: var(--on-roof); font: 600 1rem var(--serif); }
.finder strong { display: block; font-weight: 600; }
.finder small { display: block; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.35; }
.finder .f-kind { color: var(--brick); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; }
.finder .f-empty { padding: 1.5rem; color: var(--ink-soft); text-align: center; }
@media (min-width: 1000px) { [data-look="frame"] .door-media::before { right: 3rem; top: -9.5rem; width: 20rem; } }
