/* ---------- the first screen: the phone and the desktop (tools/build/hero.py) ----------
   Owner's rules (2026-11-04): a centered two-line headline; a browser exactly as wide as the container, light inside;
   a dark phone in front of the browser's sidebar; nothing drifts on scroll. */
.hx{--ww:min(calc(100vw - 56px),1124px);--pho:clamp(132px,17.2vw,250px);--ov:calc(var(--ww) * .3);
  --over:min(calc(var(--pho) * .46),max(8px,calc((100vw - var(--ww)) / 2 - 22px)));
  position:relative;padding:0;overflow:hidden;
  background:radial-gradient(60% 38% at 50% 44%,rgba(201,166,120,.22),transparent 74%),radial-gradient(40% 30% at 12% 8%,rgba(245,197,192,.18),transparent 70%)}
.hx::before,.hx::after{content:none}

.hx-top{position:relative;z-index:3;text-align:center;padding:clamp(26px,4.2vh,52px) 16px 0}
.hx h1{margin:0 auto;max-width:none;font-size:clamp(40px,6.6vw,96px);line-height:1.01;letter-spacing:-.026em}
.hx .sub{margin:clamp(14px,1.8vh,20px) auto 0;max-width:46ch;font-size:clamp(17px,1.4vw,20.5px);line-height:1.45;color:var(--ink-2);text-wrap:balance}
.hx .hero-cta{display:flex;justify-content:center;margin-top:clamp(18px,2.6vh,26px)}

.hx-stage{position:relative;z-index:2;margin-top:clamp(28px,4.4vh,48px)}
.hx-rail{position:relative}

