/* portfolio-v3: shared styles for every page.
   Type: Libre Franklin (headings, navigation, labels) and Source Serif 4 (reading text).
   Color: dark top bar, light paper, one green for links and the current tab. */

:root{
  --ink:#15181c;
  --ink-2:#2b3036;
  --paper:#f5f5f1;
  --surface:#ffffff;
  --rule:#d9dbd3;
  --rule-soft:#e7e8e2;
  --muted:#5a615d;
  --green:#1d6b52;
  --green-soft:#e3efe9;
  --green-on-dark:#8fd3b6;
  --on-dark:#f2f3ee;
  --on-dark-muted:#a9b0ab;
  --head:"Libre Franklin","Helvetica Neue",Arial,sans-serif;
  --body:"Source Serif 4",Georgia,"Times New Roman",serif;
  --wrap:1180px;
  --gut:clamp(18px,4vw,40px);
  --bar-h:60px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--bar-h) + 20px)}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:18px;line-height:1.6;-webkit-font-smoothing:antialiased}
img,video,iframe{display:block;max-width:100%}
h1,h2,h3,h4,p,ul,ol,figure,dl,dd{margin:0}
ul,ol{padding:0;list-style:none}
a{color:var(--green);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:inherit}
:focus-visible{outline:3px solid var(--green);outline-offset:3px;border-radius:2px}
.bar :focus-visible,.viewer :focus-visible{outline-color:var(--green-on-dark)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}

.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 var(--gut)}
.skip{position:absolute;left:-9999px}
.skip:focus{left:12px;top:12px;z-index:100;background:var(--surface);padding:8px 12px}

/* ---------- top bar ---------- */
.bar{position:sticky;top:0;z-index:50;background:var(--ink);color:var(--on-dark)}
.bar-in{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:var(--bar-h)}
.bar-name{font-family:var(--head);font-weight:700;font-size:17px;letter-spacing:-.01em;color:var(--on-dark);text-decoration:none;white-space:nowrap}
.tabs{display:flex;gap:4px}
.tabs a{display:block;font-family:var(--head);font-weight:500;font-size:15px;color:var(--on-dark-muted);text-decoration:none;padding:19px 14px 16px;border-bottom:3px solid transparent;white-space:nowrap}
.tabs a:hover{color:var(--on-dark)}
.tabs a[aria-current="page"]{color:var(--on-dark);border-bottom-color:var(--green-on-dark)}
@media (max-width:640px){
  :root{--bar-h:92px}
  .bar-in{flex-direction:column;align-items:stretch;gap:0;padding-top:12px}
  .tabs{margin:4px -10px 0;gap:0;justify-content:space-between}
  .tabs a{font-size:14.5px;padding:10px 10px 9px}
}

/* ---------- page head ---------- */
.page-head{padding:clamp(36px,6vw,72px) 0 clamp(24px,3.5vw,40px);border-bottom:1px solid var(--rule)}
.page-head h1{font-family:var(--head);font-weight:700;font-size:clamp(34px,5vw,54px);line-height:1.06;letter-spacing:-.025em;max-width:18ch}
.page-head .lede{margin-top:18px;font-size:clamp(18px,1.6vw,21px);line-height:1.55;max-width:62ch;color:var(--ink-2)}
.meta{font-family:var(--head);font-size:14px;font-weight:500;color:var(--muted)}

/* ---------- home ---------- */
.hero{display:grid;grid-template-columns:1fr;gap:32px;padding:clamp(36px,6vw,80px) 0 clamp(36px,5vw,64px)}
.hero h1{font-family:var(--head);font-weight:800;font-size:clamp(44px,7.4vw,92px);line-height:.98;letter-spacing:-.035em}
.hero .lede{margin-top:22px;font-size:clamp(19px,1.7vw,22px);line-height:1.5;max-width:34em;color:var(--ink-2)}
.contact{margin-top:22px;display:flex;flex-wrap:wrap;gap:6px 22px;font-family:var(--head);font-size:15.5px;font-weight:500}
.hero-film{align-self:end}
.hero-film video{width:100%;aspect-ratio:16/9;background:#e9e9e4;border:1px solid var(--rule);border-radius:6px}
.hero-film figcaption{margin-top:10px;font-family:var(--head);font-size:14px;line-height:1.45;color:var(--muted);max-width:48ch}
@media (min-width:940px){
  .hero{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:56px;align-items:end}
}

.dir{border-top:2px solid var(--ink)}
.dir li{border-bottom:1px solid var(--rule)}
.dir a{display:grid;grid-template-columns:1fr;gap:4px;padding:22px 0;color:inherit;text-decoration:none}
.dir b{font-family:var(--head);font-weight:700;font-size:clamp(22px,2.4vw,28px);letter-spacing:-.015em;line-height:1.2}
.dir span{color:var(--ink-2);max-width:62ch}
.dir i{font-style:normal;font-family:var(--head);font-size:14px;font-weight:500;color:var(--muted)}
.dir a:hover b{color:var(--green)}
@media (min-width:820px){
  .dir a{grid-template-columns:minmax(0,15rem) minmax(0,1fr) auto;gap:32px;align-items:baseline}
}
.home-recent{padding:clamp(36px,5vw,64px) 0}
.h-sm{font-family:var(--head);font-weight:700;font-size:15px;color:var(--muted);margin-bottom:14px}
.recent{display:grid;grid-template-columns:1fr;gap:24px}
@media (min-width:760px){.recent{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}}
.recent a{display:block;color:inherit;text-decoration:none}
.recent img{width:100%;aspect-ratio:16/9;object-fit:cover;border:1px solid var(--rule);border-radius:6px;background:var(--surface)}
.recent b{display:block;margin-top:12px;font-family:var(--head);font-weight:700;font-size:20px;line-height:1.25;letter-spacing:-.01em}
.recent a:hover b{color:var(--green)}
.recent span{display:block;margin-top:4px;font-family:var(--head);font-size:14px;font-weight:500;color:var(--muted)}

/* ---------- work ---------- */
.work{display:grid;grid-template-columns:1fr;gap:0}
.work > div{min-width:0} /* or the column grows past a phone screen to fit its widest child */
.toc{display:none}
@media (min-width:1000px){
  .work{grid-template-columns:200px minmax(0,1fr);gap:56px}
  .toc{display:block;position:sticky;top:calc(var(--bar-h) + 28px);align-self:start;padding-top:44px;font-family:var(--head);font-size:14.5px}
  .toc p{font-weight:700;color:var(--muted);margin:0 0 10px}
  .toc p + ul + p{margin-top:22px}
  .toc a{display:block;padding:6px 0 6px 12px;border-left:2px solid var(--rule);color:var(--ink-2);text-decoration:none;line-height:1.3}
  .toc a:hover{color:var(--green)}
  .toc a.on{border-left-color:var(--green);color:var(--ink);font-weight:600}
}
.sec{padding:clamp(36px,5vw,56px) 0;border-bottom:1px solid var(--rule)}
.sec:last-child{border-bottom:0}
.sec-kind{font-family:var(--head);font-weight:600;font-size:14px;color:var(--green)}
.sec h2{margin-top:6px;font-family:var(--head);font-weight:700;font-size:clamp(27px,3.3vw,38px);line-height:1.12;letter-spacing:-.02em;max-width:22ch}
.standfirst{margin-top:16px;font-size:clamp(18px,1.5vw,20px);line-height:1.58;max-width:66ch;color:var(--ink-2)}
.sec h3{font-family:var(--head);font-weight:700;font-size:17px;line-height:1.3;letter-spacing:-.005em}
.sub{margin-top:36px}
.sub > h3{padding-bottom:10px;border-bottom:1px solid var(--rule);margin-bottom:18px}
.cols{display:grid;grid-template-columns:1fr;gap:24px;margin-top:30px}
@media (min-width:720px){.cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 40px}.cols.c3{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 32px}}
.blk p{margin-top:8px;font-size:16.5px;line-height:1.58;color:var(--ink-2)}
.blk .film{margin-top:16px}

