/* work-phones 2026-11-21 · Our Work video section only.
   Realistic iPhone frames in CSS. No 3D transforms, filters, or perspective
   (those left ghost bezels in WebKit/Safari). Homepage / video-page phones are untouched. */
.wph{position:relative;overflow-x:clip}
.wph__in{display:grid;gap:clamp(28px,4vw,56px);align-items:center}
.wph__copy{max-width:38ch}
.wph__copy .t-1{color:#fff}
.wph__lede{margin:22px 0 0;max-width:38ch}
.wph__chip{display:inline-flex;align-items:center;gap:8px;margin:22px 0 0;padding:8px 14px;border-radius:999px;border:1px solid rgba(141,197,62,.55);background:#ffffff0a;color:#e8eeea;font-size:13px;font-weight:700;letter-spacing:.04em}
.wph__cta{margin:28px 0 0}
.wph__stage{position:relative;z-index:1;padding:8px 0}
.wph__halo{position:absolute;left:0;right:0;top:10%;width:min(520px,88%);aspect-ratio:1;margin-inline:auto;border-radius:50%;background:radial-gradient(closest-side,#8dc53e22,#8dc53e08 55%,transparent 72%);z-index:0;pointer-events:none}
.wph__phones{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:28px 36px;padding:8px 10px}
.wph__card{appearance:none;-webkit-appearance:none;position:relative;display:flex;flex-direction:column;align-items:center;gap:16px;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;line-height:normal;cursor:pointer;text-align:center;-webkit-tap-highlight-color:transparent;box-shadow:none;max-width:100%}

/* font-size on the phone is a scale token equal to the short side, so radii and chrome stay in proportion. */
.wph__phone{position:relative;flex:none;box-sizing:border-box}
.wph__phone--portrait{width:min(228px,66vw);font-size:min(228px,66vw);aspect-ratio:71.5/149.6}
/* font-size tracks the short side. Do not use 100% here: in font-size, % is the parent font, not width (that collapsed the mobile landscape frame). */
.wph__phone--landscape{width:min(420px,100%);font-size:calc(min(420px,100cqw) * 71.5 / 149.6);aspect-ratio:149.6/71.5}

/* Titanium frame */
.wph__frame{position:absolute;inset:0;display:block;padding:.011em;border-radius:.215em;background:linear-gradient(155deg,#f2eee9 0%,#c9c3bb 10%,#8d8882 22%,#4e4b48 36%,#e4dfd8 50%,#8a857f 64%,#3c3a38 78%,#d7d1ca 90%,#5a5754 100%);box-shadow:inset 0 .004em .002em rgba(255,255,255,.55),inset 0 -.005em .003em rgba(0,0,0,.45),0 .09em .16em -.04em rgba(0,0,0,.72),0 .02em .05em rgba(0,0,0,.4)}
.wph__phone--landscape .wph__frame{border-radius:.215em}

/* Front glass + black bezel */
.wph__glass{position:relative;display:block;width:100%;height:100%;padding:.032em;border-radius:.204em;background:#050505;box-shadow:inset 0 0 0 .002em rgba(255,255,255,.06)}
.wph__phone--landscape .wph__glass{padding:.032em}

/* Screen */
.wph__screen{position:relative;display:block;width:100%;height:100%;border-radius:.178em;overflow:hidden;background:#000}
.wph__media{position:absolute;inset:0}
.wph__phone--landscape .wph__media{left:.118em;right:0;top:0;bottom:0} /* left gutter so the island sits on black, not over the video */
.wph__media picture,.wph__media img,.wph__loop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.wph__loop{opacity:0;transition:opacity .5s}
.wph__loop.is-live{opacity:1}

/* Dynamic Island — in the screen, not in the metal. Landscape: left short edge, in the black gutter. */
.wph__island{position:absolute;z-index:5;pointer-events:none;background:#000;border-radius:999px;box-shadow:0 0 0 .003em rgba(255,255,255,.06),0 .004em .01em rgba(0,0,0,.6)}
.wph__phone--portrait .wph__island{left:50%;top:.028em;width:.31em;height:.086em;margin-left:-.155em}
.wph__phone--landscape .wph__island{left:.028em;top:50%;width:.086em;height:.31em;margin-top:-.155em}

/* Faint glass reflection */
.wph__shine{position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:inherit;background:linear-gradient(145deg,rgba(255,255,255,.14) 0%,rgba(255,255,255,.05) 18%,rgba(255,255,255,0) 40%)}

/* Side buttons — attached to the frame. Portrait: action + volume on the left, power on the right.
   Landscape is a 90° CCW turn: island on the left, power on the top edge, volume/action on the bottom. */
.wph__side{position:absolute;inset:0;z-index:2;pointer-events:none}
.wph__btn{position:absolute;background:linear-gradient(180deg,#d8d3cc,#8c8781 40%,#3e3c3a 70%,#b8b3ac);box-shadow:inset 0 0 .004em rgba(255,255,255,.35),0 0 .004em rgba(0,0,0,.5)}
.wph__phone--portrait .wph__btn--action{left:-.012em;top:18.5%;width:.018em;height:.062em;border-radius:.008em 0 0 .008em}
.wph__phone--portrait .wph__btn--vu{left:-.012em;top:28%;width:.018em;height:.08em;border-radius:.008em 0 0 0}
.wph__phone--portrait .wph__btn--vd{left:-.012em;top:calc(28% + .09em);width:.018em;height:.08em;border-radius:0 0 0 .008em}
.wph__phone--portrait .wph__btn--pwr{right:-.012em;top:26%;width:.018em;height:.12em;border-radius:0 .008em .008em 0;background:linear-gradient(180deg,#e0dbd4,#8c8781 40%,#3e3c3a 70%,#b8b3ac)}
.wph__phone--landscape .wph__btn--action{bottom:-.012em;left:18.5%;height:.018em;width:.062em;border-radius:0 0 0 .008em}
.wph__phone--landscape .wph__btn--vu{bottom:-.012em;left:28%;height:.018em;width:.08em;border-radius:0 0 0 0}
.wph__phone--landscape .wph__btn--vd{bottom:-.012em;left:calc(28% + .09em);height:.018em;width:.08em;border-radius:0 0 .008em 0}
.wph__phone--landscape .wph__btn--pwr{top:-.012em;left:26%;height:.018em;width:.12em;border-radius:.008em .008em 0 0;background:linear-gradient(90deg,#e0dbd4,#8c8781 40%,#3e3c3a 70%,#b8b3ac)}

.wph__play{position:absolute;left:50%;top:50%;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;background:rgba(4,6,6,.58);border:1.5px solid var(--green);display:grid;place-items:center;color:#fff;z-index:4;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.wph__play svg{display:block;margin-left:3px}
.wph__cap{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0 8px;color:#e8eeea;font-size:15px;font-weight:700;line-height:1.35;text-align:center}
.wph__cap span{font-size:12.5px;font-weight:500;letter-spacing:.04em;color:#b7bfbb;white-space:nowrap}
.wph__card:focus-visible{outline:none}
.wph__card:focus-visible .wph__frame{outline:3px solid var(--green);outline-offset:6px}
@media (hover:hover){
  .wph__card:hover .wph__play{background:rgba(4,6,6,.78);border-color:#c6e68a}
}
@media (min-width:900px){
  .wph__in{grid-template-columns:minmax(240px,0.86fr) minmax(0,1.2fr);align-items:center;gap:clamp(16px,3vw,48px)}
  .wph__phones{flex-wrap:nowrap;justify-content:center;align-items:flex-end;gap:24px 32px}
  .wph__phone--portrait{width:clamp(176px,16.8vw,228px);font-size:clamp(176px,16.8vw,228px)}
  .wph__phone--landscape{width:clamp(280px,32vw,430px);font-size:calc(clamp(280px,32vw,430px) * 71.5 / 149.6)}
  .wph__play{width:64px;height:64px;margin:-32px 0 0 -32px}
}
@media (max-width:899px){
  .wph__phones{flex-direction:column;flex-wrap:nowrap;align-items:center;gap:clamp(28px,6vw,40px)}
  .wph__copy{max-width:none}
  .wph__lede{max-width:54ch}
  .wph__halo{width:min(400px,90vw);top:42%}
  .wph__card{width:100%;max-width:400px;padding-inline:6px;box-sizing:border-box;container-type:inline-size}
}
@media (prefers-reduced-motion:reduce){
  .wph__loop,.wph__play{transition:none!important}
}

/* fm-video-speed 2026-11-22:start */
/* Selected work eyebrow on /work: --muted (#686864) is 3.58:1 on #070808; --muted-dark passes AA. */
.reel .reel__head .eyebrow{color:var(--muted-dark,#8f948f)}
/* Same caption fix as the homepage: an explicit #070808 behind the captions (the reel is already #070808). */
.reel__frame figcaption{background-color:#070808}
/* fm-video-speed 2026-11-22:end */
