/* The door: type and motion for the welcome page. Loaded after the engraved sheets.
   Motion is slow, runs once and then rests, so the Martin plate stays a picture, not a show.
   Every movement is opt-in under prefers-reduced-motion:no-preference, and the reduce block at the end
   stops the plate, its ::before/::after layers, the engravings, the rule and the cards outright.
   prefers-reduced-data ships in no browser, so data savers are caught by [data-save-data] on <html>,
   set from navigator.connection.saveData (src/lib/board/save-data.ts). */
:root{
  --door-ease:cubic-bezier(.22,.61,.36,1);
  --door-gilt:#c9a45c;
  --door-glow:rgba(240,231,211,.9);
  --door-motes:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg fill='%23f0e7d3'%3E%3Ccircle cx='22' cy='40' r='1.8'/%3E%3Ccircle cx='140' cy='18' r='1.2'/%3E%3Ccircle cx='250' cy='70' r='2'/%3E%3Ccircle cx='70' cy='150' r='1.4'/%3E%3Ccircle cx='300' cy='180' r='1.1'/%3E%3Ccircle cx='180' cy='230' r='1.9'/%3E%3Ccircle cx='40' cy='280' r='1.3'/%3E%3Ccircle cx='230' cy='300' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}
[data-palette="parchment"]{--door-glow:rgba(255,250,240,.95);--door-gilt:#6f5420}

/* The plate's drift must never widen the page: clip it at the section, not on the plate itself.
   data-section sits on <body>, whose overflow propagates to the viewport, so clip only the x axis:
   a full overflow:clip would become overflow:hidden on the viewport and stop the page scrolling.
   <html> clips too, so body keeps its own clip (rather than handing it to the viewport) and the
   desktop plate, positioned against body, is cut at the page edge: scrollWidth equals the viewport. */
[data-section="landing"],[data-section="signin"],
html:has(> body[data-section="landing"]),html:has(> body[data-section="signin"]){overflow-x:clip}

/* 1. The plate drifts, slowly, as a camera would. The mask on desktop and the sticky frame on phones are untouched. */
[data-section="landing"] .plate-ground,[data-section="signin"] .plate-ground{
  overflow:hidden;
  transform-origin:50% 30%;
}
/* One short 5s drift, then the plate rests where it ends. The door's scene (plate-scenes.css) keeps its clouds,
   mist and trees moving gently (Josh, Nov 27, 4:11 PM ET); for WCAG 2.2.2 the mast's "Hold the art still"
   switch (plate-hold.tsx) pauses it, and prefers-reduced-motion never starts it. */
@media (prefers-reduced-motion:no-preference){
  [data-section="landing"] .plate-ground,[data-section="signin"] .plate-ground{
    animation:door-drift 5s ease-out 1 forwards;
  }
}
@keyframes door-drift{
  from{transform:scale(1) translate3d(0,0,0)}
  to{transform:scale(1.04) translate3d(.6%,-.5%,0)}
}

/* 2. The light in the picture. A warm radial at the plate's source of light, screened over the engraving.
   This is its rest. The public door's light is still, and a signed-in plate blooms once, unless the reader
   asks for reduced motion (section 8). */
[data-section="landing"] .plate-ground::after,[data-section="signin"] .plate-ground::after,.plate-ground.door-ground::after{
  content:"";
  position:absolute;
  inset:-10%;
  pointer-events:none;
  /* Martin's sun breaks through right of centre on the desktop crop; phones crop to the centre, on its shaft. */
  --door-light:68% 25%;
  background:
    radial-gradient(46% 40% at var(--door-light),var(--door-glow) 0%,rgba(201,164,92,.55) 34%,transparent 72%);
  mix-blend-mode:screen;
  opacity:.5;
}
@media (max-width:640px){
  [data-section="landing"] .plate-ground::after,[data-section="signin"] .plate-ground::after,.plate-ground.door-ground::after{--door-light:50% 34%}
}

/* 3. Motes hang in the light, faint and few. They are still; the door's only looping motion is its scene,
   which "Hold the art still" pauses (WCAG 2.2.2). */
[data-section="landing"] .plate-ground::before,[data-section="signin"] .plate-ground::before,.plate-ground.door-ground::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:var(--door-motes) 0 0/320px 320px repeat,var(--door-motes) 160px 90px/480px 480px repeat;
  opacity:.45;
}
@media (prefers-reduced-data:reduce){
  .plate-ground::before,.plate-ground::after{display:none}
}

