body.home {
  min-height: 100svh;
  background: #201814;
  color: #f8efe2;
  display: flex;
  flex-direction: column;
}

.home-bg {
  position: fixed;
  inset: 0;
  background-image: url('/assets/home');
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.02);
}

.home-shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(70% 60% at 50% 20%, rgba(40, 25, 18, .25) 0%, rgba(28, 18, 14, .72) 70%),
    linear-gradient(180deg, rgba(28, 18, 14, .35) 0%, rgba(24, 16, 12, .82) 100%);
}

.home-main {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 7vh 20px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-head { text-align: center; margin-bottom: 4vh; }

.home-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 30px;
  color: #f7e7d2;
  border: 1px solid rgba(247, 231, 210, .45);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
}

.home-head h1 {
  font-size: clamp(40px, 10vw, 76px);
  letter-spacing: .1em;
  color: #fbf2e4;
  text-shadow: 0 10px 40px rgba(0,0,0,.45);
  margin-bottom: 6px;
}

.home-head p {
  font-size: clamp(13px, 2vw, 16px);
  color: rgba(248, 239, 226, .78);
  letter-spacing: .04em;
}

.doors {
  display: flex;
  gap: 26px;
  justify-content: center;
  align-items: flex-end;
  overflow-x: auto;
  padding: 10px 4px 70px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.doors::-webkit-scrollbar { display: none; }

.door {
  position: relative;
  flex: 0 0 clamp(230px, 27vw, 310px);
  height: clamp(440px, 60vh, 540px);
  padding: 32px;
  border-radius: 160px 160px 18px 18px;
  overflow: visible;
  text-decoration: none;
  border: 1px solid rgba(48, 27, 14, .85);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='76' viewBox='0 0 76 76'%3E%3Cg fill='none' stroke='%233b2110' stroke-width='1.2' opacity='.38'%3E%3Cpath d='M38 8c7 8 7 15 0 23-7-8-7-15 0-23z'/%3E%3Cpath d='M38 68c-7-8-7-15 0-23 7 8 7 15 0 23z'/%3E%3Cpath d='M8 38c8-7 15-7 23 0-8 7-15 7-23 0z'/%3E%3Cpath d='M68 38c-8 7-15 7-23 0 8-7 15-7 23 0z'/%3E%3Ccircle cx='38' cy='38' r='4.2'/%3E%3Cpath d='M17 17c5 2 8 7 8 12M59 59c-5-2-8-7-8-12'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 76px 76px repeat,
    repeating-linear-gradient(
      92deg,
      rgba(255, 226, 190, .05) 0 2px,
      transparent 2px 8px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(60, 32, 16, .12) 0 1px,
      transparent 1px 24px
    ),
    linear-gradient(180deg, #b07945 0%, #8a5630 45%, #5e361c 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 230, 192, .2),
    inset 0 0 0 9px rgba(55, 28, 14, .5),
    inset 0 0 0 11px rgba(255, 220, 175, .14),
    inset 0 0 44px rgba(28, 14, 7, .7),
    0 42px 74px rgba(0, 0, 0, .55),
    0 5px 0 rgba(75, 45, 24, .72);
  scroll-snap-align: center;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  isolation: isolate;
}

.door::before {
  content: '';
  position: absolute;
  inset: 22px;
  z-index: 4;
  border-radius: 138px 138px 10px 10px;
  border: 1px solid rgba(255, 226, 184, .3);
  box-shadow:
    0 0 0 3px rgba(52, 27, 13, .55),
    inset 0 0 0 2px rgba(255, 238, 205, .12);
  pointer-events: none;
}

.pillar {
  position: absolute;
  top: 24%;
  bottom: 14px;
  width: 42px;
  z-index: 5;
  border-radius: 9px;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 222, 180, .2) 0 2px,
      transparent 2px 6px
    ),
    linear-gradient(90deg, #4a2a15 0%, #8d5832 46%, #5c341a 100%);
  box-shadow:
    inset 2px 0 0 rgba(255, 230, 190, .2),
    inset -4px 0 8px rgba(0, 0, 0, .45),
    inset 0 0 0 1px rgba(255, 220, 180, .18),
    0 8px 16px rgba(0, 0, 0, .4);
}
.pillar.left { left: 6px; }
.pillar.right { right: 6px; }

.pillar::before,
.pillar::after {
  content: '';
  position: absolute;
  left: -10px;
  right: -10px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 226, 190, .16) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #a06a3c 0%, #7c4a27 55%, #5e351b 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 226, 184, .24),
    inset 0 -3px 6px rgba(45, 24, 12, .4),
    0 5px 10px rgba(0, 0, 0, .35);
}
.pillar::before {
  top: -18px;
  height: 30px;
}
.pillar::after {
  bottom: -14px;
  height: 34px;
  left: -14px;
  right: -14px;
  border-radius: 6px 6px 10px 10px;
}

