/* Easeout, coming soon. Style "Elevator Pitch": the page is a lift landing in brushed steel, and the
   full stop of COMING SOON is the car, dropping down its shaft to level with the headline.
   Barlow 700 for the engraved sign, the floor numbers and the action; Routed Gothic (the Gorton
   engraving lettering of real lift panels) for the plates and the maker's name. Not for the floor
   numbers: Routed Gothic draws 1, I and l as the same bare stroke. One lamp red: the car, the lit
   floor, a called button. Lamps switch on and off, they never fade. Light only, by choice.
   Every material is a picture in steel/, rendered by ../materials.py (brushed grain, plate frames
   with their screws, the sill, the shaft, the lamp, the button); CSS adds only light and shadow. */
@font-face{font-family:"Barlow";src:url(fonts/barlow-700-latin.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Routed Gothic";src:url(fonts/routed-gothic.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}

:root{
  --steel:#E3E6E7;      /* the wall's average, shown until the grain loads */
  --steel-edge:#AEB3B6; /* the scrollbar */
  --ink:#16181A;        /* engraving infill */
  --ink-2:#3A3E42;      /* small engraving, 9:1 on plates */
  --lamp:#E2381B;       /* the one accent: lit */
  --g:clamp(18px,3.4vw,48px);                              /* side gutter */
  --marks:64px;                                            /* room right of the shaft for floor numbers */
  /* The sign: COMING SOON spans about 80% of the width (the words are 6.08 em: .8 / 6.08 = 13.16vw),
     never more than the row holds ("COMING SOON" + lamp = 6.36 em, then the floor numbers), and
     never so tall that the wall above it gets less than two fifths of the screen (38svh - 100px;
     on short screens 20svh). */
  --fs:min(13.16vw, calc((100vw - 2 * var(--g) - var(--marks)) / 6.36), max(20svh, calc(38svh - 100px)));
  --floor:clamp(36px,9.6svh,92px);                         /* one storey */
  --press:cubic-bezier(.23,1,.32,1);                       /* a button going in */
  --display:"Barlow","Bahnschrift","Arial Narrow",sans-serif;
  --engrave:"Routed Gothic","Bahnschrift","Segoe UI",sans-serif;
  color-scheme:only light; /* "only" also stops phone browsers from force-darkening the steel */
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scrollbar-color:var(--steel-edge) var(--steel)}
/* The wall: brushed stainless (steel/wall.webp). Its horizontal grain catches the ceiling light as
   a soft upright band left of centre and falls off to the right. */
body{margin:0;min-height:100svh;color:var(--ink);font-family:var(--engrave);background-color:var(--steel);
  background-image:linear-gradient(90deg,rgba(22,26,30,.05),rgba(255,255,255,.3) 33%,rgba(255,255,255,.06) 62%,rgba(22,26,30,.07)),url(steel/wall.webp);
  background-size:auto,512px 256px}
::selection{background:var(--ink);color:#F2F3F4}

/* The landing: wall, sign, sill, plates. */
.landing{box-sizing:border-box;min-height:100svh;display:grid;grid-template-rows:minmax(16svh,1fr) auto auto auto;
  padding:0 var(--g) clamp(18px,6.8svh,64px);overflow:clip}

/* The sign: cut into the wall and filled flat black. */
.title{grid-row:2;margin:0;font-family:var(--display);font-weight:700;font-size:var(--fs);line-height:.9;
  letter-spacing:-.01em;text-transform:uppercase;white-space:nowrap;color:var(--ink)}
.w1,.w2{white-space:nowrap}

/* The seat holds the shaft (a slot cut into the wall, rising past the top of the page), the car and
   the floor numbers. The car moves; the seat never does. The slot is steel/slot.webp repeated up
   from its rounded foot, steel/slot-foot.webp; both are square, as wide as the slot. */
.seat{--w:.124em;position:relative;display:inline-block;width:.21em;height:.21em;margin-left:.07em;vertical-align:baseline}
.seat::before,.seat::after{content:"";position:absolute;left:50%;width:var(--w);transform:translateX(-50%);forced-color-adjust:none}
.seat::before{bottom:calc(.105em + var(--w));height:200vh;background:url(steel/slot.webp) bottom/100% auto repeat-y}
.seat::after{bottom:.105em;height:var(--w);background:url(steel/slot-foot.webp) 0 0/100% 100% no-repeat}
/* The car: its lamp, a lit lens in a steel collar (steel/lamp-lit.webp). */
.stop{position:absolute;inset:0;z-index:1;border-radius:50%;cursor:grab;touch-action:none;forced-color-adjust:none;
  background:url(steel/lamp-lit.webp) 0 0/100% 100% no-repeat;
  box-shadow:0 max(1px,.008em) max(2px,.014em) rgba(20,24,28,.3)}
.stop::after{content:"";position:absolute;inset:-14px;border-radius:50%} /* a 44 px finger target on phones */
.grabbing,.grabbing .stop{cursor:grabbing}

/* Floor numbers, painted on the wall beside the shaft, 14px right of the slot's edge: the slot is
   .124em centred in a .21em seat, so its right edge is at 79.5% of the seat. 19px bold is WCAG
   "large", so the lit red holds 3:1. land.js switches off any number that would sit within 36px of
   the top of the page (.off); the max-height rules below do the same without JavaScript. */
.floors{position:absolute;left:calc(79.5% + 14px);bottom:50%;font:700 1.1875rem/1 var(--display);
  letter-spacing:.04em;color:var(--ink-2)}
.floors b{position:absolute;left:0;bottom:calc(var(--n) * var(--floor));transform:translateY(50%);font-weight:700}
.floors b.lit{color:var(--lamp)}
.floors b.off{visibility:hidden}
.floors [data-f="5"]{--n:5}.floors [data-f="4"]{--n:4}.floors [data-f="3"]{--n:3}
.floors [data-f="2"]{--n:2}.floors [data-f="1"]{--n:1}.floors [data-f="L"]{--n:0}
@media (max-height:760px){.floors [data-f="5"]{display:none}}
@media (max-height:620px){.floors [data-f="4"]{display:none}}
@media (max-height:480px){.floors [data-f="3"]{display:none}}

/* The sill: grooved aluminium (steel/sill.webp), full width. The maker's name is engraved in a flat
   land where the grooves end (steel/land.webp): flush, no plate, no edge. */
.sill{grid-row:3;position:relative;height:30px;margin:clamp(12px,2.2svh,24px) calc(var(--g) * -1) 0;
  background:url(steel/sill.webp) 0 0/256px 30px repeat-x;box-shadow:0 2px 4px rgba(30,34,38,.16)}
.maker{position:absolute;left:var(--g);top:0;bottom:0;display:flex;align-items:center;margin:0;
  padding:0 calc(16px - .32em) 0 16px;border:0 solid transparent;border-image:url(steel/land.webp) 0 24 fill / 0 12px stretch;
  font:400 .875rem/1 var(--engrave);letter-spacing:.32em;text-transform:uppercase;color:var(--ink)}

/* Plates: side by side on landscape screens, stacked on portrait ones. Each is a brushed face (the
   wall's grain under a lighter wash, lit from above) in a chamfered frame with a flush countersunk
   screw in each corner (steel/plate.webp, 9-sliced). The screws reach 18px in from the edges; the
   text starts at 22px or more. --b is the call button, --gap the room between it and its label. */
.plates{--pt:clamp(22px,3.4svh,34px);--po:clamp(24px,2.8vw,40px);
  --b:clamp(58px,min(9.4svh,7.8vw),86px);--gap:clamp(16px,2vw,28px);
  grid-row:4;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(14px,2.2vw,32px);
  margin-top:clamp(18px,4.9svh,48px)}
.plate{position:relative;box-sizing:border-box;padding:var(--pt) var(--po);
  border:0 solid transparent;border-radius:5px;border-image:url(steel/plate.webp) 48 / 24px stretch;
  background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(255,255,255,.36)),url(steel/wall.webp) 0 0/512px 256px var(--steel);
  box-shadow:0 3px 8px rgba(30,34,38,.17),0 1px 2px rgba(30,34,38,.12)}
.lead{margin:0;max-width:34ch;font:400 clamp(1.1875rem,1.02rem + .72vw,1.75rem)/1.3 var(--engrave);color:var(--ink);text-wrap:balance}
.terms{margin:.85em 0 0;font:400 clamp(.8125rem,.77rem + .22vw,1rem)/1.55 var(--engrave);letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-2);text-wrap:pretty}
.terms + .terms{margin-top:.15em}

/* The call plate: the round button sends the email; steel/button.webp holds it unlit and ring-lit
   side by side. Only a called button lights its ring: while it is pressed, and for a few seconds
   after (land.js sets .called). The label stays on one line: it is sized to the plate (container
   units), and only the narrowest phones fall back to two balanced lines. --em is the label's
   measured width in ems (Barlow 700, .05em tracking: 13.90) plus 2%. */
.call{container-type:inline-size;display:flex;flex-direction:column;justify-content:center;gap:16px}
.plate.call{padding-inline:clamp(18px,2.8vw,40px)} /* its screws sit above and below the button, clear of the text */
.action{display:flex;align-items:center;gap:var(--gap);width:fit-content;max-width:100%;
  color:inherit;text-decoration:none;border-radius:8px;-webkit-tap-highlight-color:transparent}
.btn{flex:none;width:var(--b);height:var(--b);border-radius:50%;background:url(steel/button.webp) 0 0/200% 100% no-repeat;
  box-shadow:0 2px 5px rgba(20,24,28,.2),0 1px 1px rgba(20,24,28,.12);transition:transform 80ms var(--press)}
.act{--em:14.2;font:700 clamp(1.0625rem,.92rem + .78vw,1.625rem)/1.15 var(--display);
  font-size:clamp(.9375rem,min(.92rem + .78vw,(100cqi - var(--b) - var(--gap) - 4px) / var(--em)),1.625rem);
  letter-spacing:.05em;text-transform:uppercase;text-wrap:balance}
/* A pointer over the button brightens the steel a step; the ring stays dark until the call. */
@media (hover:hover) and (pointer:fine){
  .action:hover .btn{filter:brightness(1.05)}
}
/* Pressing in takes 120ms, springing back 80ms: the deliberate half is the slower one. */
.action:active .btn{transform:translateY(1px) scale(.97);transition-duration:120ms;box-shadow:0 1px 2px rgba(20,24,28,.2)}
.action:active .btn,.action.called .btn{background-position:100% 0}
.action:focus-visible{outline:2px solid var(--ink);outline-offset:6px}
.addr{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;margin:0;padding-left:calc(var(--b) + var(--gap));
  font:400 1rem/1.4 var(--engrave);letter-spacing:.04em;color:var(--ink-2)}
/* The copy key: a small steel key (steel/key.webp frame on the brushed face). */
.copy{position:relative;min-width:8.5ch;padding:6px 10px 5px;border:0 solid transparent;border-radius:3px;cursor:pointer;color:var(--ink);
  font:400 .8125rem/1.2 var(--engrave);letter-spacing:.14em;text-transform:uppercase;
  border-image:url(steel/key.webp) 10 / 5px stretch;
  background:linear-gradient(180deg,rgba(255,255,255,.66),rgba(255,255,255,.4)),url(steel/wall.webp) 0 0/512px 256px var(--steel);
  box-shadow:0 1px 2px rgba(20,24,28,.18);transition:transform 80ms var(--press)}
.copy::before{content:"";position:absolute;inset:-10px -4px}
.copy:active{transform:translateY(1px) scale(.97);transition-duration:120ms}
.copy:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.copy[data-state="done"]{box-shadow:0 0 0 1.5px var(--ink),0 1px 2px rgba(20,24,28,.18)} /* the word says it; red is for lamps */
.said{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* One engraved grid (landscape, from 1000px wide and 640px tall; below that the sign is too small
   to carry the plates): the plates take the sign's columns. The offer plate is as wide as COMING,
   the gap between the plates is the word space, and the call plate runs from the S of SOON to the
   right edge of the floor numbers. In em of the sign (Barlow 700, -.01em): COMING is 3.424 em and
   the space .19 em; the slot's right edge is at 6.313 em and the numbers end 26px past it. The lead
   and the terms are sized to keep each line whole (the headline is 21.69 em of Routed Gothic, the
   longer terms line 31.50 em, each plus 1%: new words need a new measure), and the label fills its
   plate. The lead and the call label share one cap line: the label is centred on the button, so its
   cap top sits b/2 - .3 L below the call plate's padding (Barlow: caps .7 em under a 1.0 em ascent,
   line height 1.15), and the lead's sits .24 F below the offer's (Routed Gothic: caps .72 em under a
   .81 em ascent, line height 1.3). */
@media (min-width:1000px) and (min-height:640px) and (min-aspect-ratio:1001/1000){
  .pair{--wo:calc(var(--fs) * 3.424);--wc:calc(var(--fs) * 2.699 + 26px);
    --F:clamp(1.0625rem,min(1.02rem + .72vw,(var(--wo) - 2 * var(--po)) / 21.9),1.75rem);
    --L:clamp(.9375rem,min(.92rem + .78vw,(var(--wc) - 2 * var(--po) - var(--b) - var(--gap) - 4px) / 14.2),1.625rem);
    grid-template-columns:var(--wo) var(--wc);column-gap:calc(var(--fs) * .19)}
  .pair .lead{max-width:none;font-size:var(--F)}
  .pair .terms{font-size:clamp(.8125rem,min(.77rem + .22vw,(var(--wo) - 2 * var(--po)) / 31.8),1rem)}
  .pair .call{justify-content:flex-start;padding-inline:var(--po)}
  .pair .act{font-size:var(--L)}
  .pair .offer{padding-top:calc(var(--pt) + var(--b) / 2 - .3 * var(--L) - .24 * var(--F))}
}

/* Square and tall screens: COMING on the left, SOON. on the right under it, the shaft in the right
   gutter, the storeys closer together. */
@media (max-aspect-ratio:1/1),(max-width:599px){
  :root{--marks:44px;--fs:min(calc((100vw - 2 * var(--g) - var(--marks)) / 3.83), 26svh);--floor:clamp(30px,6.6svh,64px)}
  .title{white-space:normal}
  .w1,.w2{display:block}
  .w2{text-align:right;padding-right:var(--marks)}
  .floors{left:calc(79.5% + 9px)}
}
@media (max-aspect-ratio:1/1),(max-width:639px){
  .landing{padding-bottom:clamp(18px,4.4svh,44px)}
  .plates{grid-template-columns:minmax(0,1fr)}
}
/* Short phones: less wall above the sign, so the whole call plate is in the first screen. */
@media (max-aspect-ratio:1/1) and (max-height:700px),(max-width:639px) and (max-height:700px){
  .landing{grid-template-rows:minmax(8svh,1fr) auto auto auto}
  .plates{margin-top:12px}
  .plate{padding-block:18px}
  .floors [data-f="5"],.floors [data-f="4"]{display:none}
}
@media (prefers-reduced-motion:reduce){
  .btn,.copy{transition:none}
}
