/* The home page hero as a scene (HP2, Edward 2026-11-16: the imagery is the first thing a
   visitor sees, the words are second, and nothing bounds it with a visible rectangle).

   One photograph of a city, edge to edge. Outside the lenses it is out of focus and under a little cloud: everything a business holds. Inside the two lenses the downtown is close and sharp, and the star is drawn on it: the
   part the business said it needs. The scene fades into the page above and below.

   --hx and --hy are where the lenses rest, --lx and --ly where they are now (home-hero-scene.js
   moves them), --r one lens's radius. The mask and the glass edge both read them, so they
   cannot part. Loaded after home-terminal-press.css, whose .hero rules it overrides. */

/* --call is the room at the hero's foot that the demo's invitation stands in (see the end). */
.hero.hero--scene { --call: 150px; --hx: 70%; --hy: 48%; --lx: var(--hx); --ly: var(--hy); --r: clamp(128px, 11.4vw, 182px);
  position: relative; padding: 0; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, calc(100vh - 200px), 860px); }
.hero--scene .band-in { max-width: none; margin: 0; }
/* The words that name what the glass does are set heavier, so the eye ties them to it. */
.htp .hero--scene .sc-words strong { font-weight: 700; color: var(--ink); }

.sc-bg, .sc-copy { position: absolute; inset: 0; background: url(home-hero-scene.jpg) 60% 46% / cover no-repeat; }
/* Outside the glass the city is simply out of focus, in its own daylight colors, as a camera
   leaves what it is not pointed at: no grey wash and no doubled outlines (Edward, 11-16: the
   overlaid copies had "a creepy ghostly uniformity"). The air thickens toward the horizon and
   clears toward the near streets, so the haze has depth and is not one flat veil. */
.sc-bg { inset: -30px; filter: blur(3.2px) saturate(.96) brightness(1.02); }
.sc-copy { display: none; }
.sc-haze { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(236,242,250,.5) 0, rgba(238,243,249,.42) 30%, rgba(244,245,246,.16) 58%, rgba(251,250,247,.06) 100%); }
.sc-fog { position: absolute; inset: 0; }
.sc-fog i { position: absolute; border-radius: 50%; filter: blur(10px);
  background: radial-gradient(closest-side, rgba(255,255,255,.34), rgba(255,255,255,.14) 45%, rgba(255,255,255,0)); }
@media (prefers-reduced-motion: no-preference) {
  .sc-fog i { animation: sc-drift 70s ease-in-out infinite alternate; }
  .sc-fog i:nth-child(2n) { animation-duration: 95s; animation-direction: alternate-reverse; }
  @keyframes sc-drift { from { transform: translate3d(-2.5vw, 0, 0); } to { transform: translate3d(2.5vw, -6px, 0); } }
}

