
.hp-first{--night:#020306;font-size:16px;line-height:normal}
.hp-first *{box-sizing:border-box}

:where(.hp-first) a{color:inherit;text-decoration:none}
.hp-first button{font:inherit;color:inherit}
.hp-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:pan-y;outline:none;cursor:grab}
.hp-canvas.hp-pick{cursor:pointer}
.hp-canvas.hp-drag{cursor:grabbing}
.hp-scrim{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(2,3,6,.9) 0,rgba(2,3,6,.62) 20%,rgba(2,3,6,0) 44%),linear-gradient(180deg,rgba(2,3,6,.55),rgba(2,3,6,0) 20%)}

.hp-scrim::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,3,6,.93) 0,rgba(2,3,6,.84) 27%,rgba(2,3,6,0) 47%);opacity:0;transition:opacity .7s}
.hp-busy .hp-scrim::after{opacity:1}


.hp-col{position:absolute;left:40px;top:112px;bottom:50px;width:min(390px,31vw);z-index:2;pointer-events:none;display:flex;flex-direction:column}
.hp-col>*{pointer-events:auto}
.hp-panes{position:relative;flex:1;min-height:0}
.hp-pane{position:absolute;inset:0;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .45s,transform .45s,visibility 0s .45s}
.hp-pane.hp-on{opacity:1;visibility:visible;transform:none;transition:opacity .6s .15s,transform .6s .15s}
.hp-eyebrow,.hp-kick{margin:0;font-size:14px;letter-spacing:.22em;color:var(--brass)}
.hp-kick::before,.hp-eyebrow::before{content:"";display:inline-block;width:22px;height:1px;background:var(--cinnabar);vertical-align:middle;margin-right:12px}
.hp-first h1{margin:20px 0 0;font-size:clamp(34px,3.5vw,50px);line-height:1.24;font-weight:600;letter-spacing:.06em;color:var(--ink)}
.hp-first h2{margin:18px 0 0;font-size:clamp(30px,3vw,42px);line-height:1.2;font-weight:600;letter-spacing:.08em;color:var(--gold)}
.hp-first h2 small{display:block;margin-top:8px;font-size:14px;font-weight:400;letter-spacing:.2em;color:var(--ink-mute)}
.hp-lede,.hp-body{margin:18px 0 0;font-size:16px;line-height:1.85;color:var(--ink-soft)}
.hp-kw{margin:14px 0 0;font-size:15px;letter-spacing:.2em;color:var(--pale)}
.hp-ask{margin:14px 0 0;font-size:14.5px;line-height:1.8;color:var(--ink-mute)}
.hp-ask b{font-weight:400;color:var(--ink-soft)}

.hp-acts{list-style:none;margin:30px 0 0;padding:0}
.hp-acts button{all:unset;display:grid;grid-template-columns:36px 1fr;column-gap:8px;row-gap:3px;width:100%;padding:13px 0;cursor:pointer;border-top:1px solid rgba(201,169,110,.15);position:relative}
.hp-acts li:last-child button{border-bottom:1px solid rgba(201,169,110,.15)}
.hp-acts i{grid-row:1/3;font-style:normal;font-size:15px;color:var(--brass-dim);padding-top:4px;transition:color .25s}
.hp-acts b{font-size:19px;font-weight:600;letter-spacing:.14em;color:var(--ink);transition:color .25s}
.hp-acts span{font-size:13.5px;line-height:1.5;color:var(--ink-mute)}
.hp-acts button::after{content:"";position:absolute;left:-40px;top:50%;width:0;height:1px;background:var(--cinnabar);transition:width .3s}
.hp-acts button:hover b,.hp-acts button:focus-visible b{color:var(--gold)}
.hp-acts button:hover i,.hp-acts button:focus-visible i{color:var(--gold)}
.hp-acts button:hover::after,.hp-acts button:focus-visible::after{width:30px}