.facts{display:grid;grid-template-columns:1fr;margin-top:30px;border-top:2px solid var(--ink)}
.facts div{padding:16px 0;border-bottom:1px solid var(--rule)}
.facts dt{font-family:var(--head);font-weight:800;font-size:clamp(32px,4vw,44px);letter-spacing:-.03em;line-height:1}
.facts dd{margin-top:8px;font-family:var(--head);font-size:14.5px;line-height:1.4;color:var(--ink-2);max-width:30ch}
@media (min-width:720px){
  .facts{grid-template-columns:repeat(var(--n,3),minmax(0,1fr))}
  .facts div{padding:18px 20px 18px 0;border-bottom:1px solid var(--rule)}
  .facts div + div{padding-left:20px;border-left:1px solid var(--rule)}
}
.facts-note{margin-top:10px;font-family:var(--head);font-size:13.5px;color:var(--muted)}

.plain{margin-top:8px}
.plain li{position:relative;padding:5px 0 5px 18px;font-size:16.5px;line-height:1.5;color:var(--ink-2)}
.plain li::before{content:"";position:absolute;left:2px;top:.95em;width:6px;height:6px;border-radius:50%;background:var(--green)}

/* film and picture buttons */
.film{display:flex;flex-direction:column;width:100%;align-self:start}
.film-pic{position:relative;display:block;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:var(--ink);border:1px solid var(--rule)}
.film-pic img{width:100%;height:100%;object-fit:cover}
.film-pic::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;background:rgba(21,24,28,.86) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center/22px no-repeat}
.film:hover .film-pic::after{background-color:var(--green)}
.film-pic::after{transition:opacity .25s ease}
.film-pic video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .3s ease;pointer-events:none}
.film.previewed .film-pic video{opacity:1}
.film-dur{z-index:2}
.film.previewing .film-pic::after{opacity:0}
.film.previewing:hover .film-pic::after,.film.previewing:focus-visible .film-pic::after{opacity:1}
.film-dur{position:absolute;right:10px;bottom:10px;font-family:var(--head);font-size:12.5px;font-weight:600;color:#fff;background:rgba(21,24,28,.86);padding:2px 7px;border-radius:4px}
.film-t{display:block;margin-top:10px;font-family:var(--head);font-weight:600;font-size:15.5px;line-height:1.3}
.film-d{display:block;margin-top:3px;font-family:var(--head);font-size:14px;line-height:1.4;color:var(--muted)}
.films{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px;align-items:start}
@media (min-width:900px){.films{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}}
@media (min-width:900px){.films.five{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px 16px}}
@media (min-width:900px){.films.five .film-pic::after{width:36px;height:36px;background-size:15px}.films.five .film-dur{right:6px;bottom:6px;font-size:11.5px;padding:1px 6px}.films.five .film-t{font-size:15px}.films.five .film-d{font-size:13.5px}}
.more{margin-top:18px;font-family:var(--head);font-size:15px;font-weight:500}

.shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (min-width:760px){.shots{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
.shot img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top left;border:1px solid var(--rule);border-radius:6px;background:var(--surface)}
.shot span{display:block;margin-top:8px;font-family:var(--head);font-size:14px;font-weight:500;color:var(--ink-2)}
.shot:hover img{border-color:var(--green)}
/* slides are 16:9 and must show whole, not cropped */
.shots.slides .shot img{aspect-ratio:16/9;object-fit:contain}

/* ---------- screens of an application: one large view, a tab for each screen ---------- */
.tour-tabs{display:flex;gap:4px 22px;flex-wrap:wrap;border-bottom:1px solid var(--rule)}
.tour-tab{font-family:var(--head);font-size:15px;font-weight:500;color:var(--muted);padding:10px 0 11px;margin-bottom:-1px;border-bottom:2px solid transparent}
.tour-tab:hover{color:var(--ink)}
.tour-tab[aria-selected="true"]{color:var(--ink);font-weight:600;border-bottom-color:var(--green)}
.tour-cap{margin:14px 0 14px;font-family:var(--head);font-size:15px;line-height:1.45;color:var(--ink-2);min-height:1.45em}
.tour-stage{position:relative;aspect-ratio:1080/675;border:1px solid var(--rule);border-radius:8px;overflow:hidden;background:#f7f6f2;box-shadow:0 1px 2px rgba(21,24,28,.05),0 18px 40px -22px rgba(21,24,28,.28)}
.tour-shot{position:absolute;inset:0;display:block;width:100%;text-align:left;cursor:zoom-in}
.tour-shot[hidden]{display:none}
.tour-shot img{display:block;width:100%;height:auto}
.tour-note{margin-top:10px;font-family:var(--head);font-size:13.5px;color:var(--muted)}
.tour-open{position:absolute;right:14px;bottom:12px;z-index:2;font-family:var(--head);font-size:13px;font-weight:600;color:var(--ink);background:var(--surface);border:1px solid var(--rule);border-radius:6px;padding:6px 10px;pointer-events:none}
.tour-open{opacity:0;transition:opacity .15s ease}
.tour-stage:hover .tour-open,.tour-stage:focus-within .tour-open{opacity:1}
@media (max-width:640px){
  .tour-tabs{flex-wrap:nowrap;overflow-x:auto;gap:18px;scrollbar-width:none}
  .tour-tabs::-webkit-scrollbar{display:none}
  .tour-tab{white-space:nowrap;font-size:14.5px}
  .tour-cap{min-height:2.9em}
  .tour-open{font-size:12px;right:8px;bottom:8px;padding:4px 8px}
}

/* embedded exhibits (decks) */
.exhibit{margin-top:8px}
.exhibit-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 20px;margin-bottom:12px}
.exhibit-top b{font-family:var(--head);font-weight:700;font-size:17px}
.exhibit-frame{position:relative;border:1px solid var(--rule);border-radius:6px;overflow:hidden;background:var(--surface)}
.exhibit-frame iframe{width:100%;border:0;aspect-ratio:16/9}
.exhibit-frame.tall iframe{aspect-ratio:auto;height:min(72vh,620px)}
/* a framed page scaled to fit its box, so nothing scrolls inside (js: fitFrame) */
.exhibit-frame.fit{height:460px;transition:height .25s ease}
.exhibit-frame.fit iframe{position:absolute;left:0;top:0;max-width:none;aspect-ratio:auto;height:auto;transform-origin:0 0}
.exhibit-note{margin-top:10px;font-family:var(--head);font-size:14px;line-height:1.45;color:var(--muted);max-width:70ch}
.open-btn{display:inline-flex;align-items:center;gap:8px;font-family:var(--head);font-weight:600;font-size:15px;color:var(--on-dark);background:var(--ink);padding:10px 16px;border-radius:6px;text-decoration:none}
.open-btn:hover{background:var(--green)}
.open-btn.ghost{background:none;color:var(--ink);border:1px solid var(--ink)}
.open-btn.ghost:hover{background:var(--ink);color:var(--on-dark)}
/* On a phone an inline deck is too small to read, so the frame becomes a button. */
.exhibit-cover{display:none}
@media (max-width:760px){
  .exhibit-frame.swap iframe{display:none}
  .exhibit-frame.swap.fit{height:auto!important}
  .exhibit-frame.swap .exhibit-cover{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:12px;width:100%;aspect-ratio:16/10;padding:16px;background:var(--ink) center/cover no-repeat;color:var(--on-dark)}
  .exhibit .open-btn{display:none}
  .exhibit-frame.swap .exhibit-cover span{font-family:var(--head);font-weight:600;font-size:15px;background:var(--surface);color:var(--ink);padding:9px 14px;border-radius:6px}
}
.flow{counter-reset:step;margin-top:16px;font-family:var(--head);border-left:2px solid var(--rule)}
.flow li{counter-increment:step;position:relative;padding:7px 0 7px 40px;font-size:14px;line-height:1.4;color:var(--muted)}
.flow li::before{content:counter(step);position:absolute;left:-13px;top:7px;width:24px;height:24px;border-radius:50%;background:var(--paper);border:2px solid var(--green);color:var(--green);font-weight:700;font-size:12.5px;display:flex;align-items:center;justify-content:center}
.flow b{display:block;font-size:15px;font-weight:600;color:var(--ink)}

/* ---------- work: the base plugin drawings and click-through (.bp) ---------- */

.bp{
  --sand:#d9b45f;
  --warm-soft:#f1ece0;
  --slate:#51677d;
  --clay:#a8683f;
}
.bp h4{font-family:var(--head);font-weight:700;font-size:18px;line-height:1.25;letter-spacing:-.01em}
.bp p.bp-lab{font-family:var(--head);font-weight:600;font-size:13.5px;line-height:1.3;color:var(--green)}
.bp-lead{margin-top:14px;font-size:17px;line-height:1.58;max-width:66ch;color:var(--ink-2)}
.bp-card{background:var(--surface);border:1px solid var(--rule);border-radius:8px;padding:18px 20px}
.bp-card p,.bp-steps p,.bp-fill p{font-size:15.5px;line-height:1.5;color:var(--ink-2)}
.bp-card h4 + p,.bp-steps h4 + p{margin-top:6px}
.bp-cap{margin-top:12px;font-family:var(--head);font-size:14px;line-height:1.45;color:var(--muted);max-width:70ch}
.bp-svg{position:absolute;width:0;height:0;overflow:hidden}

/* small parts the drawings share */
.bp-art{font-family:var(--head);border-radius:6px;padding:14px;background:var(--green-soft)}
.bp-art.warm{background:var(--warm-soft)}
.bp-art.plain{background:var(--paper)}
.bp-chip{display:inline-block;font-size:12px;font-weight:600;line-height:1.3;padding:3px 9px;border-radius:99px;background:var(--surface);border:1px solid var(--rule);color:var(--ink-2);white-space:nowrap}
.bp-tag{flex:none;font-size:11px;font-weight:700;line-height:1.3;padding:2px 8px;border-radius:99px;background:var(--green-soft);color:var(--green);white-space:nowrap}
.bp-tag.off{background:var(--rule-soft);color:var(--muted)}
.bp-av{flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--green);color:#fff}
.bp-av.b{background:var(--slate)}
.bp-av.c{background:var(--clay)}
.bp-av svg{width:20px;height:20px}
.bp-av.sm{width:26px;height:26px}
.bp-av.sm svg{width:16px;height:16px}
.bp-fold{flex:none;position:relative;display:inline-block;width:20px;height:14px;margin-top:3px;background:var(--sand);border-radius:1px 3px 3px 3px}
.bp-fold::before{content:"";position:absolute;left:0;top:-3px;width:9px;height:4px;background:var(--sand);border-radius:2px 2px 0 0}
.bp-say{align-self:flex-end;max-width:100%;font-size:13px;font-weight:500;line-height:1.3;padding:6px 11px;border-radius:12px 12px 3px 12px;background:var(--surface);border:1px solid var(--rule);color:var(--ink)}
.bp-say.them{align-self:flex-start;border-radius:12px 12px 12px 3px;font-weight:600}
.bp-say code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px}
.bp-stack{display:flex;flex-direction:column;gap:8px}
.bp-chips{display:flex;flex-wrap:wrap;gap:6px}
.bp-doc{background:var(--surface);border:1px solid var(--rule);border-radius:5px;padding:9px 11px;font-size:12.5px;font-weight:600;line-height:1.3;color:var(--ink)}
.bp-doc i{display:block;height:5px;margin-top:6px;border-radius:3px;background:var(--rule)}
.bp-rows{background:var(--surface);border:1px solid var(--rule);border-radius:6px;font-size:13.5px;font-weight:500;color:var(--ink)}
.bp-rows > div{display:flex;align-items:center;gap:9px;padding:8px 11px;line-height:1.3}
.bp-rows > div + div{border-top:1px solid var(--rule-soft)}
.bp-rows .bp-tag{margin-left:auto}
.bp-rows .dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--green)}
.bp-rows .head{font-weight:700;font-size:14px}
.bp-rows .dim{color:var(--muted)}
.bp-rows .bp-fold{margin-top:2px}

