/* Shared styles for /work case studies and /videos. One file, two themes. */
:root{
  --page:#EDECE8;--card:#F6F5F2;--line:rgba(0,0,0,.07);--text:#1A1A1A;--body:#3A3A38;--soft:#8A8A85;--pill:#E6E5E0;
  --shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.04);--lift:0 24px 48px -16px rgba(30,20,50,.22);
  --dot:#3DBA5C;
}
[data-theme=dark]{
  --page:#0E0E0F;--card:#18181A;--line:rgba(255,255,255,.08);--text:#EDEDEC;--body:#B9B9B6;--soft:#7E7E82;--pill:#232326;
  --shadow:0 1px 2px rgba(0,0,0,.4);--lift:0 24px 48px -16px rgba(0,0,0,.7);
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--page);color:var(--text);font:400 17px/1.6 Inter,system-ui,sans-serif;letter-spacing:-.015em;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img,video{display:block;max-width:100%;height:auto}
[hidden]{display:none!important}
.wrap{max-width:1200px;margin:0 auto;padding:24px 20px 64px}

/* Bar */
.bar{display:flex;justify-content:space-between;align-items:center}
.round{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--text);color:var(--page);border:0;cursor:pointer}
.round svg{width:20px;height:20px}
.theme{background:var(--card);color:var(--text);border:1px solid var(--line);box-shadow:var(--shadow)}
.theme .moon,[data-theme=dark] .theme .sun{display:none}
[data-theme=dark] .theme .moon{display:block}

/* Case study header */
.head{max-width:860px;margin:56px auto 40px;padding:0 4%}
.head .tag{margin-bottom:20px}
h1{font-size:clamp(32px,4.4vw,52px);font-weight:600;line-height:1.1;letter-spacing:-.04em}
.lede{font-size:clamp(18px,1.7vw,21px);color:var(--soft);margin-top:16px;max-width:680px}
.meta{display:grid;grid-template-columns:repeat(2,1fr);gap:16px 24px;margin-top:32px;font-size:15px}
@media(min-width:640px){.meta{grid-template-columns:repeat(4,auto);justify-content:start;gap:24px 48px}}
.meta dt{color:var(--soft);font-size:13px}
.meta dd{font-weight:500}

/* Tag pill */
.tag{display:inline-flex;align-items:center;gap:7px;padding:5px 12px;border-radius:999px;background:var(--pill);font-size:13px;color:var(--soft)}

/* Figures: images float on a card */
.shot{background:var(--card);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:clamp(20px,4vw,56px);display:grid;place-items:center;gap:20px;overflow:hidden}
.shot img{max-height:720px;width:auto}
.shot .ss{border-radius:14px;box-shadow:var(--lift)}
.shot .ph{border-radius:clamp(18px,3vw,36px);box-shadow:var(--lift);max-height:640px}
.shot.row{grid-auto-flow:column;justify-content:center;align-items:start;gap:clamp(16px,3vw,40px)}
.shot.row img{max-height:600px}
figcaption{font-size:14px;color:var(--soft);text-align:center;margin-top:14px}
.hero{margin-bottom:24px}
.only-dark,[data-theme=dark] .only-light{display:none}
[data-theme=dark] .only-dark{display:block}

/* Story sections */
.sec{max-width:860px;margin:0 auto;padding:72px 4% 0}
.sec+figure,.sec+.shot{margin-top:40px}
h2{font-size:clamp(24px,2.6vw,32px);font-weight:600;line-height:1.2;letter-spacing:-.035em;margin-bottom:16px}
.sec p{color:var(--body)}
.sec p+p{margin-top:14px}
strong{font-weight:600;color:var(--text)}
.sec ul,.sec ol{margin-top:16px;padding-left:0;list-style:none;color:var(--body)}
.sec li{position:relative;padding-left:22px;margin-top:10px}
.sec ul li::before{content:"";position:absolute;left:2px;top:.75em;width:6px;height:6px;border-radius:50%;background:var(--soft)}
.sec ol{counter-reset:s}
.sec ol li{counter-increment:s;padding-left:30px}
.sec ol li::before{content:counter(s);position:absolute;left:0;top:0;color:var(--soft);font-weight:600}
.sec ul+p,.sec ol+p,.sec table+p{margin-top:18px}
figure.wide{max-width:1200px;margin:40px auto 0}

/* Numbers */
.nums{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-top:32px}
@media(min-width:640px){.nums{grid-template-columns:repeat(4,1fr)}}
.nums b{display:block;font-size:clamp(28px,3vw,40px);font-weight:600;letter-spacing:-.04em;line-height:1.1}
.nums span{font-size:14px;color:var(--soft)}

/* Quotes and tables */
blockquote{border-left:2px solid var(--line);padding:2px 0 2px 18px;margin-top:16px;color:var(--text)}
blockquote cite{display:block;font-style:normal;font-size:14px;color:var(--soft);margin-top:6px}
.quotes{display:grid;gap:8px 32px}
@media(min-width:760px){.quotes{grid-template-columns:1fr 1fr}}
table{width:100%;border-collapse:collapse;margin-top:20px;font-size:15px}
td,th{text-align:left;padding:12px 10px 12px 0;border-top:1px solid var(--line);vertical-align:top;color:var(--body)}
th{font-weight:500;color:var(--soft);font-size:13px}
td b{font-weight:600;color:var(--text)}

/* Pills */
.pills{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.pills a{display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 20px;border-radius:999px;background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);font-size:15px;color:var(--soft);transition:color .2s}
.pills a:hover{color:var(--text)}
.pills a.go{background:var(--text);color:var(--page);border-color:var(--text)}
.dot{width:10px;height:10px;border-radius:50%;background:var(--dot);box-shadow:0 0 0 4px rgba(61,186,92,.18)}

/* Next project */
.next{display:grid;gap:20px;max-width:1200px;margin:96px auto 0}
@media(min-width:900px){.next{grid-template-columns:5fr 7fr}}
.tile{position:relative;background:var(--card);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:20px;display:flex;flex-direction:column;overflow:hidden;min-height:240px}
a.tile{transition:transform .3s cubic-bezier(.2,.8,.2,1)}
a.tile:hover{transform:translateY(-3px)}
.tile .tag{align-self:flex-start}
a.tile .tag::after{content:"→";opacity:0;transform:translateX(-4px);transition:.25s}
a.tile:hover .tag::after{opacity:1;transform:none}
.tile .art{flex:1;display:grid;place-items:center;padding-top:12px}
.tile .art img{max-height:340px;width:auto}
.tile.say{justify-content:flex-end}
.tile.say h2{margin:0}
footer{margin-top:48px;text-align:center;color:var(--soft);font-size:13px}

::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
