/* Front Door Sites homepage: the front door and Main Street. Loaded after site.css, on the homepage only.
   One page, two ways to show it:
   - Everywhere (phones, tablets, no JavaScript, "less motion"): the hero with the door, which swings open onto
     Main Street at the visitor's time of day, then the six looks as cards (swipe sideways on phones).
   - html.fx (computers with a mouse and motion allowed, set by tod.js): the hero is held while you walk
     through the door into the street, then each look's scene slides up over it, its picture fixed behind it
     like a film set, while a little sun crosses the sky at the bottom of the screen.
   Only transform and opacity move, plus the clip that lets the street grow out of the doorway. */


/* The street through the door, picked by the visitor's clock (tod.js sets data-tod; without JavaScript it is midday).
   --v-tall: the tall cut inside the door. --v-wide: the wide cut you walk out into on computers. */
:root[data-tod="first"]{--v-tall:url(/assets/img/street-first-tall-600.webp);--v-wide:url(/assets/img/street-first-1440.webp)}
:root[data-tod="morning"]{--v-tall:url(/assets/img/street-morning-tall-600.webp);--v-wide:url(/assets/img/street-morning-1440.webp)}
:root{--v-tall:url(/assets/img/street-midday-tall-600.webp);--v-wide:url(/assets/img/street-midday-1440.webp)}
:root[data-tod="sunset"]{--v-tall:url(/assets/img/street-sunset-tall-506.webp);--v-wide:url(/assets/img/street-sunset-1440.webp)}
:root[data-tod="blue"]{--v-tall:url(/assets/img/street-blue-tall-600.webp);--v-wide:url(/assets/img/street-blue-1440.webp)}
:root[data-tod="night"]{--v-tall:url(/assets/img/street-night-tall-600.webp);--v-wide:url(/assets/img/street-night-1440.webp)}
@supports (background-image:image-set(url(/a.avif) type("image/avif"))){
  :root[data-tod="first"]{--v-tall:image-set(url(/assets/img/street-first-tall-600.avif) type("image/avif"),url(/assets/img/street-first-tall-600.webp) type("image/webp"));--v-wide:image-set(url(/assets/img/street-first-1440.avif) type("image/avif"),url(/assets/img/street-first-1440.webp) type("image/webp"))}
  :root[data-tod="morning"]{--v-tall:image-set(url(/assets/img/street-morning-tall-600.avif) type("image/avif"),url(/assets/img/street-morning-tall-600.webp) type("image/webp"));--v-wide:image-set(url(/assets/img/street-morning-1440.avif) type("image/avif"),url(/assets/img/street-morning-1440.webp) type("image/webp"))}
  :root{--v-tall:image-set(url(/assets/img/street-midday-tall-600.avif) type("image/avif"),url(/assets/img/street-midday-tall-600.webp) type("image/webp"));--v-wide:image-set(url(/assets/img/street-midday-1440.avif) type("image/avif"),url(/assets/img/street-midday-1440.webp) type("image/webp"))}
  :root[data-tod="sunset"]{--v-tall:image-set(url(/assets/img/street-sunset-tall-506.avif) type("image/avif"),url(/assets/img/street-sunset-tall-506.webp) type("image/webp"));--v-wide:image-set(url(/assets/img/street-sunset-1440.avif) type("image/avif"),url(/assets/img/street-sunset-1440.webp) type("image/webp"))}
  :root[data-tod="blue"]{--v-tall:image-set(url(/assets/img/street-blue-tall-600.avif) type("image/avif"),url(/assets/img/street-blue-tall-600.webp) type("image/webp"));--v-wide:image-set(url(/assets/img/street-blue-1440.avif) type("image/avif"),url(/assets/img/street-blue-1440.webp) type("image/webp"))}
  :root[data-tod="night"]{--v-tall:image-set(url(/assets/img/street-night-tall-600.avif) type("image/avif"),url(/assets/img/street-night-tall-600.webp) type("image/webp"));--v-wide:image-set(url(/assets/img/street-night-1440.avif) type("image/avif"),url(/assets/img/street-night-1440.webp) type("image/webp"))}
}
@media (min-width:1441px),(min-resolution:1.5dppx) and (min-width:1000px){
  :root[data-tod="first"]{--v-wide:url(/assets/img/street-first-1920.webp)}
  :root[data-tod="morning"]{--v-wide:url(/assets/img/street-morning-1920.webp)}
  :root{--v-wide:url(/assets/img/street-midday-1920.webp)}
  :root[data-tod="sunset"]{--v-wide:url(/assets/img/street-sunset-1920.webp)}
  :root[data-tod="blue"]{--v-wide:url(/assets/img/street-blue-1920.webp)}
  :root[data-tod="night"]{--v-wide:url(/assets/img/street-night-1920.webp)}
  @supports (background-image:image-set(url(/a.avif) type("image/avif"))){
    :root[data-tod="first"]{--v-wide:image-set(url(/assets/img/street-first-1920.avif) type("image/avif"),url(/assets/img/street-first-1920.webp) type("image/webp"))}
    :root[data-tod="morning"]{--v-wide:image-set(url(/assets/img/street-morning-1920.avif) type("image/avif"),url(/assets/img/street-morning-1920.webp) type("image/webp"))}
    :root{--v-wide:image-set(url(/assets/img/street-midday-1920.avif) type("image/avif"),url(/assets/img/street-midday-1920.webp) type("image/webp"))}
    :root[data-tod="sunset"]{--v-wide:image-set(url(/assets/img/street-sunset-1920.avif) type("image/avif"),url(/assets/img/street-sunset-1920.webp) type("image/webp"))}
    :root[data-tod="blue"]{--v-wide:image-set(url(/assets/img/street-blue-1920.avif) type("image/avif"),url(/assets/img/street-blue-1920.webp) type("image/webp"))}
    :root[data-tod="night"]{--v-wide:image-set(url(/assets/img/street-night-1920.avif) type("image/avif"),url(/assets/img/street-night-1920.webp) type("image/webp"))}
  }
}