.sc-lens { position: absolute; inset: 0;
  -webkit-mask: radial-gradient(circle var(--r) at calc(var(--lx) - var(--r) * .6667) var(--ly), #000 99.4%, transparent 100%),
                radial-gradient(circle var(--r) at calc(var(--lx) + var(--r) * .6667) var(--ly), #000 99.4%, transparent 100%);
          mask: radial-gradient(circle var(--r) at calc(var(--lx) - var(--r) * .6667) var(--ly), #000 99.4%, transparent 100%),
                radial-gradient(circle var(--r) at calc(var(--lx) + var(--r) * .6667) var(--ly), #000 99.4%, transparent 100%); }
/* Through the glass the city is close: a second photograph, of the downtown's own blocks, fills
   the box the two lenses stand in at twice its width, so a window, a roof and a parked car can be
   told apart. --dx and --dy are how far the view has panned (the script sets them: the whole of
   the glass's travel laid over the whole of what the photograph holds); moving the glass looks
   along the streets, and the stars, drawn on the same view, stay on their buildings. */
.sc-sharp { position: absolute; overflow: hidden;
  left: calc(var(--lx) - var(--r) * 1.6667); top: calc(var(--ly) - var(--r));
  width: calc(var(--r) * 3.3333); height: calc(var(--r) * 2);
  background: url(home-hero-scene-close.jpg) no-repeat;
  background-size: 200% auto;
  background-position: calc(50% - var(--dx, 0px)) calc(50% - var(--dy, 0px));
  filter: saturate(1.08) contrast(1.04); }
.sc-star { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  translate: calc(var(--dx, 0px) * -1) calc(var(--dy, 0px) * -1); }
/* One star for each kind of business the glass can find: the thing measured in the middle, in
   the brand's blue, and what it is read by on fine white lines around it, inside a dashed ring
   like a sight's. Only the star the glass is over shows; the script fades the others in as the
   glass reaches them, and with no script the one at rest is the one in sight. */
.sc-star-one { opacity: 0; transition: opacity .35s ease; filter: drop-shadow(0 1px 2px rgba(8,14,26,.45)); }
.sc-star-one.is-home { opacity: 1; }
.sc-ring { fill: none; stroke: #fff; stroke-opacity: .6; stroke-width: .8; stroke-dasharray: 1.5 4; }
.sc-spoke { fill: none; stroke: #fff; stroke-opacity: .92; stroke-width: 1; }
.sc-end { fill: #fff; stroke: #0048BA; stroke-width: 1.2; }
.sc-tag { fill: #0f1726; fill-opacity: .7; }
.sc-tag-t { fill: #fff; font-family: var(--font); font-size: 8.6px; font-weight: 500; letter-spacing: .02em; }
.sc-hub-halo { fill: #0048BA; fill-opacity: .3; }
.sc-hub { fill: #0048BA; stroke: #fff; stroke-width: 1.6; }
.sc-hub-tag { fill: #0048BA; }
.sc-hub-t { fill: #fff; font-family: var(--font); font-size: 9.6px; font-weight: 600; letter-spacing: .01em; }
.sc-rim { position: absolute; overflow: visible; pointer-events: none;
  left: calc(var(--lx) - var(--r) * 1.6667); top: calc(var(--ly) - var(--r));
  width: calc(var(--r) * 3.3333); height: calc(var(--r) * 2); }

/* The question the star in sight answers, in the asker's voice: the page's serif, in italic, on
   white, across the top of the glass where the two lenses meet. It is on the glass, not in it,
   so the glass's edge never cuts it (under the rays it was cut in two by the notch on a phone),
   and it takes no touch, so a drag that starts on it still moves the glass. */
.sc-q { position: absolute; z-index: 2; left: var(--lx); top: calc(var(--ly) - var(--r) * .87); translate: -50% -50%;
  pointer-events: none; white-space: nowrap; padding: 8px 20px; border-radius: 999px; background: #fff;
  font-family: var(--display); font-style: italic; font-size: clamp(17px, 1.55vw, 22px); line-height: 1.25; color: var(--ink);
  box-shadow: 0 6px 22px rgba(8,14,26,.3), 0 0 0 1px rgba(0,72,186,.18); }
.sc-q.is-swap { opacity: 0 !important; }
/* Across the foot of the glass, while the glass is up under the headline (the script says when). */
.sc-q.is-low { top: calc(var(--ly) + var(--r) * .87); }

/* The hold on the glass, made by the script: the same box as the rim. A finger that starts on
   it drags the lenses and does not scroll the page; a finger anywhere else on the scene scrolls
   as usual, so the scene never traps a visitor on the first screen. */
.sc-grab { position: absolute; z-index: 1; border-radius: 999px; touch-action: none; cursor: grab;
  left: calc(var(--lx) - var(--r) * 1.6667); top: calc(var(--ly) - var(--r));
  width: calc(var(--r) * 3.3333); height: calc(var(--r) * 2);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.sc-grab.is-held { cursor: grabbing; }

.sc-veil { position: absolute; inset: 0; background:
  radial-gradient(ellipse 46% 62% at 17% 42%, rgba(251,250,247,.94) 0, rgba(251,250,247,.78) 45%, rgba(251,250,247,0) 100%); }
.sc-edge { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, var(--ground) 0, rgba(251,250,247,0) 110px, rgba(251,250,247,0) calc(100% - 190px), var(--ground) 100%); }

.sc-words { position: relative; z-index: 2; box-sizing: border-box; max-width: calc(470px + var(--pad));
  padding: clamp(40px, 7vh, 84px) 0 calc(var(--call) + 44px) var(--pad); margin-left: max(0px, calc((100vw - 1310px) / 2)); }
/* The words' box reaches over the scene (its padding holds their place under it on a tablet),
   so the box itself takes no touch: only the words and the presses do. */
.sc-words { pointer-events: none; }
.sc-words > * { pointer-events: auto; }
.htp .hero--scene h1 { font-size: clamp(30px, 3.1vw, 42px); line-height: 1.12; max-width: 17ch; }
.htp .hero--scene .sc-words p { font-size: 16.5px; line-height: 1.6; color: var(--soft); margin-top: 16px; max-width: 46ch; }

/* A tablet held wide, and a small laptop (960 to 1240 wide): the words and the glass still stand
   side by side, in a narrower column and a smaller glass set further right, so the words are on
   the first screen and no band of empty haze stands above them (Edward's tablet, 11-16: stacked
   at 1000 wide, "the text shows up really low and the area above is dead space"). */
@media (min-width: 960px) and (max-width: 1240px) {
  .hero.hero--scene { --hx: 75%; --r: clamp(108px, 11.6vw, 144px); min-height: clamp(560px, calc(100vh - 92px), 900px); }
  .sc-words { max-width: calc(410px + var(--pad)); padding-top: clamp(28px, 6vh, 64px); }
  .htp .hero--scene .sc-words p { font-size: 15.5px; margin-top: 12px; }
}
/* Under 960 wide the lenses and the words no longer fit side by side without the glass lying on
   the words, so the scene comes first and the words follow. */
@media (max-width: 959px) {
  /* The headline and the scene share the first screen: the headline at the top, over the
     pale sky, the lenses under it, whole at 834 by 634 with the cookie notice showing. The
     paragraphs and the presses follow under the scene. */
  .hero.hero--scene { --hx: 50%; --hy: 306px; --r: clamp(84px, 15.5vw, 128px); min-height: 0; }
  .sc-bg, .sc-copy, .sc-haze, .sc-fog, .sc-lens { inset: 0 0 auto 0; height: 580px; }
  .sc-bg, .sc-copy { background-position: 66% 50%; }
  .sc-veil { display: none; }
  .sc-edge { background: linear-gradient(180deg, var(--ground) 0, rgba(251,250,247,0) 120px, rgba(251,250,247,0) 462px, var(--ground) 580px); }
  .sc-words { max-width: 640px; padding-top: 530px; padding-right: var(--pad); }
  .htp .hero--scene h1 { position: absolute; top: 22px; left: var(--pad); right: var(--pad); max-width: 20ch; }
  .htp .hero--scene .sc-words p { margin-top: 12px; }
}
/* On a phone the lenses are a third the height they are on a tablet, so the scene is shorter
   with them: 400px and not 600, which left a
   screen of empty haze above and below the glass. */
@media (max-width: 560px) {
  /* The glass is small here, so the star in it is drawn half as large again, about its own
     middle: its names are then the size of small print and it sits whole inside the glass. */
  .sc-star-one { transform-box: fill-box; transform-origin: center; scale: 1.3; }
  .sc-dim-wide { display: none; }
  /* The glass takes most of the phone's width, so the whole star fits inside it. */
  .hero.hero--scene { --hy: 226px; --r: clamp(92px, 26vw, 120px); }
  .sc-bg, .sc-copy, .sc-haze, .sc-fog, .sc-lens { height: 450px; }
  .sc-edge { background: linear-gradient(180deg, var(--ground) 0, rgba(251,250,247,0) 110px, rgba(251,250,247,0) 350px, var(--ground) 450px); }
  .sc-words { padding-top: 384px; }
  .htp .hero--scene h1 { top: 22px; }
}

/* ---- from the scene into the demo ----------------------------------------------------------
   The demo is the page's invitation, so the hero holds no press of its own and the two bands
   are one: the demo's call ("Now focus on a business.") stands in the hero's last --call of
   haze, where the scene is fading into the page, and the demo's box begins where the scene
   ends. Edward, 2026-11-16: the button was "very awkwardly located"; the demo "is our CTA". */
.htp .hero--scene + .demo { margin-top: calc(var(--call-up, 150px) * -1); z-index: 2; }
.demo-lead--call { display: block; text-align: center; padding-bottom: 20px; }
.htp .demo-call { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin: 0; max-width: none; }
.htp .demo-lead--call .t { display: block; margin: 8px auto 0; max-width: 60ch; font-size: 16.5px; color: var(--soft); text-wrap: balance; }

/* The quiet way down, shown only where the demo is more than a screen away. It rests under the
   glass's home, not under the glass, so it does not travel with a drag. */
.sc-cue { position: absolute; z-index: 2; left: var(--hx); top: calc(var(--hy) + var(--r) + 22px); translate: -50% 0;
  display: none; padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  background: rgba(251,250,247,.82); border: 1px solid rgba(19,24,34,.14); }
.htp .hero--scene .sc-cue:hover { background: var(--panel); border-color: var(--acc); color: var(--acc); }
@media (max-width: 1240px) { .sc-cue { display: block; } }
/* The glass can be moved down onto it; then it steps aside, so it never lies over the star's
   question, and comes back when the glass has gone (home-hero-scene.js). */
.sc-cue { transition: opacity .18s ease; }
.sc-cue.is-aside { opacity: 0; pointer-events: none; }

/* ---- the glass comes in, and goes quiet -------------------------------------------------------
   Closed, the glass is small and unseen; open (.is-open, set by the script a moment after the
   page is up, and taken away once the page is scrolled) it grows to its size about its own
   middle. So the city is seen first and the glass arrives on it, and nothing rides up the screen
   while the page is read. With no script the glass is simply there (the view's noscript rule). */
.hero--scene .sc-lens, .hero--scene .sc-rim { opacity: 0; transform: scale(.62);
  transition: opacity .55s ease, transform .9s cubic-bezier(.2, .75, .2, 1); }
.hero--scene .sc-lens { transform-origin: var(--lx) var(--ly); }
.hero--scene .sc-q { opacity: 0; transition: opacity .3s ease; }
.hero--scene.is-open .sc-q { opacity: 1; transition-delay: .25s; }
.hero--scene .sc-grab { pointer-events: none; }
.hero--scene.is-open .sc-lens, .hero--scene.is-open .sc-rim { opacity: 1; transform: none; }
.hero--scene.is-open .sc-grab { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .hero--scene .sc-lens, .hero--scene .sc-rim, .hero--scene .sc-q { transition: none; }
}
