/* ============================================================
   CASE STUDY (detail) PAGE — #ffffff
   ============================================================ */
body.csd-page{background:#fff}
.csd-page .nav{position:sticky;background:#000;border-bottom:1px solid rgba(255,255,255,.08)}

/* hero — full bleed, 70vh, 50/50 */
.csd-hero{padding:0}
.csd-feature{display:grid;grid-template-columns:1fr 1fr;min-height:70vh}
.csd-text{display:flex;flex-direction:column;justify-content:center;gap:22px;padding:clamp(34px,5vw,76px)}
.csd-text .tag{align-self:flex-start}
.csd-text h1{font-family:var(--display);font-weight:800;font-size:var(--fs-h1,clamp(2.1rem,3.8vw,3.5rem));line-height:1.03;letter-spacing:-.015em;margin:0;color:#0a0a0a;max-width:18ch}
.csd-text .results{font-family:var(--display);font-style:italic;font-weight:400;font-size:clamp(1.05rem,1.8vw,1.35rem);line-height:1.45;color:#444;margin:0;max-width:36ch}
.csd-image{position:relative;overflow:hidden;background:#080808;min-height:320px}
.csd-image svg{position:absolute;inset:0;width:100%;height:100%}

/* article body — centered reading column + sticky rail */
.csd-article{max-width:1140px;margin:0 auto;padding:clamp(56px,8vw,104px) var(--pad) clamp(48px,7vw,88px);display:grid;grid-template-columns:1fr 300px;gap:clamp(32px,5vw,68px);align-items:start}
.csd-main{max-width:700px;justify-self:center;width:100%;min-width:0}
.csd-eyebrow{font-family:var(--mono);font-size:.7rem;letter-spacing:calc(.088em * var(--mono-track, 1));text-transform:uppercase;color:var(--neon);display:block;margin-bottom:16px}
.csd-main h2{font-family:var(--display);font-weight:700;font-size:var(--fs-h2,clamp(1.7rem,3vw,2.4rem));letter-spacing:-.01em;line-height:1.1;color:#0a0a0a;margin:0 0 20px}
.csd-main p{font-family:var(--body);font-size:1.14rem;line-height:1.75;color:#2c2c2c;margin:0 0 22px}
.csd-main .section{margin-top:clamp(48px,7vw,84px);padding-top:clamp(36px,5vw,52px);border-top:1px solid #eee}
.at-glance{display:flex;flex-wrap:wrap;gap:0;margin:30px 0 6px;border:1px solid #ececec;border-radius:14px;overflow:hidden}
.at-glance .g{flex:1;min-width:130px;padding:22px;border-right:1px solid #ececec}
.at-glance .g:last-child{border-right:0}
.at-glance .gn{font-family:var(--display);font-weight:800;font-size:1.7rem;color:#0a0a0a;line-height:1}
.at-glance .gl{font-family:var(--mono);font-size:.6rem;letter-spacing:calc(.056em * var(--mono-track, 1));text-transform:uppercase;color:var(--grey-deep);margin-top:8px}

/* rail: testimonial + sticky CTA */
.csd-rail{position:sticky;top:100px;display:flex;flex-direction:column;gap:20px}
.testi-card{background:var(--mist);border:1px solid #ececec;border-radius:16px;padding:26px;position:relative}
.testi-card .q{position:absolute;top:14px;left:20px;font-family:var(--display);font-size:3rem;color:var(--neon);line-height:1;opacity:.5}
.testi-card blockquote{font-family:var(--display);font-style:italic;font-size:1.12rem;line-height:1.45;color:#0a0a0a;margin:18px 0 16px}
.testi-card cite{font-family:var(--mono);font-size:.64rem;letter-spacing:calc(.04em * var(--mono-track, 1));text-transform:uppercase;color:var(--grey-deep);font-style:normal;display:block;line-height:1.5}
.cta-card{background:#0a0a0a;border-radius:16px;padding:24px}
.cta-card .cl{font-family:var(--display);font-size:1.1rem;font-weight:600;color:#fff;line-height:1.3;margin-bottom:16px}
.cta-btn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;background:var(--orange);color:#111;border:0;border-radius:8px;padding:15px;cursor:pointer;font-family:var(--mono);text-transform:uppercase;letter-spacing:calc(.064em * var(--mono-track, 1));font-size:.76rem;font-weight:600;transition:filter .2s}
.cta-btn:hover{filter:brightness(1.06)}

@media(max-width:900px){
  .csd-feature{grid-template-columns:1fr;min-height:0}
  .csd-image{min-height:340px;order:-1}
  .csd-article{grid-template-columns:1fr}
  .csd-rail{position:static;flex-direction:row;flex-wrap:wrap;margin-top:8px}
  .csd-rail .testi-card,.csd-rail .cta-card{flex:1;min-width:280px}
}


/* ============================================================
   FEATURE BAND — full-bleed break in an article
   ============================================================

   A section element in normal flow, so it needs no viewport maths to span the
   page: it is a sibling of .csd-layout rather than something inside the text
   column, which is also why it can be full width at all — the column has the
   sticky rail beside it. --mist is the same #fafafa the other pale folds use,
   so the article's breaks and the site's alternating sections are one palette
   rather than two that happen to match today.
   ------------------------------------------------------------ */
.csd-feature{
  background:var(--mist);
  border-block:1px solid #f0f0f0;
  padding:clamp(44px,6vw,84px) 0;
}

.csd-feature__inner{
  display:flex;flex-direction:column;align-items:center;gap:18px;
  text-align:center;
}

.csd-feature .eyebrow{margin:0}

/* ---------- Quote ---------- */
.csd-feature__quote{
  margin:0;max-width:22ch;
  /*
   * Sized against the article's own h2 rather than as free-standing display
   * type: the band interrupts a reading column, and a quote larger than the
   * headings around it reads as a different page rather than as a break in
   * this one.
   */
  font-family:var(--display);font-weight:600;
  font-size:clamp(1.5rem,3.4vw,2.5rem);line-height:1.22;letter-spacing:-.012em;
  color:var(--ink);
}

.csd-feature__quote p{margin:0}

/* Supplied by the design, so an editor never has to think about which glyph
   to type or whether the closing one is missing. */
.csd-feature__quote p::before{content:"\201C"}
.csd-feature__quote p::after{content:"\201D"}

.csd-feature__cite{
  display:flex;flex-direction:column;gap:2px;margin-top:22px;
  font-style:normal;
}

.csd-feature__by{
  font-family:var(--mono);font-size:.74rem;letter-spacing:calc(.064em * var(--mono-track, 1));text-transform:uppercase;color:var(--ink);
}

.csd-feature__role{
  font-family:var(--mono);font-size:.68rem;letter-spacing:calc(.04em * var(--mono-track, 1));color:var(--grey);
}

/* ---------- Media ---------- */
.csd-feature__video,
.csd-feature__image{
  width:100%;max-width:900px;border-radius:14px;overflow:hidden;
}

.csd-feature__image-img{width:100%;height:auto;display:block}

/* An embed is whatever the editor pasted, so it is given a column and left
   alone beyond keeping it inside the page. */
.csd-feature--embed .csd-feature__inner > *{width:100%;max-width:900px}
.csd-feature--embed iframe{width:100%;max-width:100%;border:0}

.csd-feature__caption{
  margin:0;font-family:var(--mono);font-size:.68rem;letter-spacing:calc(.04em * var(--mono-track, 1));color:var(--grey);
}


/* ============================================================
   SHARE — the inline row under the hero tags, and the dock

   One set of links, two shapes. The inline row is part of the
   article; the dock belongs to the window and only exists once
   the row has scrolled out of sight, so the two are never both
   asking for attention.
   ============================================================ */
.pshare{--pshare-ink:var(--grey-deep);--pshare-line:#e4e4e4}
.pshare__list{list-style:none;margin:0;padding:0;display:flex}
.pshare__btn{
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--pshare-ink);text-decoration:none;
  border:1px solid var(--pshare-line);border-radius:11px;
  background:var(--paper);
  transition:color .18s ease,border-color .18s ease,background .18s ease,transform .18s ease;
}
.pshare__btn:hover,
.pshare__btn:focus-visible{
  color:var(--orange);border-color:var(--orange);
  /* No lift on the dock — it is fixed furniture, and furniture that jumps
     under the pointer reads as a misclick. The inline row can lift. */
}
.pshare__btn:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.pshare__icon{display:flex}
.pshare__icon svg{display:block}
/*
 * The status line is for screen readers only. "Copied" is confirmed visually
 * by the button itself, so showing this as well would say it twice.
 */
.pshare__said{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
}

/* ---------- inline ---------- */
.pshare--inline{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px}
.pshare--inline .pshare__label{
  font-family:var(--mono);font-size:.68rem;
  letter-spacing:calc(.056em * var(--mono-track, 1));
  text-transform:uppercase;color:var(--grey);
}
.pshare--inline .pshare__list{gap:8px}
.pshare--inline .pshare__btn{gap:8px;padding:8px 13px;font-family:var(--mono);font-size:.68rem;letter-spacing:calc(.04em * var(--mono-track, 1));text-transform:uppercase}
.pshare--inline .pshare__btn:hover{transform:translateY(-1px)}

/* ---------- dock ---------- */
.pshare--dock{
  position:fixed;right:clamp(10px,1.6vw,22px);top:50%;transform:translateY(-50%);
  z-index:60;
  display:flex;flex-direction:column;align-items:center;gap:10px;
  padding:12px 9px;
  background:var(--paper);
  border:1px solid var(--pshare-line);border-radius:14px;
  box-shadow:0 16px 40px -22px rgba(0,0,0,.45);
  /* Reveal is a fade and a small slide in from the edge it is pinned to. */
  opacity:0;visibility:hidden;
  transition:opacity .26s ease,visibility .26s ease,transform .26s cubic-bezier(.22,1,.36,1);
}
/*
 * `display:flex` above is an author style and [hidden] is a user-agent one, so
 * without this the attribute the dock ships with does nothing and the panel is
 * on screen from the first paint.
 */
.pshare--dock[hidden]{display:none}
.pshare--dock.is-in{opacity:1;visibility:visible}
.pshare--dock .pshare__label{
  font-family:var(--mono);font-size:.56rem;
  letter-spacing:calc(.08em * var(--mono-track, 1));
  text-transform:uppercase;color:var(--grey);
  /* Reads bottom-to-top up the side of the dock, so the column stays narrow. */
  writing-mode:vertical-rl;transform:rotate(180deg);margin-bottom:2px;
}
.pshare--dock .pshare__list{flex-direction:column;gap:6px}
.pshare--dock .pshare__btn{width:38px;height:38px;border-color:transparent;background:transparent}
.pshare--dock .pshare__btn:hover{background:var(--mist);border-color:var(--pshare-line)}
/* The dock is icons only; the names would make it a panel, not a rail. */
.pshare--dock .pshare__text{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
}

/* Copied — the button says so itself for two seconds. */
.pshare__btn.is-copied{color:var(--orange);border-color:var(--orange)}
.pshare--dock .pshare__btn.is-copied{background:var(--mist)}

@media(max-width:1180px){
  /*
   * Below this the article column and the dock start competing for the same
   * pixels — the dock would sit over the text rather than beside it. The
   * inline row is still there, and on a phone it is the better control
   * anyway: it is where the thumb already is.
   */
  .pshare--dock{display:none}
}
/*
 * The phone's own share sheet.
 *
 * Hidden everywhere by default, so the five buttons are what renders unless
 * both tests pass: the browser has to actually support navigator.share
 * (ui.js adds .pshare--native when it does), and the screen has to be a phone.
 * Desktop keeps the row whatever the browser can do — the sheet is worth a tap
 * on a phone, where it reaches Instagram and everything else installed, and is
 * a worse control than five visible buttons on a large screen.
 */
.pshare__native{
  display:none;align-items:center;gap:9px;
  border:1px solid var(--pshare-line);border-radius:11px;
  background:var(--paper);color:var(--pshare-ink);cursor:pointer;
  padding:10px 18px;min-height:44px;
  font-family:var(--mono);font-size:.68rem;
  letter-spacing:calc(.04em * var(--mono-track, 1));text-transform:uppercase;
  transition:color .18s ease,border-color .18s ease;
}
.pshare__native:hover,.pshare__native:focus-visible{color:var(--orange);border-color:var(--orange)}
.pshare__native:focus-visible{outline:2px solid var(--orange);outline-offset:2px}

@media(max-width:520px){
  /* Names off on the narrowest screens; five labelled buttons wrap to three
     lines and push the article down the page. */
  .pshare--inline .pshare__text{
    position:absolute;width:1px;height:1px;overflow:hidden;
    clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
  }
  .pshare--inline .pshare__btn{width:40px;height:40px;padding:0}
}
@media(max-width:640px){
  .pshare--inline.pshare--native .pshare__native{display:inline-flex}
  .pshare--inline.pshare--native .pshare__list{display:none}
}
@media(prefers-reduced-motion:reduce){
  .pshare--dock{transition:opacity .26s ease,visibility .26s ease}
  .pshare--inline .pshare__btn:hover{transform:none}
}