/* ---------- hero extras ---------- */
.maxpill{display:inline-flex;align-items:center;gap:9px;margin:0 0 20px;padding:7px 13px 7px 11px;border-radius:999px;border:1px solid color-mix(in srgb,var(--door) 30%,var(--rule));background:color-mix(in srgb,var(--door) 7%,var(--card));color:var(--ink);font:600 14.5px/1.3 var(--body);text-decoration:none;transition:background-color .2s ease,border-color .2s ease}
.maxpill:hover{text-decoration:none;border-color:var(--door);background:color-mix(in srgb,var(--door) 13%,var(--card))}
.maxpill .ico{width:16px;height:16px;color:var(--door);transition:transform .2s ease}
.maxpill:hover .ico{transform:translateX(3px)}
.pill-dot{position:relative;flex:none;width:8px;height:8px;border-radius:50%;background:var(--door)}
.pill-dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--door);opacity:0}
.tryit-h{margin-bottom:10px}


/* ---------- the door ----------
   Seen from inside the shop: a green door in a dark frame, the shop's name in gold leaf over it. Sizes are in
   cqi (1% of the door's width), so it scales as one picture. The door opens outward onto the street. */
.hero-art{position:relative}
.portal{--trim:#16201B;--trim-2:#273630;--paint:#1F5A47;--paint-2:#174536;--paint-3:#2A6B55;
  container-type:inline-size;position:relative;width:min(100%,380px);margin-inline:auto;user-select:none;-webkit-user-select:none}
@media (min-width:980px){.portal{width:min(100%,410px,calc((100vh - 230px) * .62))}}
.transom{position:relative;display:flex;align-items:center;justify-content:center;height:18cqi;padding:2.8cqi 3.4cqi;border-radius:1.8cqi 1.8cqi 0 0;
  background:linear-gradient(180deg,var(--trim-2),var(--trim));box-shadow:inset 0 .5cqi 0 rgba(255,255,255,.07)}
