:root {
  color: #1f1f1f;
  background: #f5f5f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  --red: #ff0000;
  --red-dark: #c90000;
  --ink: #1f1f1f;
  --muted: #666666;
  --light: #f5f5f5;
  --white: #ffffff;
  --stone: #e8e1d5;
  --blue: #102a43;
  --line: rgba(31, 31, 31, 0.11);
  --line-strong: rgba(31, 31, 31, 0.18);
  --shadow: 0 22px 70px rgba(16, 42, 67, 0.11);
  --shadow-soft: 0 12px 32px rgba(16, 42, 67, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(232, 225, 213, 0.78), transparent 30rem),
    linear-gradient(180deg, var(--white) 0%, #fafafa 42%, var(--light) 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(16, 42, 67, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 42, 67, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 72%);
}

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; }

body:has(.door-wall-section),
body:has(.home-scene) {
  --header-height: 0px;
}

body:has(.door-wall-section) header,
body:has(.door-wall-section) .site-header,
body:has(.door-wall-section) .main-header,
body:has(.door-wall-section) .app-header,
body:has(.home-scene) header,
body:has(.home-scene) .site-header,
body:has(.home-scene) .main-header,
body:has(.home-scene) .app-header {
  display: none !important;
}

body:has(.door-wall-section) main,
body:has(.home-scene) main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 0.9rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(16, 42, 67, 0.055);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: max-content;
}

.brand-logo {
  display: block;
  width: clamp(3.75rem, 6.5vw, 4.7rem);
  height: auto;
  max-height: 3.25rem;
  object-fit: contain;
}

.brand-copy {
  display: block;
  padding-left: 0.72rem;
  border-left: 1px solid var(--line);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.55rem, 1.35vw, 1.15rem);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
}

.main-nav a {
  position: relative;
  transition: color 160ms ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.38rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 160ms ease, transform 160ms ease;
}

.main-nav a:hover { color: var(--red); }
.main-nav a:hover::after { opacity: 1; transform: scaleX(1); }

.estimate-button, .primary-button, .secondary-button, .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.estimate-button, .primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 14px 30px rgba(255, 0, 0, 0.2);
}

.estimate-button:hover, .primary-button:hover, .secondary-button:hover, .ghost-button:hover {
  transform: translateY(-1px);
}

.estimate-button { white-space: nowrap; font-size: 0.92rem; }

.mobile-menu-toggle, .mobile-nav { display: none; }

.mobile-menu-toggle {
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0;
  place-items: center;
  color: var(--blue);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.secondary-button {
  color: var(--blue);
  background: var(--white);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.ghost-button {
  color: var(--blue);
  background: transparent;
  border-color: rgba(16, 42, 67, 0.24);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 2rem);
  scroll-margin-top: 6rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: center;
  min-height: 58vh;
  padding-top: clamp(2.3rem, 4.8vw, 4rem);
  padding-bottom: clamp(2.4rem, 4.8vw, 4rem);
}

.hero::before {
  position: absolute;
  inset: clamp(1rem, 4vw, 2rem);
  z-index: -1;
  content: "";
  border: 1px solid rgba(232, 225, 213, 0.95);
  border-radius: 2.4rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(232, 225, 213, 0.42));
}

.hero-logo {
  display: block;
  width: clamp(8.75rem, 18vw, 12.5rem);
  height: auto;
  max-height: 12rem;
  margin-bottom: 0.7rem;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 24px rgba(16, 42, 67, 0.08));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.icon { color: currentColor; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 640px;
  margin: 0.8rem 0 1rem;
  color: var(--ink);
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 { margin-top: 0.35rem; }

h2 {
  max-width: 920px;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.7rem;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.25;
}

p { color: var(--muted); }

.hero-content p, .section-heading p, .split > div > p, .contact p {
  max-width: 690px;
  font-size: 1.06rem;
}

.hero-actions, .cta-row, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.35rem;
}

.hero-card, .panel, .card, .article-card, .property-card, .advisor-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  display: grid;
  gap: 0.75rem;
  min-height: 280px;
  padding: 1rem;
  overflow: visible;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 225, 213, 0.58));
  box-shadow: var(--shadow-soft);
}

.hero-card::before {
  position: absolute;
  inset: 1.15rem 1.15rem auto auto;
  width: 44%;
  height: 38%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 1.2rem;
  background:
    linear-gradient(90deg, transparent 31%, rgba(255, 255, 255, 0.38) 31% 34%, transparent 34% 65%, rgba(255, 255, 255, 0.38) 65% 68%, transparent 68%),
    linear-gradient(180deg, transparent 46%, rgba(255, 255, 255, 0.38) 46% 50%, transparent 50%);
  opacity: 0.28;
}

.hero-card::after {
  position: absolute;
  right: 12%;
  bottom: 37%;
  width: 34%;
  height: 18%;
  content: "";
  border-radius: 1rem 1rem 0.25rem 0.25rem;
  background: rgba(16, 42, 67, 0.06);
  transform: skewX(-10deg);
}

.metric {
  position: relative;
  z-index: 1;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(31, 31, 31, 0.1);
  border-radius: 1.05rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
}

.metric strong { display: block; color: var(--blue); font-size: 1.28rem; line-height: 1; }
.metric span { color: var(--muted); font-size: 0.95rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.panel { padding: clamp(1.4rem, 3vw, 2rem); }

.form-panel, .buyer-form { display: grid; gap: 1rem; }

.form-panel {
  border-top: 4px solid var(--red);
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(255, 0, 0, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.08);
}

textarea { min-height: 120px; resize: vertical; }


.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.form-status {
  min-height: 1.35rem;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.check-grid.single { grid-template-columns: 1fr; }

.check-grid span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blue);
  font-weight: 700;
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card, .article-card {
  padding: 1.45rem;
}

.card {
  border-top: 3px solid rgba(255, 0, 0, 0.78);
}

.card .icon {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  place-items: center;
  border-radius: 0.8rem;
  color: var(--red);
  background: rgba(255, 0, 0, 0.08);
}

.card p, .article-card p { margin-bottom: 0; }

.centered { text-align: center; margin-inline: auto; }
.centered p, .centered h2 { margin-inline: auto; }

.cta-row { justify-content: center; }
.cta-row.left { justify-content: flex-start; }

.buyer-form { margin-top: 2rem; }

.surface-section { max-width: 1280px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 2rem 0 1rem;
}

.advanced-filters { display: contents; }

.more-filters { display: none; }

.filter-bar button, .filter-bar summary, .category-cloud span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.88);
}

.filter-bar button, .filter-bar summary { cursor: pointer; }

.filter-bar summary {
  list-style: none;
  user-select: none;
}

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

.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.category-cloud span {
  color: var(--blue);
  background: var(--stone);
  border-color: rgba(16, 42, 67, 0.08);
  font-weight: 700;
}

.blog-categories { justify-content: center; }

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.property-card { overflow: hidden; }

.agency-section {
  max-width: 1240px;
}

.advisors-summary {
  max-width: 1240px;
  padding-top: clamp(2.7rem, 5vw, 4.5rem);
}

.agency-local-note {
  margin: 0.85rem auto 0;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.agency-section .agency-list {
  justify-content: center;
  margin: 0.85rem auto 2rem;
}

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

.advisor-card {
  display: grid;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}

.advisor-photo {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.8), transparent 7rem),
    linear-gradient(135deg, rgba(232, 225, 213, 0.95), rgba(143, 161, 174, 0.68) 54%, rgba(16, 42, 67, 0.9));
}

.advisor-photo::before {
  position: absolute;
  inset: 1rem;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 1.15rem;
}

.advisor-photo::after {
  position: absolute;
  right: -2.8rem;
  bottom: -4.3rem;
  width: 10rem;
  height: 10rem;
  content: "";
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.14);
}

.advisor-photo span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 5.2rem;
  height: 5.2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: var(--white);
  background: rgba(16, 42, 67, 0.48);
  box-shadow: 0 18px 42px rgba(16, 42, 67, 0.18);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.advisor-photo span.advisor-photo-brand {
  width: 7.4rem;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.advisor-content {
  display: grid;
  gap: 0.7rem;
  padding: 1.35rem;
}

.advisor-content h3,
.advisor-content p {
  margin-bottom: 0;
}

.advisor-role {
  color: var(--blue);
  font-weight: 850;
}

.advisor-sector {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 850;
}

.advisor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  width: fit-content;
  margin-top: 0.3rem;
  border-radius: 999px;
  padding: 0.74rem 1rem;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 22px rgba(255, 0, 0, 0.16);
  font-size: 0.92rem;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.advisor-button:hover {
  background: var(--red-dark);
  box-shadow: 0 14px 28px rgba(255, 0, 0, 0.2);
  transform: translateY(-1px);
}

.advisor-grid.summary .advisor-card {
  box-shadow: var(--shadow-soft);
}

.advisor-grid.summary .advisor-photo {
  min-height: 150px;
}

.advisor-grid.summary .advisor-content {
  padding: 1.2rem;
}

.advisor-grid.summary .advisor-content p:not(.advisor-role):not(.advisor-sector) {
  display: none;
}

.advisor-grid.summary .advisor-button {
  margin-top: 0.15rem;
}


.property-visual {
  min-height: 178px;
  padding: 1rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.62), transparent 8rem),
    linear-gradient(135deg, #eee6db, #8fa1ae 52%, var(--blue));
}

.property-visual span {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--white);
  background: var(--red);
  font-weight: 800;
}

.property-body { padding: 1.2rem; }

.presentation-badge {
  display: inline-flex;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  color: var(--red);
  background: rgba(255, 0, 0, 0.07);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.property-meta { display: flex; align-items: center; gap: 0.35rem; color: var(--blue); font-size: 0.9rem; font-weight: 800; }

.property-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.property-facts span {
  border-radius: 999px;
  padding: 0.35rem 0.58rem;
  color: var(--ink);
  background: rgba(232, 225, 213, 0.56);
  font-size: 0.82rem;
  font-weight: 650;
}

.price { display: block; font-size: 1.35rem; color: var(--blue); }

.property-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.6rem;
  margin-top: 1rem;
}

.property-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.68rem 0.85rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.15;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.property-action:hover { transform: translateY(-1px); }

.property-action.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 22px rgba(255, 0, 0, 0.16);
}

.property-action.primary:hover { background: var(--red-dark); }

.property-action.secondary {
  color: var(--red);
  background: var(--white);
  border-color: rgba(255, 0, 0, 0.32);
}

.property-action.secondary:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-soft);
}

.property-action.subtle,
.property-action.call {
  min-height: 0;
  margin-top: 0.1rem;
  border-radius: 0;
  padding: 0.18rem 0.2rem;
  color: var(--blue);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 750;
}

.property-action.subtle:hover,
.property-action.call:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transform: none;
}

.property-action.call {
  color: var(--ink);
}

.property-demo-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.article-card span { color: var(--red); font-weight: 900; font-size: 0.82rem; }
.article-card a { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; color: var(--blue); font-weight: 900; }

.join-section { align-items: stretch; }
.dark-panel {
  display: grid;
  align-content: end;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(16, 42, 67, 0.06), rgba(16, 42, 67, 0.92)),
    linear-gradient(135deg, #8fa1ae, var(--blue));
}
.dark-panel h3 { color: var(--white); }
.dark-panel p { color: rgba(255,255,255,0.8); }

.legal-section { padding-block: 1rem; }
.legal-section .panel { box-shadow: none; }
.legal-warning { color: #8b4b00; font-weight: 750; }

.contact {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.agency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  scroll-margin-top: 6rem;
}

.agency-list span {
  display: inline-flex;
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 999px;
  padding: 0.58rem 0.82rem;
  color: var(--blue);
  background: rgba(232, 225, 213, 0.64);
  font-weight: 800;
}

.contact-content { max-width: 760px; }

.contact-agencies { margin-top: 1.15rem; }

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  color: var(--white);
  background: var(--blue);
  font-weight: 800;
}

.contact-details { justify-content: flex-end; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  color: rgba(255,255,255,0.76);
  background: var(--ink);
}