.crest {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 116px;
  height: 54px;
  z-index: 7;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cg fill='%238a5530' stroke='%23e2b57d' stroke-width='1'%3E%3Cpath d='M60 58C60 42 52 32 34 26c14 1 24 8 26 20 2-12 12-19 26-20-18 6-26 16-26 32z'/%3E%3Cpath d='M60 58C56 44 46 38 26 38c12-1 22 3 30 12 8-9 18-13 30-12-20 0-30 6-34 20z' opacity='.85'/%3E%3Ccircle cx='60' cy='30' r='4.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45));
}

@media (max-width: 720px) {
  .pillar { width: 34px; }
  .crest { width: 92px; height: 44px; }
}

.steps {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  width: 96%;
  height: 52px;
  z-index: 8;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.steps::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -10px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  filter: blur(8px);
  z-index: -1;
}
.steps i {
  display: block;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 231, 200, .28),
    inset 0 -2px 4px rgba(52, 27, 13, .35),
    0 7px 12px rgba(0, 0, 0, .35);
}
.steps i:nth-child(1) {
  width: 74%;
  height: 13px;
  background: linear-gradient(180deg, #c79a6a 0%, #9c673e 100%);
}
.steps i:nth-child(2) {
  width: 86%;
  height: 13px;
  margin-top: -2px;
  background: linear-gradient(180deg, #b7875a 0%, #865430 100%);
}
.steps i:nth-child(3) {
  width: 98%;
  height: 16px;
  margin-top: -2px;
  border-radius: 4px 4px 10px 10px;
  background: linear-gradient(180deg, #a5754a 0%, #6f4224 100%);
}

.door:hover {
  transform: translateY(-6px);
  filter: brightness(1.05);
  box-shadow:
    0 44px 80px rgba(0, 0, 0, .55),
    0 4px 0 rgba(83, 50, 27, .65);
}

.door::after {
  content: '';
  position: absolute;
  inset: 6px;
  z-index: 5;
  border-radius: 144px 144px 12px 12px;
  border: 1px solid rgba(255, 228, 192, .2);
  pointer-events: none;
}

.door-photo {
  position: absolute;
  inset: 32px;
  border-radius: 126px 126px 8px 8px;
  background-size: cover;
  background-position: center;
  transition: transform .65s ease;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 210, .2);
}
.door:hover .door-photo { transform: scale(1.035); }

.door-yoga .door-photo {
  background-image: url('/assets/yoga');
  background-color: #16213a;
}
.door-pregnant .door-photo {
  background-image: url('/assets/pregnant');
  background-color: #d9a6a6;
}
.door-circle .door-photo {
  background-image: url('/assets/circle');
  background-color: #4d5b43;
}

.door-veil {
  position: absolute;
  inset: 32px;
  border-radius: 126px 126px 8px 8px;
  z-index: 3;
  background: linear-gradient(
    180deg,
    rgba(15, 10, 8, 0) 34%,
    rgba(15, 10, 8, .38) 66%,
    rgba(12, 8, 6, .88) 100%
  );
}

.door-body {
  position: relative;
  z-index: 6;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 18px 20px;
}

.door-kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 236, 210, .75);
  margin-bottom: 8px;
}

.door-title {
  font-family: Georgia, serif;
  font-size: clamp(22px, 3vw, 27px);
  line-height: 1.08;
  color: #fff8ec;
  margin-bottom: 6px;
  text-shadow: 0 4px 18px rgba(0,0,0,.5);
}

.door-text {
  font-size: 13px;
  color: rgba(255, 244, 230, .78);
  margin-bottom: 18px;
}

.door-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #f7e7d2;
  letter-spacing: .04em;
}
.door-go span { transition: transform .2s ease; }
.door:hover .door-go span { transform: translateX(5px); }

