/* Products row: a still picture per product; the short video plays when you point
   at a card, and a large sheet opens with the full video when you click it. */

.products{position:relative;max-width:1320px;margin:0 auto;padding:clamp(70px,9vw,120px) 24px 10px;text-align:center}
.products h2{
  margin:0;font-size:clamp(30px,4vw,52px);font-weight:600;letter-spacing:-.02em;
  background:var(--metal);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.products .lead{margin-top:14px}

.shots{display:grid;grid-template-columns:repeat(5,1fr);gap:30px 20px;margin-top:48px;text-align:left}

.shot{display:block;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.shot:focus-visible{outline:none}

.shot-media{
  position:relative;display:block;aspect-ratio:4/3;border-radius:14px;overflow:hidden;
  background:#0b0b0c;border:1px solid var(--line);
  transition:border-color .25s ease,transform .25s ease,box-shadow .25s ease;
}
.shot-media img,.shot-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.shot-media video{opacity:0;transition:opacity .3s ease}
.shot.is-playing .shot-media video{opacity:1}
.shot:hover .shot-media,.shot:focus-visible .shot-media{
  border-color:rgba(212,175,55,.65);transform:translateY(-4px);
  box-shadow:0 22px 44px -22px rgba(0,255,85,.35);
}

/* the small camera mark that says "this one moves" */
.shot-cam{
  position:absolute;top:12px;right:12px;width:30px;height:30px;border-radius:50%;
  display:grid;place-items:center;background:rgba(0,0,0,.5);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
.shot-cam svg{width:16px;height:16px;fill:#fff}

/* title bar that fades in over the picture */
.shot-over{
  position:absolute;inset:auto 0 0 0;padding:38px 14px 12px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.78));
  opacity:0;transition:opacity .3s ease;
}
.shot:hover .shot-over,.shot:focus-visible .shot-over{opacity:1}
.shot-over b{font-size:15px;font-weight:600}
.shot-over i{
  font-style:normal;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  padding:6px 12px;border-radius:999px;background:var(--silver-metal);color:#0b0b0d;
}

/* under each card: the icon, with the name and where it runs in two lines beside it (five cards
   in a row leave no room for both on one line) */
.shot-foot{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:11px;row-gap:3px;align-items:center;margin-top:12px}
.shot-icon{grid-row:1 / span 2;width:32px;height:32px;border-radius:9px;object-fit:cover}
.shot-name{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shot-where{grid-column:2;display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--silver-dim);white-space:nowrap}
.shot-where::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--aurora);box-shadow:0 0 8px var(--aurora)}

/* ---------- the sheet that opens on click ---------- */
.sheet{position:fixed;inset:0;z-index:100}
.sheet[hidden]{display:none}
.sheet-back{position:absolute;inset:0;background:rgba(0,0,0,.74);opacity:0;transition:opacity .3s ease}
.sheet-panel{
  position:absolute;inset:28px 0 0 0;overflow:auto;overscroll-behavior:contain;
  background:#0a0a0b;border-radius:22px 22px 0 0;border-top:1px solid rgba(212,175,55,.5);
  transform:translateY(100%);transition:transform .5s cubic-bezier(.2,.8,.2,1);
}
.sheet.open .sheet-back{opacity:1}
.sheet.open .sheet-panel{transform:none}
html.sheet-lock{overflow:hidden}

.sheet-in{max-width:1060px;margin:0 auto;padding:44px 24px 80px}
.sheet-head{display:flex;align-items:center;gap:16px;margin-bottom:26px}
.sheet-icon{width:54px;height:54px;border-radius:14px;flex:none}
.sheet-head h3{
  margin:0;font-size:clamp(24px,3vw,32px);font-weight:600;letter-spacing:-.01em;
  background:var(--metal);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.sheet-where{margin:3px 0 0;display:flex;align-items:center;gap:8px;font-size:14px;color:var(--silver-dim)}
.sheet-where::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--aurora);box-shadow:0 0 8px var(--aurora)}
.sheet-visit{margin-left:auto;white-space:nowrap}
.sheet-visit[hidden]{display:none}
.sheet-close{
  position:absolute;top:14px;right:16px;z-index:2;width:40px;height:40px;border-radius:50%;
  border:1px solid rgba(199,202,209,.3);background:rgba(20,20,22,.8);color:var(--white);
  font-size:22px;line-height:1;cursor:pointer;transition:border-color .2s ease,color .2s ease;
}
.sheet-close:hover,.sheet-close:focus-visible{border-color:var(--white);color:#fff;outline:none}

@media (max-width:1180px){
  /* five cards: three and two, the second row centred */
  .shots{grid-template-columns:repeat(6,1fr)}
  .shot{grid-column:span 2}
  .shot:nth-child(4){grid-column:2 / span 2}
}
@media (max-width:760px){
  .shots{grid-template-columns:repeat(2,1fr)}
  .shot,.shot:nth-child(4){grid-column:auto}
}
@media (max-width:600px){
  /* on a phone the cards become one row you swipe sideways */
  .shots{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;margin:36px -24px 0;padding:6px 24px 14px;scrollbar-width:none}
  .shots::-webkit-scrollbar{display:none}
  .shot{flex:0 0 76vw;scroll-snap-align:center}
  .sheet-head{flex-wrap:wrap}
  .sheet-visit{margin-left:0;width:100%}
  .sheet-in{padding:56px 18px 60px}
}
@media (prefers-reduced-motion:reduce){
  .sheet-panel,.sheet-back,.shot-media,.shot-media video,.shot-over{transition:none}
}

/* ============================================================================
   The advert at the top of the About sheet: one film, with titles laid over it.
   The film is real footage with the product's real screens in it (see tools/).
   The titles are live text, timed to the shots in products-data.js.
   Every size is in cqw (1cqw = 1% of the advert's width), so film and titles
   scale together as one picture from a phone to a wide monitor.
   ========================================================================== */
.ad{
  position:relative;aspect-ratio:16/9;overflow:hidden;container-type:inline-size;
  border-radius:18px;background:#000;border:1px solid var(--line);
}
.ad-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}