.footer strong { display: block; color: var(--white); margin-bottom: 0.4rem; }
.footer p { max-width: 460px; margin-bottom: 0; color: rgba(255,255,255,0.66); }
.footer-network { margin-top: 0.45rem; font-size: 0.92rem; color: rgba(255,255,255,0.5); }
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.85rem 1.2rem; max-width: 560px; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 0.2rem; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero-card { min-height: 0; }
  .cards.four, .property-grid, .advisor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.three, .form-grid.three-cols { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.78rem 1rem;
  }

  .brand { gap: 0; min-width: 0; }
  .brand-logo { width: 3.5rem; max-height: 2.85rem; }
  .brand-copy, .main-nav, .estimate-button { display: none; }
  .brand small { font-size: 0.69rem; }

  .mobile-menu-toggle {
    display: inline-grid;
    gap: 5px;
    justify-self: end;
  }

  .mobile-nav {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .mobile-nav:not([hidden]) { display: grid; }

  .mobile-nav a {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 2.85rem;
    border-radius: 0.9rem;
    padding: 0.75rem 0.9rem;
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 780;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .mobile-nav a:hover { background: rgba(232, 225, 213, 0.5); color: var(--red); }

  .mobile-nav .mobile-estimate-button {
    justify-content: center;
    margin-top: 0.45rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 14px 28px rgba(255, 0, 0, 0.18);
  }

  .hero-logo { width: clamp(7.75rem, 38vw, 9.75rem); max-height: 9.5rem; margin-bottom: 0.55rem; }
  .estimate-button { padding-inline: 0.85rem; font-size: 0.88rem; }
  .hero { min-height: auto; padding-top: 2.1rem; padding-bottom: 2.4rem; }
  .hero::before { inset: 0.75rem; border-radius: 1.5rem; }
  h1 { font-size: clamp(1.9rem, 9vw, 2.55rem); letter-spacing: -0.035em; }
  .hero h1 { margin-top: 0.25rem; }
  .hero-card { gap: 0.65rem; padding: 0.85rem; }
  h2 { font-size: clamp(1.72rem, 8vw, 2.4rem); }
  .hero-content p, .section-heading p, .split > div > p, .contact p { font-size: 1rem; }
  .hero-actions, .cta-row, .contact-actions, .contact-cta { align-items: stretch; flex-direction: column; }
  .hero-actions a, .cta-row a, .contact-actions a, .contact-cta a, .property-action, .form-panel button, .buyer-form button { width: 100%; }

  .surface-section { padding-top: 2.15rem; }

  .surface-section .section-heading h2 { margin-bottom: 0.68rem; }

  .surface-section .section-heading p { margin-bottom: 0; }

  .surface-section .filter-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin: 1.05rem 0 0.9rem;
  }

  .surface-section .filter-bar > button,
  .surface-section .filter-bar summary,
  .surface-section .mobile-advanced-filters button {
    justify-content: space-between;
    width: 100%;
    min-height: 2.55rem;
    padding: 0.66rem 0.85rem;
    font-size: 0.92rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .surface-section .desktop-advanced-filters { display: none; }

  .surface-section .more-filters {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
  }

  .surface-section .more-filters summary { display: inline-flex; }

  .surface-section .more-filters-close-label,
  .surface-section .more-filters[open] .more-filters-open-label { display: none; }

  .surface-section .more-filters[open] .more-filters-close-label { display: inline; }

  .surface-section .mobile-advanced-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 0.65rem;
  }

  .surface-section .more-filters:not([open]) .mobile-advanced-filters { display: none; }

  .property-categories {
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin-right: -1rem;
    margin-bottom: 1.1rem;
    margin-left: -1rem;
    padding: 0.05rem 1rem 0.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .property-categories::-webkit-scrollbar { display: none; }

  .property-categories span {
    flex: 0 0 auto;
    min-height: 2.05rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .surface-section .property-grid { gap: 0.85rem; }
  .property-actions { grid-template-columns: 1fr; gap: 0.62rem; }
  .property-action.subtle, .property-action.call { margin-top: 0; }
  .form-grid.two, .property-grid, .cards.four, .advisor-grid, .check-grid { grid-template-columns: 1fr; }
  .advisor-button { width: 100%; }
  .contact, .footer { flex-direction: column; align-items: flex-start; }
  .footer nav { justify-content: flex-start; }
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-weight: 650;
  cursor: pointer;
}

.nav-dropdown-toggle:hover { color: var(--red); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  z-index: 30;
  display: grid;
  min-width: 13rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -0.3rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
  white-space: nowrap;
}

.main-nav a.active,
.footer a.active { color: var(--red); }

.page-hero { min-height: 46vh; }

.home-overview { padding-top: clamp(2.5rem, 5vw, 4rem); }

.summary-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.summary-card h3,
.summary-card p { margin-bottom: 0; }

.summary-card .ghost-button {
  width: fit-content;
  margin-top: 0.35rem;
}

.timeline-panel,
.advisors-title { margin-top: 2rem; }

.contact-page { align-items: stretch; }

.contact-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-card .contact-actions {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0;
}

.contact-card .primary-button { width: fit-content; }

.mobile-nav-group {
  display: grid;
  gap: 0.15rem;
  border-radius: 1rem;
  padding: 0.55rem;
  background: rgba(232, 225, 213, 0.34);
}

.mobile-nav-group > span {
  padding: 0.35rem 0.35rem 0.2rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-nav-group a { padding-left: 1rem; }

@media (max-width: 680px) {
  .summary-card .ghost-button,
  .contact-card .primary-button { width: 100%; }
}

.is-home {
  min-height: 100svh;
  overflow-x: hidden;
  background: #090706;
}

.is-home main { min-height: 100svh; margin: 0; padding: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.door-wall-section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #090706;
}

.home-scene {
  --scene-width: min(100vw, calc(100svh * 1.7768));
  --scene-height: min(100svh, calc(100vw / 1.7768));
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--scene-width);
  height: var(--scene-height);
  overflow: hidden;
  background: #120d09;
  box-shadow: 0 0 4rem rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
}

.home-scene::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 44%, rgba(0, 0, 0, 0.14) 74%, rgba(0, 0, 0, 0.46) 100%),
    linear-gradient(180deg, rgba(255, 244, 220, 0.06), transparent 18%, transparent 72%, rgba(0, 0, 0, 0.22));
}

.home-scene-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-door-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.wall-logo-frame-link {
  --wall-logo-frame-left: 3.95%;
  --wall-logo-frame-top: 27.95%;
  --wall-logo-frame-width: 11.13%;
  --wall-logo-frame-height: 26.25%;
  --wall-logo-frame-crop-x: 4.45%;
  --wall-logo-frame-crop-y: 38.03%;
  position: absolute;
  top: var(--wall-logo-frame-top);
  left: var(--wall-logo-frame-left);
  z-index: 3;
  display: block;
  width: var(--wall-logo-frame-width);
  height: var(--wall-logo-frame-height);
  color: #fff8e8;
  text-decoration: none;
  perspective: 1100px;
  -webkit-tap-highlight-color: transparent;
}

.wall-logo-frame-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 0.28rem;
  border-radius: 0.18rem;
}

.wall-logo-frame-card,
.wall-logo-frame-front,
.wall-logo-frame-back {
  position: absolute;
  inset: 0;
  display: block;
}

.wall-logo-frame-card {
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wall-logo-frame-front,
.wall-logo-frame-back {
  overflow: hidden;
  border-radius: 0.16rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 0.55rem 1.2rem rgba(33, 19, 8, 0.2);
}

.wall-logo-frame-front {
  background-image: url('/assets/home/scene/home-scene.png');
  background-repeat: no-repeat;
  background-position: var(--wall-logo-frame-crop-x) var(--wall-logo-frame-crop-y);
  background-size: calc(100% / 0.1113) calc(100% / 0.2625);
}

.wall-logo-frame-back {
  display: grid;
  place-items: center;
  padding: clamp(0.35rem, 0.9vw, 0.7rem);
  border: 0.18rem solid rgba(142, 104, 55, 0.78);
  background:
    linear-gradient(145deg, rgba(58, 37, 20, 0.94), rgba(154, 117, 61, 0.92)),
    radial-gradient(circle at 28% 18%, rgba(255, 235, 177, 0.42), transparent 42%);
  color: #fff7df;
  font-family: var(--serif);
  font-size: clamp(0.56rem, 1.02vw, 1.02rem);
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-shadow: 0 0.08rem 0.26rem rgba(0, 0, 0, 0.42);
  transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .wall-logo-frame-link:hover .wall-logo-frame-card,
  .wall-logo-frame-link:focus-visible .wall-logo-frame-card {
    transform: rotateY(180deg);
  }
}

.door-menu-item {
  position: absolute;
  top: var(--door-y);
  left: var(--door-x);
  width: var(--door-w);
  height: var(--door-h);
  perspective: 1700px;
  perspective-origin: 58% 47%;
  transform-style: preserve-3d;
  isolation: isolate;
}

/* Door calibration is expressed against the 1671 × 941 scene image.
   Keep these four percentages as the only alignment source of truth. */
.door-projet,
.door-connaissance,
.door-conseils {
  --door-motion-duration: 780ms;
  --door-open-duration: var(--door-motion-duration);
  --door-close-duration: var(--door-motion-duration);
  --door-open-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --door-close-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --door-glow-delay: 120ms;
}

.door-projet { --door-x: 23.58%; --door-y: 23.38%; --door-w: 14.24%; --door-h: 64.19%; }
.door-connaissance { --door-x: 44.99%; --door-y: 23.38%; --door-w: 14.18%; --door-h: 64.19%; }
.door-conseils { --door-x: 66.67%; --door-y: 23.38%; --door-w: 14.42%; --door-h: 64.19%; }

.door-menu-item.is-open,
.door-menu-item.is-closing { z-index: 5; }


.home-debug .door-menu-item {
  outline: 2px solid rgba(255, 0, 0, 0.95);
  background: rgba(255, 0, 0, 0.12);
}

.home-debug .door-menu-item::after {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  z-index: 7;
  content: attr(data-door-label);
  border-radius: 0.3rem;
  padding: 0.18rem 0.32rem;
  color: #fff;
  background: rgba(255, 0, 0, 0.82);
  font-size: clamp(0.62rem, 0.8vw, 0.78rem);
  font-weight: 800;
  pointer-events: none;
}

.home-debug .door-room {
  outline: 1px dashed rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 0, 0, 0.08);
}

.door-room {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 0.18rem 0.18rem 0.04rem 0.04rem;
  background:
    radial-gradient(ellipse 54% 36% at 50% 31%, rgba(255, 239, 202, 0.38), rgba(224, 169, 104, 0.2) 43%, transparent 72%),
    radial-gradient(ellipse 28% 42% at 50% 42%, rgba(255, 222, 160, 0.2), rgba(161, 101, 56, 0.11) 58%, transparent 78%),
    linear-gradient(90deg, rgba(30, 20, 15, 0.76) 0%, rgba(86, 55, 35, 0.32) 18%, rgba(161, 112, 69, 0.12) 50%, rgba(79, 50, 33, 0.34) 82%, rgba(24, 16, 12, 0.78) 100%),
    linear-gradient(180deg, #7f5a38 0%, #a77a4c 27%, #8a613c 54%, #563722 100%);
  box-shadow:
    inset 2.2rem 0 3.4rem rgba(22, 14, 10, 0.72),
    inset -2.2rem 0 3.4rem rgba(20, 13, 10, 0.7),
    inset 0 0 0 1px rgba(238, 207, 151, 0.18),
    inset 0 2.4rem 3.6rem rgba(255, 237, 203, 0.18),
    inset 0 -3.6rem 3.9rem rgba(34, 22, 16, 0.52);
  opacity: 1;
  filter: blur(0.45px) saturate(1.08);
}

.door-room::before {
  position: absolute;
  inset: -8% -12% 20%;
  z-index: 0;
  content: "";
  background:
    radial-gradient(ellipse 21% 44% at 50% 35%, rgba(255, 244, 218, 0.3) 0 28%, rgba(238, 190, 126, 0.14) 44%, transparent 73%),
    radial-gradient(ellipse 44% 24% at 50% 46%, rgba(255, 228, 177, 0.16), transparent 72%),
    linear-gradient(90deg, rgba(24, 15, 11, 0.72) 0 10%, rgba(88, 58, 38, 0.22) 25%, transparent 43% 57%, rgba(74, 47, 31, 0.24) 75%, rgba(20, 13, 10, 0.72) 91% 100%),
    linear-gradient(180deg, rgba(255, 241, 211, 0.15), rgba(194, 137, 78, 0.08) 38%, rgba(60, 38, 25, 0.36) 86%),
    repeating-linear-gradient(90deg, transparent 0 18%, rgba(255, 230, 184, 0.045) 18.4% 18.9%, transparent 19.4% 37%);
  filter: blur(12px);
  opacity: 0.92;
  pointer-events: none;
}

.door-room::after {
  position: absolute;
  right: -12%;
  bottom: -4%;
  z-index: 0;
  left: -12%;
  height: 47%;
  content: "";
  background:
    radial-gradient(ellipse 58% 26% at 50% 3%, rgba(255, 230, 187, 0.24), transparent 72%),
    linear-gradient(90deg, rgba(18, 12, 9, 0.36), rgba(219, 163, 96, 0.2) 48%, rgba(18, 12, 9, 0.4)),
    repeating-linear-gradient(100deg, rgba(255, 235, 198, 0.07) 0 1px, transparent 1px 1.22rem),
    repeating-linear-gradient(82deg, transparent 0 1.9rem, rgba(255, 231, 186, 0.045) 1.9rem calc(1.9rem + 1px)),
    linear-gradient(180deg, rgba(176, 117, 67, 0.3), rgba(38, 25, 18, 0.68));
  filter: blur(2.8px);
  transform: perspective(14rem) rotateX(65deg) scaleX(1.24);
  transform-origin: bottom;
}

.wood-door {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  overflow: visible;
  color: rgba(255, 248, 230, 0.92);
  background: transparent;
  cursor: pointer;
  backface-visibility: hidden;
  transform: perspective(1700px) rotateY(0deg) translateX(0) translateZ(0.1px) scaleX(1);
  transform-style: preserve-3d;
  transform-origin: right center;
  transition:
    transform var(--door-motion-duration) var(--door-close-easing),
    filter var(--door-motion-duration) ease,
    box-shadow var(--door-motion-duration) ease;
  will-change: transform;
}

.wood-door::after {
  position: absolute;
  top: 0.5%;
  right: -0.42rem;
  bottom: 0.5%;
  width: 0.58rem;
  content: "";
  background: linear-gradient(90deg, rgba(16, 9, 5, 0.92), rgba(86, 49, 24, 0.72), rgba(18, 10, 6, 0.88));
  box-shadow: -0.15rem 0 0.55rem rgba(0, 0, 0, 0.36), 0.18rem 0 0.9rem rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: rotateY(90deg);
  transform-origin: left center;
  transition: opacity 320ms ease;
}

.wood-door-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: drop-shadow(0 1.1rem 1.25rem rgba(0, 0, 0, 0.28));
}

.door-menu-item.is-open .wood-door {
  filter: brightness(0.9) saturate(1.03);
  transform: perspective(1700px) rotateY(112deg) translateX(6%) translateZ(0.58rem) scaleX(0.985);
  box-shadow: -1.1rem 0.8rem 2rem rgba(0, 0, 0, 0.28);
  transition-timing-function: var(--door-open-easing), ease, ease;
}

.door-menu-item.is-open .wood-door::after { opacity: 0.78; }