.home-foot {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4vh;
  font-size: 12px;
  color: rgba(248, 239, 226, .55);
  letter-spacing: .05em;
}
.home-foot .dot { opacity: .5; }

.foot-link {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(248, 239, 226, .55);
  font: inherit;
  letter-spacing: .05em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot-link:hover { color: #f7e7d2; }

.visitor-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(22, 15, 11, .72);
  backdrop-filter: blur(6px);
}
.visitor-modal.hidden { display: none; }

.visitor-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  padding: 34px 24px 24px;
  border-radius: 30px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255, 250, 240, .9) 0%, transparent 60%),
    rgba(251, 243, 230, .8);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(120, 78, 44, .5);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .5),
    inset 0 0 0 7px rgba(120, 78, 44, .1),
    0 40px 90px rgba(0, 0, 0, .55);
  color: #3a2c20;
  overflow: hidden;
}

.visitor-card::before {
  content: '';
  position: absolute;
  inset: 11px;
  z-index: 1;
  border-radius: 22px;
  border: 1px solid rgba(120, 78, 44, .32);
  box-shadow:
    inset 0 0 0 3px rgba(255, 252, 245, .28),
    inset 0 0 20px rgba(120, 78, 44, .08);
  pointer-events: none;
}

.visitor-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='92' viewBox='0 0 92 92'%3E%3Cg fill='none' stroke='%236b4224' stroke-width='1.2'%3E%3Cpath d='M46 8c8 9 8 17 0 26-8-9-8-17 0-26z'/%3E%3Cpath d='M46 84c-8-9-8-17 0-26 8 9 8 17 0 26z'/%3E%3Cpath d='M8 46c9-8 17-8 26 0-9 8-17 8-26 0z'/%3E%3Cpath d='M84 46c-9 8-17 8-26 0 9-8 17-8 26 0z'/%3E%3Ccircle cx='46' cy='46' r='5'/%3E%3Cpath d='M18 18c6 3 9 8 9 15M74 74c-6-3-9-8-9-15'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 92px 92px repeat;
}

.visitor-crest {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 52px;
  z-index: 2;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cg fill='%238a5530' stroke='%23d9ad76' stroke-width='1'%3E%3Cpath d='M60 58C60 42 52 32 34 26c14 1 24 8 26 20 2-12 12-19 26-20-18 6-26 16-26 32z'/%3E%3Cpath d='M60 58C56 44 46 38 26 38c12-1 22 3 30 12 8-9 18-13 30-12-20 0-30 6-34 20z' opacity='.85'/%3E%3Ccircle cx='60' cy='30' r='4.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35));
}

.visitor-card h2,
.visitor-card form {
  position: relative;
  z-index: 3;
}

.visitor-card h2 {
  font-family: Georgia, serif;
  font-size: 25px;
  text-align: center;
  color: #4a2f1a;
  margin: 2px 0 12px;
  line-height: 1.25;
  letter-spacing: .01em;
}

.visitor-greeting {
  position: relative;
  z-index: 3;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: normal;
  line-height: 1.7;
  color: #6f4b37;
  max-width: 32ch;
  margin: 0 auto 22px;
}

.visitor-note {
  position: relative;
  z-index: 3;
  margin: 16px 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: #8a6a4c;
}

.visitor-heart {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  vertical-align: -2px;
  margin-left: 2px;
}

.visitor-kicker {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 10px;
  font-weight: 700;
  color: #a9772c;
  margin-bottom: 10px;
}

.visitor-field {
  display: block;
  margin-bottom: 12px;
}
.visitor-field span {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a6a4c;
  margin-bottom: 5px;
}
.visitor-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #ddc7a8;
  background: #fffdf8;
  color: #3a2c20;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.visitor-field input:focus {
  border-color: #b98a56;
  box-shadow: 0 0 0 3px rgba(185, 138, 86, .16);
}

.visitor-btn {
  width: 100%;
  margin-top: 6px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #8d5832 0%, #5e361c 100%);
  color: #fbf2e4;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .03em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(74, 42, 21, .35);
}
.visitor-btn:hover { filter: brightness(1.07); }

.visitor-error {
  min-height: 16px;
  margin: 8px 0 0;
  font-size: 12px;
  color: #a33c3c;
}