/* The scrim is lighter on the door, so the picture and its light read through. Text sits on solid cards. */
[data-section="landing"] .scrim,[data-section="signin"] .scrim{
  background:linear-gradient(90deg,rgba(20,16,12,0) 0%,rgba(20,16,12,.3) 45%,rgba(20,16,12,.72) 70%);
}
[data-palette="parchment"] [data-section="landing"] .scrim,[data-palette="parchment"] [data-section="signin"] .scrim{background:var(--scrim)}
@media (max-width:640px){
  [data-section="landing"] .scrim,[data-section="signin"] .scrim{background:linear-gradient(180deg,transparent 34lvh,var(--bg) 66lvh)}
}

/* 4. The door is finished at first paint. The h1 (the LCP), entry actions, forms and lower cards never
   animate or hide; the existing artwork supplies the only motion. */
.door-hero,.door-side,.door-week,.door-rooms{animation:none}

/* 5. Type. The title is set tight; a gilt rule draws in beneath it; the lede reads in the serif. */
.door-title{
  letter-spacing:-.018em;
  font-weight:560;
  line-height:1.04;
  text-shadow:0 1px 0 rgba(0,0,0,.35),0 0 24px rgba(201,164,92,.12);
}
.door-rule{
  position:relative;
  height:1px;
  margin:.35rem 0 .25rem;
  max-width:18rem;
  background:linear-gradient(90deg,var(--door-gilt) 0%,color-mix(in srgb,var(--door-gilt) 60%,transparent) 70%,transparent 100%);
  transform-origin:left;
}
.door-rule::before{
  content:"";
  position:absolute;
  left:-1px;
  top:-3px;
  width:7px;
  height:7px;
  transform:rotate(45deg);
  background:var(--door-gilt);
}
.door-lede{
  font-family:var(--font-display);
  font-size:1.2rem;
  line-height:1.55;
  color:color-mix(in srgb,var(--fg) 88%,var(--muted));
}
@media (min-width:64em){.door-lede{font-size:1.3rem}}
.door-heading{
  font-family:var(--font-display);
  font-variant-caps:all-small-caps;
  font-size:1.125rem;
  font-weight:600;
  letter-spacing:.14em;
  color:var(--door-gilt);
  display:flex;
  align-items:center;
  gap:.75rem;
}
.door-heading::after{
  content:"";
  flex:1 1 auto;
  height:1px;
  background:linear-gradient(90deg,color-mix(in srgb,var(--door-gilt) 45%,transparent),transparent);
}
.door-term{
  font-family:var(--font-display);
  font-size:1.08rem;
  font-weight:600;
  line-height:1.5;
  color:var(--fg);
}
.door-what{line-height:1.6}
/* Each rule is marked with a gilt diamond and closed with a hairline. */
.door-term{position:relative;padding-left:1.1em}
.door-term::before{
  content:"";
  position:absolute;
  left:.05em;
  top:.62em;
  width:.42em;
  height:.42em;
  transform:rotate(45deg);
  background:var(--door-gilt);
  box-shadow:0 0 6px color-mix(in srgb,var(--door-gilt) 60%,transparent);
}
.door-term,.door-what{padding-bottom:.55rem;border-bottom:1px solid color-mix(in srgb,var(--door-gilt) 14%,transparent)}
/* A rule's name sits beside its text in a fixed column, so the rows line up. On a phone the name sits over the
   text, on one left edge. */
.door-terms{display:grid;row-gap:.6rem}
@media (min-width:640px){.door-terms{grid-template-columns:9.5rem minmax(0,1fr);column-gap:1.5rem}}
@media (max-width:639px){.door-term{border-bottom:0;padding-bottom:0}.door-what{padding-left:calc(1.08rem * 1.1)}}
.contents:last-child > .door-term,.contents:last-child > .door-what{border-bottom:0;padding-bottom:0}
/* The rooms, each on its own small plate, in even columns. An odd last room takes the whole row. */
.door-roomlist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:.35rem 0 0;padding:0;list-style:none}
.door-room:last-child:nth-child(odd){grid-column:1/-1}
/* When the room card is narrower than 15em of its own text (a small phone, or larger root text, which a media
   query in 16px ems never sees), two columns are narrower than "Presbyterian": one column (Design R1, Nov 27). */
