/* Only the approved scroll composition uses this stylesheet. */
.hero-sequence {
  background:#16100c;
  padding-top:var(--header-height);
  position:relative;
}
.hero-stage {
  position:relative;
  height:calc(100vh - var(--header-height));
  height:calc(100svh - var(--header-height));
  min-height:230px;
  color:#fff6e9;
}
@media (prefers-reduced-motion:no-preference) {
  .hero-sequence[data-scrub] { padding-bottom:0; height:320vh; height:320svh; height:round(up,320svh,1px); }
  .hero-sequence[data-scrub] .hero-stage { position:sticky; top:var(--header-height); }
}
.hero-field {
  position:absolute;
  inset:0;
  overflow:hidden;
  isolation:isolate;
  container-type:size;
  background:#16100c;
}
.hero-world,.hero-message {
  --art-width:min(100cqw,195.9cqh);
  --art-height:calc(var(--art-width) * .51047);
  position:absolute;
}
.hero-world {
  width:var(--art-width);
  height:var(--art-height);
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}
.hero-world::before {
  content:"";
  position:absolute;
  inset:-200% -25%;
  background:url("asaiah/scroll-hero/edges.webp") center/100% 100% no-repeat;
}
.hero-foundation { position:absolute; display:block; }
.hero-foundation { inset:0; width:100%; height:100%; }
.hero-cinema {
  position:absolute; inset:0; z-index:1; pointer-events:none; opacity:0;
  overflow:hidden; background:#191411;
}
.hero-reel {
  position:absolute; left:50%; top:50%;
  width:max(100cqw,175.556cqh); aspect-ratio:79/45;
  transform:translate(-50%,-50%);
  overflow:hidden; background:#19130e;
}
.hero-reel::before {
  content:""; position:absolute; inset:0;
  background:url("asaiah/scroll-hero/foundation.webp") center bottom/100% 90.62% no-repeat;
  transform-origin:0 0;
  transform:translate(var(--wall-x,0%),var(--wall-y,0%)) scale(var(--wall-scale,1));
}
.hero-film {
  position:absolute; inset:0; width:100%; height:100%; display:block;
  object-fit:fill; pointer-events:none;
  /* Only cut out the old lettering printed inside the supplied footage.
     The moving picture remains native video all the way to the display. */
  mask-image:linear-gradient(to right,transparent var(--label-x,-5%),black calc(var(--label-x,-5%) + 2.3%)),
    linear-gradient(to bottom,black var(--label-top,10%),transparent calc(var(--label-top,10%) + 2%),
      transparent var(--label-base,64%),black calc(var(--label-base,64%) + 1.7%));
  clip-path:inset(var(--raster-header,0%) 0 0);
}
.hero-message,.hero-down { z-index:2; }
.hero-message {
  top:calc(50% - var(--art-height) * .381);
  left:calc(50% - var(--art-width) * .454);
  width:calc(var(--art-width) * .36);
}
.hero-message p { margin:0; color:#F5F1E8; }
.hero-eyebrow { font:600 clamp(9px,calc(var(--art-width) * .0102),17px)/1.4 var(--sans); text-transform:uppercase; letter-spacing:.2em; }
.hero-message h1 {
  margin:calc(var(--art-width) * .012) 0 calc(var(--art-width) * .016);
  font:400 clamp(32px,calc(var(--art-width) * .049),100px)/.99 var(--serif);
  color:#F5F1E8; letter-spacing:-.042em;
}
.hero-message h1 span { color:#FF5A1F; }
.hero-description { font:500 clamp(12px,calc(var(--art-width) * .015),23px)/1.42 var(--sans); letter-spacing:-.013em; }
.hero-actions { display:flex; flex-wrap:wrap; gap:clamp(8px,1vw,19px); margin-top:calc(var(--art-width) * .019); }
.hero-actions a {
  display:inline-flex; justify-content:center; align-items:center; gap:.6em;
  padding:.7em 1.08em; min-height:44px; border:1px solid #DCC9A8; border-radius:5px;
  font:650 clamp(12px,calc(var(--art-width) * .0116),19px)/1.2 var(--sans);
  color:#F5F1E8; background:#19120eca; white-space:nowrap;
}
.hero-actions .hero-request { background:#FF5A1F; border-color:#FF5A1F; color:#21140c; }
.hero-actions a:hover { border-color:#F5F1E8; }
.hero-actions .hero-request:hover { background:#ff914f; }
.hero-down {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  position:absolute; left:50%; bottom:max(7px,2.4%); transform:translateX(-50%);
  min-height:44px; padding:0 15px; border:1px solid #9c8973; border-radius:3px;
  background:#241c16; color:#fff5df; font:650 13px/1 var(--sans); white-space:nowrap;
}
.hero-down:hover { border-color:#fff5df; }
.hero-down i { width:8px; height:8px; transform:translateY(-2px) rotate(45deg); border:solid #fff5df; border-width:0 2px 2px 0; }
.hero-stage a:focus-visible { outline:2px solid white; outline-offset:4px; }

@media (max-aspect-ratio:1/1), (max-width:650px) and (min-height:500px) {
  .hero-world {
    --art-width:min(153cqw,151cqh);
    top:70%; left:98.5%;
    transform:translate(-98%,-50%);
  }
  .hero-message {
    top:clamp(17px,4.2cqh,58px); left:6%; width:88%;
  }
  .hero-message h1 { margin:9px 0 12px; font-size:clamp(43px,min(10.7cqw,8cqh),76px); line-height:.97; }
  .hero-eyebrow { font-size:clamp(10px,2.3cqw,14px); }
  .hero-description { font-size:clamp(14px,3.25cqw,20px); }
  .hero-actions { margin-top:15px; gap:9px; }
  .hero-actions a { font-size:clamp(12px,2.95cqw,17px); }
}
@media (max-aspect-ratio:1/1) and (max-height:710px) {
  .hero-world { top:73%; }
  .hero-message { top:15px; }
  .hero-message h1 { font-size:clamp(39px,10cqw,52px); margin:6px 0 7px; }
  .hero-actions { margin-top:10px; }
}
@media (min-aspect-ratio:1/1) and (max-height:520px) {
  .hero-message { width:calc(var(--art-width) * .375); top:calc(50% - var(--art-height) * .44); }
  .hero-message h1 { font-size:clamp(25px,6.8cqh,39px); margin:4px 0 6px; }
  .hero-eyebrow { font-size:9px; letter-spacing:.14em; }
  .hero-description { font-size:12px; }
  .hero-actions { margin-top:7px; gap:5px; }
  .hero-actions a { font-size:11px; padding:5px 8px; }
}

@media (prefers-reduced-motion:no-preference) and (max-width:800px) {
  .hero-sequence[data-scrub] { height:250vh; height:250svh; height:round(up,250svh,1px); }
}

/* Keep the native moving picture sharp. Only the set outside the phone crop
   extends vertically, using the wood and marble from the approved photograph. */
@media (max-aspect-ratio:1/1) {
  .hero-field,.hero-cinema {
    background:#17100b url("asaiah/scroll-hero/portrait-office.webp") center/cover no-repeat;
  }
  .hero-world {
    --art-width:min(154cqw,176cqh);
    left:calc(50% - var(--art-width) * .171); top:67%;
    transform:translate(-50%,-50%);
    mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent);
  }
  .hero-world::before { display:none; }
  .hero-reel {
    --frame-width:min(var(--portrait-width,154cqw),max(100cqw,176cqh));
    width:var(--frame-width);
    left:clamp(calc(100% - var(--frame-width) * .5),
      calc(50% + var(--frame-width) * var(--portrait-shift,-.171)),calc(var(--frame-width) * .5));
    top:var(--portrait-top,64.5%);
    mask-image:linear-gradient(to bottom,transparent 1%,#000 16%,#000 88%,transparent);
  }
  .hero-down { bottom:max(env(safe-area-inset-bottom,0px),9px); }
}

.desk-map {
  --art-width:min(100cqw,195.9cqh);
  position:absolute; z-index:2; width:var(--art-width); aspect-ratio:1672/853;
  left:50%; top:50%; transform:translate(-50%,-50%); pointer-events:none;
}
.hero-sequence:is([data-playback="INTRO"],[data-playback="SCROLL"]) .desk-map { visibility:hidden; }
.desk-object { position:absolute; display:block; pointer-events:auto; color:#fff4df; }
.desk-laptop { left:42.8%; top:38.3%; width:26.6%; height:39%; }
.desk-property { left:65.7%; top:23.6%; width:32.5%; height:45.5%; }
.desk-object svg { width:100%; height:100%; overflow:visible; pointer-events:none; }
.desk-object path { fill:transparent; stroke:#f2bd87; stroke-width:1.8; vector-effect:non-scaling-stroke; stroke-dasharray:1; stroke-dashoffset:1; }
.desk-pin { position:absolute; left:12%; bottom:13%; display:inline-flex; gap:0; align-items:center; max-width:90%; padding:5px; background:#29231e; border:1px solid #e4b789; color:#fff2df; border-radius:1.2em; box-shadow:0 1px 8px #21180d70; font:650 clamp(10px,.87vw,14px)/1.3 var(--sans); }
.desk-pin i { display:grid; flex:0 0 15px; height:15px; place-items:center; }
.desk-pin i::after { content:"+"; font:400 18px/14px var(--sans); color:#f7ce9f; }
.desk-pin > span { max-width:0; opacity:0; overflow:hidden; white-space:nowrap; }
.desk-object:is(:hover,:focus-visible) path { stroke-dashoffset:0; }
.desk-object:is(:hover,:focus-visible) .desk-pin > span { opacity:1; max-width:10em; margin:0 .5em 0 .33em; }
.desk-object:focus-visible { outline:none; }
.desk-object:focus-visible .desk-pin { outline:2px solid #fff; outline-offset:3px; }
@media (min-aspect-ratio:1/1) and (hover:hover) and (min-width:701px) {
  .desk-object { pointer-events:none; }
  .desk-object path { pointer-events:visiblePainted; }
  .desk-pin { pointer-events:auto; }
}
@media (prefers-reduced-motion:no-preference) {
  .desk-object path { transition:stroke-dashoffset .46s ease-out; }
  .desk-pin > span { transition:max-width .23s ease-out, opacity .16s; }
}
@media(max-aspect-ratio:1/1),(hover:none),(max-width:700px) {
  .desk-map { left:4%; width:92%; height:auto; aspect-ratio:auto; top:auto; bottom:50px; transform:none; display:flex; justify-content:center; gap:8px; }
  .desk-object { position:static; width:auto; height:auto; display:flex; align-items:center; min-height:44px; }
  .desk-object svg { display:none; }
  .desk-pin { position:static; padding:7px 11px; font-size:12px; max-width:none; }
  .desk-pin > span,.desk-object:is(:hover,:focus-visible) .desk-pin > span { opacity:1; max-width:none; margin:0 0 0 5px; }
}
@media (forced-colors:active) { .desk-pin { border-color:LinkText; } .desk-object path { stroke:LinkText; } }
/* The offer stays in the same place over both the opening still and the film. */
.hero-cinema::after {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(90deg,rgb(19,13,10) 0%,rgba(19,13,10,.99) 33%,rgba(19,13,10,.96) 41%,rgba(19,13,10,.80) 45%,rgba(19,13,10,0) 62%);
}
.hero-message h1 { font-size:clamp(30px,calc(var(--art-width) * .044),81px); text-wrap:balance; line-height:1.02; margin:0; }
.hero-message h1 em { color:#efc397; font-weight:400; }
.hero-request { white-space:nowrap; }
@media (max-aspect-ratio:1/1), (max-width:650px) and (min-height:500px) {
  .hero-cinema::after { background:linear-gradient(180deg,rgba(20,13,9,.96),rgba(20,13,9,.85) 23%,rgba(20,13,9,.68) 34%,rgba(20,13,9,0) 51%); }
  .hero-message h1 { font-size:clamp(32px,min(9.2cqw,7.4cqh),66px); max-width:17ch; }
}
@media (min-aspect-ratio:1/1) and (max-height:520px) {
  .hero-message h1 { font-size:clamp(21px,6.1cqh,29px); }
}