/* a title: a soft shade on its side of the picture, and the words on top of it */
.ad-title{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .4s ease}
.ad-title.on{opacity:1}
.ad-title::before{content:"";position:absolute;inset:0}
.at-left::before{background:linear-gradient(90deg,rgba(0,0,0,.8),rgba(0,0,0,.5) 26%,rgba(0,0,0,0) 56%)}
.at-right::before{background:linear-gradient(270deg,rgba(0,0,0,.8),rgba(0,0,0,.5) 26%,rgba(0,0,0,0) 56%)}
.at-low::before{background:linear-gradient(28deg,rgba(0,0,0,.88),rgba(0,0,0,.5) 28%,rgba(0,0,0,0) 54%)}
.at-end::before{background:linear-gradient(32deg,rgba(0,0,0,.9),rgba(0,0,0,.5) 26%,rgba(0,0,0,0) 50%)}
.at-top::before{background:linear-gradient(200deg,rgba(0,0,0,.85),rgba(0,0,0,.45) 22%,rgba(0,0,0,0) 46%)}

.ad-copy{position:absolute;text-align:left}
.at-left .ad-copy{left:6cqw;top:50%;width:33cqw;transform:translateY(-50%)}
.at-right .ad-copy{right:5cqw;top:50%;width:33cqw;transform:translateY(-50%)}
.at-low .ad-copy{left:6cqw;bottom:8.5cqw;width:35cqw}
.at-end .ad-copy{left:6cqw;bottom:7.5cqw;width:30cqw}                 /* the closing card: name and line, bottom left */
.at-top .ad-copy{right:5cqw;top:5.5cqw;width:56cqw;text-align:right}   /* one line across the top right */

.ad-copy h4{
  margin:0;font-size:max(4.4cqw,17px);font-weight:600;line-height:1.06;letter-spacing:-.02em;
  background:var(--metal);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.ad-copy h4 em{
  font-family:Arapey,Georgia,serif;font-style:italic;font-weight:400;letter-spacing:-.005em;white-space:nowrap;
  background:var(--gold-metal);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.08em;
}
.ad-kicker{margin:0 0 1.4cqw;font-size:max(1.25cqw,8px);font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--gold)}
.ad-sub{margin:1.5cqw 0 0;font-size:max(1.9cqw,10.5px);line-height:1.45;color:#d5d8de}

/* the words rise in one after another each time their shot begins */
@keyframes ad-word{from{translate:0 2.4cqw;opacity:0}to{translate:0 0;opacity:1}}
.ad-title.on .ad-copy > *{animation:ad-word .8s cubic-bezier(.2,.8,.2,1) both}
.ad-title.on .ad-copy > :nth-child(2){animation-delay:.14s}
.ad-title.on .ad-copy > :nth-child(3){animation-delay:.28s}

/* click the picture to pause or play; the mark shows only while paused */
.ad-toggle{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:none;cursor:pointer}
.ad-toggle span{
  position:absolute;left:50%;top:50%;width:max(7cqw,44px);height:max(7cqw,44px);transform:translate(-50%,-50%);
  border-radius:50%;background:rgba(5,5,5,.6);border:1px solid rgba(255,255,255,.55);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);opacity:0;transition:opacity .25s ease;
}
.ad-toggle span::after{
  content:"";position:absolute;left:54%;top:50%;transform:translate(-50%,-50%);
  border-style:solid;border-color:transparent transparent transparent var(--white);
  border-width:max(1.1cqw,7px) 0 max(1.1cqw,7px) max(1.8cqw,11px);
}
.ad.paused .ad-toggle span{opacity:1}
.ad-toggle:focus-visible{outline:2px solid var(--silver);outline-offset:-4px}

/* the thin line along the bottom: how far the film is; click it to jump */
.ad-progress{position:absolute;left:0;right:0;bottom:0;height:14px;cursor:pointer}
.ad-progress::before,.ad-progress i{content:"";position:absolute;left:0;right:0;bottom:0;height:3px}
.ad-progress::before{background:rgba(255,255,255,.16)}
.ad-progress i{background:var(--gold);transform-origin:left;transform:scaleX(0)}