.door-rooms{container-type:inline-size}
.door-room{overflow-wrap:anywhere}
@container (max-width:15em){
  .door-roomlist{grid-template-columns:minmax(0,1fr)}
  .door-room:last-child:nth-child(odd){grid-column:auto}
}
@media (min-width:640px){
  .door-roomlist{grid-template-columns:repeat(3,minmax(0,1fr))}
  .door-room:last-child:nth-child(odd){grid-column:auto}
}
.door-room{
  display:flex;align-items:center;justify-content:center;text-align:center;
  font-family:var(--font-display);
  font-variant-caps:all-small-caps;
  font-size:1.05rem;
  letter-spacing:.06em;
  line-height:1.15;
  color:var(--fg);
  padding:.45em .5em .5em;
  border:1px solid color-mix(in srgb,var(--door-gilt) 40%,var(--line));
  border-radius:3px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--door-gilt) 14%,transparent),color-mix(in srgb,var(--door-gilt) 5%,transparent));
  box-shadow:inset 0 1px 0 rgba(240,231,211,.08),0 2px 6px -3px rgba(0,0,0,.7);
}
/* The section's own engraving, ghosted into its plate: Doré's ladder under How it works, Dürer's Saint
   Jerome under The rooms. Each keeps its own part of the card and the words stop short of it, so no text
   sits on the art: tablets get the 900px bands backgrounds.css already names, as a strip across the top;
   desktops the side plates, as a column on the right. Phones stay solid. */