/* 0. skill, plugin, base plugin */
.bp-three{display:grid;grid-template-columns:1fr;gap:12px;margin-top:26px}
.bp-three .bp-card{padding:16px 18px}
.bp-three h4{margin-top:2px;font-size:20px}
.bp-three .bp-card.last{border-color:var(--green);box-shadow:inset 0 3px 0 var(--green)}
@media (min-width:720px){.bp-three{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}

/* 1. the gap */
.bp-gap-top{display:grid;grid-template-columns:1fr;gap:12px;margin-top:10px}
.bp-gap-c{display:flex;flex-direction:column;gap:14px}
.bp-gap-c h4{margin-top:3px}
.bp-gap-c .bp-art{margin-top:auto}
.bp-one{display:flex;align-items:center;gap:12px}
.bp-one .bp-stack{flex:1;gap:6px}
.bp-one .bp-stack i{display:block;height:14px;border-radius:8px;background:var(--surface);border:1px solid var(--rule);width:62%}
.bp-one .bp-stack i.me{align-self:flex-end;width:48%;background:var(--rule-soft)}
.bp-join{display:flex;align-items:center;gap:14px;margin:14px 0;font-family:var(--head);font-size:13.5px;font-weight:700;color:var(--green);text-align:center}
.bp-join::before,.bp-join::after{content:"";flex:1;border-top:1px dashed var(--muted);opacity:.55}
.bp-join span{padding:5px 14px;border:1px dashed var(--green);border-radius:99px;background:var(--surface)}
.bp-fill{display:grid;grid-template-columns:1fr;gap:22px;padding:24px;border-radius:8px;background:var(--ink);color:var(--on-dark)}
.bp-fill p.bp-lab{color:var(--green-on-dark)}
.bp-fill h4{margin-top:4px;font-size:24px;letter-spacing:-.015em}
.bp-fill ul{margin-top:14px;display:grid;gap:12px}
.bp-fill li{position:relative;padding-left:18px}
.bp-fill li::before{content:"";position:absolute;left:0;top:.5em;width:8px;height:8px;border-radius:50%;background:var(--green-on-dark)}
.bp-fill li b{display:block;font-family:var(--head);font-weight:700;font-size:16.5px;line-height:1.3}
.bp-fill p{color:var(--on-dark-muted);margin-top:1px}
.bp-team{display:flex;flex-direction:column;align-items:center;font-family:var(--head)}
.bp-team-av{display:flex;gap:10px}
.bp-team-wire{width:2px;height:14px;background:var(--on-dark-muted);opacity:.6}
.bp-team .bp-rows{width:100%;border-color:transparent}
@media (min-width:720px){
  .bp-gap-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .bp-fill{grid-template-columns:minmax(0,1fr) minmax(0,300px);gap:32px;align-items:center;padding:28px 30px}
}

/* 2. what the team gets: the shared brain in the middle */
.bp-hub{display:grid;grid-template-columns:1fr;gap:12px}
.bp-hub-col{display:grid;gap:12px}
.bp-hub-c{padding:12px 12px 16px}
.bp-hub-c .bp-art{min-height:96px;display:flex;flex-direction:column;justify-content:center}
.bp-hub-c h4{margin-top:12px;padding:0 6px}
.bp-hub-c p{padding:0 6px}
.bp-hub-mid{position:relative;order:-1}
.bp-hub-mid svg{display:none}
.bp-core{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:16px 20px;border-radius:8px;background:var(--ink);color:var(--on-dark);font-family:var(--head)}
.bp-core small{font-size:12.5px;font-weight:600;color:var(--green-on-dark)}
.bp-core b{font-size:17px;font-weight:700;line-height:1.22;letter-spacing:-.01em}
.bp-src{display:flex;align-items:center;gap:10px}
.bp-src .bp-chips{flex-direction:column;align-items:flex-end;flex:none}
.bp-src .arrow{flex:none;color:var(--muted);font-size:15px}
.bp-src .bp-doc{flex:1;min-width:0}
.bp-lane{display:flex;align-items:center;gap:9px}
.bp-lane > div{flex:1;min-width:0;display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:5px;background:var(--surface);border:1px solid var(--rule);font-size:13px;font-weight:600;line-height:1.3;color:var(--ink)}
.bp-lane .bp-tag{margin-left:auto}
.bp-lane .bp-fold{margin-top:2px}
.bp-lane.off{opacity:.62}
@media (min-width:820px){
  .bp-hub{grid-template-columns:minmax(0,1fr) 176px minmax(0,1fr);gap:0;align-items:stretch}
  .bp-hub-col{gap:16px;grid-auto-rows:1fr}
  .bp-hub-mid{order:0;display:flex;align-items:center;justify-content:center}
  .bp-hub-mid svg{display:block;position:absolute;inset:0;width:100%;height:100%}
  .bp-hub-mid path{fill:none;stroke:var(--muted);stroke-width:1.5;opacity:.6;vector-effect:non-scaling-stroke}
  .bp-core{position:relative;width:148px;height:148px;padding:14px;border-radius:50%;align-items:center;text-align:center;box-shadow:0 0 0 7px var(--paper),0 0 0 8px var(--rule)}
  .bp-core b{font-size:15px}
}

/* 3. how a project starts */
.bp-steps{display:grid;grid-template-columns:1fr;gap:12px}
.bp-steps li{background:var(--surface);border:1px solid var(--rule);border-top:3px solid var(--clay);border-radius:8px;padding:12px 12px 16px}
.bp-steps li.own{border-top-color:var(--green)}
.bp-steps .bp-art{min-height:128px;display:flex;flex-direction:column;justify-content:center;padding:12px}
.bp-steps p.bp-lab{margin-top:12px;padding:0 4px;color:var(--clay)}
.bp-steps li.own p.bp-lab{color:var(--green)}
.bp-steps h4{margin-top:3px;padding:0 4px;font-size:16.5px}
.bp-steps p:not(.bp-lab){padding:0 4px;font-size:15px}
.bp-tick{display:flex;align-items:center;gap:6px;align-self:flex-end;font-size:12px;font-weight:600;line-height:1.3;padding:3px 9px 3px 5px;border-radius:99px;background:var(--surface);border:1px solid var(--rule);color:var(--ink-2)}
.bp-tick::before{content:"";flex:none;width:13px;height:13px;border-radius:50%;background:var(--clay) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat}
.bp-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.bp-grid2 .bp-doc{padding:7px 8px;font-size:11.5px}
.bp-grid2 .bp-doc i{height:4px;margin-top:5px}
.bp-time{align-self:center;margin-top:8px;font-size:12px;font-weight:600;color:var(--green)}
.bp-steps .bp-rows{font-size:12.5px}
.bp-steps .bp-rows > div{padding:6px 9px;gap:7px}
.bp-steps .bp-rows .head{font-size:13px}
.bp-steps .bp-rows .pg{flex:none;width:9px;height:11px;border-radius:2px;background:var(--green)}
.bp-note{margin-top:14px;padding:14px 18px;border-radius:8px;background:var(--ink);color:var(--on-dark-muted);font-size:15.5px;line-height:1.5}
.bp-note b{font-family:var(--head);font-weight:700;font-size:15px;color:var(--on-dark)}
@media (min-width:560px){.bp-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:900px){.bp-steps{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* 4. one folder from three apps */
.bp-apps-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.bp-app{position:relative;padding:14px 10px;text-align:center;font-family:var(--head);font-weight:700;font-size:15.5px;line-height:1.25}
.bp-app::after{content:"";position:absolute;left:50%;top:100%;width:2px;height:19px;margin-left:-1px;background:var(--muted);opacity:.55}
.bp-bar{display:flex;align-items:flex-start;gap:14px;margin-top:18px;padding:18px 22px;border-radius:8px;background:var(--ink);color:var(--on-dark);font-family:var(--head)}
.bp-bar .bp-fold{width:30px;height:21px;margin-top:5px}
.bp-bar .bp-fold::before{top:-5px;width:13px;height:6px}
.bp-bar b{display:block;font-size:19px;font-weight:700;letter-spacing:-.01em;line-height:1.3}
.bp-bar .bp-chips{margin-top:8px}
.bp-bar .bp-chip{background:rgba(242,243,238,.08);border-color:rgba(242,243,238,.3);color:var(--on-dark);font-size:13px;white-space:normal}
@media (min-width:720px){.bp-apps-row{gap:16px}.bp-app{font-size:17px;padding:16px 12px}}

/* the click-through: one panel at a time */
.bp-deck{margin-top:30px}
.bp-tabs{display:none}
.bp-nav{display:none}
.bp-slide + .bp-slide{margin-top:36px}
.bp-slide > h3{padding-bottom:10px;border-bottom:1px solid var(--rule);margin-bottom:18px}
.bp-slide .bp-three{margin-top:0}

.bp-js .bp-tabs{display:flex;gap:4px 20px;flex-wrap:wrap;border-bottom:1px solid var(--rule)}
.bp-tab{font-family:var(--head);font-size:14.5px;font-weight:500;color:var(--muted);padding:10px 0 11px;margin-bottom:-1px;border-bottom:2px solid transparent;white-space:nowrap}
.bp-tab i{font-style:normal;font-weight:600;font-size:12.5px;margin-right:6px;color:var(--green)}
.bp-tab:hover{color:var(--ink)}
.bp-tab[aria-selected="true"]{color:var(--ink);font-weight:600;border-bottom-color:var(--green)}
.bp-js .bp-stage{position:relative;margin-top:22px}
.bp-js .bp-nav{position:absolute;right:0;top:-5px;z-index:2;display:flex;align-items:center;gap:8px;font-family:var(--head)}
.bp-count{min-width:3.2em;text-align:center;font-size:13.5px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.bp-arrow{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--ink);background:var(--surface);color:var(--ink);font-family:var(--head);font-size:18px;font-weight:600;line-height:1}
.bp-arrow:hover{background:var(--ink);color:var(--on-dark)}
.bp-arrow:disabled{opacity:.3;cursor:default;background:var(--surface);color:var(--ink)}
.bp-js .bp-slide{display:none;margin-top:0}
.bp-js .bp-slide.on{display:block}
.bp-js .bp-slide > h3{min-height:44px;padding-right:150px;display:flex;align-items:flex-end}
/* wide screens: every panel takes the height of the tallest, so the page does not jump */
@media (min-width:900px){
  .bp-js .bp-stage{display:grid}
  .bp-js .bp-slide{display:block;grid-area:1/1;min-width:0;visibility:hidden;opacity:0;transition:opacity .18s ease}
  .bp-js .bp-slide.on{visibility:visible;opacity:1}
}
@media (max-width:640px){
  .bp-js .bp-tabs{flex-wrap:nowrap;overflow-x:auto;gap:18px;scrollbar-width:none}
  .bp-js .bp-tabs::-webkit-scrollbar{display:none}
  .bp-js .bp-slide{padding-top:52px}
  .bp-js .bp-slide > h3{padding-right:0;min-height:0}
  .bp-js .bp-nav{top:-2px;left:0;right:auto}
}

/* 5. bulk ingest */
.bp-bi{display:grid;grid-template-columns:1fr;gap:12px}
.bp-bi-p{display:flex;flex-direction:column}
.bp-bi-p h4{margin-top:3px}
.bp-bi-p .bp-art{margin:14px 0;flex:1;display:flex;flex-direction:column;justify-content:center;min-height:150px}
.bp-meter{display:flex;align-items:center;gap:10px;font-size:12.5px;font-weight:600;color:var(--clay)}
.bp-meter i{flex:1;height:8px;border-radius:99px;background:var(--clay)}
.bp-pages{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;margin-top:12px}
.bp-pages u{display:block;aspect-ratio:3/4;border-radius:3px;background:var(--surface);border:1px solid var(--rule);opacity:.75}
.bp-pages u.rd{background:var(--ink);border-color:var(--ink);opacity:1}
.bp-key{display:flex;justify-content:space-between;gap:10px;margin-top:9px;font-size:11.5px;font-weight:600;color:var(--muted)}
.bp-flow{display:flex;align-items:center;gap:10px}
.bp-flow .arrow{flex:none;color:var(--muted);font-size:15px}
.bp-flow-rows{flex:1;min-width:0;display:grid;gap:6px}
.bp-flow-rows > div{display:flex;align-items:center;gap:6px}
.bp-flow-rows em,.bp-flow-rows b,.bp-flow-end span{font-style:normal;font-size:12px;font-weight:600;line-height:1.3;padding:4px 9px;border-radius:5px;background:var(--surface);border:1px solid var(--rule);color:var(--ink);text-align:center}
.bp-flow-rows em{flex:none;width:52px}
.bp-flow-rows s{flex:1;min-width:8px;border-top:1px dashed var(--muted);opacity:.6}
.bp-flow-rows b{flex:none;border-radius:99px;padding-left:22px;position:relative}
.bp-flow-rows b::before{content:"";position:absolute;left:8px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:var(--green)}
.bp-flow-end{flex:none;display:flex;flex-direction:column;align-items:stretch;gap:3px;width:118px}
.bp-flow-end i{font-style:normal;text-align:center;color:var(--muted);font-size:13px;line-height:1}
.bp-flow-end .end{background:var(--ink);border-color:var(--ink);color:var(--on-dark)}
.bp-facts{display:grid;grid-template-columns:1fr;margin-top:14px;border-top:2px solid var(--ink)}
.bp-facts li{padding:12px 0;border-bottom:1px solid var(--rule)}
.bp-facts b,.bp-pts b{display:block;font-family:var(--head);font-weight:700;font-size:15.5px;line-height:1.3}
.bp-facts span,.bp-pts span{display:block;margin-top:3px;font-size:15px;line-height:1.5;color:var(--ink-2)}
@media (min-width:720px){
  .bp-bi{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .bp-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
  .bp-facts li{padding:14px 18px 4px 0;border-bottom:0}
  .bp-facts li + li{padding-left:18px;border-left:1px solid var(--rule)}
}

/* 6. substrate */
.bp-sb{display:grid;grid-template-columns:1fr;gap:18px;align-items:start}
.bp-pts{border-top:2px solid var(--ink)}
.bp-pts li{padding:14px 0;border-bottom:1px solid var(--rule)}
.bp-sb .bp-art{padding:18px}
.bp-ans{background:var(--surface);border:1px solid var(--rule);border-radius:6px;padding:14px 16px;font-size:13.5px;line-height:1.4;color:var(--ink)}
.bp-ans-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bp-ans-top b{font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1}
.bp-ans dl{margin-top:12px;border-top:1px solid var(--rule-soft)}
.bp-ans dl div{display:flex;gap:10px;padding:7px 0;border-bottom:1px solid var(--rule-soft)}
.bp-ans dt{flex:none;width:68px;font-weight:600;color:var(--muted)}
.bp-ans dd{font-weight:500}
.bp-warn{margin-top:12px;padding:9px 11px;border-radius:5px;background:var(--warm-soft);border-left:3px solid var(--clay);font-size:13px;line-height:1.45;color:var(--ink-2)}
.bp-warn b{display:block;font-weight:700;color:var(--clay)}
.bp-fine{align-self:flex-end;font-size:11.5px;font-weight:500;color:var(--muted)}
@media (min-width:820px){.bp-sb{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:28px}}

/* panel 1: the three drawings */
.bp-three .bp-card{display:flex;flex-direction:column}
.bp-t-art{flex:1;display:flex;align-items:center;justify-content:center;min-height:190px;margin:12px 0 14px;padding:16px}
.bp-rcp{width:78%;max-width:190px;padding:14px 16px;background:var(--surface);border:1px solid var(--rule);border-radius:5px;transform:rotate(-2deg);box-shadow:0 8px 18px -12px rgba(21,24,28,.35)}
.bp-rcp b{display:block;padding-bottom:8px;border-bottom:1px solid var(--rule-soft);font-size:13.5px;font-weight:700;color:var(--ink)}
.bp-rcp span{display:flex;align-items:center;gap:8px;margin-top:9px}
.bp-rcp em{flex:none;font-style:normal;width:17px;height:17px;border-radius:50%;background:var(--clay);color:#fff;font-size:10.5px;font-weight:700;line-height:17px;text-align:center}
.bp-rcp i{display:block;height:5px;border-radius:3px;background:var(--rule)}
.bp-book{width:86%;max-width:210px;padding:12px 14px 14px 18px;background:var(--surface);border:1px solid var(--rule);border-left:6px solid var(--slate);border-radius:3px 6px 6px 3px;box-shadow:0 8px 18px -12px rgba(21,24,28,.35)}
.bp-book small{display:block;font-size:11px;font-weight:700;color:var(--slate)}
.bp-book b{display:block;margin-top:2px;padding-bottom:8px;border-bottom:1px solid var(--rule-soft);font-size:13.5px;font-weight:700;line-height:1.25;color:var(--ink)}
.bp-book span{display:block;position:relative;margin-top:6px;padding:4px 8px 4px 22px;border-radius:4px;background:var(--paper);font-size:12px;font-weight:500;line-height:1.3;color:var(--ink-2)}
.bp-book span::before{content:"";position:absolute;left:8px;top:50%;width:7px;height:9px;margin-top:-4.5px;border-radius:1.5px;background:var(--clay)}
.bp-t-art .bp-team{width:100%;max-width:230px}
.bp-t-art .bp-team-wire{background:var(--muted)}
.bp-t-art .bp-rows{border-color:var(--rule)}

/* panel 7: three app windows on one folder */
.bp-app{display:flex;flex-direction:column;gap:12px;padding:12px 12px 14px}
.bp-app > b{font-weight:700}
.bp-win{flex:1;display:flex;flex-direction:column;gap:7px;min-height:118px;padding:0 10px 12px;border:1px solid var(--rule);border-radius:6px;background:var(--paper);text-align:left;overflow:hidden}
.bp-win-top{display:flex;gap:4px;margin:0 -10px 4px;padding:7px 9px;border-bottom:1px solid var(--rule);background:var(--rule-soft)}
.bp-win-top i{width:6px;height:6px;border-radius:50%;background:var(--muted);opacity:.5}
.bp-win u{display:block;height:6px;border-radius:3px;background:var(--rule)}
.bp-win .bp-say{font-size:11.5px;padding:4px 9px}
.bp-win code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;font-weight:500;line-height:1.4;color:var(--ink)}
.bp-win-split{flex:1;display:grid;grid-template-columns:30% 1fr;gap:8px}
.bp-win-split s{border-right:1px solid var(--rule);background:repeating-linear-gradient(var(--rule) 0 5px,transparent 5px 13px) 0 4px/70% 100% no-repeat}
.bp-win-split > div{display:flex;flex-direction:column;gap:7px;padding-top:2px}
.bp-bar{display:block}
.bp-bar-h{display:flex;align-items:flex-start;gap:14px}
.bp-bar small{display:block;margin-top:1px;font-size:13.5px;font-weight:500;color:var(--on-dark-muted)}
.bp-bar-docs{display:grid;grid-template-columns:1fr;gap:8px;margin-top:16px}
.bp-bar-docs > div{padding:11px 14px;border-radius:6px;background:var(--surface);color:var(--ink)}
.bp-bar-docs b{font-size:15px;line-height:1.3}
.bp-bar-docs span{display:block;margin-top:1px;font-size:13px;font-weight:500;color:var(--muted)}
@media (min-width:720px){.bp-bar-docs{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media (max-width:640px){.bp-win{min-height:0;padding-bottom:9px}.bp-win .bp-say,.bp-win code{font-size:10px}.bp-win-split{grid-template-columns:1fr}.bp-win-split s{display:none}.bp-app{font-size:13.5px;padding:8px 8px 10px;gap:8px}}

/* phone: the bulk ingest flow stacks */
.bp-bi-p{min-width:0}
@media (max-width:520px){
  .bp-flow{flex-direction:column;align-items:stretch}
  .bp-flow .arrow{align-self:center;transform:rotate(90deg)}
  .bp-flow-end{width:auto}
  .bp-key{font-size:11px}
}

/* ---------- points of view ---------- */
.pieces{padding:clamp(28px,4vw,48px) 0 clamp(48px,6vw,80px)}
.piece{display:grid;grid-template-columns:1fr;gap:20px;padding:28px 0;border-bottom:1px solid var(--rule);color:inherit;text-decoration:none}
.piece img{width:100%;aspect-ratio:16/9;object-fit:cover;border:1px solid var(--rule);border-radius:6px}
.piece h2{font-family:var(--head);font-weight:700;font-size:clamp(26px,3vw,36px);line-height:1.12;letter-spacing:-.02em;margin-top:6px}
.piece p{margin-top:12px;max-width:58ch;color:var(--ink-2)}
.piece .go{display:inline-block;margin-top:16px;font-family:var(--head);font-weight:600;font-size:15px;color:var(--green);text-decoration:underline;text-underline-offset:3px}
.piece:hover h2{color:var(--green)}
@media (min-width:860px){.piece{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:44px;align-items:center}}
.pieces-note{margin-top:28px;font-family:var(--head);font-size:14.5px;color:var(--muted)}

.article-head{padding:clamp(32px,5vw,60px) 0 28px}
.crumb{font-family:var(--head);font-size:14.5px;font-weight:500}
.article-head h1{margin-top:14px;font-family:var(--head);font-weight:800;font-size:clamp(38px,6vw,68px);line-height:1.02;letter-spacing:-.03em;max-width:16ch}
.article-head .lede{margin-top:18px;font-size:clamp(19px,1.7vw,22px);line-height:1.5;max-width:58ch;color:var(--ink-2)}
.article-head .meta{margin-top:16px}
.parts{display:grid;grid-template-columns:1fr;gap:0;margin:clamp(36px,5vw,56px) 0 clamp(48px,6vw,80px);border-top:2px solid var(--ink)}
.part{display:grid;grid-template-columns:1fr;gap:6px;padding:24px 0;border-bottom:1px solid var(--rule)}
.part h2{font-family:var(--head);font-weight:700;font-size:clamp(21px,2.2vw,26px);line-height:1.2;letter-spacing:-.015em}
.part .n{font-family:var(--head);font-weight:600;font-size:14px;color:var(--green)}
.part p{max-width:64ch;color:var(--ink-2)}
.part p + p{margin-top:10px}
@media (min-width:860px){.part{grid-template-columns:minmax(0,17rem) minmax(0,1fr);gap:40px}}

/* ---------- lookbook ---------- */
body.lb{display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden}
.lb-strip{flex:none;background:var(--surface);border-bottom:1px solid var(--rule)}
.lb-strip .wrap{display:flex;align-items:center;justify-content:space-between;gap:4px 24px;padding-top:9px;padding-bottom:9px;max-width:none}
.lb-strip p{flex:1 1 auto;min-width:0;font-family:var(--head);font-size:14.5px;line-height:1.4;color:var(--ink-2)}
.lb-strip a{font-family:var(--head);font-size:14.5px;font-weight:600;white-space:nowrap}
.lb-frame{flex:1 1 auto;min-height:0;width:100%;border:0;background:#faf9f5}
@media (max-width:1180px){.lb-strip .extra{display:none}}
@media (max-width:640px){.lb-strip p{font-size:13px;line-height:1.35}.lb-strip a{font-size:13px}.lb-strip .more-txt{display:none}}

/* ---------- about ---------- */
.about{display:grid;grid-template-columns:1fr;gap:32px;padding:clamp(32px,5vw,56px) 0 clamp(48px,6vw,80px)}
.about-side img{width:min(260px,60%);aspect-ratio:1;object-fit:cover;border-radius:6px;border:1px solid var(--rule)}
.about-side dl{margin-top:22px;font-family:var(--head);font-size:15.5px}
.about-side dt{font-weight:700;color:var(--muted);font-size:13.5px;margin-top:14px}
.about-side dd{margin-top:2px}
@media (min-width:900px){.about{grid-template-columns:260px minmax(0,1fr);gap:64px}.about-side{position:sticky;top:calc(var(--bar-h) + 28px);align-self:start}.about-side img{width:100%}}
.tl{border-top:2px solid var(--ink)}
.tl-row{display:grid;grid-template-columns:1fr;gap:6px;padding:26px 0;border-bottom:1px solid var(--rule)}
.tl-when{font-family:var(--head);font-weight:600;font-size:14.5px;color:var(--green)}
.tl-row h2{font-family:var(--head);font-weight:700;font-size:clamp(20px,2.1vw,24px);line-height:1.25;letter-spacing:-.012em}
.tl-row p{margin-top:8px;max-width:66ch;color:var(--ink-2);font-size:17px}
.tl-row .plain{max-width:68ch}
.tl-row .plain li{font-family:var(--body);font-size:16.5px}
.tl-row .plain b{font-family:var(--head);font-weight:600;font-size:15.5px;color:var(--ink)}
@media (min-width:720px){.tl-row{grid-template-columns:8.5rem minmax(0,1fr);gap:28px}}

/* ---------- footer ---------- */
.foot{border-top:1px solid var(--rule);padding:26px 0 40px;font-family:var(--head);font-size:14.5px;color:var(--muted)}
.foot .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px}
.foot a{color:var(--ink-2)}

/* ---------- viewer (films, pictures, decks) ---------- */
.viewer{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(15,17,20,.96);color:var(--on-dark)}
.viewer::backdrop{background:rgba(15,17,20,.6)}
.viewer-in{display:flex;flex-direction:column;height:100%}
.viewer-top{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 14px 10px 18px;font-family:var(--head);font-size:14.5px;line-height:1.35;color:var(--on-dark-muted)}
.viewer-close{flex:none;font-weight:600;color:var(--on-dark);padding:8px 14px;border:1px solid rgba(242,243,238,.35);border-radius:6px}
.viewer-close:hover{background:var(--on-dark);color:var(--ink)}
.viewer-body{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;padding:0 14px 14px}
.viewer-body video,.viewer-body img{max-width:100%;max-height:100%;border-radius:4px;background:#000}
.viewer-body img{background:#fff}
.viewer-body iframe{width:100%;height:100%;border:0;border-radius:4px;background:#fff}
.viewer-nav{display:none;position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:50%;background:rgba(242,243,238,.94);color:var(--ink);font-size:24px;font-weight:700;line-height:1;align-items:center;justify-content:center;box-shadow:0 4px 18px rgba(0,0,0,.35)}
.viewer-nav.prev{left:14px}
.viewer-nav.next{right:14px}
.viewer-nav:hover{background:#fff}
.viewer-nav:disabled{opacity:.25;cursor:default}
.viewer.set .viewer-nav{display:flex}
.viewer.set .viewer-body{padding-left:78px;padding-right:78px}
.viewer-in{position:relative}
@media (max-width:640px){.viewer.set .viewer-body{padding-left:8px;padding-right:8px}.viewer-nav{top:auto;bottom:16px;transform:none}}
.viewer.frame .viewer-body{padding:0}
.viewer.fitted .viewer-body{position:relative;background:#fff}
.viewer.fitted .viewer-body iframe{position:absolute;left:0;top:0;max-width:none;transform-origin:0 0}
.viewer.frame .viewer-body iframe{border-radius:0}
