/* Two lenses, cut from the same material as the warm stone in the hero. */
@property --door-bearing { syntax:"<angle>";inherits:false;initial-value:0deg }
.system-entrances {
  inline-size:min(100%,36rem);display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.32fr);align-items:center;
  gap:clamp(8px,1.1vw,16px);margin-block-start:calc(clamp(18px,3svh,32px) + 12px);
}
.system-door--measure {
  --face:#e2ccb0;--glass:rgba(242,220,190,.64);--ink:#231a13;--detail:#3a2b20;
  --rim:rgba(234,213,178,.78);--hair:#fffaef;--beam:#fff5cf;--wake:#f3c47b;--start:34deg;
}
.system-door--studio {
  --face:#392e28;--glass:rgba(32,24,20,.60);--ink:#fff9f0;--detail:#fae9d2;
  --rim:rgba(203,180,144,.72);--hair:#ffe9cf;--beam:#fff8e8;--wake:#ebbd84;--start:217deg;
}
.system-door {
  position:relative;isolation:isolate;min-inline-size:0;min-block-size:62px;
  display:flex;gap:clamp(8px,.85vw,14px);align-items:center;
  padding:9px clamp(13px,1.35vw,21px);border-radius:100px;
  background:linear-gradient(153deg,rgba(255,247,231,.24),transparent 36%,transparent 68%,rgba(255,231,191,.08)),var(--face);
  box-shadow:inset 0 0 0 1px var(--rim),inset 0 2px 2px -1px var(--hair),0 3px 12px #1c130f38;
  color:var(--ink);text-align:start;text-decoration:none;-webkit-tap-highlight-color:transparent;
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .system-door {background-color:var(--glass);-webkit-backdrop-filter:blur(7px) saturate(.94);backdrop-filter:blur(7px) saturate(.94)}
}
.system-door__mark {width:23px;height:23px;flex:none;color:var(--detail)}
.system-door strong,.system-door small {display:block}
.system-door strong {font:650 clamp(1.02rem,1.24vw,1.2rem)/1.22 var(--font)}
.system-door small {margin-top:2px;color:var(--detail);font:500 .86rem/1.25 var(--font)}
.system-door__arrow {margin-inline-start:auto;color:var(--detail);font:400 1.1rem/1 var(--font)}
/* Mask out the entire face: light travels along the cut edge, never over the lettering. */
@supports ((mask-composite:exclude) or (-webkit-mask-composite:xor)) {
  .system-door::before {
    content:"";position:absolute;inset:0;border-radius:inherit;padding:1.7px;pointer-events:none;
    background:conic-gradient(from calc(var(--door-bearing) + var(--start)),transparent 0deg 279deg,var(--wake) 319deg,var(--beam) 342deg,#fffdf3 351deg,transparent 355deg 360deg);
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;mask-composite:exclude;
  }
}
.system-door:focus-visible {outline:2px solid #fff7e8;outline-offset:4px;box-shadow:0 0 0 6px #483a2c}
@media (prefers-reduced-motion:no-preference) {
  .system-door {transition:transform .18s ease}
  /* The different starting angles keep the two steady orbits out of phase. */
  .system-door::before {animation:door-perimeter 8.5s linear infinite}
  .system-door:active {transform:scale(.985)}
  @media (hover:hover) {
    .system-door:hover {transform:translateY(-2px)}
  }
  @keyframes door-perimeter {from {--door-bearing:0deg} to {--door-bearing:360deg}}
}
@media(max-width:460px) {
  .system-entrances {max-width:26rem;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)}
  .system-door--studio {text-align:center;border-radius:24px}
  .system-door--studio .system-door__mark {display:none}
  .system-door.system-door--measure {padding-inline:8px;gap:5px}
  .system-door {min-block-size:57px;gap:8px;padding-inline:12px;justify-content:center}
  .system-door strong {white-space:nowrap;font-size:1rem}
  .system-door__mark {width:18px;height:18px}
  .system-door__arrow {display:none}
}
@media(max-width:360px) {.system-door {padding-inline:8px;gap:5px}.system-door__mark {width:15px;height:15px}}
@media(max-width:360px) {.system-door--measure .system-door__mark {display:none}}
@media(max-height:520px) and (orientation:landscape) {
  .system-entrances {margin-block-start:12px}
  .system-door {min-block-size:46px;padding-block:4px}
}
@media(forced-colors:active) {
  .system-door {border:1px solid ButtonText}
  .system-door::before {display:none}
}