/* the browser: dark chrome, the light web app inside */
.hx-web{container-type:inline-size;animation:hxRise 1.1s cubic-bezier(.16,1,.3,1) both}
.hx-web-in{border-radius:1.25cqw;overflow:hidden;background:var(--cream);
  box-shadow:0 0 0 1px #17130F,0 2px 0 1px rgba(255,255,255,.05) inset,0 70px 120px -46px rgba(42,18,10,.6),0 26px 50px -26px rgba(42,18,10,.38)}
.hx-tabs{display:flex;align-items:flex-end;gap:.7cqw;height:3.1cqw;padding:0 1.1cqw;background:#17130F}
.hx-tab{display:flex;align-items:center;gap:.65cqw;height:2.55cqw;padding:0 .8cqw 0 .9cqw;width:17cqw;border-radius:.8cqw .8cqw 0 0;background:#2B2520;color:#EDE5DA;font:500 1.08cqw/1 var(--sans)}
.hx-tab img{width:1.35cqw;height:1.35cqw;border-radius:.3cqw}
.hx-tab b{flex:1;font-weight:500;white-space:nowrap}
.hx-tab svg{width:1.05cqw;height:1.05cqw;color:#9A9085}
.hx-new{display:flex;align-self:center;color:#9A9085}
.hx-new svg{width:1.2cqw;height:1.2cqw}
.hx-bar{display:flex;align-items:center;gap:1.1cqw;height:3.5cqw;padding:0 1.1cqw;background:#2B2520}
.hx-nav{display:flex;gap:.85cqw;color:#A89E92}
.hx-nav svg{width:1.35cqw;height:1.35cqw}
.hx-nav svg:nth-child(2){opacity:.45}
.hx-url{flex:1;display:flex;align-items:center;gap:.6cqw;height:2.35cqw;padding:0 1cqw;border-radius:99px;background:#3B342E;color:#F1E9DE;font:400 1.14cqw/1 var(--sans)}
.hx-url svg{width:1.05cqw;height:1.05cqw;color:#A89E92}
.hx-av{display:grid;place-items:center;width:2cqw;height:2cqw;border-radius:50%;background:var(--gold);color:var(--ink);font:600 1cqw/1 var(--sans)}
.hx-view{aspect-ratio:2560/1410;overflow:hidden;background:var(--cream)}
.hx-view img{display:block;width:100%;height:auto;max-width:none}

/* the phone: in front of the sidebar, standing a little below the browser's edge */
.hx-phone{--pw:var(--pho);position:absolute;z-index:3;left:calc(var(--over) * -1);bottom:calc(var(--pho) * -.08);width:var(--pw);height:calc(var(--pw) * 2.0949);
  animation:hxRise 1.2s cubic-bezier(.16,1,.3,1) .14s both}
.hx-phone .iphone{--w:var(--pw)}
.hx-phone .ip-floor{display:none}
.hx-phone::before{content:"";position:absolute;inset:3% 4% 0;z-index:-1;border-radius:calc(var(--pw) * .16);
  box-shadow:0 40px 64px -12px rgba(26,10,6,.55),0 14px 26px rgba(26,10,6,.28)}
@keyframes hxRise{from{opacity:0;transform:translateY(34px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hx-web,.hx-phone{animation:none}}

/* the espresso panel under the devices: what lives where */
.hx-panel{position:relative;z-index:1;margin:calc(var(--ov) * -1) 14px 14px;padding-top:calc(var(--ov) + clamp(56px,6.4vw,92px));border-radius:34px;background-color:#1E1A16;
  background-image:radial-gradient(48% 62% at 0% 24%,rgba(122,38,58,.34),transparent 74%),radial-gradient(40% 56% at 100% 24%,rgba(122,38,58,.22),transparent 74%)}
.hx-lower{display:grid;grid-template-columns:1fr 1fr;gap:22px clamp(28px,6vw,104px);padding-bottom:34px}
.hx-col{max-width:44ch}
.hx-col:nth-child(2){justify-self:end}
.hx-k{display:block;font:400 clamp(30px,3vw,44px)/1.02 var(--display);letter-spacing:-.016em;color:#F6EFE5}
.hx-k em{font-style:italic;color:var(--gold)}
.hx-col p{margin:12px 0 0;font-size:16px;line-height:1.55;color:#DACDBD}
.hx-open{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-size:14.5px;font-weight:500;color:#F1E3CC;text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(201,166,120,.55);transition:color .2s cubic-bezier(.16,1,.3,1),text-decoration-color .2s cubic-bezier(.16,1,.3,1)}
.hx-open:hover{color:#fff;text-decoration-color:var(--gold)}
.hx-open:focus-visible{outline:2px solid var(--gold);outline-offset:4px;border-radius:4px}
.hx .hero-meta{grid-column:1 / -1;justify-content:center;margin-top:clamp(12px,2vw,24px);color:#BDB1A3;font-size:13.5px}
.hx .hero-meta .dot-sep{background:#6E655B}

@media (max-width:760px){
  .hx{--pho:33vw;--over:0px;--ov:calc(var(--ww) * .34)}
  .hx-top{padding-top:22px}
  .hx h1{font-size:clamp(34px,10.4vw,64px)}
  .hx-br{display:none}
  .hx .sub{padding:0 6px;font-size:17px}
  .hx-tabs,.hx-nav{display:none}
  .hx-bar{height:38px;gap:10px;padding:0 12px}
  .hx-url{height:26px;gap:6px;padding:0 12px;font-size:12.5px}
  .hx-url svg{width:12px;height:12px}
  .hx-av{width:22px;height:22px;font-size:11px}
  .hx-web-in{border-radius:14px}
  .hx-view{aspect-ratio:1/1.02}
  .hx-view img{width:212%;margin-left:-38%}
  .hx-phone{left:-6px;bottom:-22px}
  .hx-panel{margin:calc(var(--ov) * -1) 8px 8px;border-radius:26px;padding-top:calc(var(--ov) + 52px)}
  .hx-lower{grid-template-columns:1fr;gap:22px;padding-bottom:24px}
  .hx-col:nth-child(2){justify-self:start}
  .hx .hero-meta{justify-content:flex-start;flex-wrap:wrap;gap:4px 12px;margin-top:6px}
}