@media (prefers-reduced-motion:reduce){
  .ad-title{transition:none}
  .ad-title.on .ad-copy > *{animation:none}
}

/* ---------- full details under the advert ---------- */
.sheet-line{max-width:780px;margin:34px 0 0;font-size:clamp(18px,1.6vw,21px);line-height:1.55;color:#d0d3d9}
.sheet-intro{max-width:780px;margin:16px 0 0;font-size:16.5px;line-height:1.7;color:#b4b7be}
.sheet-intro p{margin:0 0 12px}
.sheet-sec{margin-top:52px}
.sheet-sec[hidden]{display:none}
.sheet-sec > h4{margin:0 0 20px;font-size:13px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--gold)}
/* how it works: numbered steps side by side */
.sheet-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:16px;counter-reset:sstep}
.sheet-steps article{padding:22px 22px 24px;border-radius:16px;border:1px solid var(--line);background:linear-gradient(180deg,#141416,#0c0c0d);counter-increment:sstep}
.sheet-steps article::before{content:"0" counter(sstep);display:block;margin-bottom:12px;font-family:Arapey,Georgia,serif;font-style:italic;font-size:24px;color:var(--gold)}
.sheet-steps h5{margin:0 0 8px;font-size:17px;font-weight:600;color:var(--white)}
.sheet-steps p{margin:0;font-size:15px;line-height:1.6;color:#a9acb4}
.sheet-feats{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
/* good to know: a plain two-column list */
.sheet-facts{margin:0;border-radius:16px;border:1px solid var(--line);overflow:hidden;background:linear-gradient(180deg,#121214,#0b0b0c)}
.sheet-facts div{display:grid;grid-template-columns:210px 1fr;gap:20px;padding:17px 22px;border-top:1px solid var(--line)}
.sheet-facts div:first-child{border-top:0}
.sheet-facts dt{font-size:15px;font-weight:600;color:var(--silver)}
.sheet-facts dd{margin:0;font-size:15px;line-height:1.6;color:#b4b7be}
.sheet-note{margin:24px 0 0;font-size:13.5px;line-height:1.6;color:var(--silver-dim)}
.sheet-note[hidden]{display:none}
.sheet-links{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:34px}
/* The stores' official download badges, both 50px tall. Apple's file is the badge alone.
   Google's picture carries a blank margin of 41 of its 250 pixels on every side, which is
   cut away here (the picture itself is not changed) so the two stand the same height. */
.store-badge{display:inline-flex;height:50px;overflow:hidden;line-height:0;border-radius:8px;transition:transform .2s ease}
.store-badge:hover{transform:translateY(-2px)}
.store-badge:focus-visible{outline:2px solid var(--silver);outline-offset:3px}
.store-badge img{display:block;height:50px;width:auto}
.store-google img{height:calc(50px * 250 / 168);margin:calc(50px * -41 / 168)}
/* Our own badge for a product that runs in the browser: the same height, corners and thin
   grey edge as the stores' badges, so the row reads as one family. It is our own drawing and
   wording, not a copy of either store's artwork. */
.web-badge{display:inline-flex;align-items:center;gap:10px;height:50px;padding:0 17px 0 13px;border-radius:8px;
  background:#000;border:1px solid #a6a6a6;color:#fff;transition:transform .2s ease}
.web-badge:hover{transform:translateY(-2px)}
.web-badge:focus-visible{outline:2px solid var(--silver);outline-offset:3px}
.web-badge svg{flex:none;width:27px;height:27px}
.web-badge span{display:grid;gap:1px;text-align:left;line-height:1.1}
.web-badge small{font-size:10.5px;letter-spacing:.02em;color:#e3e3e3}
.web-badge b{font-size:18px;font-weight:600;letter-spacing:-.01em;white-space:nowrap}
.sheet-marks{margin:16px 0 0;font-size:12px;line-height:1.5;color:#6f727a}
.sheet-marks[hidden]{display:none}
.btn-ico{flex:none;width:18px;height:18px;margin-inline-end:9px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sheet-feats article{padding:22px 22px 24px;border-radius:16px;border:1px solid var(--line);background:linear-gradient(180deg,#141416,#0c0c0d)}
.sheet-feats h5{margin:0 0 8px;font-size:17px;font-weight:600;color:var(--gold-hi)}
.sheet-feats p{margin:0;font-size:15px;line-height:1.6;color:#a9acb4}

@media (max-width:600px){
  .sheet-feats{grid-template-columns:1fr}
  .sheet-facts div{grid-template-columns:1fr;gap:4px}
  .sheet-links .btn{flex:1 1 100%}
  .ad{border-radius:12px}
  /* on a phone the titles get more room, and the second line of a title is left out */
  .at-left .ad-copy,.at-right .ad-copy,.at-low .ad-copy{width:40cqw}
  .ad-sub{display:none}
  .at-end .ad-sub{display:block}
  .at-top .ad-copy{width:70cqw}
}
