/* The home page ("Open door"): a list of apps on the left with the family line as its heading; the chosen one opens beside it
   with its headline, one line, its one action and a real picture. Without the script, and on a phone, every app
   is simply shown one under the other. */
.door { max-width: 1160px; margin: 0 auto; padding: clamp(20px, 2.6vw, 30px) 20px clamp(40px, 6vw, 80px); display: flex; flex-direction: column; gap: clamp(22px, 3vw, 34px); font-family: var(--s-sans); }
.door h1 { margin: 0; font-size: clamp(28px, 6vw, 40px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; padding: 4px 0 6px; }
.door-side { min-width: 0; }
.door-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.door-list { display: none; }
.door-room { max-width: none; margin: 0; border: 1px solid var(--s-line); border-radius: 20px; padding: clamp(18px, 2.6vw, 30px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; scroll-margin-top: 72px; }
.room-words { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; }
.room-name { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.room-status { font: 500 11.5px var(--s-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--s-muted); display: inline-flex; align-items: center; gap: 7px; }
.room-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--s-dot); }
.room-status.soon::before { background: none; border: 1.5px solid var(--s-muted); }
.door-room h2 { margin: 0; font-size: clamp(25px, 2.9vw, 36px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.door-room p { margin: 0; color: var(--s-soft); font-size: 17px; line-height: 1.5; max-width: 40ch; }
/* The button and the links under it are centred in the text column (owner, 19 Nov: option 4 of the alignment mockup). */
.room-acts { display: flex; flex-direction: column; align-self: stretch; align-items: center; gap: 12px; margin-top: 6px; }
.room-acts .btn { padding: 11px 22px; font-size: 16px; }
.room-acts .more { color: var(--s-ink); font-size: 15.5px; font-weight: 500; text-decoration: none; }
.room-acts .more::after { content: " \2192"; }
.room-acts .more:hover { text-decoration: underline; }.door-room p.room-fine { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--s-muted); max-width: 46ch; }
.door-room .shot { margin: 0; overflow: hidden; background: var(--s-wash); aspect-ratio: 16 / 10; width: 100%; }
.door-room .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
/* The clip keeps its own 16:9 shape, so nothing it shows is cut off. */
.door-room .shot.video { aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--s-line); }
.door-room .shot video { width: 100%; height: 100%; display: block; object-fit: cover; }
.room-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--s-line); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.room-facts li { padding: 15px 2px; border-bottom: 1px solid var(--s-line); font-size: 17px; color: var(--s-ink); display: flex; gap: 12px; align-items: baseline; }
.room-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--s-ink); flex: none; transform: translateY(-3px); }

@media (min-width: 620px) { .door-room { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 28px; } }

/* Wide screens with the script: the list on the left, one open room beside it. */
@media (min-width: 900px) {
  .door-grid.js { grid-template-columns: minmax(220px, 272px) minmax(0, 1fr); align-items: stretch; }
  .door-grid.js h1 { font-size: clamp(26px, 2.5vw, 31px); padding: 6px 0 16px; }
  .door-grid.js .door-room { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
  .door-grid.js .door-list { display: flex; flex-direction: column; gap: 3px; }
  .door-grid.js .door-stage { display: grid; }
  .door-grid.js .door-room { grid-area: 1 / 1; min-height: 420px; }
  /* Every app keeps its place in the one cell, so the box is as tall as the tallest app and the rest of the page
     never moves when another app is chosen. The ones not chosen are invisible and out of reach. */
  .door-grid.js .door-room[hidden] { display: grid; visibility: hidden; }
  .door-grid.js .room-name { display: none; }
}
@media (max-width: 899.98px) { .door-grid.js .door-room[hidden] { display: grid; } }
/* Phones: the same 16 px edge as the header and footer. */
@media (max-width: 560px) { .door { padding-left: 16px; padding-right: 16px; } }
.door-list a { display: flex; align-items: center; gap: 12px; padding: 9px 11px; border: 1px solid transparent; border-radius: 14px; color: var(--s-ink); text-decoration: none; min-width: 0; }
.door-list a:hover { background: var(--s-wash); text-decoration: none; }
.door-list a[aria-selected="true"] { background: var(--s-wash); border-color: var(--s-line); }
.door-list a:focus-visible { outline: 2px solid var(--s-dot); outline-offset: 2px; }
.door-list .t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.door-list b { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.door-list small { color: var(--s-muted); font-size: 13.5px; }

/* Under the door: the tools people reach for, then three plain facts. */
.door-tools { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; padding-top: 22px; border-top: 1px solid var(--s-line); font-size: 15.5px; }
.door-tools span { font: 500 11.5px var(--s-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--s-muted); }
.door-tools a { color: var(--s-ink); text-decoration: none; }
.door-tools a:hover { text-decoration: underline; }
.door-tools a.go { font-weight: 500; }
.door-tools a.go::after { content: " \2192"; }
.door-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 36px; padding-top: 26px; border-top: 1px solid var(--s-line); }
.door-facts div { display: flex; flex-direction: column; gap: 5px; }
.door-facts b { font-size: 17px; letter-spacing: -.01em; font-weight: 600; }
.door-facts span { color: var(--s-muted); font-size: 15.5px; line-height: 1.5; }