.transom::before{content:"";position:absolute;inset:2.8cqi 3.4cqi;border-radius:.8cqi;
  background:linear-gradient(112deg,rgba(255,255,255,.12) 0%,rgba(255,255,255,0) 26%,rgba(255,255,255,0) 60%,rgba(255,255,255,.06) 70%,rgba(255,255,255,0) 80%),linear-gradient(180deg,#22322B,#0F1713);
  box-shadow:inset 0 0 0 .45cqi rgba(0,0,0,.4),inset 0 1.2cqi 2.4cqi rgba(0,0,0,.45)}
.gild{position:relative;display:block;max-width:100%;padding:.04em .08em .1em;white-space:nowrap;
  font:800 calc(7.4cqi * var(--gs,1))/1.12 var(--display);letter-spacing:.035em;color:#E3BE62;
  background:linear-gradient(100deg,rgba(255,250,230,0) 42%,rgba(255,250,230,.9) 50%,rgba(255,250,230,0) 58%) no-repeat 160% 0/260% 100%,
    linear-gradient(180deg,#FFF0C2 0%,#F0CF7C 28%,#C69334 55%,#F5D98E 79%,#A8782A 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 .32cqi 0 rgba(0,0,0,.6)) drop-shadow(0 0 1.8cqi rgba(242,193,78,.22))}
.frame{position:relative;padding:4.6cqi 4.6cqi 0;
  /* the jambs and the head of the frame only; the doorway itself stays open (on computers the street
     behind the page shows through it) */
  background:linear-gradient(90deg,var(--trim),var(--trim-2) 48%,var(--trim)) 0 0/4.6cqi 100% no-repeat,
    linear-gradient(90deg,var(--trim),var(--trim-2) 52%,var(--trim)) 100% 0/4.6cqi 100% no-repeat,
    linear-gradient(180deg,var(--trim),var(--trim-2) 60%,var(--trim)) 0 0/100% 4.6cqi no-repeat;
  box-shadow:0 3cqi 7cqi -3cqi rgba(0,0,0,.45)}
.opening{position:relative;aspect-ratio:1/1.5;overflow:hidden;background:#24332C;perspective:170cqi;perspective-origin:50% 40%}
.view{position:absolute;inset:0;background:#3A4A42 50% 50%/cover no-repeat;background-image:var(--v-tall)}
.spill{position:absolute;inset:0;background:linear-gradient(0deg,rgba(255,232,186,.2),rgba(255,232,186,0) 24%)}
.opening::after{content:"";position:absolute;inset:0;pointer-events:none;
  box-shadow:inset 0 0 0 .5cqi rgba(0,0,0,.4),inset 3cqi 0 3.4cqi -1.6cqi rgba(0,0,0,.42),inset -3cqi 0 3.4cqi -1.6cqi rgba(0,0,0,.3),inset 0 3cqi 3.4cqi -1.6cqi rgba(0,0,0,.45)}
/* The door hangs inside the doorway, which clips it: swung past square (as you walk out) it folds back
   against the outside wall and leaves the picture. */
.door{position:absolute;inset:0;transform-origin:0 50%;transform-style:preserve-3d;
  transform:rotateY(var(--swing,76deg));transition:transform 2s cubic-bezier(.3,.72,.16,1)}
.js .portal:not(.is-open) .door{--swing:0deg}
.portal.settled .door{transition:none}
.door-face,.door-back{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.door-face{background:linear-gradient(90deg,rgba(0,0,0,.14),rgba(255,255,255,.05) 22%,rgba(255,255,255,0) 60%,rgba(0,0,0,.1)),var(--paint);
  box-shadow:inset 0 0 0 .7cqi rgba(0,0,0,.2),inset .7cqi .7cqi 0 rgba(255,255,255,.06)}
.door-back{transform:rotateY(180deg);background:var(--paint-2)}
.door-edge{position:absolute;top:0;bottom:0;left:100%;width:3cqi;transform-origin:0 50%;transform:rotateY(90deg);background:linear-gradient(90deg,#11382B,#1A4C3B)}
.door-glass{position:absolute;left:13%;right:13%;top:6%;height:41%;border-radius:.7cqi;overflow:hidden;
  border:1.8cqi solid var(--paint-2);box-shadow:inset 0 0 0 .5cqi rgba(0,0,0,.35),0 0 0 .5cqi var(--paint-3);
  background:linear-gradient(rgba(16,34,27,.42),rgba(16,34,27,.42)),#2B3B34 50% 50%/cover no-repeat;background-image:linear-gradient(rgba(16,34,27,.42),rgba(16,34,27,.42)),var(--v-tall)}
.door-glass i{position:absolute;inset:0;background:linear-gradient(125deg,rgba(255,255,255,0) 18%,rgba(255,255,255,.22) 26%,rgba(255,255,255,0) 36%,rgba(255,255,255,0) 56%,rgba(255,255,255,.1) 62%,rgba(255,255,255,0) 70%)}
.door-panel{position:absolute;left:13%;right:13%;top:55%;bottom:15%;border-radius:.6cqi;border:1.6cqi solid var(--paint-2);
  box-shadow:0 0 0 .5cqi var(--paint-3),inset 0 0 0 .5cqi rgba(255,255,255,.05),inset 0 2cqi 4cqi rgba(0,0,0,.12)}
.door-knob{position:absolute;right:7%;top:50.5%;width:4.6cqi;height:12cqi;border-radius:2.4cqi;transform:translateY(-50%);
  background:linear-gradient(90deg,#8F661F,#E9C873 45%,#A97A26);box-shadow:0 .5cqi 1cqi rgba(0,0,0,.4)}
.door-knob::after{content:"";position:absolute;left:50%;top:32%;width:5.4cqi;height:5.4cqi;border-radius:50%;transform:translate(-50%,-50%);
  background:radial-gradient(circle at 35% 30%,#FFF2C4,#D8A94A 46%,#8C631B);box-shadow:0 .8cqi 1.2cqi rgba(0,0,0,.45)}
.door-kick{position:absolute;left:0;right:0;bottom:0;height:8%;background:linear-gradient(180deg,#EED38A,#C99A3E 48%,#94691F);box-shadow:inset 0 .4cqi 0 rgba(255,255,255,.4)}
.sill{position:relative;height:5cqi;margin-inline:-2.6cqi;border-radius:.7cqi;background:linear-gradient(180deg,#DCD3C1,#B5AB95);box-shadow:0 1.6cqi 2.6cqi -1.2cqi rgba(0,0,0,.45)}
.sill::after{content:"";position:absolute;left:8%;right:8%;top:100%;height:16cqi;pointer-events:none;
  background:radial-gradient(50% 100% at 50% 0,rgba(255,232,180,.5),rgba(255,232,180,0));transition:opacity 1.8s ease .5s}
.js .portal:not(.is-open) .sill::after{opacity:0}
:root[data-tod="blue"] .spill,:root[data-tod="night"] .spill{background:linear-gradient(0deg,rgba(255,190,110,.24),rgba(255,190,110,0) 26%)}
:root[data-tod="blue"] .sill::after,:root[data-tod="night"] .sill::after{background:radial-gradient(50% 100% at 50% 0,rgba(255,196,120,.42),rgba(255,196,120,0))}
.art-cap{margin-top:30px;text-wrap:balance}
/* without JavaScript the name box can't fill the sign and the street is always midday, so hide both lines */
html:not(.js) .tryit,html:not(.js) .art-cap{display:none}

/* ---------- the showroom: six looks along Main Street ---------- */
.showroom{padding-block:clamp(64px,9vw,112px)}
.show-head{margin-bottom:22px}
.show-head h2{font-size:clamp(34px,5.4vw,54px);line-height:1.04;letter-spacing:-.012em}
.scenes{list-style:none;margin:0;padding:0}
.scene{position:relative;isolation:isolate;--sc-ink:#15201B;--sc-ink-2:#38433E;--sc-when:#5C430E}
.scene[data-tone="dark"]{--sc-ink:#F7F3EA;--sc-ink-2:rgba(247,243,234,.8);--sc-when:#F2D38C}
.scene-bg{position:absolute;inset:0;z-index:-1;overflow:hidden;background:#33423B;pointer-events:none}
/* if a picture is slow or missing, light scenes fall back to cream so their dark words stay readable */
.scene[data-tone="light"] .scene-bg{background:#E6E0D3}
.scene-bg picture,.scene-bg img{position:absolute;inset:0;width:100%;height:100%}
.scene-bg img{object-fit:cover}
.scene-bg::after{content:"";position:absolute;inset:0}
.sc-when{display:flex;align-items:center;gap:10px;margin:0 0 10px;font:700 12.5px/1.2 var(--body);letter-spacing:.16em;text-transform:uppercase;color:var(--sc-when)}
.sc-ic{position:relative;flex:none;width:24px;height:13px;overflow:hidden;border-bottom:1.5px solid currentColor}
.sc-ic::after{content:"";position:absolute;left:50%;bottom:var(--sb,1px);width:10px;height:10px;margin-left:-5px;border-radius:50%;background:currentColor}
.scene[data-style="soft"] .sc-ic{--sb:-5px}
.scene[data-style="warm"] .sc-ic{--sb:-1px}
.scene[data-style="clean"] .sc-ic{--sb:2px}
.scene[data-style="classic"] .sc-ic{--sb:-3px}
.scene[data-style="film"] .sc-ic::after,.scene[data-style="bold"] .sc-ic::after{background:none;box-shadow:inset -3px -1px 0 0 currentColor}
.scene[data-style="bold"] .sc-ic::after{bottom:2px}
.sc-look{font:800 46px/.92 var(--display);letter-spacing:-.025em;color:var(--sc-ink);margin:0 0 12px}
.sc-for{font-size:16.5px;line-height:1.45;color:var(--sc-ink);margin:0 0 8px;max-width:24em}
.sc-who{font-size:14px;line-height:1.4;color:var(--sc-ink-2);margin:0 0 18px}
.btn-scene{min-height:48px;padding:11px 18px;font-size:16px}
.scene[data-tone="dark"] .btn-scene{--bg:#F2D38C;--fg:#15201B;box-shadow:0 8px 22px -10px rgba(0,0,0,.6)}
.scene[data-tone="dark"] .btn-scene:hover{--bg:#F8E2AE}
.scene[data-tone="dark"] .scene-copy{--focus:#F2D38C}
.devices{position:relative;margin:0;padding:0 0 10% 0}
.browser{position:relative;margin:0;border-radius:10px;overflow:hidden;background:#FFFDF8;box-shadow:0 30px 60px -28px rgba(0,0,0,.6),0 0 0 1px rgba(0,0,0,.1)}
.bar{display:flex;align-items:center;gap:5px;height:24px;padding:0 9px;background:#ECE7DD;border-bottom:1px solid rgba(0,0,0,.07)}
.bar i{flex:none;width:8px;height:8px;border-radius:50%;background:#CFC7B8}
.bar span{flex:0 1 58%;min-width:0;margin:0 auto;height:15px;border-radius:5px;background:#FFFDF8;font:600 10px/15px var(--body);color:#5B6661;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transform:translateX(-14px)}
.browser img{width:100%;height:auto;aspect-ratio:1440/900;object-fit:cover;object-position:top}
.handset{position:absolute;right:-2%;bottom:0;width:24%;margin:0;padding:1.3%;border-radius:15%/7%;background:#0C100E;box-shadow:0 26px 44px -18px rgba(0,0,0,.7),inset 0 0 0 1px #2F3632}
.handset img{width:100%;height:auto;aspect-ratio:600/1298;object-fit:cover;object-position:top;border-radius:12%/5.6%}

/* Cards (everywhere except the computer show). */
html:not(.fx) .scene{display:flex;flex-direction:column;justify-content:flex-end;gap:22px;min-height:560px;padding:24px 22px 26px;border-radius:20px;overflow:hidden;background:#33423B;box-shadow:0 24px 50px -32px rgba(0,0,0,.55)}
html:not(.fx) .scene[data-tone="light"]{background:#E6E0D3}
html:not(.fx) .devices{order:-1;margin:0 auto auto;width:100%;max-width:440px}
html:not(.fx) .scene[data-tone="light"] .scene-bg::after{background:linear-gradient(180deg,rgba(246,242,233,0) 28%,rgba(246,242,233,.9) 50%,rgba(246,242,233,.97) 100%)}
html:not(.fx) .scene[data-tone="dark"] .scene-bg::after{background:linear-gradient(180deg,rgba(9,13,11,0) 30%,rgba(9,13,11,.78) 56%,rgba(9,13,11,.94) 100%)}
html:not(.fx) .scene-copy{position:relative}
html:not(.fx) .btn-scene{width:100%}
@media (max-width:699px){
  .showroom .show-head{margin-bottom:16px}
  html:not(.fx) .scenes{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
    padding:6px max(var(--gutter),env(safe-area-inset-left)) 22px;scroll-padding-inline:var(--gutter);scrollbar-width:none;-webkit-overflow-scrolling:touch}
  html:not(.fx) .scenes::-webkit-scrollbar{display:none}
  html:not(.fx) .scene{flex:0 0 min(85vw,380px);scroll-snap-align:start;min-height:min(150vw,600px)}
}
@media (min-width:700px){
  html:not(.fx) .scenes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;max-width:1180px;margin-inline:auto;padding-inline:max(var(--gutter),env(safe-area-inset-left)) max(var(--gutter),env(safe-area-inset-right))}
  html:not(.fx) .sc-look{font-size:50px}
}
@media (min-width:1100px){html:not(.fx) .scenes{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* The dial: one stop per look. A row of chips here; on computers it becomes the sun's path. */
.dial{margin:0 0 20px}
.dial-arc{display:none}
.dial-list{list-style:none;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px max(var(--gutter),env(safe-area-inset-left)) 4px;max-width:1180px;margin-inline:auto}
.dial-list::-webkit-scrollbar{display:none}
.dial-list a{display:inline-flex;align-items:baseline;gap:7px;white-space:nowrap;padding:8px 15px 9px;border-radius:999px;border:1.5px solid var(--rule);background:var(--card);color:var(--ink);text-decoration:none;transition:border-color .2s ease,background-color .2s ease}
.dial-list a:hover{border-color:var(--door)}
.dial-list a.on{border-color:var(--door);background:color-mix(in srgb,var(--door) 11%,var(--card))}
.dl-when{font:700 11px/1 var(--body);letter-spacing:.11em;text-transform:uppercase;color:var(--ink-2)}
.dl-look{font:700 16px/1 var(--display)}

/* ---------- closing: come on in ---------- */
.closing{--from:#1F5A47;position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:flex-end;min-height:clamp(380px,72vh,760px);padding:20vh 0 clamp(36px,7vh,80px);color:#F7F3EA;background:var(--night)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .closing{--from:#123A2E}}
:root[data-theme="dark"] .closing{--from:#123A2E}
.closing-bg{position:absolute;inset:0;z-index:-1}
.closing-bg picture,.closing-bg img{position:absolute;inset:0;width:100%;height:100%}
.closing-bg img{object-fit:cover;object-position:50% 60%}
.closing-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,var(--from) 0%,color-mix(in srgb,var(--from) 0%,transparent) 34%),linear-gradient(0deg,var(--night) 0%,rgba(16,25,21,0) 52%)}
.closing-in{width:100%}
.closing-line{font:italic 650 clamp(24px,3vw,38px)/1.15 var(--display);color:#F2D38C;margin:0 0 .25em;text-shadow:0 2px 18px rgba(0,0,0,.5)}
.closing-name{display:flex;flex-wrap:wrap;gap:0 .2em;margin:0;font:800 clamp(52px,12.6vw,210px)/.86 var(--display);letter-spacing:-.035em;color:#FBF7EE;text-shadow:0 4px 40px rgba(0,0,0,.45)}
.closing-name span{display:inline-block}

/* ---------- motion (none of it is needed to read the page) ---------- */
@media (prefers-reduced-motion:no-preference){
  .hero-copy>.maxpill{animation:fadeup .9s cubic-bezier(.2,.7,.2,1) both}
  .pill-dot::after{animation:ping 2.6s cubic-bezier(0,0,.2,1) 1.2s infinite}
  .gild.shine{animation:shine 1.2s ease both}
  html:not(.fx) .scene .devices{transition:transform .5s cubic-bezier(.2,.7,.2,1)}
  html:not(.fx) .scene:hover .devices{transform:translateY(-4px)}
}
@keyframes ping{0%{opacity:.55;transform:scale(1)}75%,100%{opacity:0;transform:scale(2.8)}}
@keyframes shine{from{background-position:160% 0,0 0}to{background-position:-60% 0,0 0}}

/* ================= the computer show (html.fx) =================
   The hold is the first screen, stuck in place while you scroll the length of --walk: the door grows until
   its opening fills the screen (home.js moves it and clips the wide street, .doorview, to the opening).
   Then the showroom slides up over it: the title, the sun dial, and one scene per look. */
.doorview{display:none}
.fx{--head:69px;--walk:88vh}
.fx .entry{margin-top:calc(var(--head) * -1)}
.fx .hold{position:sticky;top:0;z-index:0;height:100vh;overflow:hidden;background:var(--paper)}
.fx .hold.covered{visibility:hidden}
.fx .hero{height:100%;display:flex;align-items:center;padding:calc(var(--head) + 1.5vh) 0 2.5vh;overflow:visible}
.fx .hero .wrap{max-width:1340px}
.fx .hero-grid{width:100%;grid-template-columns:minmax(0,1.16fr) minmax(0,.84fr);gap:clamp(32px,4vw,64px)}
.fx .hero h1{font-size:clamp(44px,min(5.3vw,8.7vh),80px);margin-bottom:2.2vh}
.fx .maxpill{margin-bottom:2.2vh}
.fx .hero .eyebrow{margin-bottom:1.5vh}
.fx .hero .lede{font-size:clamp(17px,min(1.45vw,2.6vh),21px);max-width:36em}
.fx .ctas{margin-top:2.8vh}
.fx .ticks{margin-top:2vh}
.fx .tryit{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;max-width:680px;margin-top:3vh;padding:10px 12px 10px 16px}
.fx .tryit-h{margin:0;flex:none}
.fx .tryit input{flex:1 1 180px;min-width:0;min-height:42px;padding:8px 12px}
.fx .hero-copy{will-change:opacity,transform}
.fx .hold.walked .hero-copy,.fx .hold.walked .art-cap{visibility:hidden}
.fx .hero-art{position:relative;z-index:2;animation:none}
.fx .portal{width:min(100%,410px,calc((100vh - 220px) * .62))}
.fx .opening{background:transparent}
.fx .opening .view{display:none}
.fx .door-glass{background-image:linear-gradient(rgba(16,34,27,.42),rgba(16,34,27,.42)),var(--v-wide)}
.fx .doorview{display:block;position:absolute;inset:0;z-index:1;visibility:hidden;pointer-events:none;overflow:hidden}
.fx.fx-ready .doorview{visibility:visible}
.dv-img{position:absolute;inset:-12%;background:#2C3A33 50% 50%/cover no-repeat;background-image:var(--v-wide)}
.doorview::after{content:"";position:absolute;inset:0;background:#09100C;opacity:var(--dim,0)}

.fx .showroom{position:relative;z-index:1;margin-top:var(--walk);padding:0}
.fx .show-head{position:relative;isolation:isolate;max-width:none;margin:0;padding:16vh var(--gutter) 15vh;text-align:center;color:#FBF7EE}
/* a soft shade behind the words so they stay easy to read on the brightest street pictures */
.fx .show-head::before{content:"";position:absolute;inset:6vh 0;z-index:-1;pointer-events:none;background:radial-gradient(46% 50% at 50% 50%,rgba(9,16,12,.54),rgba(9,16,12,.4) 58%,rgba(9,16,12,0) 100%)}
.fx .show-head .eyebrow{color:#F7E0A8;text-shadow:0 1px 2px rgba(0,0,0,.5),0 1px 10px rgba(0,0,0,.7)}
.fx .show-head h2{color:#FBF7EE;font-size:clamp(46px,min(6vw,10vh),96px);line-height:1;text-shadow:0 2px 34px rgba(0,0,0,.5)}
.fx .show-head h2 em{color:#F2D38C}
.fx .show-head .sec-lede{margin:22px auto 0;max-width:36em;color:#FBF7EE;text-shadow:0 1px 3px rgba(0,0,0,.45),0 1px 18px rgba(0,0,0,.6)}

.fx .dial{position:sticky;top:calc(100vh - 100px);z-index:5;width:min(780px,calc(100vw - 64px));height:84px;margin:0 auto;padding:7px 16px 0;
  border-radius:18px;background:rgba(10,16,13,.74);-webkit-backdrop-filter:blur(12px) saturate(1.25);backdrop-filter:blur(12px) saturate(1.25);
  border:1px solid rgba(255,255,255,.14);box-shadow:0 24px 50px -24px rgba(0,0,0,.7);color:#FBF7EE}
.fx .dial-arc{display:block;position:relative;height:26px}
.fx .dial-arc svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.fx .dial-arc path{fill:none;stroke:rgba(255,255,255,.32);stroke-width:1.4;stroke-dasharray:2 5;vector-effect:non-scaling-stroke}
.fx .sun{position:absolute;left:var(--sx,8.33%);top:var(--sy,71%);width:15px;height:15px;margin:-7.5px 0 0 -7.5px;border-radius:50%}
.fx .sun::before,.fx .sun::after{content:"";position:absolute;inset:0;border-radius:50%;transition:opacity .6s ease}
.fx .sun::before{background:radial-gradient(circle at 40% 35%,#FFF8DC,#F8C65C 55%,#E58B2E);box-shadow:0 0 0 4px rgba(248,198,92,.16),0 0 20px 6px rgba(248,198,92,.42)}
.fx .sun::after{opacity:0;background:radial-gradient(circle at 36% 34%,#FFFFFF,#DDE6F4 60%,#9FB0CC);box-shadow:0 0 18px 5px rgba(196,212,250,.36)}
.fx .dial.night .sun::before{opacity:0}
.fx .dial.night .sun::after{opacity:1}
.fx .dial-list{display:grid;grid-template-columns:repeat(var(--n,6),minmax(0,1fr));gap:0;padding:0;overflow:visible;max-width:none}
.fx .dial-list a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 2px 6px;border:0;border-radius:10px;background:none;color:rgba(251,247,238,.8);transition:color .3s ease,background-color .3s ease}
.fx .dial-list a:hover{background:rgba(255,255,255,.08);color:#FBF7EE}
.fx .dial-list a.on{background:none;color:#F2D38C}
.fx .dial-list a:focus-visible{outline-color:#F2D38C;outline-offset:-2px}
.fx .dl-when{font-size:10px;letter-spacing:.12em;color:inherit}
.fx .dl-look{font-size:15.5px;color:rgba(251,247,238,.92)}
.fx .dial-list a.on .dl-look,.fx .dial-list a:hover .dl-look{color:#FBF7EE}

.fx .scene{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.42fr);align-items:center;gap:clamp(40px,5vw,96px);
  min-height:112vh;padding:12vh max(var(--gutter),calc((100vw - 1320px) / 2)) 20vh;clip-path:inset(0);background:none}
.fx .scene-bg{position:fixed;inset:0;display:none;background:#1E2924}
.fx .scene[data-tone="light"] .scene-bg{background:#E6E0D3}
.fx .scene.near .scene-bg{display:block}
.fx .scene-bg img{transform:scale(calc(1.1 - var(--p,.5) * .1));transform-origin:50% 60%;will-change:transform}
.fx .scene[data-tone="light"] .scene-bg::after{background:linear-gradient(90deg,rgba(246,242,233,.95) 0%,rgba(246,242,233,.9) 26%,rgba(246,242,233,.76) 38%,rgba(246,242,233,.32) 50%,rgba(246,242,233,.06) 60%,rgba(246,242,233,0) 68%),linear-gradient(0deg,rgba(9,13,11,.38),rgba(9,13,11,0) 24%)}
.fx .scene[data-tone="dark"] .scene-bg::after{background:linear-gradient(90deg,rgba(8,12,10,.88) 0%,rgba(8,12,10,.66) 28%,rgba(8,12,10,.14) 52%,rgba(8,12,10,0) 66%),linear-gradient(0deg,rgba(8,12,10,.5),rgba(8,12,10,0) 26%)}
.fx .scene::before{content:"";position:absolute;left:0;right:0;top:0;height:16vh;z-index:0;pointer-events:none;background:linear-gradient(180deg,rgba(8,12,10,.42),rgba(8,12,10,0))}
.fx .scene-copy{position:relative;z-index:1;transform:translate3d(0,calc((.5 - var(--p,.5)) * 36px),0)}
.fx .sc-when{font-size:13px;margin-bottom:16px}
.fx .sc-look{font-size:clamp(64px,min(8vw,13vh),132px);margin-bottom:18px}
.fx .sc-for{font-size:clamp(18px,1.45vw,21px);margin-bottom:12px}
.fx .sc-who{font-size:15px;margin-bottom:28px}
.fx .devices{position:relative;z-index:1;padding-bottom:11%;width:min(100%,calc((100vh - 220px) / .76));justify-self:center}
.fx .browser{border-radius:14px;transform:translate3d(0,calc((.5 - var(--p,.5)) * 60px),0)}
.fx .bar{height:32px;gap:7px;padding:0 13px}
.fx .bar i{width:11px;height:11px}
.fx .bar span{height:20px;line-height:20px;font-size:12px;border-radius:6px}
.fx .handset{width:23%;right:-3%;transform:translate3d(0,calc((.5 - var(--p,.5)) * 190px),0)}

.fx .closing{min-height:100vh;padding-top:30vh}
.fx .closing-bg img{transform:scale(calc(1.12 - var(--e,1) * .12));will-change:transform}
.fx .closing-name span{transform:translate3d(0,calc((1 - var(--e,1)) * var(--d,60px)),0)}
.fx .closing-name span:nth-child(2){--d:110px}
.fx .closing-name span:nth-child(3){--d:160px}
.fx .closing-line{opacity:var(--e,1)}

@media print{
  .doorview,.dial,.closing,.scene-bg{display:none!important}
  .scene{min-height:0!important;color:#000!important}
  .sc-look,.sc-for,.sc-who,.sc-when{color:#000!important}
}
