/* Hand-written layer on top of site.css (which the import regenerates). Phone, tablet and the 2026-11-11 edits. */

/* ---------- contact: four actions in a clean 2 x 2 ---------- */
.act--p{grid-column:auto}

/* ---------- Good to know: a pill that opens on hover, focus or tap ---------- */
.good{position:relative;width:auto;max-width:none;margin-top:18px}
.good__h{display:inline-flex;align-items:center;gap:8px;margin:0;padding:10px 15px;border-radius:999px;background:#ebebef;color:#1d1d1f;font:600 13.5px/1 "Plex",system-ui,sans-serif;transition:background-color .25s}
.good__h svg{width:12px;height:12px;fill:none;stroke:#9a7a35;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s var(--ease)}
.good ul{position:absolute;left:0;bottom:calc(100% + 10px);z-index:5;width:max-content;max-width:min(340px,calc(100vw - 2 * var(--pad)));
  flex-direction:column;flex-wrap:nowrap;gap:2px!important;padding:8px;border-radius:18px;background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.06),0 24px 44px -20px rgba(0,0,0,.4);
  opacity:0;visibility:hidden;transform:translateY(6px) scale(.98);transform-origin:bottom left;transition:opacity .22s,transform .3s var(--ease),visibility 0s .3s}
.good li{background:none!important;padding:9px 12px!important;font-size:14px!important;border-radius:10px!important}
.good li+li{border-top:1px solid rgba(0,0,0,.06)}
.good.open ul{opacity:1;visibility:visible;transform:none;transition:opacity .22s,transform .3s var(--ease)}
.good.open .good__h{background:#e2e2e7}
.good.open .good__h svg{transform:rotate(180deg)}
@media (hover:hover){.good:hover ul{opacity:1;visibility:visible;transform:none;transition:opacity .22s,transform .3s var(--ease)}.good:hover .good__h{background:#e2e2e7}.good:hover .good__h svg{transform:rotate(180deg)}}

/* ---------- About: review lines take turns ---------- */
.pop__q{display:grid}
.pop__q{transform:translateZ(140px)}
.pop__q blockquote{grid-area:1/1;align-self:center;opacity:0;transform:translateY(6px);transition:opacity .6s,transform .7s var(--ease)}
.pop__q blockquote.on{opacity:1;transform:none}

/* ---------- footer: one line, centred ---------- */
body>.foot{justify-content:center}

/* ---------- phones and tablets (below the desktop layout) ---------- */
@media (max-width:899px){
  /* How I work: the header, the watch and the card sit together, centred, with the watch filling the space between */
  .xstage{grid-template-rows:auto minmax(0,1fr) auto!important;padding:calc(var(--pad) + 64px) var(--pad) max(16px,env(safe-area-inset-bottom))!important;gap:8px!important}
  .xhead2{position:static}
  .xview{width:100%!important;height:100%!important;aspect-ratio:auto;max-width:760px;align-self:stretch;justify-self:center;min-height:0}
  .xlist{width:100%;max-width:680px;justify-self:center}
}
@media (max-width:599px){
  .sec,.lsec{padding:64px 0}
  .xstage{padding-top:76px!important}
  .xhead2 .h2{font-size:30px}
}

/* tablet portrait: keep reading widths sensible and everything centred */
@media (min-width:600px) and (max-width:899px){
  .sec>.wrap,.lsec>.wrap{max-width:680px}
  .sec,.lsec{padding:80px 0}
}

/* ---------- devices: a graphite phone for Jimicsi, a slim tablet for Tandem ---------- */
.ph3{position:relative}
.ph3__body{padding:11px;border-radius:52px;
  background:linear-gradient(100deg,#767a81 0%,#33363b 5%,#1b1c1f 28%,#34373c 50%,#18191c 76%,#2f3237 95%,#6c7077 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.42),inset 0 1px 1px rgba(255,255,255,.25),inset 0 0 0 4px rgba(0,0,0,.18),
    0 2px 2px rgba(0,0,0,.12),0 26px 34px -20px rgba(0,0,0,.5),0 60px 90px -46px rgba(0,0,0,.65)}
/* the black glass bezel sits on the screen's edge, so a 4px metal rim shows outside it */
.ph3__screen{border-radius:34px;box-shadow:0 0 0 7px #040405,0 0 0 8px rgba(0,0,0,.6)}
.ph3__body{padding:11px}
/* camera island */
.ph3__body::before{top:22px;width:31%;height:23px;margin-left:-15.5%;border-radius:14px;
  background:radial-gradient(circle at calc(100% - 13px) 50%,#22354b 0 2.4px,#0d1219 2.9px 5px,#000 5.6px)}
/* glass: one soft diagonal reflection */
.ph3__body::after{inset:11px;border-radius:34px;
  background:linear-gradient(118deg,rgba(255,255,255,.13) 0%,rgba(255,255,255,.04) 30%,rgba(255,255,255,0) 30.5%,rgba(255,255,255,0) 100%)}
/* buttons: power on the right, action and volume on the left */
.ph3::before,.ph3::after{content:"";position:absolute;width:4px;background:linear-gradient(90deg,#2a2c30,#80848b 55%,#3a3d42);z-index:-1}
.ph3::before{right:-3px;top:26%;height:13%;border-radius:0 3px 3px 0}
.ph3::after{left:-3px;top:17%;height:5%;border-radius:3px 0 0 3px}
.ph3:not(.ph3--t)::after{height:28px;box-shadow:0 46px 0 #5a5e64,0 96px 0 #5a5e64}

/* Tandem runs on an Android tablet: slim even bezels, a front camera dot, buttons on the top edge */
.ph3--t{width:min(84vw,360px)}
.ph3--t .ph3__body{padding:15px;border-radius:30px;
  background:linear-gradient(100deg,#9a9ea5 0%,#45484e 4%,#2c2e32 40%,#3c3f44 60%,#2a2c30 92%,#8e9299 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.4),inset 0 1px 1px rgba(255,255,255,.25),inset 0 0 0 4px rgba(0,0,0,.16),
    0 2px 2px rgba(0,0,0,.12),0 26px 34px -20px rgba(0,0,0,.5),0 60px 90px -46px rgba(0,0,0,.6)}
.ph3--t .ph3__screen{border-radius:8px;padding-top:0!important;box-shadow:0 0 0 10px #050506,0 0 0 11px rgba(0,0,0,.6)}
.ph3--t .ph3__body::before{top:5px;width:6px;height:6px;margin-left:-3px;border-radius:50%;
  background:radial-gradient(circle,#2a3e56 0 1.3px,#0b0e13 1.8px)}
.ph3--t .ph3__body::after{inset:15px;border-radius:8px}
.ph3--t::before{right:16%;top:-3px;width:15%;height:4px;border-radius:3px 3px 0 0;background:linear-gradient(#80848b,#2a2c30)}
.ph3--t::after{left:auto;right:-3px;top:13%;height:7%;width:4px;border-radius:0 3px 3px 0;box-shadow:none}

.scrubhint{bottom:18px;background:rgba(20,20,22,.72);border:1px solid rgba(255,255,255,.12);box-shadow:0 8px 20px -8px rgba(0,0,0,.6)}

/* ---------- About: the portrait turns towards you and steps out (js/extras.js sets --px, --py, --lift) ---------- */
.pop__me{transform:translateX(calc(-50% + var(--px,0) * 16px)) translateY(calc((1 - var(--rise)) * 5% - var(--lift,0) * 8px))
    translateZ(calc(56px + var(--lift,0) * 30px)) rotateY(calc(var(--px,0) * 10deg)) rotateX(calc(var(--py,0) * -6deg));
  transition:transform .6s var(--ease),filter .6s;will-change:transform}
.pop:hover .pop__me{filter:drop-shadow(0 30px 26px rgba(0,0,0,.36))}
@media (prefers-reduced-motion:reduce){.pop__me{transition:none}}

/* ---------- Contact: a shorter tag, no dead band inside it, and less air around it ---------- */
#contact{padding:clamp(64px,7vw,104px) 0 clamp(48px,6vw,88px)}
#contact .lede{margin-bottom:0}
.tag{aspect-ratio:.74}
.hang{height:470px}
.tagzone{margin-top:8px}
@media (min-width:700px) and (max-width:899px){
  .tagzone{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:28px}
  .hang__sw,.tag{width:250px}.hang__sw{margin-left:-125px}
  .hang{height:440px}.tag{aspect-ratio:.62}
  .tf{padding:58px 18px 18px}.tf__nm{font-size:26px}
  .tagacts{align-items:stretch}.tagacts__h{text-align:left;margin:0 0 6px}
  .acts{grid-template-columns:minmax(0,1fr)!important}
}
@media (max-width:699px){
  .hang__sw,.tag{width:250px}.hang__sw{margin-left:-125px}
  .tag{aspect-ratio:.62}
  .hang{height:465px}
  .tf{padding:58px 18px 18px}.tf__nm{font-size:26px}
}

/* ---------- Contact: the particle web sits behind everything (js/extras.js) ---------- */
#contact{position:relative;overflow:hidden}
#contact>.web{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
#contact>.wrap{position:relative;z-index:1}

/* ---------- swing tag: text sizes follow the tag's width, so the name and address always fit and stay centred ---------- */
.tag{container-type:inline-size}
.tf>*{max-width:100%}
.tf__nm{font-size:min(31px,11.2cqi)}
.tf__url{font-size:min(24px,7.8cqi);white-space:nowrap}
.tf__em{font-size:min(13.5px,5.2cqi);white-space:nowrap}

/* ---------- About quote card: the type follows the card's size, so no review line spills out on a small screen ---------- */
.pop__tilt{container-type:inline-size}
.pop__q{width:64%;max-width:none;left:-4%}
.pop__q blockquote{font-size:clamp(13px,5.4cqi,19px);overflow-wrap:break-word}
@media (min-width:900px){.pop__q{width:60%;left:-5%}}
@media (min-width:900px) and (max-width:1199px){.pop__q{left:0}}
/* phones and tablets: the portrait card uses the full column, as large as it feels on desktop */
@media (max-width:899px){.pop__tilt{width:min(100%,460px)}.story2{gap:28px}.pop__q{left:5%;width:60%}}