.door-menu-item::before {
  position: absolute;
  inset: 4% 13% 9% 5%;
  z-index: 1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse at 52% 35%, rgba(255, 238, 196, 0.48), rgba(255, 206, 129, 0.18) 36%, transparent 72%);
  filter: blur(12px);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 520ms ease var(--door-glow-delay), transform var(--door-close-duration) var(--door-close-easing);
  pointer-events: none;
}

.door-menu-item.is-open::before,
.door-menu-item:focus-within::before {
  transition-duration: 520ms, var(--door-open-duration);
  transition-timing-function: ease, var(--door-open-easing);
  opacity: 0.72;
  transform: scale(1);
}

.wood-door:focus-visible {
  outline: 2px solid rgba(235, 196, 129, 0.9);
  outline-offset: 0.18rem;
  box-shadow: 0 0 0 0.28rem rgba(120, 22, 22, 0.16), -1.1rem 0.8rem 2rem rgba(0, 0, 0, 0.28);
}

.door-sheen,
.door-edge,
.door-title { pointer-events: none; }

.door-sheen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.08), rgba(255,255,255,0.08) 12%, transparent 35%, rgba(0,0,0,0.28) 82%),
    radial-gradient(ellipse at 78% 18%, rgba(255, 231, 177, 0.11), transparent 36%);
  mix-blend-mode: soft-light;
}

.door-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7%;
  right: 0;
  background: linear-gradient(90deg, rgba(18, 10, 5, 0.82), rgba(255, 218, 156, 0.15), rgba(10, 6, 4, 0.92));
  box-shadow: -0.2rem 0 0.9rem rgba(0, 0, 0, 0.38), 0.18rem 0 0.8rem rgba(0, 0, 0, 0.36);
}

.wood-door .door-title { display: none; }

.door-plates {
  --door-plate-border: rgba(218, 190, 132, 0.56);
  --door-plate-border-hover: rgba(255, 0, 0, 0.58);
  position: absolute;
  inset: 21% auto 8% 7%;
  z-index: 1;
  display: grid;
  align-content: start;
  width: 86%;
  gap: clamp(0.34rem, 0.54vw, 0.5rem);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(0.65rem) translateZ(-0.1rem) scale(0.975);
  transition:
    opacity 320ms ease,
    visibility 0s linear 320ms,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1) 60ms;
}

.door-menu-item.is-open .door-plates {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 320ms ease 180ms,
    visibility 0s linear 0s,
    transform 520ms cubic-bezier(0.2, 0.72, 0.16, 1) 150ms;
}

.door-menu-item.is-closing .door-plates {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.65rem) translateZ(-0.1rem) scale(0.975);
  transition:
    opacity 320ms ease,
    visibility 0s linear 320ms,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1) 60ms;
}

.door-menu-heading {
  min-height: 2.06em;
  margin-bottom: clamp(0.24rem, 0.55vw, 0.52rem);
  padding: 0.02rem 0.04rem;
  color: #e7d2a6;
  font-family: Georgia, "Times New Roman", serif;
  max-width: 100%;
  font-size: clamp(0.84rem, 1.04vw, 1.12rem);
  font-weight: 760;
  line-height: 1.02;
  text-align: left;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.18px rgba(88, 52, 20, 0.48);
  text-shadow:
    0 0.1rem 0.28rem rgba(31, 19, 12, 0.58),
    0 0 0.72rem rgba(232, 196, 130, 0.24);
}

.door-plate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 1.88rem;
  border: 1px solid var(--door-plate-border);
  border-radius: 0.18rem;
  padding: 0.45rem 0.72rem;
  color: #f5e8cf;
  background:
    linear-gradient(145deg, rgba(94, 61, 35, 0.82), rgba(58, 39, 27, 0.9) 48%, rgba(29, 22, 18, 0.92)),
    repeating-linear-gradient(95deg, rgba(255, 238, 203, 0.045) 0 1px, transparent 1px 0.72rem),
    linear-gradient(90deg, rgba(255, 232, 184, 0.11), transparent 34% 72%, rgba(0, 0, 0, 0.16));
  box-shadow: 0 0.52rem 1.08rem rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 235, 193, 0.2), inset 0 -1px 0 rgba(18, 12, 8, 0.5), inset 0 0 0 1px rgba(255,255,255,0.025);
  font-size: clamp(0.66rem, 0.68vw, 0.78rem);
  white-space: nowrap;
  font-weight: 780;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(6px);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.door-plate:hover,
.door-plate:focus-visible {
  border-color: var(--door-plate-border-hover);
  color: #fff4dc;
  background: linear-gradient(145deg, rgba(112, 72, 39, 0.95), rgba(47, 30, 20, 0.94) 58%, rgba(25, 18, 14, 0.94));
  box-shadow: 0 0.64rem 1.42rem rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 0, 0, 0.24), 0 0 0.8rem rgba(255, 0, 0, 0.09), inset 0 1px 0 rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

