/* Ostrander Row sample, round 4: the atlas glass language carried into the hero and down the page.
   Owns the floating hero data tiles (.hero-tiles / .hx) and the umber glass pass on the market tiles,
   tools, reviews and contact panel, plus the in-view rise (.io) every section shares.
   Siblings: site.css (tokens, layout), atlas.css (.a-glass build, lollipop and tick-gauge marks,
   .c-redraw), js/tiles.js (builds the tile charts, ties them to the hero stepper, live tick, parallax).
   One accent (amber #eba467) on umber glass; light text on the .8 umber tint clears 4.5:1 over the
   palest sky. Reduced motion: no float, no parallax, every tile drawn and counted from the start. */

/* Shared umber scope: the same tokens .desk sets, so atlas marks and site.css charts read light. */
.hero-tiles, .ug {
  --acc: #eba467; --acc-rgb: 235 164 103; --on-acc: #26170c;
  --glass: rgb(28 21 16 / .8); --sand: 244 226 205;
}
.ug { --ink: #f4efe9; --ink-2: #d2c7bb; --ink-rgb: 244 239 233; --paper: #231a14; --copper: var(--acc); --line: rgb(255 240 222 / .16); --line-2: rgb(255 240 222 / .12);
  color: var(--ink); }

/* ---------- Hero tiles ---------- */
.hero-tiles { position: absolute; z-index: 2; display: flex; gap: 14px; pointer-events: none; }
.hx {
  pointer-events: auto; cursor: pointer; text-align: left; color: #f4efe9; font: inherit;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l l" "v c" "s c";
  column-gap: 14px; align-items: end; padding: 16px 18px 15px; border-radius: 24px; min-height: 44px;
  transition: box-shadow .4s ease, translate .7s var(--ease);
}
.hx > * { min-width: 0; }
.hx-l { grid-area: l; display: flex; align-items: center; gap: 8px; font: 600 10.5px/1.3 var(--f-t); letter-spacing: .12em; text-transform: uppercase; color: #d2c7bb; }
.hx-v { grid-area: v; display: flex; align-items: baseline; gap: 6px; margin-top: 10px; font: 500 34px/1 var(--f-t); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.hx-v small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: #d2c7bb; }
.hx-s { grid-area: s; margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: #d2c7bb; font-variant-numeric: tabular-nums; }
.hx-c { grid-area: c; width: 108px; align-self: end; }
.hx-live { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex: none; }
.hx:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
/* The tile tied to the current hero step wears a warm rim and a lit glow. */
.hx.hot {
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(140deg, rgb(var(--acc-rgb) / .85), rgb(255 255 255 / .08) 55%, rgb(var(--acc-rgb) / .4)) border-box;
  box-shadow: inset 0 1px 0 rgb(255 240 222 / .16), 0 2px 4px rgb(0 0 0 / .25), 0 24px 50px -22px rgb(0 0 0 / .75), 0 0 0 4px rgb(var(--acc-rgb) / .12);
}
.hx.hot .hx-l { color: #f4efe9; }

/* Mini map: a dot grid with three price pins that pop in one after another. */
.hx-map { position: relative; height: 72px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle, rgb(255 240 222 / .2) 1px, transparent 1.6px) 0 0 / 9px 9px, rgb(255 240 222 / .04);
  box-shadow: inset 0 0 0 1px rgb(255 240 222 / .1); }
.hx-map::before { content: ""; position: absolute; left: -10%; right: -10%; top: 58%; height: 2px; background: rgb(255 240 222 / .14); transform: rotate(-14deg); }
.hx-pin {
  position: absolute; font: 600 10px/1 var(--f-t); font-style: normal; padding: 4px 5px; border-radius: 6px; white-space: nowrap;
  background: #3a2c22; color: #f4efe9; box-shadow: 0 0 0 1px rgb(255 240 222 / .2), 0 4px 10px rgb(0 0 0 / .35);
  transform-origin: 50% 120%; transition: opacity .4s ease calc(var(--i) * 140ms + .1s), transform .6s var(--ease) calc(var(--i) * 140ms + .1s);
}
.hx-pin::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -3px; border: 3px solid transparent; border-top-color: inherit; }
.hx-pin.is-new { background: var(--acc); color: var(--on-acc); }
.hx-pin.is-new::after { border-top-color: var(--acc); }
.hx .c-ticks { max-width: 108px; }
.hx .c-lolly { --ch: 58px; }
.hx .c-lolly__plot i { width: 5px; }
.hx .c-lolly__plot i::after { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
.hx-gauge { position: relative; }
.hx-pin:nth-child(3) { display: none; } /* room for three pins only in the tall desktop layout */

/* Undrawn until the tile plays (only when motion is allowed: .mo is set by tiles.js). */
.mo .hx:not(.play) .c-lolly__plot i, .hx.re .c-lolly__plot i { height: 0; transition: none; }
.mo .hx:not(.play) .c-ticks line.on, .hx.re .c-ticks line.on { stroke: rgb(255 240 222 / .16); transition: none; }
.mo .hx:not(.play) .hx-pin, .hx.re .hx-pin { opacity: 0; transform: translateY(6px) scale(.5); transition: none; }

/* Entrance (staggered rise) then a slow float; parallax rides the separate translate property. */
.mo .hx {
  animation: hx-in .9s var(--ease) calc(.6s + var(--k) * .15s) both, hx-float 7s ease-in-out calc(1.8s + var(--k) * 1.1s) infinite alternate;
  translate: calc(var(--px, 0) * var(--z, 1) * 1px) calc(var(--py, 0) * var(--z, 1) * 1px);
}
@keyframes hx-in { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes hx-float { from { transform: none; } to { transform: translateY(-7px); } }
.mo .hx-live { animation: a-pulse 2.4s ease-out infinite; }

/* Desktop: a staggered column on the right, under the header, clear of the card and the note. */
@media (min-width: 1081px) {
  .hero-tiles {
    right: max(var(--gut), calc((100vw - var(--max)) / 2)); top: calc(var(--hdr-h) + clamp(28px, 7vh, 96px));
    width: 296px; flex-direction: column; align-items: flex-end;
  }
  /* r7: one aligned column, every tile the full 296px (the r6 stagger of 272/284 is gone; Eric's iOS
     reference puts every widget on shared left and right edges). */
  .hx { width: 100%; }
}
@media (min-width: 1081px) and (min-height: 1001px) {
  .hx { grid-template-areas: "l l" "v v" "s s" "c c"; }
  .hx-c { width: 100%; margin-top: 12px; }
  .hx-map { height: 82px; }
  .hx-pin:nth-child(3) { display: block; }
  .hx .c-ticks { max-width: 132px; margin: -4px auto -10px; }
  .hx .c-lolly { --ch: 52px; }
}

/* Phones and tablets: one swipe row sitting on top of the card (tiles.js sets --card-h). */
@media (max-width: 1080px) {
  .hero-tiles {
    left: 0; right: 0; bottom: calc(clamp(28px, 6vh, 72px) + var(--card-h, 300px) + 10px);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    padding: 8px var(--gut) 10px; scroll-padding-left: var(--gut); gap: 10px; touch-action: pan-x pan-y;
  }
  .hero-tiles::-webkit-scrollbar { display: none; }
  .hx { flex: none; width: min(78vw, 320px); scroll-snap-align: start; padding: 12px 14px 11px; border-radius: 20px; column-gap: 10px; }
  .hx-v { font-size: 27px; margin-top: 6px; }
  .hx-s { margin-top: 3px; font-size: 12px; }
  .hx-c { width: 104px; }
  .hx-map { height: 58px; }
  .hx .c-lolly { --ch: 44px; }
  .hx .c-ticks { max-width: 92px; }
}
@media (max-width: 640px) {
  .hero-tiles { bottom: calc(14px + var(--card-h, 300px) + 8px); }
}
@media (max-width: 640px) and (max-height: 720px) {
  .hx-s { display: none; }
  .hx { grid-template-areas: "l l" "v c"; }
}

/* ---------- Through the page: umber glass over a warm wash ---------- */
.market, .tools, .words, .contact { position: relative; isolation: isolate; }
.market::before, .tools::before, .words::before, .contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 58% at 16% 46%, rgb(200 116 63 / .2), transparent 70%),
    radial-gradient(38% 52% at 84% 62%, rgb(110 70 42 / .16), transparent 70%);
}
.tools::before { background: radial-gradient(40% 60% at 80% 40%, rgb(200 116 63 / .18), transparent 70%), radial-gradient(36% 50% at 12% 80%, rgb(110 70 42 / .14), transparent 70%); }

/* Market tiles become umber glass; their charts read the light scope. */
.d-tile.ug { border: 1px solid transparent; border-radius: 26px; }
.d-tile.ug .d-tile__d b { color: var(--acc); }
.d-tile.ug .c-bars i { background: rgb(255 240 222 / .16); }
.d-tile.ug .c-bars i.is-hi { background: var(--acc); box-shadow: 0 0 14px 2px rgb(var(--acc-rgb) / .45); }
.d-tile.ug .c-ring-bg { stroke: rgb(255 240 222 / .12); }
.d-tile.ug .c-enddot { box-shadow: 0 0 0 2px var(--acc), 0 0 12px 3px rgb(var(--acc-rgb) / .5); }

/* Tools: four umber glass tiles with an amber number and a meter that fills when seen. */
.tools__grid.ug-grid { border-top: 0; gap: 14px; }
.tool.ug, .tool.ug + .tool.ug { border: 1px solid transparent; padding: 24px 24px 22px; margin: 0; border-radius: 24px; display: flex; flex-direction: column; }
.tool.ug .tool__n { color: var(--acc); font-size: 13px; }
.tool.ug h3 { color: #fff; }
.tool.ug p { color: var(--ink-2); }
.t-meter { display: flex; gap: 4px; height: 10px; align-items: flex-end; margin-top: auto; padding-top: 20px; }
.t-meter i { flex: 1; height: 4px; border-radius: 3px; background: rgb(255 240 222 / .14); transition: height .5s var(--ease) calc(.35s + var(--t) * 40ms), background-color .5s calc(.35s + var(--t) * 40ms); }
.t-meter i.on { height: 10px; background: var(--acc); }
.io-on .tool:not(.in) .t-meter i.on { height: 4px; background: rgb(255 240 222 / .14); }

/* Reviews: umber glass cards with a big amber open quote. */
.quote.ug { border: 1px solid transparent; border-radius: 26px; }
.quote.ug p { color: #f4efe9; }
.quote.ug p::before { content: "\201C"; display: block; font: 400 56px/.6 var(--f-d); color: var(--acc); margin-bottom: 12px; }
.quote.ug footer { color: var(--acc); }
.quote.ug footer span { color: var(--ink-2); }
.car__track { padding-top: 6px; padding-bottom: 30px; }

/* Contact: the actions sit on an umber glass panel with a live reply gauge. */
.contact__acts.ug { padding: 24px; border-radius: 26px; border: 1px solid transparent; max-width: 420px; }
.contact__acts.ug .btn--solid { background: #9f4b26; border-color: #c8743f; }
.contact__acts.ug .btn--solid:hover { background: #b3582e; }
.contact__acts.ug .btn--line { color: #f4efe9; border-color: rgb(255 240 222 / .45); }
.contact__acts.ug .btn--line:hover { background: #f4efe9; color: #1b2420; }
.contact__acts.ug .fine { color: var(--ink-2); }
.c-reply { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.c-reply .c-gauge { width: 76px; flex: none; }
.c-reply .c-ticks { max-width: 76px; }
.c-reply b { display: block; font: 500 26px/1 var(--f-t); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.c-reply span { font-size: 13px; color: var(--ink-2); }
.io-on .contact__acts:not(.in) .c-ticks line.on { stroke: rgb(255 240 222 / .16); }

/* Homes keep their light paper (the drawings need it) but the status becomes a glass chip and the
   line drawing draws itself when the card is seen. */
.home__art { position: relative; }
.home__st.chip {
  position: absolute; left: 14px; top: 14px; padding: 7px 10px; border-radius: 999px; letter-spacing: .1em; font-size: 10.5px;
  background: rgb(28 21 16 / .78); color: #f4efe9; -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgb(255 240 222 / .2), 0 6px 16px -6px rgb(0 0 0 / .4);
}
.home__st.chip::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #eba467; margin-right: 7px; vertical-align: 1px; }
.io-on .home .home__art path:not([stroke-dasharray]), .io-on .home .home__art rect { stroke-dasharray: 900; stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease) calc(.2s + var(--k, 0) * 140ms); }
.io-on .home:not(.in) .home__art path:not([stroke-dasharray]), .io-on .home:not(.in) .home__art rect { stroke-dashoffset: 900; transition: none; }

/* In-view rise, shared by every section (tiles.js adds .io and .in). */
.io-on .io:not(.in) { opacity: 0; transform: translateY(26px); }
.io-on .io { transition: opacity .8s var(--ease) calc(var(--k, 0) * 110ms), transform .9s var(--ease) calc(var(--k, 0) * 110ms); }

@media (max-width: 1080px) {
  .tool.ug, .tool.ug + .tool.ug { padding: 22px; }
}
@media (max-width: 640px) {
  .tools__grid.ug-grid { gap: 12px; }
  .tool.ug + .tool.ug { border-top: 1px solid transparent; }
  .contact__acts.ug { padding: 20px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mo .hx, .mo .hx-live { animation: none; translate: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .hx, .ug.a-glass { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; --glass: rgb(36 27 21); }
}

/* ---------- Hero glass (round 5) ----------
   The card, the three data tiles and the two pills over the dusk scene are see-through glass:
   a .5 to .6 umber tint so the lit street visibly blurs through, a 1px rim brightest at the
   top-left, a sheen kept to the top edge (never under the text), and a deep two-layer shadow.
   Text carries a soft dark halo: it is the local darkening that keeps small amber and sand text
   at AA when the moonlit white siding or a lamp head sits right behind the glass (measured both
   with and without the halo, every beat, four viewports). Never raise the blur above ~24px (it
   reads as frosted plastic) or drop a tint without re-measuring. */
.hero__card.a-glass, .hero-tiles .hx.a-glass, .hero__hud {
  /* r7 smoked Liquid Glass (same tokens as glass.css :root, kept literal here because the hero is Anselm's
     and loads tiles.css before glass.css): darker tint (.66 card, .62 tiles) so the dusk street shows a
     little but the text sits on smoke, blur 16 saturate 140, the rim brightest along the top and corners
     fading down the sides with an amber refraction at the lower-right corner, a 1px specular plus a faint
     curved upper highlight, a small shadow. No light sweep across the face. */
  --glass: rgb(22 16 12 / .66);
  --rim: linear-gradient(180deg, rgb(255 246 234 / .6), rgb(255 246 234 / .16) 34%, rgb(255 246 234 / .07) 68%, rgb(255 246 234 / .13)) border-box,
         radial-gradient(60% 40% at 100% 100%, rgb(235 164 103 / .4), rgb(235 164 103 / 0) 70%) border-box;
  --sheen: linear-gradient(180deg, rgb(255 238 220 / .1), rgb(255 238 220 / 0) 2px) padding-box,
           radial-gradient(120% 36px at 50% -14px, rgb(255 238 220 / .07), rgb(255 238 220 / 0)) padding-box;
  border: 1px solid transparent; border-radius: 26px;
  background: var(--sheen), linear-gradient(var(--glass), var(--glass)) padding-box, var(--rim);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgb(255 246 234 / .22), inset 0 0 0 1px rgb(255 246 234 / .04), inset 0 -1px 0 rgb(0 0 0 / .4),
    0 1px 1px rgb(0 0 0 / .25), 0 8px 20px -14px rgb(0 0 0 / .45);
  text-shadow: 0 0 2px rgb(12 9 7 / .65), 0 0 6px rgb(12 9 7 / .55), 0 1px 14px rgb(12 9 7 / .4);
}
.hero__hud { border-radius: 999px; }
.hero__card.a-glass::before { background: var(--grain); background-size: 160px 160px; } /* no pointer glow under the kicker */
.hero__card .kicker { color: #f6c08f; } /* the light end of the amber: 11.5px caps need it on see-through glass */
/* Local darkening under the kicker, headline and tile labels: moonlit white siding can sit right behind them. */
.hero__card.a-glass, .hero-tiles .hx.a-glass { background: var(--sheen), linear-gradient(180deg, rgb(14 10 8 / .24), rgb(14 10 8 / 0) 50%) padding-box,
  linear-gradient(var(--glass), var(--glass)) padding-box, var(--rim); }
/* The live dot keeps its pulse but its glow stays off the label's first letter. */
.hero-tiles .hx-l { gap: 10px; }
.mo .hero-tiles .hx-live { animation-name: hx-pulse; }
@keyframes hx-pulse {
  0% { box-shadow: 0 0 0 0 rgb(var(--acc-rgb) / .6), 0 0 5px 1px rgb(var(--acc-rgb) / .5); }
  80%, 100% { box-shadow: 0 0 0 7px rgb(var(--acc-rgb) / 0), 0 0 5px 1px rgb(var(--acc-rgb) / .5); }
}
.hero-tiles .hx.a-glass { --glass: rgb(22 16 12 / .62); }
.hero-tiles .hx-l, .hero-tiles .hx-s, .hero-tiles .hx-v small { color: #e2d8cc; }
.hero__hud { --glass: rgb(22 16 12 / .6);
  box-shadow: inset 0 1px 0 rgb(255 246 234 / .2), inset 0 0 0 1px rgb(255 246 234 / .04), inset 0 -1px 0 rgb(0 0 0 / .26), 0 4px 12px -8px rgb(0 0 0 / .5); }
.hero__card .btn--solid { text-shadow: none; }
/* The tile tied to the current hero step: the rim turns amber all the way round and lifts, nothing else moves. */
.hero-tiles .hx.a-glass.hot {
  --rim: linear-gradient(180deg, rgb(255 214 176 / .9), rgb(var(--acc-rgb) / .5) 34%, rgb(var(--acc-rgb) / .3) 68%, rgb(var(--acc-rgb) / .6)) border-box;
  box-shadow:
    inset 0 1px 0 rgb(255 236 214 / .28), inset 0 0 0 1px rgb(235 164 103 / .1), inset 0 -1px 0 rgb(0 0 0 / .4),
    0 1px 1px rgb(0 0 0 / .25), 0 8px 20px -14px rgb(0 0 0 / .45), 0 0 0 3px rgb(var(--acc-rgb) / .12), 0 0 24px -6px rgb(var(--acc-rgb) / .35);
}
/* Chromium only (tiles.js sets html.lg-lens): the hero tiles' backdrop runs through the #lg-lens SVG filter
   (index.html), which magnifies the scene at each edge the way Apple's material lenses, then blurs. Same
   layer, so the backdrop-filter count does not move. WebKit paints nothing for an SVG backdrop filter and
   keeps the blur above. */
html.lg-lens .hero-tiles .hx.a-glass { -webkit-backdrop-filter: url(#lg-lens); backdrop-filter: url(#lg-lens); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero__card.a-glass, .hero-tiles .hx.a-glass, .hero__hud { --glass: rgb(28 21 16 / .93); }
}
@media (prefers-reduced-transparency: reduce) {
  .hero__card.a-glass, .hero-tiles .hx.a-glass, .hero__hud {
    --glass: rgb(36 27 21); -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