.hp-go{display:block;margin-top:26px;font-size:19px;letter-spacing:.12em;color:var(--gold);cursor:pointer;position:relative;padding-left:42px;transition:padding .3s}
.hp-go::before{content:"";position:absolute;left:0;top:.72em;width:30px;height:1px;background:var(--cinnabar);transition:width .3s}
.hp-go:hover,.hp-go:focus-visible{padding-left:56px;outline:none}
.hp-go:hover::before,.hp-go:focus-visible::before{width:44px}
.hp-go small{display:block;margin-top:7px;font-size:13px;letter-spacing:.08em;color:var(--ink-mute)}
.hp-more{margin-top:20px;display:flex;flex-wrap:wrap;gap:8px 22px}
.hp-more button{all:unset;cursor:pointer;font-size:14px;letter-spacing:.08em;color:var(--ink-soft);transition:color .25s}
.hp-more button:hover,.hp-more button:focus-visible{color:var(--gold)}
.hp-more button[disabled]{opacity:.38;cursor:default}
.hp-yao{margin:14px 0 0;padding:0;list-style:none;display:flex;flex-direction:column-reverse;gap:3px;font-size:14px;letter-spacing:.1em;color:var(--ink-mute)}
.hp-yao li b{font-weight:400;color:var(--ink-soft);margin-right:10px}
.hp-yao li.hp-mv{color:#d0604f}

.hp-rail{margin-top:auto;padding-top:14px;display:grid;gap:7px;font-size:13.5px;letter-spacing:.05em;color:var(--ink-mute)}
.hp-rail a{display:flex;gap:12px;white-space:nowrap;overflow:hidden;transition:color .25s}
.hp-rail a b{font-weight:400;color:var(--brass);letter-spacing:.2em;flex:none}
.hp-rail a span{overflow:hidden;text-overflow:ellipsis}
.hp-rail a:hover,.hp-rail a:focus-visible{color:var(--ink);outline:none}

.hp-tips{position:absolute;inset:0;pointer-events:none;z-index:1}
.hp-tip{position:absolute;left:0;top:0;font-size:13px;letter-spacing:.2em;color:var(--pale);white-space:nowrap;opacity:0;transition:opacity .6s;text-shadow:0 0 12px #000,0 0 3px #000}
.hp-tip::before{content:"";display:block;width:1px;height:26px;margin:0 auto 6px;background:linear-gradient(var(--cinnabar),rgba(179,54,43,0))}
.hp-tip.hp-on{opacity:.92}

.hp-veil{position:absolute;inset:0;background:var(--night);display:grid;place-content:center;justify-items:center;gap:18px;z-index:8;transition:opacity 1.1s;font-size:17px;letter-spacing:.4em;color:var(--pale)}
.hp-veil i{display:block;width:150px;height:1px;background:rgba(201,169,110,.2);position:relative;overflow:hidden}
.hp-veil i::after{content:"";position:absolute;inset:0;background:var(--cinnabar);transform-origin:left;transform:scaleX(var(--p,0));transition:transform .3s}
.hp-veil.hp-off{opacity:0;pointer-events:none}

@media (max-width:760px){
  .hp-scrim{background:linear-gradient(180deg,rgba(2,3,6,.88) 0,rgba(2,3,6,.5) 20%,rgba(2,3,6,0) 36%),linear-gradient(0deg,rgba(2,3,6,.92) 0,rgba(2,3,6,0) 30%)}
  .hp-scrim::after{display:none}
  .hp-col{left:18px;right:18px;top:56px;bottom:0;width:auto}
  .hp-panes{position:static;flex:none}
  .hp-pane{position:static;display:none;transform:none}
  .hp-pane.hp-on{display:block}
  .hp-eyebrow,.hp-kick{font-size:12px}
  .hp-first h1{margin-top:10px;font-size:29px}
  .hp-lede{margin-top:8px;font-size:13.5px;line-height:1.7}
  .hp-acts{position:absolute;left:0;right:0;bottom:0;margin:0;padding:0 10px calc(14px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,1fr)}
  .hp-acts button{display:block;text-align:center;padding:12px 2px;border:0!important}
  .hp-acts i{display:block;font-size:12px;padding:0 0 4px}
  .hp-acts b{font-size:18px}
  .hp-acts span{display:block;margin-top:4px;font-size:11.5px}
  .hp-acts button::after{display:none}
  .hp-rail{position:absolute;left:0;right:0;bottom:calc(112px + env(safe-area-inset-bottom));margin:0;padding:0;display:flex;justify-content:center;gap:22px;font-size:13px}
  .hp-rail a span{display:none}
  .hp-pane:not([data-pane=hero]).hp-on{position:absolute;inset:auto 0 0 0;max-height:47vh;overflow:auto;padding:54px 20px calc(18px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(2,3,6,0),rgba(2,3,6,.93) 54px)}
  .hp-first h2{margin-top:10px;font-size:27px}
  .hp-first h2 small{margin-top:5px;font-size:12px}
  .hp-kw{margin-top:8px;font-size:13.5px}
  .hp-body{margin-top:8px;font-size:14.5px;line-height:1.7}
  .hp-ask{display:none}
  .hp-go{margin-top:14px;font-size:17px}
  .hp-more{margin-top:12px}
  .hp-yao{flex-direction:row;flex-wrap:wrap;gap:2px 14px;font-size:12.5px;margin-top:8px}
  .hp-busy .hp-acts,.hp-busy .hp-rail,.hp-busy .hp-lede{display:none}
}
@media (prefers-reduced-motion:reduce){.hp-pane,.hp-pane.hp-on,.hp-tip,.hp-veil{transition:none}}

.hp-first{position:relative;height:100vh;overflow:hidden;background:var(--night)}
.hp-stage,.hp-engine{position:absolute;inset:0}
.hp-stage{background:linear-gradient(#020306aa,#020306aa),url('./courtyard-v1/overview.jpg') center/cover}
.hp-stage::after{content:"";position:absolute;inset:0;background:#02030688;pointer-events:none}
.hp-stage.hp-ready::after{display:none}
.hp-engine{pointer-events:none}
.hp-canvas{pointer-events:auto}
.hp-veil{background:#02030688;pointer-events:none}
.hp-col{pointer-events:none}
.hp-col>.hp-panes{pointer-events:none}
.hp-pane.hp-on{pointer-events:auto}
.hp-first.hp-busy>.hp-col>.hp-panes{visibility:hidden;pointer-events:none}
.hp-first.hp-busy>.hp-col>.hp-panes .hp-pane{visibility:hidden;pointer-events:none}
.hp-results{z-index:3}
.hp-results .hp-pane.hp-on{pointer-events:auto}
.hp-rail-row{display:flex;gap:12px}
.hp-rail-row>b{font-weight:400;color:var(--brass);letter-spacing:.2em;flex:none}
.hp-rail-row>span{display:flex;flex-wrap:wrap;gap:3px 12px;min-width:0}
.hp-rail-row a{flex:none;max-width:100%}
.hp-rail-row em{font:inherit;color:var(--brass-dim)}
.hp-rail-row em.hv-price{font-family:var(--latin);color:var(--gold)}
.hp-foot{display:none}
@media(max-width:760px){
  /* The column covers the first screen and stays positioned, so that its text and the result sheet paint above the
     canvas and the scrim; the actions, the rail and the sheet then span the full width. */
  .hp-col{position:absolute;inset:0;width:auto}
  .hp-panes{position:static}
  .hp-first>.hp-col>.hp-panes>.hp-pane{position:static;margin:56px 18px 0}
  .hp-col .hp-acts{position:absolute;bottom:0;left:0;right:0}
  .hp-rail-row>span{display:none}
  .hp-first>.hp-col>:is(.hv-fine,.hv-readers,.hv-study){display:none}
  .hp-foot{display:block;padding:18px 18px 0}
}

.hp-first :is(.hv-fine,.hv-readers,.hv-study){line-height:1.7}
.hp-rail-row a .hv-e-s{display:none}

/* Laptop windows are short (a 1366×768 screen leaves about 650 px). The column tightens in steps so that the three
   actions never run into the rail, and a result pane takes the rail's room while it is open. */
:lang(en) .hp-first h1{font-size:clamp(30px,2.9vw,40px);letter-spacing:.02em}
@media (min-width:761px) and (max-height:860px){
  .hp-col{top:92px;bottom:30px}
  .hp-first h1,:lang(en) .hp-first h1{margin-top:14px;font-size:clamp(30px,3vw,40px)}
  .hp-lede{margin-top:12px;line-height:1.7}
  .hp-acts{margin-top:18px}
  .hp-acts button{padding:9px 0}
  .hp-rail{gap:4px;padding-top:10px}
  .hp-busy .hp-rail{visibility:hidden}
}
@media (min-width:761px) and (max-height:740px){
  .hp-col{top:78px;bottom:20px}
  .hp-first h1,:lang(en) .hp-first h1{margin-top:10px;font-size:32px}
  .hp-lede{margin-top:10px;font-size:14.5px}
  .hp-acts{margin-top:14px}
  .hp-acts span{display:none}
  .hp-acts button{padding:8px 0}
  .hp-first h2{margin-top:12px;font-size:30px}
  .hp-body{margin-top:12px;line-height:1.7}
  .hp-go{margin-top:18px}
}
@media (min-width:761px) and (max-height:640px){
  .hp-lede{display:none}
  .hp-ask{display:none}
}
/* English runs longer: a third line of lede, six lines of rail. */
:lang(en) .hp-lede{line-height:1.65}
:lang(en) .hp-rail-row>b{letter-spacing:.14em}
@media (min-width:761px) and (max-height:860px){:lang(en) .hp-acts span{display:none}}