.door-plate:focus-visible { outline: 2px solid rgba(255, 0, 0, 0.5); outline-offset: 0.13rem; }
.plate-arrow { color: #e7d2a6; font-weight: 950; text-shadow: 0 0 0.32rem rgba(232, 196, 130, 0.16); transition: color 220ms ease, text-shadow 220ms ease; }
.door-plate:hover .plate-arrow,
.door-plate:focus-visible .plate-arrow { color: #ff3030; text-shadow: 0 0 0.34rem rgba(255, 0, 0, 0.2); }

.door-wall-hint {
  position: absolute;
  right: 50%;
  bottom: clamp(0.75rem, 2.6vh, 1.5rem);
  z-index: 6;
  margin: 0;
  border: 1px solid rgba(255, 246, 226, 0.22);
  border-radius: 999px;
  padding: 0.52rem 0.9rem;
  color: rgba(255, 248, 232, 0.86);
  background: rgba(24, 18, 13, 0.34);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.18);
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(8px);
  transform: translateX(50%);
  transition: opacity 700ms ease, transform 700ms ease, padding 700ms ease;
}

.door-wall-hint.is-muted {
  opacity: 0.56;
  transform: translateX(50%) scale(0.96);
}

.door-wall-hint.is-interacted {
  opacity: 0.38;
  transform: translateX(50%) scale(0.94);
}

@media (max-width: 1050px) {
  .door-plates { inset: 20% auto 8% 7%; width: 84%; }
  .door-plate { min-height: 1.7rem; padding: 0.36rem 0.48rem; }
  .door-menu-heading { font-size: clamp(0.72rem, 1.15vw, 0.92rem); }
}


@media (max-width: 760px) {
  .home-scene {
    --scene-width: max(100vw, calc(100svh * 1.7768));
    --scene-height: 100svh;
  }


  .wall-logo-frame-link {
    pointer-events: auto;
  }

  .wall-logo-frame-card {
    transition: none;
  }

  .door-plates { inset: 16% auto 7% 8%; width: 76%; gap: 0.3rem; }
  .door-menu-heading { font-size: 0.8rem; max-width: 100%; margin-bottom: 0.16rem; }
  .door-plate {
    min-height: 1.72rem;
    padding: 0.34rem 0.44rem;
    font-size: 0.66rem;
    line-height: 1.05;
    white-space: normal;
  }

  .door-menu-item.is-open .wood-door { transform: perspective(1700px) rotateY(102deg) translateX(4%) translateZ(0.35rem) scaleX(0.99); }

  .door-wall-hint {
    right: 1rem;
    left: 1rem;
    bottom: max(0.8rem, env(safe-area-inset-bottom));
    transform: none;
  }

  .door-wall-hint.is-muted,
  .door-wall-hint.is-interacted {
    transform: scale(0.96);
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  body:has(.door-wall-section),
  body:has(.home-scene) {
    overflow-x: hidden;
  }

  .door-wall-section {
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    background:
      radial-gradient(circle at 50% 10%, rgba(118, 70, 32, 0.3), transparent 38%),
      linear-gradient(180deg, #130d09 0%, #090706 58%, #050403 100%);
  }

  .home-scene {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: 100svh;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    background:
      linear-gradient(180deg, rgba(31, 20, 13, 0.72), rgba(8, 6, 5, 0.86)),
      #120d09;
    transform: none;
  }

  .home-scene::after {
    position: fixed;
    background:
      radial-gradient(circle at 50% 18%, rgba(255, 235, 192, 0.1), transparent 28%),
      radial-gradient(circle at 50% 55%, transparent 0 38%, rgba(0, 0, 0, 0.42) 100%),
      linear-gradient(180deg, rgba(255, 244, 220, 0.05), transparent 24%, rgba(0, 0, 0, 0.28));
  }

  .home-scene-image {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: blur(1px) saturate(0.92) brightness(0.72);
    transform: scale(1.08);
  }

  .home-door-layer {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(0.72rem, 2.2svh, 1.1rem);
    width: 100%;
    min-height: 100svh;
    height: auto;
    padding: max(1rem, env(safe-area-inset-top)) 1rem calc(4.5rem + env(safe-area-inset-bottom));
  }

  .door-menu-item {
    position: relative;
    top: auto;
    left: auto;
    width: clamp(5.7rem, 28vw, 7.4rem);
    height: clamp(14.2rem, 30svh, 18.8rem);
    flex: 0 0 auto;
    perspective: 1500px;
    transform: none;
    transition: margin-bottom 520ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .door-menu-item.is-open {
    margin-bottom: clamp(10.5rem, 26svh, 14.5rem);
  }

  .door-menu-item.is-closing {
    margin-bottom: 0;
  }

  .door-plates {
    top: calc(100% + 0.55rem);
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(82vw, 20rem);
    max-width: calc(100vw - 2rem);
    gap: 0.38rem;
    border: 1px solid rgba(218, 190, 132, 0.2);
    border-radius: 0.45rem;
    padding: 0.64rem;
    background: rgba(24, 17, 12, 0.86);
    box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 235, 193, 0.08);
    backdrop-filter: blur(10px);
    transform: translate(-50%, 0.65rem) translateZ(-0.1rem) scale(0.975);
  }

  .door-menu-item.is-open .door-plates {
    transform: translate(-50%, 0) scale(1);
  }

  .door-menu-item.is-closing .door-plates {
    transform: translate(-50%, 0.65rem) translateZ(-0.1rem) scale(0.975);
  }

  .door-menu-heading {
    min-height: auto;
    margin-bottom: 0.28rem;
    font-size: clamp(0.86rem, 3.6vw, 1rem);
    line-height: 1.08;
    text-align: center;
  }

  .door-plate {
    min-height: 2.25rem;
    padding: 0.52rem 0.7rem;
    font-size: clamp(0.76rem, 3.35vw, 0.9rem);
    line-height: 1.12;
    white-space: normal;
  }

  .door-menu-item.is-open .wood-door {
    transform: perspective(1500px) rotateY(96deg) translateX(3%) translateZ(0.32rem) scaleX(0.99);
  }

  .wall-logo-frame-link {
    top: 0.75rem;
    left: 0.75rem;
    width: 3.2rem;
    height: 3.2rem;
  }

  .door-wall-hint {
    position: fixed;
  }
}

.mobile-elevator-scene { display: none; }

@media (max-width: 600px) and (orientation: portrait) {
  .home-door-layer { display: none; }

  .mobile-elevator-scene {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(5.15rem, 24vw, 6.4rem);
    gap: clamp(0.55rem, 2.7vw, 0.9rem);
    align-items: center;
    width: min(100%, 28rem);
    min-height: 100svh;
    margin: 0 auto;
    padding: max(1.15rem, env(safe-area-inset-top)) 0.8rem calc(4.25rem + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .elevator-cabin {
    position: relative;
    min-width: 0;
    height: min(72svh, 34rem);
    min-height: 28rem;
    overflow: hidden;
    border: 1px solid rgba(238, 205, 151, 0.44);
    border-radius: 1.15rem 1.15rem 0.48rem 0.48rem;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(255, 245, 215, 0.32), transparent 34%),
      linear-gradient(90deg, rgba(32, 20, 13, 0.92), rgba(119, 82, 49, 0.7) 15%, rgba(225, 195, 139, 0.28) 50%, rgba(96, 61, 37, 0.78) 85%, rgba(25, 16, 11, 0.94)),
      repeating-linear-gradient(90deg, rgba(255, 245, 221, 0.06) 0 1px, transparent 1px 0.58rem);
    box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 250, 230, 0.14), inset 0 2rem 4rem rgba(255, 233, 189, 0.12);
  }

  .elevator-header {
    position: absolute;
    top: 0.68rem;
    left: 50%;
    z-index: 4;
    border: 1px solid rgba(244, 216, 164, 0.5);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    color: #fff3d4;
    background: rgba(42, 28, 19, 0.68);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0.5rem 1.2rem rgba(0,0,0,0.22);
    font-family: var(--serif);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transform: translateX(-50%);
  }

  .elevator-doors,
  .elevator-doors::before,
  .elevator-doors::after {
    position: absolute;
    content: "";
    display: block;
  }

  .elevator-doors {
    inset: 3.4rem 0.64rem 0.7rem;
    overflow: hidden;
    border: 1px solid rgba(255, 232, 181, 0.35);
    border-radius: 0.42rem 0.42rem 0.22rem 0.22rem;
    background:
      radial-gradient(ellipse at 50% 22%, rgba(255, 241, 206, 0.36), rgba(170, 111, 62, 0.16) 39%, rgba(31, 20, 15, 0.82) 78%),
      linear-gradient(180deg, #3c281b 0%, #8b6039 48%, #2a1b13 100%);
    box-shadow: inset 0 0 4rem rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255,255,255,0.08);
  }

  .elevator-doors::before,
  .elevator-doors::after {
    top: 0;
    bottom: 0;
    z-index: 3;
    width: 50.4%;
    background:
      linear-gradient(90deg, rgba(255, 246, 221, 0.22), transparent 18% 74%, rgba(45, 27, 17, 0.35)),
      repeating-linear-gradient(100deg, rgba(255,255,255,0.075) 0 1px, transparent 1px 0.68rem),
      linear-gradient(180deg, #d7b978 0%, #9f7140 44%, #4a2e1e 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1.4rem 2rem rgba(30, 18, 12, 0.36), 0 0 1.4rem rgba(0,0,0,0.3);
    transition: transform 740ms cubic-bezier(0.2, 0.82, 0.18, 1), opacity 740ms ease;
    will-change: transform, opacity;
  }

  .elevator-doors::before { left: 0; border-right: 1px solid rgba(55, 34, 22, 0.72); }
  .elevator-doors::after { right: 0; border-left: 1px solid rgba(255, 239, 201, 0.16); transform: scaleX(-1); }

  .mobile-elevator-scene:has(.elevator-menu-item.is-open) .elevator-doors::before { transform: translateX(-88%); opacity: 0.98; }
  .mobile-elevator-scene:has(.elevator-menu-item.is-open) .elevator-doors::after { transform: translateX(88%) scaleX(-1); opacity: 0.98; }

  .elevator-menu {
    position: relative;
    z-index: 5;
    display: grid;
    gap: 0.62rem;
    align-self: center;
    min-width: 0;
    border: 1px solid rgba(236, 204, 150, 0.42);
    border-radius: 999px;
    padding: 0.62rem 0.48rem;
    background: linear-gradient(180deg, rgba(64, 42, 28, 0.92), rgba(24, 16, 12, 0.95));
    box-shadow: 0 1rem 2.4rem rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.14);
  }

  .elevator-menu-item,
  .door-projet.elevator-menu-item,
  .door-connaissance.elevator-menu-item,
  .door-conseils.elevator-menu-item {
    position: static;
    width: auto;
    height: auto;
    perspective: none;
    isolation: auto;
    transform: none;
  }

  .elevator-button.wood-door {
    position: relative;
    inset: auto;
    display: grid;
    place-items: center;
    gap: 0.16rem;
    width: 100%;
    min-height: 4.25rem;
    border: 1px solid rgba(244, 215, 162, 0.48);
    border-radius: 999px;
    padding: 0.42rem 0.34rem;
    color: #fff1d1;
    background: radial-gradient(circle at 50% 18%, rgba(255, 238, 191, 0.22), transparent 42%), linear-gradient(180deg, #7a5432, #2d1d14 68%, #17100c);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -0.42rem 0.8rem rgba(0,0,0,0.28), 0 0.38rem 0.9rem rgba(0,0,0,0.24);
    transform: none;
    transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease, transform 220ms ease;
  }

  .elevator-button.wood-door::after { display: none; }
  .elevator-menu-item.is-open .elevator-button.wood-door {
    color: #2d1a0e;
    background: radial-gradient(circle at 50% 16%, #fff8df, #e6bf6f 45%, #9d6935 100%);
    box-shadow: 0 0 0 2px rgba(255, 246, 221, 0.22), 0 0 1.4rem rgba(240, 196, 112, 0.48), inset 0 1px 0 rgba(255,255,255,0.58);
    transform: translateY(-1px);
  }

  .elevator-button-number { font-size: 1rem; font-weight: 900; line-height: 1; }
  .elevator-button-label { max-width: 4.6rem; font-size: 0.58rem; font-weight: 850; line-height: 1.05; text-align: center; }

  .elevator-submenu.door-plates {
    position: absolute;
    inset: 39% calc(clamp(5.15rem, 24vw, 6.4rem) + 1.35rem) auto 1.55rem;
    z-index: 6;
    width: auto;
    max-width: none;
    max-height: 44svh;
    overflow-y: auto;
    gap: 0.42rem;
    border-radius: 0.62rem;
    padding: 0.7rem;
    background: rgba(26, 17, 12, 0.82);
    box-shadow: 0 1rem 2.2rem rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    transform: translateY(0.8rem) scale(0.97);
  }

  .elevator-menu-item.is-open .elevator-submenu.door-plates {
    transform: translateY(0) scale(1);
  }

  .elevator-submenu .door-menu-heading { font-size: clamp(0.9rem, 4vw, 1.08rem); text-align: center; }
  .elevator-submenu .door-plate { min-height: 2.35rem; font-size: clamp(0.76rem, 3.35vw, 0.9rem); white-space: normal; }
}

@media (max-width: 768px) {
  body:has(.door-wall-section),
  body:has(.home-scene) {
    overflow-x: hidden;
  }

  .door-wall-section {
    min-height: 100svh;
    overflow: hidden;
    background: #090604;
  }

  .home-scene {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 8%, rgba(255, 226, 169, 0.16), transparent 24%),
      linear-gradient(180deg, #21150e 0%, #0d0806 58%, #050302 100%);
    transform: none;
  }

  .home-scene-image,
  .home-door-layer,
  .door-wall-hint {
    display: none;
  }

  .home-scene::after {
    position: absolute;
    background:
      radial-gradient(ellipse at 52% 26%, transparent 0 36%, rgba(0, 0, 0, 0.22) 68%, rgba(0, 0, 0, 0.58) 100%),
      linear-gradient(180deg, rgba(255, 246, 218, 0.08), transparent 28%, rgba(0, 0, 0, 0.34));
  }

  .mobile-elevator-scene {
    --panel-width: clamp(4.8rem, 22vw, 5.9rem);
    --scene-gap: clamp(0.34rem, 1.6vw, 0.68rem);
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--panel-width);
    gap: var(--scene-gap);
    align-items: center;
    width: min(100vw, 30rem);
    height: 100svh;
    min-height: 36rem;
    margin: 0 auto;
    padding: max(0.7rem, env(safe-area-inset-top)) clamp(0.42rem, 2vw, 0.72rem) max(0.8rem, env(safe-area-inset-bottom));
    overflow: hidden;
    perspective: 900px;
  }

  .elevator-cabin {
    position: relative;
    min-width: 0;
    height: min(88svh, 43rem);
    min-height: 31.5rem;
    overflow: hidden;
    border: 1px solid rgba(242, 209, 154, 0.5);
    border-radius: 1.25rem 1.25rem 0.55rem 0.55rem;
    background:
      linear-gradient(104deg, rgba(34, 21, 14, 0.96) 0 11%, transparent 26%),
      linear-gradient(76deg, transparent 64%, rgba(67, 39, 24, 0.98) 86%, rgba(21, 13, 9, 1) 100%),
      radial-gradient(ellipse at 50% 3%, rgba(255, 239, 196, 0.38), transparent 28%),
      linear-gradient(90deg, #1b110c 0%, #8c623c 18%, #d4b37a 50%, #7b4f31 82%, #170f0b 100%);
    box-shadow:
      0 1.8rem 3.5rem rgba(0, 0, 0, 0.42),
      inset 0 0 0 1px rgba(255, 250, 230, 0.13),
      inset 0 0 4rem rgba(255, 227, 178, 0.09);
    transform: rotateY(-2deg);
    transform-origin: right center;
  }

  .elevator-cabin::before,
  .elevator-cabin::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    pointer-events: none;
  }

  .elevator-cabin::before {
    clip-path: polygon(0 0, 17% 8%, 17% 91%, 0 100%);
    background: linear-gradient(90deg, rgba(28, 17, 11, 0.95), rgba(137, 92, 52, 0.5));
    box-shadow: inset -1rem 0 2rem rgba(255, 219, 159, 0.08);
  }

  .elevator-cabin::after {
    clip-path: polygon(83% 8%, 100% 0, 100% 100%, 83% 91%);
    background: linear-gradient(90deg, rgba(162, 111, 64, 0.28), rgba(24, 15, 10, 0.95));
    box-shadow: inset 1rem 0 2rem rgba(0, 0, 0, 0.22);
  }

  .elevator-ceiling,
  .elevator-floor {
    position: absolute;
    left: 17%;
    right: 17%;
    z-index: 2;
    pointer-events: none;
  }

  .elevator-ceiling {
    top: 0;
    height: 13%;
    clip-path: polygon(0 0, 100% 0, 91% 100%, 9% 100%);
    background: radial-gradient(ellipse at 50% 35%, rgba(255, 245, 210, 0.72), rgba(199, 148, 77, 0.18) 42%, rgba(42, 25, 16, 0.74) 100%);
  }

  .elevator-floor {
    bottom: 0;
    height: 11%;
    clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, rgba(88, 54, 33, 0.56), rgba(20, 12, 8, 0.98));
  }

  .elevator-header {
    position: absolute;
    top: 1.02rem;
    left: 50%;
    z-index: 7;
    width: max-content;
    border: 1px solid rgba(244, 216, 164, 0.5);
    border-radius: 999px;
    padding: 0.24rem 0.76rem;
    color: #fff3d4;
    background: rgba(44, 29, 19, 0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0.5rem 1.2rem rgba(0,0,0,0.22);
    font-family: var(--serif);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transform: translateX(-50%);
  }

  .elevator-reveal-space,
  .elevator-doors {
    position: absolute;
    top: 14%;
    right: 17%;
    bottom: 10%;
    left: 17%;
    border-radius: 0.44rem 0.44rem 0.18rem 0.18rem;
  }

  .elevator-reveal-space {
    z-index: 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(244, 216, 164, 0.22);
    background:
      radial-gradient(ellipse at 50% 38%, rgba(105, 65, 37, 0.88), rgba(22, 13, 9, 0.97) 72%),
      linear-gradient(180deg, #3a2417, #120b08);
    box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.5);
  }

  .elevator-doors {
    z-index: 5;
    overflow: hidden;
    border: 1px solid rgba(255, 232, 181, 0.38);
    background: linear-gradient(180deg, rgba(44, 27, 17, 0.62), rgba(15, 9, 6, 0.52));
    box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.32), 0 0 0 0.36rem rgba(47, 30, 19, 0.42);
  }

  .elevator-doors::before,
  .elevator-doors::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 6;
    display: block;
    width: 50.5%;
    content: "";
    background:
      linear-gradient(90deg, rgba(255, 249, 229, 0.24), transparent 20% 74%, rgba(45, 27, 17, 0.36)),
      repeating-linear-gradient(100deg, rgba(255,255,255,0.075) 0 1px, transparent 1px 0.68rem),
      linear-gradient(180deg, #ead09a 0%, #b9854d 46%, #4d301f 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1.4rem 2rem rgba(30,18,12,0.36), 0 0 1.4rem rgba(0,0,0,0.3);
    transition: transform 760ms cubic-bezier(0.2, 0.82, 0.18, 1);
    will-change: transform;
  }

  .elevator-doors::before { left: 0; border-right: 1px solid rgba(55, 34, 22, 0.82); }
  .elevator-doors::after { right: 0; border-left: 1px solid rgba(255, 239, 201, 0.2); transform: scaleX(-1); }

  .mobile-elevator-scene:has(.elevator-menu-item.is-open) .elevator-doors::before { transform: translateX(-91%); }
  .mobile-elevator-scene:has(.elevator-menu-item.is-open) .elevator-doors::after { transform: translateX(91%) scaleX(-1); }

  .elevator-menu {
    position: relative;
    z-index: 8;
    align-self: center;
    display: grid;
    gap: 0.48rem;
    min-width: 0;
    border: 1px solid rgba(236, 204, 150, 0.44);
    border-radius: 1.8rem;
    padding: 0.52rem 0.38rem;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.08), transparent 22% 78%, rgba(0,0,0,0.24)),
      linear-gradient(180deg, rgba(87, 58, 37, 0.96), rgba(24, 16, 12, 0.98));
    box-shadow: 0 1rem 2.2rem rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.14);
    transform: rotateY(-10deg) translateX(-0.08rem);
    transform-origin: left center;
  }

  .elevator-menu::before {
    display: block;
    color: rgba(255, 241, 205, 0.78);
    content: "ÉTAGES";
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-align: center;
  }

  .elevator-menu-item,
  .door-projet.elevator-menu-item,
  .door-connaissance.elevator-menu-item,
  .door-conseils.elevator-menu-item {
    position: static;
    width: auto;
    height: auto;
    perspective: none;
    transform: none;
  }

  .elevator-button.wood-door {
    position: relative;
    inset: auto;
    display: grid;
    place-items: center;
    gap: 0.1rem;
    width: 100%;
    min-height: clamp(3.18rem, 11.5svh, 4rem);
    border: 1px solid rgba(244, 215, 162, 0.52);
    border-radius: 999px;
    padding: 0.32rem 0.24rem;
    color: #fff1d1;
    background: radial-gradient(circle at 50% 18%, rgba(255, 238, 191, 0.2), transparent 42%), linear-gradient(180deg, #785232, #2c1c13 68%, #150e0a);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -0.42rem 0.78rem rgba(0,0,0,0.3), 0 0.34rem 0.82rem rgba(0,0,0,0.24);
    transform: none;
    transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease, transform 220ms ease;
  }

  .elevator-button.wood-door::after { display: none; }

  .elevator-button-light {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: rgba(59, 38, 25, 0.85);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.42);
  }

  .elevator-menu-item.is-open .elevator-button.wood-door {
    color: #2d1a0e;
    background: radial-gradient(circle at 50% 16%, #fff8df, #e6bf6f 45%, #9d6935 100%);
    box-shadow: 0 0 0 2px rgba(255, 246, 221, 0.22), 0 0 1.25rem rgba(240, 196, 112, 0.5), inset 0 1px 0 rgba(255,255,255,0.58);
    transform: translateY(-1px);
  }

  .elevator-menu-item.is-open .elevator-button-light {
    background: #fff6d8;
    box-shadow: 0 0 0.7rem rgba(255, 228, 153, 0.92), inset 0 1px 0 rgba(255,255,255,0.8);
  }

  .elevator-button-number { font-size: 0.88rem; font-weight: 900; line-height: 1; }
  .elevator-button-label { max-width: 4.35rem; font-size: clamp(0.52rem, 2.35vw, 0.64rem); font-weight: 850; line-height: 1.04; text-align: center; }

  .elevator-submenu.door-plates {
    position: absolute;
    inset: auto;
    z-index: 4;
    display: grid;
    width: min(88%, 14.2rem);
    max-width: calc(100% - 1.1rem);
    max-height: calc(100% - 1.2rem);
    overflow-y: auto;
    gap: 0.42rem;
    border: 1px solid rgba(238, 205, 151, 0.26);
    border-radius: 0.68rem;
    padding: 0.68rem;
    background: rgba(24, 16, 11, 0.74);
    box-shadow: 0 1rem 2.1rem rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.12);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(8px);
    transform: translateY(0.55rem) scale(0.98);
    transition: opacity 280ms ease 180ms, transform 420ms cubic-bezier(0.22, 1, 0.36, 1) 160ms;
  }

  .elevator-submenu.door-plates[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .elevator-submenu .door-menu-heading {
    min-height: auto;
    margin-bottom: 0.1rem;
    font-size: clamp(0.9rem, 4vw, 1.08rem);
    line-height: 1.05;
    text-align: center;
  }

  .elevator-submenu .door-plate {
    min-height: 2.3rem;
    padding: 0.5rem 0.62rem;
    font-size: clamp(0.74rem, 3.25vw, 0.88rem);
    line-height: 1.1;
    white-space: normal;
  }
}

@media (max-width: 374px) {
  .mobile-elevator-scene {
    --panel-width: 4.55rem;
    min-height: 34rem;
  }

  .elevator-cabin {
    min-height: 30rem;
  }

  .elevator-button.wood-door {
    min-height: 3.05rem;
  }
}

@media (max-width: 768px) {
  body:has(.door-wall-section),
  body:has(.home-scene) {
    width: 100vw;
    min-height: 100dvh;
    overflow-x: hidden;
    background: #0a0604;
  }

  .door-wall-section {
    width: 100vw;
    min-height: 100dvh;
    margin: 0;
    overflow: hidden;
    background: #0a0604;
  }

  .home-scene {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 50% 2%, rgba(255, 235, 184, 0.22), transparent 24%),
      linear-gradient(90deg, #080403 0%, #2b1a10 13%, #7c5734 31%, #c7a66d 50%, #704629 72%, #1b100b 88%, #070403 100%);
    box-shadow: none;
  }

  .home-scene::after {
    inset: 0;
    z-index: 9;
    background:
      radial-gradient(ellipse at 50% 28%, transparent 0 44%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0.54) 100%),
      linear-gradient(180deg, rgba(255, 248, 226, 0.12), transparent 22%, transparent 72%, rgba(0, 0, 0, 0.38));
  }

  .wall-logo-frame-link,
  .home-scene-image,
  .home-door-layer,
  .door-wall-hint {
    display: none !important;
  }

  .mobile-elevator-scene {
    --panel-width: clamp(4.9rem, 21vw, 6.15rem);
    --right-wall: clamp(5.9rem, 25vw, 7.25rem);
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    perspective: 1100px;
    background:
      linear-gradient(101deg, rgba(18, 10, 6, 0.94) 0 12%, rgba(99, 67, 39, 0.36) 26%, transparent 41%),
      linear-gradient(79deg, transparent 56%, rgba(126, 82, 46, 0.26) 70%, rgba(23, 13, 8, 0.96) 100%);
  }

  .elevator-cabin {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(104deg, rgba(9, 5, 3, 0.98) 0 9%, rgba(60, 37, 21, 0.84) 19%, transparent 33%),
      linear-gradient(76deg, transparent 57%, rgba(112, 72, 41, 0.58) 72%, rgba(15, 9, 6, 1) 100%),
      radial-gradient(ellipse at 50% 0%, rgba(255, 242, 205, 0.42), transparent 29%),
      repeating-linear-gradient(90deg, rgba(255, 243, 214, 0.035) 0 1px, transparent 1px 0.74rem),
      linear-gradient(90deg, #120a07 0%, #7f5633 19%, #d2b272 50%, #6f4328 77%, #110906 100%);
    box-shadow: inset 0 2rem 4rem rgba(255, 231, 179, 0.13), inset 0 -5rem 5.8rem rgba(0, 0, 0, 0.5);
    transform: none;
  }

  .elevator-cabin::before {
    clip-path: polygon(0 0, 18% 9%, 18% 90%, 0 100%);
    background: linear-gradient(90deg, rgba(8, 4, 3, 0.98), rgba(122, 81, 45, 0.46) 78%, transparent);
    box-shadow: inset -1rem 0 2.4rem rgba(255, 222, 161, 0.08);
  }

  .elevator-cabin::after {
    clip-path: polygon(73% 8%, 100% 0, 100% 100%, 73% 92%);
    background:
      linear-gradient(90deg, transparent, rgba(167, 113, 62, 0.25) 19%, rgba(12, 7, 5, 0.98) 78%),
      repeating-linear-gradient(180deg, transparent 0 3.4rem, rgba(255, 231, 182, 0.035) 3.4rem calc(3.4rem + 1px));
    box-shadow: inset 1.2rem 0 2.8rem rgba(0, 0, 0, 0.34);
  }

  .elevator-ceiling {
    left: 18%;
    right: var(--right-wall);
    height: 14%;
    clip-path: polygon(0 0, 100% 0, 89% 100%, 10% 100%);
    background: radial-gradient(ellipse at 50% 32%, rgba(255, 248, 218, 0.76), rgba(216, 162, 83, 0.2) 45%, rgba(32, 19, 12, 0.76) 100%);
  }

  .elevator-floor {
    left: 18%;
    right: var(--right-wall);
    height: 13%;
    clip-path: polygon(10% 0, 89% 0, 100% 100%, 0 100%);
    background:
      radial-gradient(ellipse at 50% 4%, rgba(255, 219, 156, 0.24), transparent 58%),
      linear-gradient(180deg, rgba(100, 62, 36, 0.58), rgba(9, 5, 3, 0.98));
  }

  .elevator-header {
    top: max(0.85rem, env(safe-area-inset-top));
    left: calc((100vw - var(--right-wall)) / 2);
    z-index: 7;
    border-color: rgba(238, 205, 151, 0.28);
    background: rgba(38, 24, 15, 0.52);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0.45rem 1rem rgba(0,0,0,0.16);
  }

  .elevator-reveal-space,
  .elevator-doors {
    top: clamp(5.1rem, 13dvh, 7.6rem);
    right: calc(var(--right-wall) + clamp(0.2rem, 1vw, 0.55rem));
    bottom: clamp(4.2rem, 11dvh, 6.5rem);
    left: clamp(2rem, 8vw, 3.35rem);
    border-radius: 0.28rem 0.28rem 0.1rem 0.1rem;
  }

  .elevator-reveal-space {
    z-index: 3;
    border: 0;
    background:
      radial-gradient(ellipse at 50% 36%, rgba(144, 91, 48, 0.78), rgba(31, 17, 10, 0.98) 72%),
      linear-gradient(180deg, #4a2c18, #100805);
    box-shadow: inset 0 0 4rem rgba(0, 0, 0, 0.56), inset 0 0 0 1px rgba(255, 237, 194, 0.12);
  }

  .elevator-doors {
    z-index: 5;
    border: 0;
    background: linear-gradient(180deg, rgba(65, 39, 22, 0.34), rgba(12, 7, 4, 0.44));
    box-shadow: inset 0 0 2.8rem rgba(0, 0, 0, 0.34);
  }

  .elevator-doors::before,
  .elevator-doors::after {
    background:
      linear-gradient(90deg, rgba(255, 250, 230, 0.23), transparent 18% 75%, rgba(46, 26, 15, 0.38)),
      repeating-linear-gradient(100deg, rgba(255,255,255,0.065) 0 1px, transparent 1px 0.78rem),
      linear-gradient(180deg, #ead09b 0%, #b9854d 47%, #4a2b1b 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1.6rem 2.2rem rgba(30,18,12,0.38), 0 0 1rem rgba(0,0,0,0.28);
  }

  .mobile-elevator-scene:has(.elevator-menu-item.is-open) .elevator-doors::before { transform: translateX(-96%); }
  .mobile-elevator-scene:has(.elevator-menu-item.is-open) .elevator-doors::after { transform: translateX(96%) scaleX(-1); }

  .elevator-menu {
    position: absolute;
    top: 50%;
    right: max(0.5rem, env(safe-area-inset-right));
    z-index: 8;
    width: var(--panel-width);
    max-width: calc(100vw - 1rem);
    display: grid;
    gap: clamp(0.38rem, 1.25dvh, 0.58rem);
    border: 1px solid rgba(238, 205, 151, 0.3);
    border-radius: 1.25rem;
    padding: 0.52rem 0.36rem;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.08), transparent 24% 78%, rgba(0,0,0,0.28)),
      linear-gradient(180deg, rgba(96, 63, 38, 0.78), rgba(24, 14, 9, 0.9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), inset 0 0 0 1px rgba(255, 239, 201, 0.05), 0 0.9rem 1.9rem rgba(0,0,0,0.24);
    transform: translateY(-50%) perspective(720px) rotateY(-8deg);
    transform-origin: right center;
  }

  .elevator-menu::before {
    color: rgba(255, 241, 205, 0.68);
    font-size: 0.46rem;
  }

  .elevator-button.wood-door {
    min-height: clamp(3.05rem, 10.2dvh, 3.95rem);
    border-color: rgba(244, 215, 162, 0.42);
    padding: 0.3rem 0.2rem;
    background: radial-gradient(circle at 50% 18%, rgba(255, 238, 191, 0.18), transparent 43%), linear-gradient(180deg, #715034, #2b1a10 68%, #120a07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -0.38rem 0.74rem rgba(0,0,0,0.31), 0 0.25rem 0.62rem rgba(0,0,0,0.18);
  }

  .elevator-button-label {
    max-width: 4.15rem;
    font-size: clamp(0.5rem, 2.25vw, 0.62rem);
  }

  .elevator-submenu.door-plates {
    width: min(86%, 15.4rem);
    max-width: calc(100% - 1rem);
    max-height: calc(100% - 1rem);
    border-color: rgba(238, 205, 151, 0.2);
    background: rgba(24, 15, 9, 0.78);
  }
}

@media (max-width: 374px) {
  .mobile-elevator-scene { --panel-width: 4.45rem; --right-wall: 5.35rem; }
  .elevator-reveal-space,
  .elevator-doors { left: 1.35rem; }
  .elevator-button.wood-door { min-height: 2.85rem; }
}

/* Mobile-only immersive elevator rebuild. Desktop door scene above remains untouched. */
@media (max-width: 768px) {
  html,
  body:has(.door-wall-section),
  body:has(.home-scene) {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    overflow-x: clip;
    background: #080504;
  }

  .door-wall-section {
    width: 100vw;
    min-height: 100dvh;
    margin: 0;
    overflow: hidden;
    background: #080504;
  }

  .home-scene {
    position: relative;
    inset: auto;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #080504;
    box-shadow: none;
    transform: none;
  }

  .wall-logo-frame-link,
  .home-scene-image,
  .home-door-layer,
  .door-wall-hint {
    display: none !important;
  }

  .home-scene::after {
    position: absolute;
    inset: 0;
    z-index: 20;
    content: "";
    pointer-events: none;
    background:
      radial-gradient(ellipse at 48% 18%, rgba(255, 244, 218, 0.13), transparent 28%),
      radial-gradient(ellipse at 48% 56%, transparent 0 45%, rgba(0, 0, 0, 0.24) 72%, rgba(0, 0, 0, 0.62) 100%),
      linear-gradient(180deg, rgba(255, 248, 226, 0.08), transparent 24%, transparent 70%, rgba(0, 0, 0, 0.42));
  }

  .mobile-elevator-scene {
    --right-wall: clamp(6.25rem, 26vw, 7.7rem);
    --panel-width: clamp(5.05rem, 21vw, 6.25rem);
    --left-wall: clamp(2rem, 8vw, 3.4rem);
    --door-top: clamp(5.3rem, 13dvh, 7.6rem);
    --door-bottom: clamp(4.2rem, 11dvh, 6.45rem);
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    perspective: 1200px;
    background:
      linear-gradient(104deg, #090504 0 8%, #2b190f 17%, rgba(109, 74, 43, 0.58) 31%, transparent 43%),
      linear-gradient(76deg, transparent 53%, rgba(140, 91, 48, 0.34) 68%, #1b0f09 86%, #070403 100%),
      linear-gradient(90deg, #0a0503 0%, #6e4829 20%, #d2b06e 49%, #775033 70%, #21130c 86%, #080403 100%);
  }

  .elevator-cabin {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(ellipse at 48% 0%, rgba(255, 245, 214, 0.5), rgba(201, 146, 71, 0.1) 25%, transparent 38%),
      repeating-linear-gradient(90deg, rgba(255, 247, 224, 0.04) 0 1px, transparent 1px 0.72rem),
      linear-gradient(104deg, rgba(8, 5, 3, 0.98) 0 9%, rgba(73, 45, 24, 0.9) 19%, rgba(164, 112, 60, 0.22) 33%, transparent 43%),
      linear-gradient(76deg, transparent 52%, rgba(142, 93, 51, 0.34) 64%, rgba(57, 34, 20, 0.95) 78%, #0b0604 100%),
      linear-gradient(90deg, #120a06 0%, #845a35 19%, #d8ba78 48%, #745035 70%, #1b100a 86%, #080403 100%);
    box-shadow:
      inset 0 2.2rem 4rem rgba(255, 232, 181, 0.13),
      inset 0 -5.5rem 6.2rem rgba(0, 0, 0, 0.56);
    transform: none;
  }

  .elevator-cabin::before,
  .elevator-cabin::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    pointer-events: none;
  }

  .elevator-cabin::before {
    clip-path: polygon(0 0, 19% 9%, 19% 90%, 0 100%);
    background:
      linear-gradient(90deg, rgba(7, 4, 3, 0.99), rgba(82, 50, 28, 0.84) 62%, rgba(179, 122, 63, 0.18) 100%),
      repeating-linear-gradient(180deg, rgba(255, 236, 190, 0.055) 0 1px, transparent 1px 4rem);
    box-shadow: inset -1.15rem 0 2.6rem rgba(255, 222, 162, 0.09);
  }

  .elevator-cabin::after {
    clip-path: polygon(calc(100% - var(--right-wall) - 0.55rem) 8%, 100% 0, 100% 100%, calc(100% - var(--right-wall) - 0.55rem) 92%);
    background:
      linear-gradient(90deg, rgba(188, 130, 70, 0.2), rgba(77, 47, 27, 0.84) 43%, rgba(10, 6, 4, 0.99) 100%),
      repeating-linear-gradient(180deg, transparent 0 3.5rem, rgba(255, 231, 184, 0.045) 3.5rem calc(3.5rem + 1px));
    box-shadow: inset 1.3rem 0 3rem rgba(0, 0, 0, 0.34);
  }

  .elevator-ceiling,
  .elevator-floor {
    position: absolute;
    left: 18.5%;
    right: var(--right-wall);
    z-index: 2;
    pointer-events: none;
  }

  .elevator-ceiling {
    top: 0;
    height: 14%;
    clip-path: polygon(0 0, 100% 0, 89% 100%, 10% 100%);
    background:
      radial-gradient(ellipse at 50% 33%, rgba(255, 250, 224, 0.82), rgba(226, 171, 87, 0.22) 45%, rgba(32, 19, 12, 0.76) 100%);
  }

  .elevator-floor {
    bottom: 0;
    height: 13%;
    clip-path: polygon(10% 0, 89% 0, 100% 100%, 0 100%);
    background:
      radial-gradient(ellipse at 50% 5%, rgba(255, 219, 156, 0.28), transparent 58%),
      repeating-linear-gradient(100deg, rgba(255, 235, 190, 0.06) 0 1px, transparent 1px 1rem),
      linear-gradient(180deg, rgba(96, 58, 33, 0.7), rgba(8, 5, 3, 0.99));
  }

  .elevator-header {
    position: absolute;
    top: max(0.85rem, env(safe-area-inset-top));
    left: calc((100vw - var(--right-wall)) / 2);
    z-index: 7;
    width: max-content;
    border: 1px solid rgba(238, 205, 151, 0.3);
    border-radius: 999px;
    padding: 0.24rem 0.74rem;
    color: #fff3d4;
    background: rgba(38, 24, 15, 0.54);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0.45rem 1rem rgba(0,0,0,0.16);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transform: translateX(-50%);
  }

  .elevator-reveal-space,
  .elevator-doors {
    position: absolute;
    top: var(--door-top);
    right: calc(var(--right-wall) + clamp(0.25rem, 1vw, 0.55rem));
    bottom: var(--door-bottom);
    left: var(--left-wall);
    border-radius: 0.28rem 0.28rem 0.1rem 0.1rem;
  }

  .elevator-reveal-space {
    z-index: 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    background:
      radial-gradient(ellipse at 50% 36%, rgba(142, 88, 45, 0.82), rgba(28, 16, 10, 0.98) 72%),
      linear-gradient(180deg, #4a2b17, #100805);
    box-shadow: inset 0 0 4rem rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(255, 237, 194, 0.12);
  }

  .elevator-doors {
    z-index: 5;
    overflow: hidden;
    border: 0;
    background: linear-gradient(180deg, rgba(65, 39, 22, 0.34), rgba(12, 7, 4, 0.44));
    box-shadow: inset 0 0 2.8rem rgba(0, 0, 0, 0.34);
  }

  .elevator-doors::before,
  .elevator-doors::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 6;
    display: block;
    width: 50.6%;
    content: "";
    background:
      linear-gradient(90deg, rgba(255, 250, 230, 0.24), transparent 18% 74%, rgba(46, 26, 15, 0.4)),
      repeating-linear-gradient(100deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 0.78rem),
      linear-gradient(180deg, #ecd29e 0%, #b8864e 47%, #4a2b1b 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1.6rem 2.2rem rgba(30,18,12,0.38), 0 0 1rem rgba(0,0,0,0.28);
    transition: transform 760ms cubic-bezier(0.2, 0.82, 0.18, 1), opacity 760ms ease;
    will-change: transform, opacity;
  }

  .elevator-doors::before { left: 0; border-right: 1px solid rgba(55, 34, 22, 0.86); }
  .elevator-doors::after { right: 0; border-left: 1px solid rgba(255, 239, 201, 0.2); transform: scaleX(-1); }

  .mobile-elevator-scene:has(.elevator-menu-item.is-open) .elevator-doors::before { transform: translateX(-96%); opacity: 0.98; }
  .mobile-elevator-scene:has(.elevator-menu-item.is-open) .elevator-doors::after { transform: translateX(96%) scaleX(-1); opacity: 0.98; }

  .elevator-menu {
    position: absolute;
    top: 50%;
    right: max(0.5rem, env(safe-area-inset-right));
    z-index: 8;
    display: grid;
    width: var(--panel-width);
    max-width: calc(100vw - 1rem);
    gap: clamp(0.38rem, 1.25dvh, 0.58rem);
    border: 1px solid rgba(238, 205, 151, 0.32);
    border-radius: 1.25rem;
    padding: 0.52rem 0.36rem;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.08), transparent 24% 78%, rgba(0,0,0,0.28)),
      linear-gradient(180deg, rgba(96, 63, 38, 0.78), rgba(24, 14, 9, 0.9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), inset 0 0 0 1px rgba(255, 239, 201, 0.05), 0 0.9rem 1.9rem rgba(0,0,0,0.24);
    transform: translateY(-50%) perspective(720px) rotateY(-8deg);
    transform-origin: right center;
  }

  .elevator-menu::before {
    display: block;
    color: rgba(255, 241, 205, 0.68);
    content: "MENU";
    font-size: 0.46rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-align: center;
  }

  .elevator-menu-item,
  .door-projet.elevator-menu-item,
  .door-connaissance.elevator-menu-item,
  .door-conseils.elevator-menu-item {
    position: static;
    width: auto;
    height: auto;
    perspective: none;
    isolation: auto;
    transform: none;
  }

  .elevator-button.wood-door {
    position: relative;
    inset: auto;
    display: grid;
    place-items: center;
    gap: 0.1rem;
    width: 100%;
    min-height: clamp(3.05rem, 10.2dvh, 3.95rem);
    border: 1px solid rgba(244, 215, 162, 0.44);
    border-radius: 999px;
    padding: 0.3rem 0.2rem;
    color: #fff1d1;
    background: radial-gradient(circle at 50% 18%, rgba(255, 238, 191, 0.18), transparent 43%), linear-gradient(180deg, #715034, #2b1a10 68%, #120a07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -0.38rem 0.74rem rgba(0,0,0,0.31), 0 0.25rem 0.62rem rgba(0,0,0,0.18);
    transform: none;
    transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease, transform 220ms ease;
  }

  .elevator-button.wood-door::after { display: none; }

  .elevator-button.wood-door:focus-visible {
    outline: 2px solid rgba(255, 246, 221, 0.9);
    outline-offset: 0.16rem;
    box-shadow: 0 0 0 0.24rem rgba(240, 196, 112, 0.22), inset 0 1px 0 rgba(255,255,255,0.2);
  }

  .elevator-button-light {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: rgba(59, 38, 25, 0.85);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.42);
  }

  .elevator-menu-item.is-open .elevator-button.wood-door {
    color: #2d1a0e;
    background: radial-gradient(circle at 50% 16%, #fff8df, #e6bf6f 45%, #9d6935 100%);
    box-shadow: 0 0 0 2px rgba(255, 246, 221, 0.22), 0 0 1.25rem rgba(240, 196, 112, 0.5), inset 0 1px 0 rgba(255,255,255,0.58);
    transform: translateY(-1px);
  }

  .elevator-menu-item.is-open .elevator-button-light {
    background: #fff6d8;
    box-shadow: 0 0 0.7rem rgba(255, 228, 153, 0.92), inset 0 1px 0 rgba(255,255,255,0.8);
  }

  .elevator-button-number { font-size: 0.88rem; font-weight: 900; line-height: 1; }
  .elevator-button-label { max-width: 4.15rem; font-size: clamp(0.5rem, 2.25vw, 0.62rem); font-weight: 850; line-height: 1.04; text-align: center; }

  .elevator-submenu.door-plates {
    position: absolute;
    inset: auto;
    z-index: 4;
    display: grid;
    width: min(86%, 15.4rem);
    max-width: calc(100% - 1rem);
    max-height: calc(100% - 1rem);
    overflow-y: auto;
    gap: 0.42rem;
    border: 1px solid rgba(238, 205, 151, 0.22);
    border-radius: 0.68rem;
    padding: 0.68rem;
    background: rgba(24, 15, 9, 0.78);
    box-shadow: 0 1rem 2.1rem rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.12);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    backdrop-filter: blur(8px);
    transform: translateY(0.55rem) scale(0.98);
    transition: opacity 280ms ease 180ms, visibility 0s linear 480ms, transform 420ms cubic-bezier(0.22, 1, 0.36, 1) 160ms;
  }

  .elevator-submenu.door-plates[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 280ms ease 220ms, visibility 0s linear 0s, transform 420ms cubic-bezier(0.22, 1, 0.36, 1) 210ms;
  }

  .elevator-submenu .door-menu-heading {
    min-height: auto;
    margin-bottom: 0.1rem;
    font-size: clamp(0.9rem, 4vw, 1.08rem);
    line-height: 1.05;
    text-align: center;
  }

  .elevator-submenu .door-plate {
    min-height: 2.3rem;
    padding: 0.5rem 0.62rem;
    font-size: clamp(0.74rem, 3.25vw, 0.88rem);
    line-height: 1.1;
    white-space: normal;
  }
}

@media (max-width: 374px) {
  .mobile-elevator-scene { --panel-width: 4.45rem; --right-wall: 5.35rem; --left-wall: 1.35rem; }
  .elevator-button.wood-door { min-height: 2.85rem; }
}

/* Final mobile-only elevator cabin polish: keeps desktop rules untouched. */
@media (max-width: 768px) {
  html,
  body:has(.door-wall-section),
  body:has(.home-scene),
  #root {
    width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
  }

  .door-wall-section,
  .home-scene,
  .mobile-elevator-scene,
  .elevator-cabin {
    width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .home-scene {
    height: 100dvh;
    background: #080504;
  }

  .mobile-elevator-scene {
    --left-wall: clamp(2.15rem, 8.5vw, 3.6rem);
    --right-wall: clamp(6.55rem, 25vw, 8rem);
    --panel-width: clamp(5.15rem, 19.5vw, 6.15rem);
    --door-top: clamp(5.15rem, 12.5dvh, 7.2rem);
    --door-bottom: clamp(4.25rem, 10.5dvh, 6.25rem);
    background:
      radial-gradient(ellipse at 49% 2%, rgba(255, 247, 221, 0.32), transparent 23%),
      linear-gradient(105deg, #070403 0 7%, #26150c 16%, #704825 28%, rgba(196, 145, 78, 0.36) 41%, transparent 49%),
      linear-gradient(75deg, transparent 52%, rgba(189, 128, 65, 0.32) 63%, #422717 76%, #0a0503 100%),
      linear-gradient(90deg, #090504 0%, #694223 20%, #d7b875 49%, #7d5434 70%, #1b1009 87%, #070403 100%);
  }

  .elevator-cabin {
    position: absolute;
    inset: 0;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(ellipse at 49% 0%, rgba(255, 249, 226, 0.56), rgba(219, 163, 82, 0.14) 24%, transparent 40%),
      repeating-linear-gradient(90deg, rgba(255, 247, 224, 0.04) 0 1px, transparent 1px 0.7rem),
      linear-gradient(106deg, #080403 0 8%, #442817 18%, rgba(138, 91, 48, 0.36) 32%, transparent 43%),
      linear-gradient(74deg, transparent 52%, rgba(160, 104, 54, 0.38) 64%, #2c190f 80%, #080403 100%),
      linear-gradient(90deg, #100805 0%, #81542f 20%, #dcbf7d 49%, #7c5435 70%, #1a0f09 87%, #080403 100%);
  }

  .elevator-cabin::before {
    clip-path: polygon(0 0, 20% 9%, 20% 90%, 0 100%);
    background:
      linear-gradient(90deg, #070403, rgba(73, 43, 24, 0.9) 58%, rgba(196, 136, 71, 0.2)),
      repeating-linear-gradient(180deg, rgba(255, 236, 190, 0.055) 0 1px, transparent 1px 4rem);
  }

  .elevator-cabin::after {
    clip-path: polygon(calc(100% - var(--right-wall) - 0.9rem) 8%, 100% 0, 100% 100%, calc(100% - var(--right-wall) - 0.9rem) 92%);
    background:
      linear-gradient(90deg, rgba(205, 143, 75, 0.22), rgba(78, 47, 27, 0.9) 42%, #070403 100%),
      repeating-linear-gradient(180deg, transparent 0 3.4rem, rgba(255, 231, 184, 0.045) 3.4rem calc(3.4rem + 1px));
  }

  .elevator-ceiling,
  .elevator-floor {
    left: var(--left-wall);
    right: var(--right-wall);
  }

  .elevator-header {
    left: calc((100vw - var(--right-wall) + var(--left-wall)) / 2);
  }

  .elevator-reveal-space,
  .elevator-doors {
    top: var(--door-top);
    right: calc(var(--right-wall) + clamp(0.2rem, 1vw, 0.5rem));
    bottom: var(--door-bottom);
    left: var(--left-wall);
    border-radius: 0.18rem;
  }

  .elevator-doors::before,
  .elevator-doors::after {
    width: 50.7%;
    background:
      linear-gradient(90deg, rgba(255, 251, 233, 0.26), transparent 17% 74%, rgba(48, 27, 15, 0.42)),
      repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 0.72rem),
      linear-gradient(180deg, #f0d9aa 0%, #bf8e55 45%, #805131 72%, #402516 100%);
    transition: transform 780ms cubic-bezier(0.2, 0.82, 0.18, 1), opacity 780ms ease;
  }

  .elevator-doors::before {
    box-shadow: inset -1px 0 0 rgba(45, 25, 14, 0.95), inset 1rem 0 2rem rgba(255, 245, 220, 0.08), inset 0 -1.6rem 2.2rem rgba(30, 18, 12, 0.38);
  }

  .elevator-doors::after {
    box-shadow: inset 1px 0 0 rgba(255, 239, 201, 0.2), inset 1rem 0 2rem rgba(255, 245, 220, 0.08), inset 0 -1.6rem 2.2rem rgba(30, 18, 12, 0.38);
  }

  .mobile-elevator-scene:has(.elevator-menu-item.is-open) .elevator-doors::before { transform: translateX(-98%); }
  .mobile-elevator-scene:has(.elevator-menu-item.is-open) .elevator-doors::after { transform: translateX(98%) scaleX(-1); }

  .elevator-menu {
    right: max(0.55rem, env(safe-area-inset-right));
    width: var(--panel-width);
    border-radius: 1.05rem;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 24% 78%, rgba(0, 0, 0, 0.32)),
      repeating-linear-gradient(180deg, rgba(255, 236, 190, 0.045) 0 1px, transparent 1px 0.62rem),
      linear-gradient(180deg, rgba(112, 74, 43, 0.92), rgba(25, 15, 9, 0.96));
    transform: translateY(-50%) perspective(760px) rotateY(-12deg);
  }

  .elevator-button.wood-door {
    min-height: clamp(3.2rem, 10.5dvh, 4.05rem);
    touch-action: manipulation;
  }

  .elevator-submenu.door-plates {
    width: min(88%, 15.75rem);
    max-height: calc(100% - 1.25rem);
    z-index: 4;
  }
}

@media (max-width: 374px) {
  .mobile-elevator-scene {
    --left-wall: 1.45rem;
    --right-wall: 5.55rem;
    --panel-width: 4.55rem;
  }
}

/* Mobile-only cabin refinement: immersive elevator, desktop remains untouched. */
@media (max-width: 768px) {
  html,
  body:has(.door-wall-section),
  body:has(.home-scene),
  #root {
    width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

  .door-wall-section,
  .home-scene,
  .mobile-elevator-scene,
  .elevator-cabin {
    width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .mobile-elevator-scene {
    --left-wall: clamp(2.35rem, 9vw, 4rem);
    --right-wall: clamp(7rem, 28vw, 9rem);
    --panel-width: clamp(5.3rem, 20vw, 6.35rem);
    --door-top: clamp(5.25rem, 12dvh, 7.25rem);
    --door-bottom: clamp(4.25rem, 10dvh, 6rem);
    background:
      radial-gradient(ellipse at 49% 3%, rgba(255, 248, 222, 0.34), transparent 22%),
      linear-gradient(104deg, #070403 0 9%, #2b190e 18%, rgba(127, 83, 42, 0.46) 34%, transparent 45%),
      linear-gradient(76deg, transparent 53%, rgba(154, 100, 50, 0.36) 66%, #24150d 84%, #070403 100%),
      linear-gradient(90deg, #0a0503 0%, #6f4828 20%, #d9bb79 48%, #7d5535 70%, #1c1009 87%, #080403 100%);
  }

  .elevator-cabin {
    position: absolute;
    inset: 0;
    height: 100dvh;
    background:
      radial-gradient(ellipse at 49% 0%, rgba(255, 250, 229, 0.62), rgba(215, 158, 76, 0.13) 24%, transparent 39%),
      repeating-linear-gradient(90deg, rgba(255, 248, 226, 0.045) 0 1px, transparent 1px 0.72rem),
      linear-gradient(105deg, #080403 0 8%, #3b2314 18%, rgba(139, 91, 47, 0.32) 34%, transparent 43%),
      linear-gradient(75deg, transparent 53%, rgba(149, 96, 49, 0.35) 65%, #2a190f 81%, #080403 100%),
      linear-gradient(90deg, #110906 0%, #835936 19%, #d8ba78 48%, #755034 70%, #1b100a 87%, #080403 100%);
    box-shadow:
      inset 0 2.5rem 4rem rgba(255, 235, 190, 0.14),
      inset 0 -5.5rem 6.2rem rgba(0, 0, 0, 0.56);
  }

  .elevator-cabin::before {
    clip-path: polygon(0 0, 19% 9%, 19% 91%, 0 100%);
    background:
      linear-gradient(90deg, rgba(7, 4, 3, 1), rgba(80, 49, 27, 0.88) 62%, rgba(203, 142, 75, 0.2)),
      repeating-linear-gradient(180deg, rgba(255, 236, 190, 0.06) 0 1px, transparent 1px 4rem);
  }

  .elevator-cabin::after {
    clip-path: polygon(calc(100% - var(--right-wall) - 0.5rem) 8%, 100% 0, 100% 100%, calc(100% - var(--right-wall) - 0.5rem) 92%);
    background:
      linear-gradient(90deg, rgba(205, 143, 75, 0.2), rgba(80, 49, 28, 0.9) 43%, #070403 100%),
      repeating-linear-gradient(180deg, transparent 0 3.5rem, rgba(255, 231, 184, 0.05) 3.5rem calc(3.5rem + 1px));
  }

  .elevator-ceiling,
  .elevator-floor {
    left: var(--left-wall);
    right: var(--right-wall);
  }

  .elevator-reveal-space,
  .elevator-doors {
    top: var(--door-top);
    right: calc(var(--right-wall) + 0.5rem);
    bottom: var(--door-bottom);
    left: var(--left-wall);
  }

  .elevator-doors {
    background:
      linear-gradient(90deg, transparent calc(50% - 1px), rgba(44, 25, 14, 0.82) calc(50% - 1px) calc(50% + 1px), rgba(255, 238, 199, 0.2) calc(50% + 1px), transparent calc(50% + 2px)),
      linear-gradient(180deg, rgba(65, 39, 22, 0.34), rgba(12, 7, 4, 0.44));
  }

  .elevator-doors::before,
  .elevator-doors::after {
    width: 50.7%;
    background:
      linear-gradient(90deg, rgba(255, 252, 236, 0.28), transparent 17% 74%, rgba(45, 25, 14, 0.43)),
      repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 0.72rem),
      linear-gradient(180deg, #f1d9aa 0%, #c39359 44%, #805231 72%, #3f2516 100%);
    transition: transform 780ms cubic-bezier(0.2, 0.82, 0.18, 1), opacity 780ms ease;
  }

  .mobile-elevator-scene:has(.elevator-menu-item.is-open) .elevator-doors::before { transform: translateX(-99%); }
  .mobile-elevator-scene:has(.elevator-menu-item.is-open) .elevator-doors::after { transform: translateX(99%) scaleX(-1); }

  .elevator-menu {
    right: max(0.65rem, env(safe-area-inset-right));
    width: var(--panel-width);
    border-color: rgba(244, 215, 162, 0.38);
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.11), transparent 24% 78%, rgba(0, 0, 0, 0.32)),
      repeating-linear-gradient(180deg, rgba(255, 236, 190, 0.045) 0 1px, transparent 1px 0.62rem),
      linear-gradient(180deg, rgba(112, 74, 43, 0.92), rgba(25, 15, 9, 0.96));
    transform: translateY(-50%) perspective(760px) rotateY(-12deg);
  }

  .elevator-button.wood-door {
    min-height: clamp(3.25rem, 10.5dvh, 4.05rem);
    touch-action: manipulation;
  }

  .elevator-submenu.door-plates {
    width: min(88%, 15.75rem);
    max-height: calc(100% - 1.25rem);
    z-index: 4;
  }
}

@media (max-width: 374px) {
  .mobile-elevator-scene {
    --left-wall: 1.45rem;
    --right-wall: 5.65rem;
    --panel-width: 4.65rem;
  }
}


/* Mobile-only fullscreen elevator fit: removes the remaining phone-frame margins without touching desktop. */
@media (max-width: 768px) {
  body:has(.door-wall-section),
  body:has(.home-scene) {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .door-wall-section,
  .home-scene {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
  }

  .mobile-elevator-scene {
    --left-wall: clamp(0.35rem, 1.6vw, 0.7rem);
    --panel-width: clamp(4.7rem, 19vw, 5.85rem);
    --right-wall: calc(var(--panel-width) + clamp(0.45rem, 2vw, 0.8rem));
    --door-top: clamp(2.45rem, 6.5dvh, 4.15rem);
    --door-bottom: clamp(1.05rem, 3.5dvh, 2.25rem);
    position: fixed;
    inset: 0;
    z-index: 3;
    display: block;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    pointer-events: none;
  }

  .elevator-cabin {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    pointer-events: auto;
  }

  .elevator-ceiling,
  .elevator-floor {
    left: var(--left-wall);
    right: var(--right-wall);
  }

  .elevator-header {
    top: max(0.55rem, env(safe-area-inset-top));
    left: calc((100vw - var(--right-wall) + var(--left-wall)) / 2);
  }

  .elevator-reveal-space,
  .elevator-doors {
    top: var(--door-top);
    right: calc(var(--right-wall) + 0.2rem);
    bottom: var(--door-bottom);
    left: var(--left-wall);
    border-radius: 0;
  }

  .elevator-menu {
    right: max(0.25rem, env(safe-area-inset-right));
    width: var(--panel-width);
    max-width: calc(100vw - 0.5rem);
    pointer-events: auto;
  }
}

@media (max-width: 374px) {
  .mobile-elevator-scene {
    --left-wall: 0.25rem;
    --panel-width: clamp(4.25rem, 20vw, 4.65rem);
    --right-wall: calc(var(--panel-width) + 0.35rem);
  }
}

/* Mobile-only true fullscreen elevator lock: removes parent frame sizing from the phone view only. */
@media (max-width: 768px) {
  body.is-home,
  body:has(.door-wall-section),
  body:has(.home-scene),
  body.is-home #root,
  body.is-home main {
    width: 100vw;
    height: 100dvh;
    min-width: 0;
    min-height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    background: #080504;
  }

  body.is-home main {
    position: fixed;
    inset: 0;
  }

  .door-wall-section,
  .home-scene,
  .mobile-elevator-scene,
  .elevator-cabin {
    position: fixed;
    inset: 0;
    display: block;
    width: 100vw;
    height: 100dvh;
    min-width: 0;
    min-height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }

  .mobile-elevator-scene {
    --left-wall: 0px;
    --panel-width: clamp(4.45rem, 18vw, 5.6rem);
    --right-wall: calc(var(--panel-width) + max(0.22rem, env(safe-area-inset-right)));
    --door-top: max(1.15rem, env(safe-area-inset-top));
    --door-bottom: max(0.2rem, env(safe-area-inset-bottom));
    z-index: 3;
    pointer-events: none;
  }

  .elevator-cabin {
    z-index: 1;
    pointer-events: auto;
  }

  .elevator-ceiling,
  .elevator-floor {
    left: 0;
    right: var(--right-wall);
  }

  .elevator-header {
    top: max(0.35rem, env(safe-area-inset-top));
    left: calc((100vw - var(--right-wall)) / 2);
  }

  .elevator-reveal-space,
  .elevator-doors {
    top: var(--door-top);
    right: var(--right-wall);
    bottom: var(--door-bottom);
    left: 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .elevator-menu {
    right: max(0.08rem, env(safe-area-inset-right));
    width: var(--panel-width);
    max-width: calc(100vw - 0.16rem);
    margin: 0;
    pointer-events: auto;
  }
}

@media (max-width: 374px) {
  .mobile-elevator-scene {
    --panel-width: clamp(4.15rem, 19vw, 4.55rem);
    --right-wall: calc(var(--panel-width) + max(0.14rem, env(safe-area-inset-right)));
  }
}

/* Mobile-only elevator call-column controls: scoped to phone layout so desktop remains unchanged. */
@media (max-width: 768px) {
  .elevator-menu {
    top: 50%;
    right: max(0.24rem, env(safe-area-inset-right));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--panel-width);
    max-width: calc(100vw - 0.5rem);
    max-height: calc(100dvh - max(1rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-bottom)));
    gap: clamp(0.22rem, 0.75dvh, 0.42rem);
    overflow: hidden;
    contain: layout paint;
    border: 1px solid rgba(247, 218, 166, 0.42);
    border-radius: clamp(0.9rem, 3vw, 1.25rem);
    padding: clamp(0.38rem, 1.15dvh, 0.62rem) clamp(0.26rem, 1.1vw, 0.42rem);
  }

  .elevator-menu::before,
  .elevator-menu::after {
    display: grid;
    place-items: center;
    width: clamp(1.28rem, 5vw, 1.7rem);
    height: clamp(1.05rem, 3.6dvh, 1.38rem);
    flex: 0 0 auto;
    border: 1px solid rgba(246, 221, 177, 0.38);
    border-radius: 999px;
    color: #f7dfaa;
    background:
      radial-gradient(circle at 50% 22%, rgba(255, 249, 224, 0.34), transparent 48%),
      linear-gradient(180deg, rgba(137, 94, 49, 0.58), rgba(38, 22, 12, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0.22rem 0.58rem rgba(0, 0, 0, 0.22);
    font-size: clamp(0.72rem, 3vw, 0.95rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
  }

  .elevator-menu::before { content: "↑"; }
  .elevator-menu::after { content: "↓"; }

  .elevator-menu-item,
  .door-projet.elevator-menu-item,
  .door-connaissance.elevator-menu-item,
  .door-conseils.elevator-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: clamp(0.12rem, 0.45dvh, 0.2rem);
    flex: 0 0 auto;
    flex-grow: 0;
    flex-shrink: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    transform: none;
    animation: none;
    transition: none;
  }

  .elevator-menu-item.is-open,
  .elevator-menu-item.is-closing,
  .elevator-menu-item:has(.elevator-button[aria-expanded="true"]),
  .door-projet.elevator-menu-item.is-open,
  .door-connaissance.elevator-menu-item.is-open,
  .door-conseils.elevator-menu-item.is-open {
    flex: 0 0 auto;
    flex-grow: 0;
    flex-shrink: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    transform: none;
    animation: none;
  }

  .elevator-button.wood-door {
    width: clamp(2.42rem, 10.5vw, 3.15rem);
    height: clamp(2.42rem, 10.5vw, 3.15rem);
    min-width: clamp(2.42rem, 10.5vw, 3.15rem);
    min-height: clamp(2.42rem, 10.5vw, 3.15rem);
    max-width: clamp(2.42rem, 10.5vw, 3.15rem);
    max-height: clamp(2.42rem, 10.5vw, 3.15rem);
    flex: 0 0 auto;
    border: 1px solid rgba(255, 238, 196, 0.66);
    border-radius: 50%;
    padding: 0;
    color: #3d260f;
    background:
      radial-gradient(circle at 34% 24%, rgba(255, 255, 241, 0.95), rgba(255, 240, 192, 0.48) 18%, transparent 34%),
      radial-gradient(circle at 50% 64%, rgba(102, 63, 28, 0.4), transparent 58%),
      linear-gradient(145deg, #fff1c8 0%, #d8ad62 42%, #a36d32 68%, #f1d28b 100%);
    box-shadow:
      inset 0 0.18rem 0.3rem rgba(255, 255, 255, 0.5),
      inset 0 -0.3rem 0.48rem rgba(87, 51, 22, 0.35),
      0 0.2rem 0.32rem rgba(0, 0, 0, 0.32),
      0 0.52rem 0.95rem rgba(0, 0, 0, 0.18);
    transform: none;
    animation: none;
    transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease, border-color 160ms ease;
  }

  .elevator-button.wood-door::before {
    position: absolute;
    inset: 13%;
    border-radius: inherit;
    content: "";
    background: linear-gradient(145deg, rgba(255,255,255,0.42), transparent 44%, rgba(77, 45, 18, 0.18));
    pointer-events: none;
  }

  .elevator-button-light {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
  }

  .elevator-button-number {
    position: relative;
    z-index: 1;
    color: inherit;
    font-size: clamp(1.1rem, 4.8vw, 1.45rem);
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 248, 220, 0.45);
  }

  .elevator-button-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 4.7rem);
    height: clamp(1.18rem, 4.1dvh, 1.55rem);
    min-height: clamp(1.18rem, 4.1dvh, 1.55rem);
    max-height: clamp(1.18rem, 4.1dvh, 1.55rem);
    flex: 0 0 auto;
    border: 1px solid rgba(247, 218, 166, 0.34);
    border-radius: 0.34rem;
    padding: 0.16rem 0.2rem;
    overflow: hidden;
    color: #fff0cc;
    background:
      linear-gradient(180deg, rgba(255, 245, 212, 0.1), rgba(0, 0, 0, 0.08)),
      linear-gradient(135deg, rgba(97, 62, 32, 0.92), rgba(38, 23, 13, 0.94));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 0.18rem 0.45rem rgba(0,0,0,0.2);
    font-size: clamp(0.49rem, 2.1vw, 0.62rem);
    font-weight: 850;
    line-height: 1.05;
    text-align: center;
    text-wrap: balance;
  }

  .elevator-menu-item.is-open .elevator-button.wood-door {
    color: #2d1908;
    background:
      radial-gradient(circle at 35% 23%, #fffef0, rgba(255, 245, 196, 0.62) 20%, transparent 38%),
      radial-gradient(circle at 50% 50%, #fff0a9 0%, #edc96e 46%, #b7792f 100%);
    box-shadow:
      0 0 0 2px rgba(255, 247, 219, 0.24),
      0 0 1rem rgba(255, 220, 126, 0.72),
      0 0.32rem 0.75rem rgba(0, 0, 0, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      inset 0 -0.26rem 0.42rem rgba(120, 74, 27, 0.28);
    width: clamp(2.42rem, 10.5vw, 3.15rem);
    height: clamp(2.42rem, 10.5vw, 3.15rem);
    min-width: clamp(2.42rem, 10.5vw, 3.15rem);
    min-height: clamp(2.42rem, 10.5vw, 3.15rem);
    max-width: clamp(2.42rem, 10.5vw, 3.15rem);
    max-height: clamp(2.42rem, 10.5vw, 3.15rem);
    padding: 0;
    transform: none;
    animation: none;
  }

  .elevator-menu-item.is-open .elevator-button-light {
    box-shadow: inset 0 0 0 999px rgba(255, 233, 154, 0.08), 0 0 1rem rgba(255, 226, 132, 0.78);
  }
}

@media (max-width: 374px) {
  .elevator-button-label { font-size: 0.48rem; }
  .elevator-button.wood-door {
    width: 2.28rem;
    height: 2.28rem;
  }
}

/* Mobile-only elevator door close control; desktop remains untouched. */
@media (max-width: 768px) {
  .elevator-close-doors {
    order: 5;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(100%, 4.25rem);
    min-height: clamp(1.55rem, 5.1dvh, 2rem);
    flex: 0 0 auto;
    border: 1px solid rgba(255, 232, 181, 0.5);
    border-radius: 0.42rem;
    padding: 0.18rem 0.2rem;
    color: #3a240d;
    background:
      radial-gradient(circle at 35% 18%, rgba(255, 255, 238, 0.72), transparent 42%),
      linear-gradient(145deg, #f3d58f 0%, #c89546 48%, #8a5928 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      inset 0 -0.18rem 0.34rem rgba(72, 43, 18, 0.24),
      0 0.18rem 0.42rem rgba(0, 0, 0, 0.24);
    font: inherit;
    font-size: clamp(0.48rem, 2vw, 0.58rem);
    font-weight: 900;
    line-height: 1.02;
    text-align: center;
    text-transform: none;
    cursor: pointer;
    transform: none;
    animation: none;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
  }

  .elevator-close-doors:disabled {
    opacity: 0.42;
    color: rgba(255, 240, 204, 0.78);
    border-color: rgba(247, 218, 166, 0.2);
    background:
      linear-gradient(180deg, rgba(255, 245, 212, 0.08), rgba(0, 0, 0, 0.12)),
      linear-gradient(135deg, rgba(96, 63, 35, 0.78), rgba(36, 23, 14, 0.9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0.12rem 0.28rem rgba(0,0,0,0.18);
    cursor: default;
  }

  .elevator-close-doors:focus-visible {
    outline: 2px solid rgba(255, 239, 197, 0.84);
    outline-offset: 2px;
  }
}

/* Mobile-only control-panel logo plaque; desktop scene remains untouched. */
@media (max-width: 768px) {
  .elevator-logo-frame {
    order: -2;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: min(100%, 4.3rem);
    min-height: clamp(1.35rem, 4.4dvh, 1.8rem);
    max-height: clamp(1.35rem, 4.4dvh, 1.8rem);
    flex: 0 0 auto;
    border: 1px solid rgba(248, 222, 174, 0.58);
    border-radius: 0.42rem;
    padding: clamp(0.12rem, 0.45dvh, 0.18rem) 0.24rem;
    overflow: hidden;
    background:
      linear-gradient(135deg, rgba(255, 244, 207, 0.1), rgba(255, 255, 255, 0.02) 34%, rgba(0, 0, 0, 0.18)),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, rgba(0, 0, 0, 0.035) 1px 3px),
      linear-gradient(145deg, rgba(73, 49, 29, 0.94), rgba(25, 19, 15, 0.96));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      inset 0 -0.14rem 0.32rem rgba(0, 0, 0, 0.22),
      0 0.18rem 0.46rem rgba(0, 0, 0, 0.24);
    pointer-events: none;
  }

  .elevator-logo {
    display: block;
    width: min(3.45rem, 86%);
    max-width: 100%;
    max-height: clamp(0.95rem, 3.2dvh, 1.25rem);
    object-fit: contain;
    filter: drop-shadow(0 1px 0 rgba(255, 247, 220, 0.18)) drop-shadow(0 0.1rem 0.16rem rgba(0, 0, 0, 0.3));
  }
}

/* Mobile-only elevator cabin logo: the Négocity mark is integrated without a frame, desktop remains untouched. */
@media (max-width: 768px) {
  .mobile-elevator-scene .elevator-header { display: none; }

  .mobile-elevator-scene .elevator-logo-frame {
    --mobile-elevator-logo-width: clamp(110px, 32vw, 150px);
    position: absolute;
    top: max(4dvh, calc(env(safe-area-inset-top) + 1.25rem));
    right: calc(max(0.24rem, env(safe-area-inset-right)) + ((var(--panel-width) - var(--mobile-elevator-logo-width)) / 2));
    z-index: 18;
    display: block;
    box-sizing: border-box;
    width: var(--mobile-elevator-logo-width);
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    flex: none;
    padding: 0;
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    transform: none;
    transform-origin: center;
  }

  .mobile-elevator-scene .elevator-logo-frame::before,
  .mobile-elevator-scene .elevator-logo-frame::after {
    display: none;
    content: none;
  }

  .mobile-elevator-scene .elevator-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: clamp(3rem, 10dvh, 5rem);
    border: none;
    padding: 0;
    object-fit: contain;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 0.14rem 0.22rem rgba(0, 0, 0, 0.22));
    pointer-events: none;
  }
}

/* Mobile-only elevator link hit-area fix: keep the visual door layering while allowing submenu links to receive taps. */
@media (max-width: 768px) {
  .mobile-elevator-scene .elevator-reveal-space,
  .mobile-elevator-scene .elevator-submenu.door-plates,
  .mobile-elevator-scene .elevator-submenu .door-plate {
    pointer-events: auto;
  }

  .mobile-elevator-scene .elevator-doors,
  .mobile-elevator-scene .elevator-doors::before,
  .mobile-elevator-scene .elevator-doors::after,
  .mobile-elevator-scene .elevator-ceiling,
  .mobile-elevator-scene .elevator-floor,
  .mobile-elevator-scene .elevator-cabin::before,
  .mobile-elevator-scene .elevator-cabin::after {
    pointer-events: none;
  }
}

/* Mobile-only elevator split logo: each half is inside its matching door so it follows the existing door movement. */
@media (max-width: 768px) {
  .mobile-elevator-scene .elevator-logo-frame,
  .mobile-elevator-scene .elevator-logo {
    display: none;
  }

  .mobile-elevator-scene .elevator-doors::before,
  .mobile-elevator-scene .elevator-doors::after {
    display: none;
    content: none;
  }

  .mobile-elevator-scene .mobile-elevator-door,
  .mobile-elevator-scene .mobile-elevator-door-logo {
    position: absolute;
    display: block;
    pointer-events: none;
  }

  .mobile-elevator-scene .mobile-elevator-door {
    top: 0;
    bottom: 0;
    z-index: 6;
    width: 50.5%;
    overflow: hidden;
    background:
      linear-gradient(90deg, rgba(255, 249, 229, 0.24), transparent 20% 74%, rgba(45, 27, 17, 0.36)),
      repeating-linear-gradient(100deg, rgba(255,255,255,0.075) 0 1px, transparent 1px 0.68rem),
      linear-gradient(180deg, #ead09a 0%, #b9854d 46%, #4d301f 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1.4rem 2rem rgba(30,18,12,0.36), 0 0 1.4rem rgba(0,0,0,0.3);
    transition: transform 760ms cubic-bezier(0.2, 0.82, 0.18, 1), opacity 760ms ease;
    will-change: transform, opacity;
  }

  .mobile-elevator-scene .mobile-elevator-door-left {
    left: 0;
    border-right: 1px solid rgba(55, 34, 22, 0.82);
  }

  .mobile-elevator-scene .mobile-elevator-door-right {
    right: 0;
    border-left: 1px solid rgba(255, 239, 201, 0.2);
    background:
      linear-gradient(270deg, rgba(255, 249, 229, 0.24), transparent 20% 74%, rgba(45, 27, 17, 0.36)),
      repeating-linear-gradient(80deg, rgba(255,255,255,0.075) 0 1px, transparent 1px 0.68rem),
      linear-gradient(180deg, #ead09a 0%, #b9854d 46%, #4d301f 100%);
  }

  .mobile-elevator-scene:has(.elevator-menu-item.is-open) .mobile-elevator-door-left {
    transform: translateX(-96%);
    opacity: 0.98;
  }

  .mobile-elevator-scene:has(.elevator-menu-item.is-open) .mobile-elevator-door-right {
    transform: translateX(96%);
    opacity: 0.98;
  }

  .mobile-elevator-scene .mobile-elevator-door-logo {
    --mobile-door-logo-width: clamp(140px, 44vw, 210px);
    top: clamp(4.25rem, 20%, 7rem);
    width: calc(var(--mobile-door-logo-width) / 2);
    height: auto;
    overflow: hidden;
    filter: drop-shadow(0 0.16rem 0.24rem rgba(0, 0, 0, 0.3));
    z-index: 7;
  }

  .mobile-elevator-scene .mobile-elevator-door-logo img {
    display: block;
    width: var(--mobile-door-logo-width);
    height: auto;
    max-width: none;
    object-fit: contain;
  }

  .mobile-elevator-scene .mobile-elevator-door-logo-left {
    right: 0;
  }

  .mobile-elevator-scene .mobile-elevator-door-logo-right {
    left: 0;
  }

  .mobile-elevator-scene .mobile-elevator-door-logo-right img {
    transform: translateX(-50%);
  }
}