@media (min-width:640px){
  .door-week::after,.door-rooms::after{
    content:"";
    position:absolute;
    pointer-events:none;
    background:var(--door-ghost) center/cover no-repeat;
    opacity:.5;
    mix-blend-mode:screen;
  }
  [data-palette="parchment"] .door-week::after,[data-palette="parchment"] .door-rooms::after{mix-blend-mode:multiply;opacity:.45}
}
@media (min-width:640px) and (max-width:1023px){
  .door-week,.door-rooms{padding-top:8rem}
  .door-week::after,.door-rooms::after{
    inset:0 0 auto;
    height:7rem;
    -webkit-mask-image:linear-gradient(#000 45%,transparent);
    mask-image:linear-gradient(#000 45%,transparent);
  }
  .door-week::after{--door-ghost:var(--art-week-band)}
  .door-rooms::after{--door-ghost:var(--art-rooms-band)}
}
@media (min-width:1024px){
  .door-week,.door-rooms{padding-right:calc(28% + 1.5rem)}
  .door-week::after,.door-rooms::after{
    inset:0 0 0 auto;
    width:28%;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 40%);
    mask-image:linear-gradient(90deg,transparent,#000 40%);
  }
  .door-week::after{--door-ghost:var(--art-week-side)}
  .door-rooms::after{--door-ghost:var(--art-rooms-side)}
}
@media (prefers-reduced-data:reduce){.door-week::after,.door-rooms::after{display:none}}
/* Data saver: no plate, no light or motes, no ghosted engravings. */
[data-save-data] .plate-ground{background-image:none;animation:none}
[data-save-data] .plate-ground::before,[data-save-data] .plate-ground::after,
[data-save-data] .door-week::after,[data-save-data] .door-rooms::after{display:none;background-image:none;animation:none}
.door-aside{
  font-family:var(--font-display);
  font-size:1.15rem;
  color:var(--fg);
  /* It is the one line on the bare engraving: give it a ground so it reads on both palettes. */
  background:color-mix(in srgb,var(--bg) 82%,transparent);
  padding:.3rem .6rem;
  border-radius:3px;
  width:fit-content;
}

/* 6. The plates: laid paper under the ink. A warm light catches the top corner, a faint grain sits over the
   field, and a gilt hairline runs just inside the edge. The ground stays solid, so the text keeps its contrast. */
.door-hero,.door-week,.door-rooms,.door-side .card,.door-side #sign-in{
  position:relative;
  overflow:hidden;
  border-color:color-mix(in srgb,var(--door-gilt) 32%,var(--line));
  background:
    radial-gradient(130% 55% at 50% 112%,rgba(0,0,0,.5),transparent 62%),
    radial-gradient(120% 70% at 0% 0%,color-mix(in srgb,var(--door-gilt) 14%,transparent),transparent 60%),
    linear-gradient(170deg,color-mix(in srgb,var(--card-raised) 70%,var(--card)) 0%,var(--card) 48%,color-mix(in srgb,var(--bg) 45%,var(--card)) 100%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb,var(--door-gilt) 14%,transparent),
    inset 0 1px 0 rgba(240,231,211,.07),
    0 14px 34px -18px rgba(0,0,0,.8);
}
.door-hero::before,.door-week::before,.door-rooms::before,.door-side .card::before,.door-side #sign-in::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:var(--grain);
  opacity:.12;
  mix-blend-mode:overlay;
}
/* The grain and the ghosted engraving sit under the words, never over them. */
.door-week::before,.door-rooms::before,.door-week::after,.door-rooms::after{z-index:0}
.door-week>*,.door-rooms>*{position:relative;z-index:1}
/* How it works: cooler ink under Doré's night sky. The rooms: the warmth of Jerome's study lamp. */
.door-week{
  background:
    radial-gradient(130% 55% at 50% 112%,rgba(0,0,0,.55),transparent 62%),
    radial-gradient(110% 70% at 0% 0%,rgba(240,231,211,.09),transparent 58%),
    linear-gradient(170deg,color-mix(in srgb,#2b2c35 42%,var(--card)) 0%,color-mix(in srgb,#1d1c22 50%,var(--card)) 50%,color-mix(in srgb,#0d0c11 60%,var(--card)) 100%);
}
.door-rooms{
  border-color:color-mix(in srgb,var(--door-gilt) 42%,var(--line));
  background:
    radial-gradient(130% 55% at 50% 112%,rgba(0,0,0,.5),transparent 62%),
    radial-gradient(110% 75% at 0% 0%,color-mix(in srgb,var(--door-gilt) 14%,transparent),transparent 60%),
    linear-gradient(170deg,color-mix(in srgb,#4a3418 35%,var(--card)) 0%,color-mix(in srgb,#2e2112 45%,var(--card)) 50%,color-mix(in srgb,#140e07 55%,var(--card)) 100%);
}
/* Contrast over the plates and their ghosted engravings, measured on the lightest pixel behind the glyphs
   from 375 to 1280: lighter body text on both lower plates (at least 4.8:1, where plain muted fell to 3.2:1
   on the tablet engraving), and the rooms heading lifted a touch toward the ink (at least 4.5:1). */
.door-week .door-what,.door-rooms .door-what{color:color-mix(in srgb,var(--fg) 35%,var(--muted))}
.door-rooms .door-heading{color:color-mix(in srgb,var(--door-gilt) 82%,var(--fg))}
[data-palette="parchment"] .door-week,[data-palette="parchment"] .door-rooms{background:var(--card)}
.door-hero{
  border-color:color-mix(in srgb,var(--door-gilt) 55%,var(--line));
  background:
    radial-gradient(120% 80% at 0% 0%,color-mix(in srgb,var(--door-gilt) 22%,transparent),transparent 62%),
    linear-gradient(170deg,color-mix(in srgb,var(--card-raised) 80%,var(--card)) 0%,var(--card) 50%,color-mix(in srgb,var(--bg) 40%,var(--card)) 100%);
}
/* The cards and room names can't be clicked, so they don't react to hover. The sign-in button glows the
   same for pointer and keyboard, and never lifts; the global focus outline stays as it is. */
.door-side .btn-primary:focus-visible{
  box-shadow:0 0 0 1px color-mix(in srgb,var(--door-gilt) 60%,transparent),0 8px 22px -10px rgba(240,231,211,.45);
}
@media (hover:hover){
  .door-side .btn-primary:hover{
    box-shadow:0 0 0 1px color-mix(in srgb,var(--door-gilt) 60%,transparent),0 8px 22px -10px rgba(240,231,211,.45);
  }
}
.door-side input{transition:border-color .25s var(--door-ease),box-shadow .25s var(--door-ease)}
.door-side input:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--door-gilt) 22%,transparent)}
@media (prefers-reduced-motion:no-preference){
  html:has(> body[data-section="landing"]),html:has(> body[data-section="signin"]){scroll-behavior:smooth}
}

/* 7. The door's light on every other plate: the same still radial and motes. Josh: the glow is constant and
   always on, so these layers have no animation and no transition, are there from first paint, and stay under
   reduced motion (it is light, not motion). The plate under them keeps its own one-pass settle (page-craft's
   pc-settle on signed-in pages, which ends at scale 1 so the #116 crops hold; door-settle on .door-ground).
   Signed-in plates sit under a darker scrim, so their light and motes are softer (.32/.3) than the door's. */
[data-entered] .plate-figure>.plate-ground{overflow:hidden;--door-light:50% 24%}
[data-entered] .plate-figure>.plate-ground::after{content:"";position:absolute;inset:-10%;pointer-events:none;background:radial-gradient(46% 40% at var(--door-light),var(--door-glow) 0%,rgba(201,164,92,.55) 34%,transparent 72%);mix-blend-mode:screen;opacity:.32;animation:none;transition:none}
[data-entered] .plate-figure>.plate-ground::before{content:"";position:absolute;inset:0;pointer-events:none;background:var(--door-motes) 0 0/320px 320px repeat,var(--door-motes) 160px 90px/480px 480px repeat;opacity:.3;animation:none;transition:none}
/* Each plate's own source of light. --door-light is measured inside the ::after box (inset -10%, so 120% of the
   plate): on screen it lands at -10% + 1.2 x the value. Each one sits on the picture's own light, in plate the
   header and the head card leave showing, and off the faces. */
[data-section="week"] [data-entered] .plate-figure>.plate-ground{--door-light:62% 50%}
[data-section="rooms"] [data-entered] .plate-figure>.plate-ground{--door-light:22% 22%}
[data-section="rooms"][data-view="room"] [data-entered] .plate-figure>.plate-ground{--door-light:58% 24%}
[data-section="groups"] [data-entered] .plate-figure>.plate-ground{--door-light:86% 46%}
[data-section="groups"][data-view="group"] [data-entered] .plate-figure>.plate-ground{--door-light:84% 44%}
[data-section="find"] [data-entered] .plate-figure>.plate-ground{--door-light:54% 58%}
[data-section="messages"] [data-entered] .plate-figure>.plate-ground{--door-light:16% 22%}
[data-section="civic"] [data-entered] .plate-figure>.plate-ground{--door-light:12% 46%}
[data-section="about"] [data-entered] .plate-figure>.plate-ground{--door-light:68% 25%}
[data-section="profile"] [data-entered] .plate-figure>.plate-ground{--door-light:12% 46%}
@media (max-width:640px){
  [data-section="week"] [data-entered] .plate-figure>.plate-ground{--door-light:70% 58%}
  [data-section="rooms"] [data-entered] .plate-figure>.plate-ground{--door-light:12% 36%}
  [data-section="messages"] [data-entered] .plate-figure>.plate-ground{--door-light:36% 44%}
  [data-section="about"] [data-entered] .plate-figure>.plate-ground{--door-light:50% 34%}
  [data-section="rooms"][data-view="room"] [data-entered] .plate-figure>.plate-ground{--door-light:88% 34%}
  [data-section="groups"] [data-entered] .plate-figure>.plate-ground{--door-light:86% 60%}
  [data-section="groups"][data-view="group"] [data-entered] .plate-figure>.plate-ground{--door-light:86% 62%}
  [data-section="civic"] [data-entered] .plate-figure>.plate-ground{--door-light:88% 46%}
  [data-section="profile"] [data-entered] .plate-figure>.plate-ground{--door-light:12% 56%}
}
/* Phones: Doré's 900px crop at centre put Jacob's head on the left edge; 6% brings his head clear of the edge (Josh: no cropped heads). */
@media (max-width:640px){.gathering-page .plate-ground.door-ground,[data-section="week"] [data-entered] .plate-figure>.plate-ground{background-position:6% 35%}}
/* The signed-in title carries the door title's gilt glow. */
[data-entered] .pc-head h1{text-shadow:0 1px 0 rgba(0,0,0,.35),0 0 24px rgba(201,164,92,.12)}

/* The public pages (About, Privacy, Terms, /e/:id, 404) get the door's whole plate, not a band: --door-art names
   the picture (the door's Martin by default). Light and motes come from sections 2 and 3, always on. */
.plate-ground.door-ground{background:var(--door-art,var(--art-landing)) center 30%/cover no-repeat;overflow:hidden;transform-origin:50% 40%}
.plate-ground.door-ground::before,.plate-ground.door-ground::after{animation:none;transition:none}
.door-ground+.scrim{position:fixed;inset:0;z-index:0;pointer-events:none;background:radial-gradient(75% 95% at 50% 45%,rgba(20,16,12,.6),rgba(20,16,12,.25))}
[data-palette="parchment"] .door-ground+.scrim{background:var(--scrim)}
/* The public h1s carry the door title's gilt glow too. */
.door-ground~* h1{text-shadow:0 1px 0 rgba(0,0,0,.35),0 0 24px rgba(201,164,92,.12)}
/* Martin is the door's, and About and 404 (whose one link is back to the door) share it. Privacy and Terms stand
   on Dürer's Saint Jerome in His Study: the two-sided 2400 file from 1600px, the 900px crop on phones. */
.door-ground.doc-jerome{--door-art:url(/art/plate-rooms-A.webp)}
.plate-ground.door-ground.doc-jerome::after{--door-light:22% 22%}
@media (max-width:640px){
  .door-ground.doc-jerome{--door-art:url(/art/plate-rooms-A-900.webp)}
  .plate-ground.door-ground.doc-jerome::after{--door-light:12% 36%}
}
@media (min-width:1600px){.door-ground.doc-jerome{--door-art:url(/art/plate-rooms-A-2400.webp)}}
@media (prefers-reduced-motion:no-preference){
  .plate-ground.door-ground{animation:door-settle 4.5s var(--door-ease) 1 both}
}
@keyframes door-settle{from{transform:scale(1.06)}to{transform:none}}
[data-save-data] .plate-ground.door-ground{background-image:none;animation:none}
@media (prefers-reduced-data:reduce){.plate-ground.door-ground{background-image:none;animation:none}}

/* Large default text: grid items keep min-width:auto, so a long display word widened the phone column past the screen. */
.door-columns>*{min-width:0}
.door-room{max-width:100%;white-space:normal;overflow-wrap:break-word;hyphens:auto}
@media (max-width:30em){.door-room{letter-spacing:.03em;padding-inline:.5em}}
/* 8. Signed-in plates keep their one four-second bloom on the first signed-in mount of a tab. The class
   `plate-bloom` is added once (sessionStorage) and removed on animationend, so a new plate on Rooms or Find
   does not play it again. The public entry's light is still; only its artwork makes the one brief reveal.
   Both are opt-in under no-preference, and reduced motion is the finished static fallback. */
@media (prefers-reduced-motion:no-preference){
  [data-entered] .plate-figure>.plate-ground.plate-bloom::after{transform-origin:var(--door-light);animation:door-bloom 4s ease-in-out 1 both}
}
@keyframes door-bloom{0%,100%{opacity:.32;transform:none}40%{opacity:.7;transform:scale(1.1)}}
/* Public-entry polish: one restrained treatment only. The existing artwork makes a single five-second reveal;
   the headline, actions, rules, and lower cards are already finished at first paint. These scoped declarations
   override the later generated plate-motion loops without changing signed-in plates or public documents. */
@media (prefers-reduced-motion:no-preference){
  html:not([data-save-data]) :is([data-section="landing"],[data-section="signin"]) .plate-ground{
    animation:door-drift 5s ease-out 1 forwards!important;
  }
  html:not([data-save-data]) :is([data-section="landing"],[data-section="signin"]) .plate-ground::after{
    animation:none!important;
  }
  :is([data-section="landing"],[data-section="signin"]) :is(.door-rule,.door-week,.door-rooms){animation:none}
}

/* Reduced motion: nothing on the door moves. backgrounds.css stops animations on every element and
   pseudo-element; this names the door's own layers too, and pins their transforms flat. */
@media (prefers-reduced-motion:reduce){
  .plate-ground,.plate-ground::before,.plate-ground::after,
  .door-week::after,.door-rooms::after,
  .door-rule,
  .door-hero,.door-side,.door-week,.door-rooms,
  .door-room:hover,.door-week:hover,.door-rooms:hover,.door-side .card:hover,.door-side #sign-in:hover,
  .door-side .btn-primary:hover,.door-side .btn-primary:focus-visible{animation:none!important;transform:none!important}
}