.front {
  --night: #1c111e;
  --light: #fff7fb;
  --cream: #fff5f9;
  --raspberry: #ff9eb9;
  --gutter: clamp(24px, 6.1vw, 116px);
  background: var(--night);
  color: var(--light);
}
.front :focus-visible { outline-color: #f483ac; }
.front-home svg { display: block; width: 18px; height: 18px; flex: none; }

.opening {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(min-content, 1fr) auto;
  gap: 32px;
  min-height: 100svh;
  min-height: 100dvh;
  padding: max(25px, env(safe-area-inset-top)) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background-color: #281a2a;
}
.opening-image, .opening::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.opening-image { object-fit: cover; object-position: 62% 48%; }
.opening::after {
  content: "";
  background: linear-gradient(90deg,#241525fc 1%,#241525f2 22%,#241525b0 41%,#24152522 68%,#2415250d 100%),
              linear-gradient(180deg,#21132392 0%,transparent 28%,transparent 67%,#211323b0 100%);
}
.opening-top, .opening-bottom { display: flex; align-items: center; justify-content: space-between; }
.opening-top .brand { display: block; width: clamp(132px, 15.2vw, 210px); height: auto; }
.sign-in {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--cream);
  background: #2c1b2de3;
  border: 1px solid #fff5f95c;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 570;
  text-decoration: none;
  white-space: nowrap;
}
.sign-in:hover { border-color: var(--cream); }
.opening-content { align-self: center; }
.opening-title {
  margin: 0 0 clamp(23px, 4vw, 39px);
  max-width: 15ch;
  color: var(--cream);
  font-size: clamp(56px, 6.3vw, 104px);
  font-weight: 590;
  line-height: .98;
  letter-spacing: -.068em;
  text-wrap: balance;
}
.opening-title span { color: var(--raspberry); }
.audiences { display: flex; flex-wrap: wrap; column-gap: clamp(16px, 3.8vw, 26px); }
.audiences a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 520;
  text-decoration: underline;
  text-decoration-color: #ff9eb984;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.audiences a:hover { color: var(--raspberry); text-decoration-color: currentColor; }
.opening svg { flex: none; display: block; width: 16px; height: 16px; }
.enter-link svg { color: var(--raspberry); }
.opening-bottom { justify-content: flex-start; }
.enter-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 49px;
  min-width: 190px;
  position: relative;
  border-bottom: 1px solid #fff5f96b;
  color: var(--cream);
  font-size: 14px;
  font-weight: 540;
  text-decoration: none;
}
.enter-link::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 28px; height: 2px; background: var(--raspberry); }
.enter-link:hover { border-color: var(--raspberry); }
@media (max-width: 700px) {
  .opening { gap: 19px; padding: max(15px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom)); }
  .opening-image { object-position: 85% 37%; height: 66%; }
  .opening::after {
    background: linear-gradient(180deg,#261628cb 0%,#26162825 16%,#26162819 31%,#281a2ad1 51%,#281a2a 66%);
  }
  .opening-top .brand { width: 150px; }
  .opening-content { align-self: end; }
  .opening-title { font-size: clamp(47px, 11.3vw, 73px); margin-bottom: 23px; }
  .enter-link { min-width: 166px; min-height: 44px; font-size: 13px; }
}
@media (max-width: 365px) {
  .opening { padding-inline: 16px; }
  .opening-top .brand { width: 135px; }
}
@media (max-height: 500px) {
  .opening { padding-top: max(13px,env(safe-area-inset-top)); padding-bottom: max(14px,env(safe-area-inset-bottom)); gap: 13px; }
  .opening-title { font-size: clamp(38px,8vh,58px); margin-bottom: 13px; }
  .opening-content { align-self: center; }
}

.signin-panel {
  max-width: min(400px,calc(100vw - 40px));
  padding: 25px;
  border: 1px solid #76506c;
  border-radius: 12px;
  background: #322135;
  color: var(--cream);
}
.signin-panel::backdrop { background: #1c111eda; }
.signin-panel h2 { margin: 0; font-size: 23px; }
.signin-panel p { margin: 10px 0 20px; color: #e8d6e2; }
.signin-actions { display: flex; align-items: center; gap: 16px; }
.signin-actions a, .signin-actions button { display: inline-flex; align-items: center; min-height: 44px; font: inherit; font-size: 14px; }
.signin-actions a { padding: 0 13px; border-radius: 5px; background: var(--raspberry); color: #2b1928; text-decoration: none; font-weight: 620; }
.signin-actions button { border: 0; background: transparent; color: var(--cream); cursor: pointer; }


.opening[hidden] { display: none; }
html.opening-active, .opening-active body { overflow: hidden; }
.opening-active .opening {
  position: fixed;
  inset: 0;
  z-index: 20;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  transition: transform 820ms cubic-bezier(.74, 0, .24, 1);
}
.opening-active .home-content {
  transform: translateY(26px);
  transition: transform 820ms cubic-bezier(.24, .75, .22, 1);
}
.opening-leaving .opening {
  pointer-events: none;
  transform: translateY(-100%);
}
.opening-leaving .home-content { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .opening-active .opening, .opening-active .home-content { transition: none; }
}

.front-join {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 19px;
  padding: 0 15px;
  border-radius: 99px;
  background: #392339;
  color: #fff7fb;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.front-join:hover { background: #5c3151; }

.front-home{background:#f9f2f5;color:#332137;padding:0 max(22px,calc((100vw - 1360px)/2)) clamp(52px,8vw,112px);scroll-margin:0}
.front-bar{min-height:75px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #deccd7}
.front-bar .brand{width:clamp(128px,28vw,174px)}
.front-bar>a:last-child{min-height:44px;display:flex;align-items:center;gap:6px;text-decoration:none;font-size:13px;font-weight:620}
.front-lead{display:grid;align-items:end;gap:32px;padding:clamp(45px,8vw,110px) 0 clamp(32px,5vw,66px)}
.front-lead h2{font-size:clamp(45px,11vw,94px);line-height:.98;letter-spacing:-.075em;font-weight:650}
.front-lead h2 em{color:#9b3059}
.front-lead p{color:#604d60;margin-top:22px;font-size:clamp(16px,1.55vw,20px);max-width:36ch}
.front-lead figure{overflow:hidden;background:#57374d;border-radius:24px 24px 4px 24px;aspect-ratio:1.42}
.front-lead figure img{display:block;width:100%;height:100%;object-fit:cover}
.front-paths{display:grid;border-top:1px solid #d7c3d0}
.front-paths a{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 0;border-bottom:1px solid #d7c3d0;color:#392339;text-decoration:none;min-height:79px}
.front-paths a>span{display:grid;gap:2px}
.front-paths strong{font-size:clamp(20px,2vw,26px);line-height:1.18;font-weight:650;letter-spacing:-.045em}
.front-paths a span span{color:#665166;font-size:14px}
.front-paths i{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;border:1px solid #d6b8ca;flex:none;color:#8a2e56}
.front-paths a:hover i{background:#f0dbe5}
.front-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:26px;padding:32px max(22px,calc((100vw - 1360px)/2));background:#180e1b}
.front-foot .brand{width:151px}
.front-foot nav{display:flex;flex-wrap:wrap;gap:14px 24px}
.front-foot nav a{color:#efdce9;font-size:13px;text-decoration:none}
.front-foot nav a:hover{text-decoration:underline}

@media (min-width: 721px) {
  .front-lead { grid-template-columns: 1.1fr .9fr; }
  .front-paths { grid-template-columns: 1fr 1fr; column-gap: 30px; }
}
