/* Case studies in the home page's "Studio" look.
   Loaded after style.css: re-themes its tokens to the studio palette and Archivo,
   keeps drawn artifacts (wireframes, diagrams, rebuilt UI) as light paper cards. */
:root{
  --paper:#141015;          /* the studio wall */
  --sheet:#1E171F;
  --ink:#F1EAEE;            /* bone */
  --graphite:#ADA0A9;       /* mist */
  --rule:rgba(241,234,238,.14);
  --wash:#261D27;
  --redline:#E59AC6;        /* the floor light */
  --redline-soft:rgba(229,154,198,.14);
  --warn:#F2957A;
  --ok:#7CE3A1;
  --display:Archivo,system-ui,sans-serif;
  --text:Archivo,system-ui,sans-serif;
  --measure:38rem;
}
html{background:var(--paper)}
body{background:var(--paper);color:var(--ink);font-size:18px;line-height:1.6;font-variation-settings:"wdth" 100}
a:hover{color:var(--redline)}
:focus-visible{outline-color:var(--redline)}

h1,h2,h3,h4{font-weight:800;font-variation-settings:"wdth" 116;letter-spacing:-.02em}
h1{font-weight:850;font-variation-settings:"wdth" 125;letter-spacing:-.035em;line-height:.92}
h2{font-variation-settings:"wdth" 122;font-size:clamp(2rem,4.6vw,3.5rem);line-height:.98;letter-spacing:-.03em}
h3{font-weight:700;font-variation-settings:"wdth" 110;letter-spacing:-.01em}
.lede{color:var(--ink)}
p{color:#E2D8DE}

/* nav: same as home, left-aligned, no name */
.site-head{padding:24px 0}
.site-head .wrap{justify-content:flex-start}
.site-head .brand{display:none}
.site-nav{gap:20px;font-size:15px}
.site-nav a{color:var(--graphite)}
.site-nav a:hover{color:var(--ink)}

/* hero */
.case-hero{padding:28px 0 56px}
.case-hero h1{font-size:clamp(2.8rem,8.4vw,7.2rem);max-width:13ch}
.case-hero .lede{margin-top:28px;font-size:clamp(1.15rem,1.9vw,1.4rem);max-width:38rem}
.case-nav{gap:8px;font-size:14px;margin-bottom:28px}
.case-nav a{border-color:var(--rule);color:var(--graphite);padding:5px 12px}
.case-nav a:hover{border-color:var(--ink);color:var(--ink)}
.case-nav a[aria-current]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.tldr{background:var(--sheet);border-color:var(--rule);margin-top:40px}
.tldr > div{border-color:var(--rule)!important}
.tldr dt{color:var(--redline);font-size:14px;font-weight:600}
.tldr dd{color:#E2D8DE}
.tldr dd b{color:var(--ink)}
.stage img,.stage .live-frame{border-radius:10px}
.stage img{box-shadow:0 40px 80px -40px rgba(0,0,0,.9)}

/* chapters */
.chapter{padding:72px 0;border-top:1px solid var(--rule)}
@media (min-width:960px){.chapter{padding:110px 0}}
.chapter h2{max-width:18ch;margin-bottom:16px}
.pullquote{font-weight:700;font-variation-settings:"wdth" 112;color:var(--ink)}

/* Charlie's margin notes */
.note{background:var(--sheet);border-color:var(--rule);color:#E2D8DE;box-shadow:none}
.note::before{background:var(--redline);color:var(--paper);font-weight:700}
.note b{color:var(--ink)}
.pin{border-color:var(--redline);color:var(--redline);background:var(--paper)}
.pin.solid{background:var(--redline);color:var(--paper)}

/* decisions */
.decision{background:var(--sheet);border-color:var(--rule)}
.fork div{background:var(--paper);border-color:var(--rule)}
.fork .yes{background:var(--redline-soft);border-color:var(--redline);color:var(--ink)}
.decision .cost b{color:var(--ink)}
.stat .n{font-weight:850;font-variation-settings:"wdth" 125}

/* figures */
.shot figcaption,.board-cap{color:var(--graphite);font-size:15px}
.shot.art figcaption b{color:var(--ink)}
.shot.art img{border-color:transparent}
.live-frame{background:var(--paper)}

/* drawn artifacts stay paper-white, with their original ink tokens */
.board,.macys,.award,.desk,.nodes{
  --paper:#FFFFFF;--sheet:#FFFFFF;--ink:#000000;--graphite:#5C5C5C;--rule:#E3E3E3;--wash:#F3F3F1;
  --redline:#2A43DE;--redline-soft:#DCE1FB;color:#000;
}
.board p,.macys p,.award p{color:inherit}
.board{border:0}
.macys,.award{border:0;box-shadow:0 30px 60px -30px rgba(0,0,0,.8)}

/* next case */
.next{padding:80px var(--gutter) 40px;border-top:1px solid var(--rule)}
.next .ui{color:var(--graphite);font-size:15px}
.next h2{font-size:clamp(2.2rem,6vw,4.6rem);max-width:none}

/* footer: same as home */
.contact{margin-top:72px!important;padding:80px 0 56px;background:linear-gradient(180deg,var(--paper),#4A2C40 70%,#6E3F5E);color:var(--ink)}
.contact .big,.contact h2{margin:0;font-weight:850;font-variation-settings:"wdth" 125;font-size:clamp(44px,9vw,150px);line-height:.88;letter-spacing:-.035em;max-width:none}
.contact .links{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px;font-size:16px}
.contact .links a{display:inline-block;padding:12px 18px;border-radius:999px;border:1px solid rgba(241,234,238,.4);text-decoration:none;color:var(--ink)}
.contact .links a:first-child{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.contact .links a:hover{border-color:var(--ink)}
.contact .fine{margin-top:56px;font-size:14px;color:var(--graphite)}
@media (min-width:960px){.contact{padding:140px 0 70px}}
/* same edges as the home page: full width, 16px gutters, 48px from 960px */
.wrap{max-width:none;padding:0 16px}
:root{--gutter:16px}
@media (min-width:960px){.wrap{padding:0 48px}:root{--gutter:48px}}
.site-head{padding:20px 0}
@media (min-width:960px){.site-head{padding:28px 0 20px}}
/* notes that sit inside a paper board keep dark text */
.board .note,.desk .note{color:#1A1A1A;background:#fff;border-color:#E3E3E3}
.board .note b,.desk .note b{color:#000}
/* text + margin note sit together; pictures and decision cards still run full width */
@media (min-width:1000px){.chapter > .wrap{grid-template-columns:minmax(0,40rem) 18rem minmax(0,1fr);column-gap:72px}}
@media (min-width:1000px){.chapter > .wrap > h2{grid-column:1 / -1}}
/* Re'em: the Tree of Life collection layout, floating on the page */
.stage.tree{display:grid;place-items:center}
.stage.tree img{width:min(100%,640px);height:auto;border-radius:0;box-shadow:none}

/* opening: title, then the work, then the story (no wall of text up front) */
.case-hero{padding:24px 0 40px}
.case-hero h1{font-size:clamp(2.6rem,6.4vw,6rem);max-width:16ch}
.stage-wrap{padding:0 0 8px}
.case-intro{padding:56px 0 72px}
.case-intro .wrap{display:grid;gap:40px}
.case-intro .lede{margin:0;font-size:clamp(1.2rem,1.9vw,1.5rem);line-height:1.45;max-width:36rem;color:var(--ink)}
.case-intro .tldr{margin:0;background:none;border:0;border-radius:0;display:grid;grid-template-columns:1fr 1fr;gap:28px 32px}
.case-intro .tldr > div{padding:14px 0 0;border:0!important;border-top:1px solid var(--rule)!important}
.case-intro .tldr dt{font-size:14px;margin-bottom:6px}
.case-intro .tldr dd{font-size:16px;line-height:1.5}
@media (max-width:520px){.case-intro .tldr{grid-template-columns:1fr;gap:20px}}
@media (min-width:1000px){.case-intro .wrap{grid-template-columns:minmax(0,36rem) minmax(0,1fr);column-gap:96px;align-items:start}}

/* Ohm playable prototype: no backdrop, no phone bezel */
#ohm-proto.op{background:none!important;padding-left:0;padding-right:0;border-radius:0;overflow:visible}
#ohm-proto .op-phone{background:none!important;padding:0!important;box-shadow:none!important}
#ohm-proto .op-island{display:none}
#ohm-proto .op-scr{border-radius:30px;box-shadow:0 50px 90px -30px rgba(0,0,0,.95)}

/* "The calls I made": each call is a question on the left, the choice on the right */
.decisions{gap:0!important;margin-top:8px}
.decision{background:none!important;border:0!important;border-top:1px solid var(--rule)!important;border-radius:0!important;padding:40px 0 44px!important;gap:14px!important}
.decision:last-child{border-bottom:1px solid var(--rule)!important}
.decision h3{font-size:clamp(1.7rem,3.2vw,2.6rem);font-weight:800;font-variation-settings:"wdth" 118;line-height:1.02;letter-spacing:-.025em;max-width:16ch;margin-bottom:8px}
.fork{grid-template-columns:1fr!important;gap:8px!important;font-size:1.15rem!important}
.fork div{background:none!important;border:0!important;border-radius:0!important;padding:0 0 0 22px!important;position:relative;line-height:1.4}
.fork div::before{content:"";position:absolute;left:0;top:.42em;width:10px;height:10px;border-radius:50%}
.fork .no{color:var(--graphite)!important;text-decoration:line-through;text-decoration-color:rgba(173,160,169,.55);text-decoration-thickness:1px}
.fork .no::before{border:1.5px solid var(--graphite)}
.fork .yes{color:var(--ink)!important;font-weight:650}
.fork .yes::before{background:var(--redline)}
.fork span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.decision > p{font-size:1.02rem;color:#E2D8DE;max-width:34rem;margin:6px 0 0}
.decision .cost{font-size:.95rem;color:var(--graphite)}
.decision .cost b{color:var(--redline);font-weight:600}
@media (min-width:1000px){
  .decision{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);column-gap:80px;align-items:start}
  .decision > h3{grid-column:1;grid-row:1 / span 4}
  .decision > *:not(h3){grid-column:2}
}

/* figure sizes: size an image by how much is in it, not by the column (desktop only; phones stay full width) */
@media (min-width:1000px){
  .shot.art.w-s{max-width:820px;margin-inline:auto;width:100%}
  .shot.art.w-m{max-width:1040px;margin-inline:auto;width:100%}
  .shot.art.w-l{max-width:1180px;margin-inline:auto;width:100%}
}
