/* Felipe Leme — portfolio. Young Serif + Bitter, matching the Squarespace original.
   Neutral light palette with no standalone accent: color comes from the work tiles,
   and each project page tints its headings and hovers via --head. */

:root{
  --bg:#ffffff;
  --bg-2:#f6f6f6;
  --panel:#ffffff;
  --line:rgba(26,26,26,.14);
  --line-soft:rgba(26,26,26,.08);
  --ink:#1a1a1a;
  --body:#3d3d3d;
  --muted:#666666;
  --serif:"Young Serif",Georgia,serif;
  --sans:"Bitter",Georgia,serif;
  --shadow-card:0 1px 2px rgba(26,26,26,.05),0 10px 30px -18px rgba(26,26,26,.18);
  --z-nav:10;
  --z-skip:20;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  /* no standalone accent: project pages tint via --head, the homepage stays ink */
  --accent:var(--head,var(--ink));
  background:var(--bg);color:var(--body);font-family:var(--sans);
  font-size:1.0625rem;line-height:1.65;-webkit-font-smoothing:antialiased;
}
::selection{background:var(--ink);color:#fff}
img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3{font-family:var(--serif);font-weight:400;color:var(--head,var(--ink));text-wrap:balance}
p{text-wrap:pretty}
.wrap{max-width:1140px;margin:0 auto;padding:0 clamp(24px,4vw,48px)}

a:focus-visible,button:focus-visible{
  outline:2px solid var(--accent);outline-offset:3px;border-radius:2px;
}
.skip{
  position:fixed;left:16px;top:-60px;z-index:var(--z-skip);
  background:var(--ink);color:#fff;padding:10px 18px;border-radius:6px;
  text-decoration:none;font-weight:600;transition:top .2s;
}
.skip:focus{top:12px}

/* ---------- nav — Work left, FL monogram centered, LinkedIn + mail icons right ---------- */
.nav{
  position:sticky;top:0;z-index:var(--z-nav);
  /* Opaque: the bar sits over the banner once scrolled, and any translucency
     ghosts the banner wordmark through it. */
  background:#fff;
  border-bottom:1px solid var(--line-soft);
}
.nav-in{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:76px}
.nav-work{
  justify-self:start;font-family:var(--serif);font-size:.98rem;color:var(--ink);
  text-decoration:underline;text-underline-offset:5px;
  text-decoration-color:var(--line);transition:text-decoration-color .2s,color .2s;
}
.nav-work:hover{color:var(--accent);text-decoration-color:var(--accent)}
.nav-logo{justify-self:center;display:flex;align-items:center;text-decoration:none}
.nav-logo img{height:42px}
.nav-icons{justify-self:end;display:flex;align-items:center;gap:16px}
.nav-icons a{color:var(--ink);display:flex;transition:color .2s}
.nav-icons a:hover{color:var(--accent)}
.nav-icons svg{width:19px;height:19px}

/* ---------- reveals (JS-gated: visible by default) ---------- */
html.js .rv{opacity:0;transform:translateY(22px)}
html.js .rv.in{
  opacity:1;transform:none;
  transition:opacity .7s cubic-bezier(.16,1,.3,1),transform .7s cubic-bezier(.16,1,.3,1);
  transition-delay:calc(var(--d,0)*80ms);
}
@media(prefers-reduced-motion:reduce){
  html.js .rv{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* ---------- hero — dark band; the portrait's light circle reads as a spotlight ---------- */
.hero{padding:clamp(56px,10vh,120px) 0 clamp(56px,10vh,110px);background:var(--ink)}
.hero h1,.hero h1 .accent{color:#fff}
.hero-sub{color:rgba(255,255,255,.76)}
.hero-sub b{color:#fff}
.hero .btn-line{border-color:rgba(255,255,255,.32);color:#fff}
.hero .btn-line:hover{border-color:#fff;color:#fff}
.hero-grid{
  display:grid;grid-template-columns:.85fr 1.15fr;
  gap:clamp(28px,5vw,72px);align-items:center;
}
.hero-photo{order:-1}
.hero h1{
  font-size:clamp(2.7rem,6vw,4.6rem);line-height:1.05;letter-spacing:-.015em;
  margin-bottom:24px;
}
.hero-sub{max-width:54ch;font-size:clamp(1.05rem,1.5vw,1.2rem)}
.hero-actions{display:flex;gap:14px;margin-top:36px;flex-wrap:wrap}
.btn{
  display:inline-block;text-decoration:none;font-size:1rem;font-weight:600;
  padding:14px 28px;border-radius:999px;
  transition:transform .2s cubic-bezier(.16,1,.3,1),background .2s,color .2s,border-color .2s;
}
.btn-solid{background:var(--accent);color:#fff}
.btn-solid:hover{transform:translateY(-2px);background:#000}
.btn-line{border:1px solid var(--line);color:var(--ink)}
.btn-line:hover{border-color:var(--accent);color:var(--accent)}
.hero-photo{position:relative;justify-self:center}
.hero-photo img{
  width:clamp(240px,28vw,400px);
  /* height:auto or the img's height attribute wins and squashes the portrait
     into an oval wherever the CSS width differs from the attribute width */
  height:auto;
  filter:drop-shadow(0 24px 48px rgba(0,0,0,.55));
}
@media(max-width:820px){
  .hero-grid{grid-template-columns:1fr}
  .hero-photo{order:-1;justify-self:start}
  .hero-photo img{width:min(52vw,280px)}
}

/* highlighter marker swipe */
mark{
  background:#ececec;
  color:var(--ink);padding:0 .14em;border-radius:.16em;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;
  mix-blend-mode:multiply;
}


/* ---------- sections ---------- */
.section{padding:clamp(72px,11vh,128px) 0}
.section-head{margin-bottom:clamp(36px,6vh,64px);max-width:760px}
.section-head h2{font-size:clamp(2rem,4.2vw,3.25rem);line-height:1.08;margin-bottom:14px}
.section-head p{color:var(--muted)}

/* ---------- case studies ---------- */
.case{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(28px,5vw,72px);align-items:start;
  padding:clamp(44px,7vh,76px) 0;border-top:1px solid var(--line-soft);
}
.case h3{font-size:clamp(1.9rem,3.1vw,2.6rem);line-height:1.1;margin-bottom:8px}
.case-lane{color:var(--accent);font-weight:600;font-size:.95rem;margin-bottom:4px}
.case p{margin-bottom:16px}
.case .close{color:var(--ink);font-weight:600}
.case-side{min-width:0}
.case figure{margin:0}
.case figure img{
  border-radius:10px;border:1px solid var(--line-soft);
  box-shadow:var(--shadow-card);
  width:100%;height:auto;
}
.case figcaption{color:var(--muted);font-size:.88rem;margin-top:12px}

/* event ledger — real content in place of imagery */
/* Label above a ledger. Deliberately a different register from .ledger .li-t
   (sans, uppercase, muted, smaller) — matching its serif size read as a list row. */
.ledger-h{
  font-family:var(--sans);font-weight:600;font-size:.76rem;
  letter-spacing:.11em;text-transform:uppercase;color:var(--muted);
  margin-bottom:14px;
}
.ledger{list-style:none;border-top:1px solid var(--line)}
.ledger li{padding:14px 2px 16px;border-bottom:1px solid var(--line-soft)}
.ledger .li-t{display:block;font-family:var(--serif);font-size:1.08rem;color:var(--ink)}
.ledger .li-d{display:block;font-size:.9rem;color:var(--muted);margin-top:3px}
.ledger-note{color:var(--muted);font-size:.88rem;margin-top:14px}
@media(max-width:820px){
  .case{grid-template-columns:1fr}
  .case:nth-of-type(even) .case-side{order:0}
}

/* ---------- work index — organic wave into a gray band of gradient cover tiles ---------- */
/* sits directly under the dark hero, so it carries the hero's background */
.wave{line-height:0;background:var(--ink)}
.wave svg{width:100%;height:clamp(40px,7vw,96px);display:block}
.work{background:var(--bg-2)}
.work-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(18px,2.6vw,30px)}
/* Every tile is the same size; Hoehn simply comes first in the grid. Each cover
   image already carries its own wordmark, so tiles take no tint or CSS label. */
.work-card{
  position:relative;display:block;text-decoration:none;
  border-radius:10px;overflow:hidden;box-shadow:var(--shadow-card);
  transition:transform .3s cubic-bezier(.16,1,.3,1),box-shadow .3s;
}
.work-card:hover{transform:translateY(-5px);box-shadow:0 6px 16px rgba(26,26,26,.12),0 26px 48px -18px rgba(26,26,26,.3)}
/* height:auto — a height attribute on the img would otherwise beat aspect-ratio. */
.work-card img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;display:block;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.work-card:hover img{transform:scale(1.04)}
.work-card .tile-tag{
  position:absolute;left:16px;bottom:14px;
  background:rgba(10,14,12,.62);color:#fff;backdrop-filter:blur(6px);
  font-size:.82rem;font-weight:600;letter-spacing:.02em;
  padding:6px 13px;border-radius:999px;
  opacity:0;transform:translateY(6px);
  transition:opacity .25s,transform .25s;
}
.work-card:hover .tile-tag{opacity:1;transform:none}
@media(max-width:640px){.work-grid{grid-template-columns:1fr}}

/* ---------- about ---------- */
.about-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(30px,5vw,80px)}
.about-grid p{margin-bottom:16px}
.kit{border-top:1px solid var(--line)}
.kit-row{
  display:grid;grid-template-columns:130px 1fr;gap:16px;
  padding:15px 2px;border-bottom:1px solid var(--line-soft);
}
.kit-row dt{color:var(--ink);font-weight:600;font-size:.97rem}
.kit-row dd{color:var(--muted);font-size:.97rem}
@media(max-width:820px){.about-grid{grid-template-columns:1fr}}

/* ---------- contact block (the one committed color moment) ---------- */
.contact{background:var(--bg-2);color:var(--ink)}
.contact .wrap{padding-top:clamp(64px,10vh,110px);padding-bottom:clamp(64px,10vh,110px)}
.contact h2{
  color:var(--ink);font-size:clamp(2.2rem,5.5vw,4.25rem);line-height:1.04;
  max-width:18ch;margin-bottom:26px;
}
.contact p{max-width:52ch;color:#123d33;font-size:1.1rem;margin-bottom:34px}
.contact .btn-dark{background:var(--ink);color:#fff;font-size:1.05rem}
.contact .btn-dark:hover{transform:translateY(-2px)}
.contact .also{margin-top:26px;font-size:.98rem;color:#123d33}
.contact .also a{color:var(--ink);font-weight:600}

/* ---------- footer — black band, centered stack (as on the Squarespace site) ---------- */
.foot{padding:clamp(40px,7vh,64px) 0;background:#0e1210;color:#cdd4d0}
.foot .wrap{display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center;font-size:.92rem}
.foot .foot-logo img{height:44px;width:auto}
.foot .foot-links{font-family:var(--serif);font-size:1.05rem;color:#fff}
.foot .foot-links a{color:#fff;text-decoration:none;transition:color .2s}
.foot .foot-links a:hover{color:#fff}
.foot .foot-links .sep{margin:0 10px;color:#5a635f}
.foot .foot-copy{color:#8b938f;font-size:.85rem}
.foot .foot-copy a{color:#8b938f}

/* ---------- project banner — full-bleed duotone cover with the client logo baked in ---------- */
.banner{line-height:0;position:relative}
/* ONE banner size for every project page. Sized off viewport WIDTH, never height:
   the old 42vh collapsed on short screens and cropped the artwork away. Only the
   focal point differs per image, because each cover sits differently in its frame. */
.banner img{width:100%;height:clamp(280px,32vw,560px);object-fit:cover;object-position:center}
/* Hoehn (2400x900 export): wordmark at y277-394, cars end at y727 -> 61% keeps both.
   SBLC: artwork fills 54% of its frame -> 55% centres the crop on it. */
.banner.tall img{object-position:center 61%}
.banner.art img{object-position:center 55%}
@media(max-width:900px){
  .banner.tall img{height:auto;aspect-ratio:2400/900}
}
/* centered brand-color section heading (Branding, Digital Marketing, Marketing Materials) */
.htitle{
  text-align:center;font-size:clamp(1.75rem,3.2vw,2.5rem);
  padding-top:clamp(40px,7vh,72px);margin-bottom:clamp(26px,4.5vh,44px);
}
.htitle.ruled{border-top:1px solid var(--line-soft)}

/* text wordmark overlay for banners without a baked-in logo */
.banner .banner-mark{
  position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:10px;text-align:center;
  line-height:1.2;padding:20px;
}
.banner .banner-mark b{
  font-family:var(--serif);font-weight:400;color:#fff;
  font-size:clamp(2rem,5vw,3.6rem);text-shadow:0 2px 24px rgba(0,0,0,.25);
}
.banner .banner-mark small{
  color:rgba(255,255,255,.88);font-size:clamp(.8rem,1.4vw,1rem);
  letter-spacing:.16em;text-transform:uppercase;font-weight:600;
}
/* --tint lets a project page duotone its banner in its own brand color. */
.banner .banner-tint{
  position:absolute;inset:0;
  background:var(--tint,linear-gradient(120deg,rgba(20,20,20,.9),rgba(60,60,60,.72) 55%,rgba(110,110,110,.5)));
}
/* wordmark sits above the tint, so the red duotone carries it. Size is one line. */
.banner .banner-logo{
  position:absolute;left:50%;top:21%;z-index:2;
  transform:translate(-50%,-50%);
  width:clamp(130px,14vw,215px);height:auto;
  filter:drop-shadow(0 3px 22px rgba(0,0,0,.4));
}
/* headline pinned to the upper part of the banner (logo stays visible below) */
.banner .banner-mark.top{
  justify-content:flex-start;padding-top:clamp(28px,7vh,64px);
}
.banner .banner-mark.top b{
  font-family:var(--sans);font-weight:800;text-transform:uppercase;
  font-size:clamp(1.6rem,4.2vw,3.2rem);line-height:1.08;letter-spacing:.02em;
  max-width:14ch;
}

/* two-column intro: serif statement left, body copy right */
.split{
  display:grid;grid-template-columns:.9fr 1.1fr;
  gap:clamp(24px,4.5vw,64px);align-items:start;
  padding-top:clamp(48px,8vh,88px);padding-bottom:clamp(30px,5vh,52px);
}
.split h1{font-size:clamp(2rem,4vw,3rem);line-height:1.12;margin:0}
.split .intro{margin:0;max-width:none}
@media(max-width:760px){.split{grid-template-columns:1fr}}

/* labeled thumbnails — the Squarespace export images already carry their dim + white label
   baked in, so they render untouched. The figcaption exists for screen readers only. */
.thumbs{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.thumbs figure{
  position:relative;margin:0;border-radius:10px;overflow:hidden;
  border:1px solid var(--line-soft);box-shadow:var(--shadow-card);
  transition:transform .3s cubic-bezier(.16,1,.3,1),box-shadow .3s;
}
.thumbs figure:hover{
  transform:translateY(-3px);
  box-shadow:0 6px 16px rgba(26,26,26,.12),0 24px 44px -18px rgba(26,26,26,.28);
}
.thumbs img{width:100%;display:block}
.thumbs a{display:block}
/* single "visit the live site" button, as on the Squarespace original */
.thumbs.one{grid-template-columns:1fr;max-width:360px}
.thumbs.three{grid-template-columns:repeat(3,1fr)}
@media(max-width:760px){.thumbs.three{grid-template-columns:repeat(2,1fr)}}
.thumbs figcaption{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;
}

/* square social-post carousel (full-bleed strip inside a band) */
.roll-sq{margin-top:clamp(28px,5vh,48px)}
.roll-sq .roll{gap:16px;padding:0 clamp(20px,4vw,48px)}
.roll-sq .roll figure{flex:0 0 clamp(200px,23vw,330px);scroll-snap-align:center}
.roll-sq .roll img{
  width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:8px;
  border:1px solid var(--line-soft);box-shadow:var(--shadow-card);
}
@media(max-width:640px){.roll-sq .roll figure{flex:0 0 68%}}

/* full-width tinted band with big rounded top corners (the Squarespace section curve) */
.band{
  background:var(--bg-2);
  border-radius:clamp(28px,6vw,64px) clamp(28px,6vw,64px) 0 0;
  padding:clamp(56px,9vh,96px) 0;
  border-top:1px solid var(--line-soft);
}
.band + .band,.band.sq{border-radius:0}
.band-center{max-width:700px;margin:0 auto;text-align:center}
.band-center h2{font-size:clamp(1.7rem,3vw,2.4rem);margin-bottom:14px}
.band-center p{color:var(--body)}

/* platform badge card (WordPress · HTML/JS/CSS) */
.badges{
  background:var(--bg-2);border:1px solid var(--line-soft);border-radius:12px;
  padding:22px 24px;display:grid;gap:14px;
}
.badges .badge-row{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.badges img{height:58px;width:auto}
.badges p{font-size:.9rem;color:var(--muted);margin:0}

/* inline ad-platform band */
.adband{background:var(--bg-2);border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
.adband .wrap{
  display:flex;align-items:center;gap:clamp(24px,5vw,64px);
  padding-top:clamp(30px,5vh,48px);padding-bottom:clamp(30px,5vh,48px);flex-wrap:wrap;
}
.adband img{height:44px;width:auto;flex-shrink:0}
.adband p{margin:0;max-width:52ch}

/* project section: copy column + media column */
.pcase{
  display:grid;grid-template-columns:.8fr 1.2fr;
  gap:clamp(24px,4.5vw,60px);align-items:start;
  padding-top:clamp(44px,7vh,76px);padding-bottom:clamp(44px,7vh,76px);
}
.pcase > div{min-width:0}
.pcase h2{font-size:clamp(1.7rem,3vw,2.4rem);margin-bottom:12px}
.pcase .pcase-copy p{color:var(--body)}
.pcase .pcase-copy p + p{margin-top:1em}
@media(max-width:760px){.pcase{grid-template-columns:1fr}}

/* ---------- project detail pages ---------- */
.mast{padding:clamp(52px,9vh,100px) 0 clamp(30px,5vh,52px)}
.mast .crumbs{margin-bottom:26px;font-size:.95rem}
.mast .crumbs a{color:var(--muted);text-decoration:none}
.mast .crumbs a:hover{color:var(--accent)}
.mast h1{font-size:clamp(2.4rem,5.5vw,4rem);line-height:1.05;max-width:16ch;margin-bottom:16px}
.mast .role-line{color:var(--muted);font-size:1.02rem}
.mast .intro{max-width:64ch;font-size:clamp(1.05rem,1.4vw,1.18rem);margin-top:26px}
.mast .intro b{color:var(--ink);font-weight:600}

.gallery{display:grid;gap:clamp(18px,2.6vw,30px);padding-top:clamp(20px,4vh,44px);padding-bottom:clamp(56px,9vh,96px)}
.gallery h2{font-size:clamp(1.5rem,2.6vw,2rem);margin-top:clamp(20px,3.5vh,36px)}
.gallery figure{margin:0;min-width:0}
.gallery img{
  width:100%;height:auto;border-radius:10px;
  border:1px solid var(--line-soft);box-shadow:var(--shadow-card);
}
.gallery figcaption{color:var(--muted);font-size:.9rem;margin-top:10px}
.gallery .pair{display:grid;grid-template-columns:1fr 1fr;gap:clamp(18px,2.6vw,30px)}
.gallery .quad{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(14px,2vw,22px)}
/* photo galleries only: uniform crops keep grid rows level when orientations mix.
   Never applied to product shots (brochures, mockups), which must show whole. */
.gallery.photos .pair img{aspect-ratio:16/10;object-fit:cover}
.gallery.photos .quad img{aspect-ratio:4/3;object-fit:cover}
/* product shots on white, as on the old site: full image, no frame */
.gallery.flat img{border:none;box-shadow:none;border-radius:0}
@media(max-width:900px){.gallery .quad{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.gallery .pair{grid-template-columns:1fr}}

.results{
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:clamp(26px,4vh,40px) 0;margin-bottom:clamp(48px,8vh,80px);
}
.results p{
  font-family:var(--serif);color:var(--ink);
  font-size:clamp(1.1rem,1.9vw,1.45rem);line-height:1.55;
}
.results .accent{color:var(--accent)}

.pager{
  display:flex;justify-content:space-between;gap:18px;
  padding:clamp(30px,5vh,48px) 0;border-top:1px solid var(--line-soft);
}
.pager a{
  text-decoration:none;color:var(--ink);font-family:var(--serif);
  font-size:1.1rem;transition:color .2s;max-width:45%;
}
.pager a:hover{color:var(--accent)}
.pager .dir{display:block;font-family:var(--sans);color:var(--muted);font-size:.88rem;margin-bottom:6px}

/* ---------- section sub-menu: sticks directly under the main nav (76px tall) ---------- */
.subnav{
  position:sticky;top:76px;z-index:9;
  background:#fff;border-bottom:1px solid var(--line-soft);
}
.subnav-in{
  display:flex;gap:clamp(16px,2.4vw,32px);
  overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  padding-top:11px;padding-bottom:11px;
}
.subnav-in::-webkit-scrollbar{display:none}
.subnav a{
  white-space:nowrap;flex-shrink:0;text-decoration:none;
  color:var(--muted);font-size:.86rem;
  padding:4px 0;border-bottom:2px solid transparent;
  transition:color .2s,border-color .2s;
}
.subnav a:hover{color:var(--ink)}
.subnav a.active{color:var(--accent);border-bottom-color:var(--accent)}
/* clear the nav + subnav when jumping to a section */
.htitle[id]{scroll-margin-top:150px}
.case{scroll-margin-top:140px}

/* stacked media column (figure + ledger, or figure + grid) */
.stack{display:grid;gap:22px}
.minigrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.minigrid figure{margin:0;min-width:0}
.minigrid img{
  border-radius:8px;border:1px solid var(--line-soft);box-shadow:var(--shadow-card);
  width:100%;height:auto;
}
.minigrid figcaption{color:var(--muted);font-size:.82rem;margin-top:7px}

/* ---------- gallery roll (full-width strip at the bottom of each lane) ---------- */
.case .full{grid-column:1/-1;max-width:72ch}
.case-roll{grid-column:1/-1;margin-top:clamp(10px,2vh,22px);min-width:0}
.case-roll .roll figure{flex:0 0 46%}
@media(max-width:820px){.case-roll .roll figure{flex:0 0 88%}}
.roll-wrap{position:relative}
.roll{
  display:flex;gap:14px;overflow-x:auto;
  scroll-snap-type:x mandatory;scroll-behavior:smooth;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.roll::-webkit-scrollbar{display:none}
.roll figure{flex:0 0 90%;min-width:0;scroll-snap-align:start;margin:0}
.roll img{
  width:100%;aspect-ratio:16/10;object-fit:cover;
  border-radius:10px;border:1px solid var(--line-soft);box-shadow:var(--shadow-card);
  transition:transform .45s cubic-bezier(.16,1,.3,1),box-shadow .45s;
}
.roll figure:hover img{
  transform:scale(1.02) translateY(-3px);
  box-shadow:0 6px 14px rgba(26,26,26,.1),0 22px 44px -16px rgba(26,26,26,.28);
}
.roll figcaption{color:var(--muted);font-size:.88rem;margin-top:10px}
.roll-btn{
  position:absolute;top:calc(50% - 40px);width:40px;height:40px;border-radius:50%;
  border:1px solid var(--line);background:rgba(255,255,255,.94);color:var(--ink);
  font-size:19px;line-height:1;cursor:pointer;z-index:2;
  transition:border-color .2s,color .2s,opacity .2s;
}
.roll-btn:hover{border-color:var(--accent);color:var(--accent)}
.roll-btn[disabled]{opacity:.25;cursor:default}
.roll-btn.prev{left:12px}
.roll-btn.next{right:12px}
.roll-count{
  display:block;margin-top:8px;color:var(--muted);
  font-family:var(--serif);font-size:.88rem;
}
@media(prefers-reduced-motion:reduce){.roll{scroll-behavior:auto}}

/* highlighted outcome line inside a lane */
.case .outcome{color:var(--accent);font-weight:600;margin-top:2px}
.case .outcome::before{content:"→ "}

/* ---------- charts: proportion bars, drawn in CSS so they inherit --accent ---------- */
.chart{border:1px solid var(--line-soft);border-radius:12px;padding:clamp(20px,3vw,28px);background:var(--panel)}
.chart + .chart{margin-top:clamp(16px,2.5vh,22px)}
.chart-t{font-size:1.05rem;margin-bottom:4px}
.chart-k{color:var(--muted);font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:18px}
.chart-n{color:var(--muted);font-size:.84rem;margin-top:18px;line-height:1.5}
.bars{display:grid;gap:13px}
.bar{display:grid;grid-template-columns:minmax(84px,auto) 1fr 3.5ch;align-items:center;gap:clamp(10px,1.5vw,16px)}
.bar-k{font-size:.9rem;color:var(--ink)}
.bar-t{height:9px;border-radius:999px;background:var(--bg-2);overflow:hidden}
.bar-t i{display:block;height:100%;width:var(--w);border-radius:999px;background:var(--accent)}
.bar-t i.soft{opacity:.42}
.bar-v{font-family:var(--serif);font-size:.92rem;color:var(--muted);text-align:right}
/* bars grow as the chart scrolls in */
html.js .rv .bar-t i{width:0}
html.js .rv.in .bar-t i{width:var(--w);transition:width .9s cubic-bezier(.16,1,.3,1);transition-delay:calc(var(--i,0)*90ms)}
@media(prefers-reduced-motion:reduce){html.js .rv .bar-t i,html.js .rv.in .bar-t i{width:var(--w);transition:none}}
@media(max-width:520px){.bar{grid-template-columns:1fr;gap:5px}.bar-v{text-align:left}}

/* ---------- platform tags ---------- */
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.tags span{
  font-size:.8rem;color:var(--ink);background:var(--panel);
  border:1px solid var(--line);border-radius:999px;padding:6px 13px;
}

/* stat chips (numbers in place of imagery) */
.chips{display:flex;flex-wrap:wrap;gap:clamp(22px,3vw,40px);border-top:1px solid var(--line);padding-top:26px}
.chip b{
  font-family:var(--serif);font-weight:400;color:var(--accent);
  font-size:clamp(2.2rem,3.4vw,3rem);display:block;line-height:1.15;
}
.chip small{color:var(--muted);font-size:.92rem}

/* featured video — the campaign film, sized like the text column */
.case-video{
  grid-column:1/-1;margin:clamp(10px,2vh,22px) 0 0;
  max-width:min(720px,100%);
}
/* height:auto is required — the img carries a height attribute, which would
   otherwise beat aspect-ratio and let object-fit crop the frame. */
.case-video .video-slide img,.case-video .video-frame{
  width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:12px;
}
.case-video .video-slide img{
  border:1px solid var(--line-soft);box-shadow:var(--shadow-card);
}
.case-video .video-play::before{width:72px;height:72px}
.case-video .video-play::after{
  border-width:13px 0 13px 22px;transform:translate(-36%,-50%);
}
.case-video figcaption{color:var(--muted);font-size:.88rem;margin-top:12px}

/* click-to-play video slide */
.video-slide{position:relative}
.video-play{
  position:absolute;inset:0;width:100%;height:100%;
  border:0;background:transparent;cursor:pointer;border-radius:10px;
}
.video-play::before{
  content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:64px;height:64px;border-radius:50%;background:rgba(12,18,15,.78);
  transition:background .2s,transform .2s;
}
.video-play::after{
  content:"";position:absolute;top:50%;left:50%;transform:translate(-38%,-50%);
  border-style:solid;border-width:12px 0 12px 20px;
  border-color:transparent transparent transparent #fff;
}
.video-play:hover::before{background:var(--accent);transform:translate(-50%,-50%) scale(1.08)}
.video-frame{
  width:100%;aspect-ratio:16/10;border:0;display:block;
  border-radius:10px;box-shadow:var(--shadow-card);background:#000;
}

/* ---------- lightbox ---------- */
.lb{
  border:none;border-radius:12px;padding:0;background:#fff;
  /* the `*{margin:0}` reset above kills the UA's dialog{margin:auto}, which is
     what centres a modal dialog — without this it pins to the top-left */
  margin:auto;
  max-width:min(1100px,92vw);box-shadow:0 30px 80px rgba(0,0,0,.35);
}
.lb::backdrop{background:rgba(12,18,15,.72);backdrop-filter:blur(4px)}
/* open: the image lifts in, the backdrop fades up behind it */
.lb[open]{animation:lb-in .3s cubic-bezier(.16,1,.3,1)}
.lb[open]::backdrop{animation:lb-fade .3s ease}
@keyframes lb-in{from{opacity:0;transform:scale(.94) translateY(10px)}to{opacity:1;transform:none}}
@keyframes lb-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){
  .lb[open],.lb[open]::backdrop{animation:none}
}
.lb img{max-width:100%;max-height:82vh;width:auto;height:auto;margin:0 auto;display:block}
.lb .lb-cap{
  color:var(--muted);font-family:var(--sans);font-size:.92rem;
  padding:12px 18px;text-align:center;
}
.lb .lb-cap:empty{display:none}
.lb .lb-x{
  position:absolute;top:10px;right:10px;width:40px;height:40px;border-radius:50%;
  border:none;background:rgba(26,26,26,.82);color:#fff;font-size:20px;line-height:1;
  cursor:pointer;transition:background .2s;
}
.lb .lb-x:hover{background:var(--ink)}
.zoomable{cursor:zoom-in}
