/* Charlie Bitton — portfolio
   One idea: the page is a working document with a cobalt "redline" layer.
   Ink is the work. Cobalt is Charlie thinking about the work. */

:root {
  --paper: #FFFFFF;
  --sheet: #FFFFFF;
  --ink: #000000;
  --graphite: #5C5C5C;
  --rule: #E3E3E3;
  --wash: #F3F3F1;
  --redline: #2A43DE;
  --redline-soft: #DCE1FB;
  --warn: #C8472D;
  --ok: #2F8A5B;

  --display: "Funnel Display", system-ui, sans-serif;
  --text: "Funnel Sans", system-ui, sans-serif;

  --measure: 38rem;
  --gutter: 16px;
  --wide: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--redline); }
:focus-visible { outline: 2px solid var(--redline); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 40px; } }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.2vw, 5.6rem); letter-spacing: -0.035em; line-height: 1.0; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
.lede { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; color: var(--ink); }
.muted { color: var(--graphite); }
.ui { font-family: var(--display); font-size: 0.95rem; line-height: 1.45; letter-spacing: 0; }

/* ---------- the redline layer ---------- */
.note {
  position: relative;
  font-family: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 19rem;
  margin: 0;
  padding: 12px 14px 12px 50px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.12);
}
.note::before {
  content: "CB";
  position: absolute; left: 12px; top: 11px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--redline); color: #fff;
  font: 600 0.68rem/1 var(--display); letter-spacing: .02em;
}
.note b { font-style: normal; font-weight: 600; }
.pin {
  display: inline-grid; place-items: center;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  border: 1.5px solid var(--redline); color: var(--redline); background: var(--paper);
  font: 600 0.75rem/1 var(--display); font-style: normal;
  flex: none;
}
.pin.solid { background: var(--redline); color: #fff; }

/* ---------- header ---------- */
.site-head { padding: 22px 0; }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 20px; font-family: var(--display); font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: var(--graphite); }
.site-nav a:hover { color: var(--redline); }

/* ---------- home hero ---------- */
.hero { padding: 48px 0 72px; }
.hero-grid { display: grid; gap: 32px; }
.hero h1 { max-width: 15ch; }
.hero .sub { margin-top: 28px; font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 34rem; }
.hero-margin { display: flex; gap: 16px; align-items: flex-start; }
.hero-margin img { width: 112px; height: 112px; object-fit: cover; object-position: 50% 20%; border-radius: 50%; flex: none; }
.hero-margin .note { padding-top: 6px; }
.status { display: inline-flex; gap: 8px; align-items: center; font-family: var(--display); font-size: 0.9rem; color: var(--ink); margin-top: 28px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: block; }
@media (min-width: 960px) {
  .hero { padding: 80px 0 112px; }
  .hero-grid { grid-template-columns: 1fr 17rem; align-items: end; gap: 56px; }
  .hero-margin { flex-direction: column; }
}

/* ---------- sections ---------- */
section { padding: 64px 0; }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; }
.sec-head p { margin: 0; }
.rule-top { border-top: 1px solid var(--rule); }

/* ---------- work index ---------- */
.work { display: grid; gap: 0; }
.work-row {
  display: grid; gap: 20px; padding: 32px 0; border-top: 1px solid var(--rule);
  text-decoration: none; color: inherit;
}
.work-row:last-child { border-bottom: 1px solid var(--rule); }
.work-row .who { font-family: var(--display); font-size: 0.95rem; color: var(--graphite); }
.work-row h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 12px; letter-spacing: -0.025em; }
.work-row p { margin: 0; color: var(--graphite); }
.work-row .proof { margin-top: 14px; font-family: var(--display); font-size: 0.95rem; color: var(--ink); }
.work-row .proof strong { color: var(--redline); font-weight: 600; }
.work-row figure { margin: 0; background: var(--wash); border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.work-row figure img { width: 100%; height: 100%; object-fit: cover; }
.work-row:hover h3 { color: var(--redline); }
.work-row .go { font-family: var(--display); font-size: 0.95rem; margin-top: 18px; display: inline-block; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 860px) {
  .work-row { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 48px 0; }
  .work-row figure { aspect-ratio: 5 / 4; }
}

/* ---------- built list (Re'em / Ohm / Katani) ---------- */
.built { display: grid; gap: 40px; }
.built article { display: grid; gap: 16px; align-content: start; }
.built h3 { font-size: 1.4rem; }
.built .kind { font-family: var(--display); font-size: 0.9rem; color: var(--graphite); }
.built figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--wash); aspect-ratio: 1800 / 1140; }
.built figure img { width: 100%; height: 100%; object-fit: cover; }
.built p { font-size: 1.02rem; margin: 0; }
@media (min-width: 860px) { .built { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- principles ---------- */
.principles { display: grid; gap: 0; counter-reset: p; }
.principle { display: grid; gap: 8px 40px; padding: 28px 0; border-top: 1px solid var(--rule); }
.principle h3 { font-size: 1.3rem; }
.principle p { margin: 0; }
.principle .note { margin-top: 6px; }
@media (min-width: 860px) { .principle { grid-template-columns: 22rem 1fr; } }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--paper); padding: 80px 0 64px; margin-top: 48px; }
.contact h2 { font-size: clamp(2rem, 5.5vw, 4rem); letter-spacing: -0.03em; max-width: 16ch; margin-bottom: 24px; }
.contact p { color: #C9CEC8; }
.contact a { color: var(--paper); }
.contact a:hover { color: #9FB0FF; }
.contact .links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-family: var(--display); font-size: 1.15rem; margin-top: 32px; }
.contact .fine { font-family: var(--display); font-size: 0.85rem; color: #8E958F; margin-top: 64px; }

/* =========================================================
   CASE STUDY
   ========================================================= */
.case-hero { padding: 32px 0 48px; }
.case-hero .who { font-family: var(--display); color: var(--graphite); font-size: 1rem; margin-bottom: 16px; }
.case-hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.8rem); max-width: 16ch; }
.case-hero .lede { margin-top: 24px; max-width: 36rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 20px 32px; margin: 40px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule); font-family: var(--display); font-size: 0.95rem; }
.facts dt { color: var(--graphite); }
.facts dd { margin: 2px 0 0; }

/* body with margin notes */
.chapter { padding: 56px 0; border-top: 1px solid var(--rule); }
.chapter > .wrap { display: grid; gap: 24px; }
.chapter h2 { max-width: 20ch; margin-bottom: 8px; }
.with-margin { display: grid; gap: 16px; }
.with-margin aside { }
@media (min-width: 1000px) {
  .chapter > .wrap { grid-template-columns: 1fr 17rem; column-gap: 64px; }
  .chapter > .wrap > .full { grid-column: 1 / -1; }
  .chapter > .wrap > h2 { grid-column: 1; grid-row: 1; }
  .chapter > .wrap > div:not(.full) { grid-column: 1; grid-row: 2; }
  .chapter > .wrap > aside { grid-column: 2; grid-row: 2; align-self: start; }
}
.chapter > .wrap > aside { display: grid; gap: 16px; align-content: start; }

.pullquote { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.25; letter-spacing: -0.015em; max-width: 30ch; margin: 8px 0 16px; }

/* decision log */
.decisions { display: grid; gap: 20px; }
.decision { background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 22px; display: grid; gap: 14px; }
.decision h3 { font-size: 1.2rem; }
.fork { display: grid; gap: 10px; font-family: var(--display); font-size: 0.95rem; }
.fork div { padding: 10px 12px; border-radius: 6px; background: var(--paper); border: 1px solid var(--rule); }
.fork .no { color: var(--graphite); border-style: dashed; }
.fork .yes { border-color: var(--redline); background: var(--redline-soft); color: var(--ink); }
.fork span { display: block; font-size: 0.8rem; color: var(--graphite); text-decoration: none; margin-bottom: 2px; }
.decision p { margin: 0; font-size: 1.02rem; }
.decision .cost { font-family: var(--display); font-size: 0.92rem; color: var(--graphite); }
.decision .cost b { color: var(--ink); font-weight: 600; }
@media (min-width: 720px) { .fork { grid-template-columns: 1fr 1fr; } }

/* figures */
.shot { margin: 0; display: grid; gap: 10px; }
.shot img { border-radius: 6px; background: var(--sheet); }
.shot figcaption { font-family: var(--display); font-size: 0.88rem; color: var(--graphite); max-width: 40rem; }
.shots { display: grid; gap: 24px; }
@media (min-width: 760px) { .shots.two { grid-template-columns: 1fr 1fr; align-items: start; } .shots.three { grid-template-columns: repeat(3, 1fr); align-items: start; } }

/* ---------- drawn artifacts: flows and wireframes ---------- */
.board {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 24px 16px;
  background-image: radial-gradient(var(--wash) 1px, transparent 1px);
  background-size: 18px 18px;
  overflow-x: auto;
}
.board-cap { font-family: var(--display); font-size: 0.88rem; color: var(--graphite); margin-top: 10px; max-width: 44rem; }
@media (min-width: 720px) { .board { padding: 36px 32px; } }

.flow { display: flex; gap: 22px; align-items: flex-start; min-width: min-content; }
.flow > .arrow { align-self: center; color: var(--graphite); font-family: var(--display); flex: none; }

.phone {
  width: 186px; flex: none;
  border: 1.5px solid var(--ink); border-radius: 22px; padding: 12px 10px 14px;
  background: #fff; font-family: var(--display); font-size: 11px; line-height: 1.35;
  position: relative;
}
.phone .bar { height: 4px; width: 46px; margin: 0 auto 12px; background: var(--ink); border-radius: 4px; opacity: .8; }
.phone .t { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.phone .lbl { color: var(--graphite); font-size: 10px; }
.phone .field { border: 1px solid var(--rule); border-radius: 6px; padding: 6px 8px; margin: 3px 0 8px; display: flex; justify-content: space-between; gap: 6px; }
.phone .big { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.phone .row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--rule); }
.phone .row:last-of-type { border-bottom: 0; }
.phone .btn { margin-top: 10px; background: var(--ink); color: #fff; text-align: center; border-radius: 7px; padding: 7px; font-weight: 600; }
.phone .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.phone .chip { display: inline-block; padding: 2px 7px; border-radius: 99px; background: var(--wash); font-size: 10px; margin: 0 3px 4px 0; }
.phone .chip.ok { background: #DDEFE4; color: #1f6a43; }
.phone .chip.warn { background: #F8E1DA; color: #96331f; }
.phone .block { height: 8px; background: var(--wash); border-radius: 3px; margin: 5px 0; }
.phone .block.s { width: 60%; }
.phone .step { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; }
.phone .dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); margin-top: 2px; flex: none; }
.phone .dot.done { background: var(--ink); }
.phone .dot.now { border-color: var(--redline); background: var(--redline); }
.phone .tag { position: absolute; top: -11px; right: -11px; }
.phone .bubble { padding: 6px 8px; border-radius: 10px; margin: 6px 0; max-width: 85%; }
.phone .bubble.me { background: var(--wash); margin-left: auto; }
.phone .bubble.bot { background: var(--ink); color: #fff; }
.phone .bubble.human { background: var(--redline); color: #fff; }
.phone .meter { height: 6px; border-radius: 6px; background: var(--wash); overflow: hidden; margin: 4px 0 8px; }
.phone .meter i { display: block; height: 100%; background: var(--ink); }

.legend { display: grid; gap: 12px; margin-top: 24px; }
.legend li { display: flex; gap: 10px; align-items: flex-start; list-style: none; }
.legend { padding: 0; }
@media (min-width: 760px) { .legend { grid-template-columns: 1fr 1fr; gap: 14px 32px; } }

/* desktop wireframe: clinician queue */
.desk {
  min-width: 620px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff;
  font-family: var(--display); font-size: 12px; overflow: hidden;
}
.desk .chrome { display: flex; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.desk .chrome i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.desk .body { display: grid; grid-template-columns: 140px 1fr; min-height: 260px; }
.desk .side { border-right: 1px solid var(--rule); padding: 12px; color: var(--graphite); display: grid; gap: 8px; align-content: start; }
.desk .side b { color: var(--ink); }
.desk .main { padding: 12px 16px; }
.desk .h { font-weight: 600; font-size: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; }
.desk table { width: 100%; border-collapse: collapse; }
.desk th { text-align: left; color: var(--graphite); font-weight: 500; padding: 5px 6px; border-bottom: 1px solid var(--rule); }
.desk td { padding: 7px 6px; border-bottom: 1px dashed var(--rule); vertical-align: top; }
.desk .why { color: var(--graphite); }
.risk { display: inline-block; min-width: 34px; text-align: center; border-radius: 4px; padding: 1px 4px; font-weight: 600; }
.risk.hi { background: #F8E1DA; color: #96331f; }
.risk.md { background: #F6EBCF; color: #7a5810; }
.risk.lo { background: #DDEFE4; color: #1f6a43; }
.desk .act { color: var(--redline); font-weight: 600; white-space: nowrap; }
.desk.before .main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.desk.before .tile { border: 1px solid var(--rule); border-radius: 6px; padding: 8px; height: 74px; }
.desk.before .tile svg { width: 100%; height: 40px; }

.compare { display: grid; gap: 28px; }
.compare h4 { font-family: var(--display); font-size: 0.95rem; font-weight: 600; margin: 0 0 10px; letter-spacing: 0; }
@media (min-width: 1100px) { .compare { grid-template-columns: 1fr 1fr; } .desk { min-width: 0; } }

/* node diagram (conversation / system flows) */
.nodes { display: grid; gap: 12px; min-width: 640px; font-family: var(--display); font-size: 0.85rem; }
.lane { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.lane > span { color: var(--graphite); font-size: 0.8rem; }
.lane .track { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; }
.node { background: #fff; border: 1.5px solid var(--ink); border-radius: 8px; padding: 8px 10px; line-height: 1.3; flex: 1 1 0; min-width: 0; }
.node small { display: block; color: var(--graphite); font-size: 0.75rem; }
.node.ai { background: var(--ink); color: #fff; }
.node.ai small { color: #b9beb9; }
.node.human { border-color: var(--redline); color: var(--redline); }
.node.ghost { border-style: dashed; color: var(--graphite); }
.track .to { color: var(--graphite); flex: none; }

/* stat */
.stat { display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; }
.stat .n { font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 9vw, 6.5rem); letter-spacing: -0.04em; line-height: 0.9; }
.stat .l { font-family: var(--display); font-size: 1rem; color: var(--graphite); max-width: 16rem; }

/* next case */
.next { padding: 56px 0 24px; border-top: 1px solid var(--rule); }
.next a { text-decoration: none; display: grid; gap: 6px; }
.next .ui { color: var(--graphite); }
.next h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
.next a:hover h2 { color: var(--redline); }

/* ---------- the one orchestrated moment: the redline draws in on load ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-margin, .hero .note { animation: ink-in 900ms 450ms cubic-bezier(.2,.7,.2,1) both; }
  @keyframes ink-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
}

/* let wide boards scroll inside themselves instead of widening the page */
.chapter > .wrap > *, .compare > *, .shots > * { min-width: 0; }

/* ---------- image treatments: cutouts sit on the paper, screens are framed ---------- */
.work-row figure.cut, .built figure.cut { background: transparent; border-radius: 0; overflow: visible; display: grid; place-items: center; }
.work-row figure.cut img, .built figure.cut img { object-fit: contain; width: 100%; height: 100%; }
.work-row > *, .built > * { min-width: 0; }
.work-row figure.screen { background: transparent; }
.work-row figure.screen img, .shot img.framed { background: #fff; border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 1px 0 rgba(22,25,23,.04), 0 18px 40px -24px rgba(22,25,23,.35); }
.work-row figure.screen img { object-fit: cover; object-position: 0 0; }
.shot img { background: transparent; }

/* rebuilt Macy's On-Call conversation */
.macys { width: 100%; max-width: 340px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 18px 16px 8px; font-family: var(--display); box-shadow: 0 18px 40px -24px rgba(22,25,23,.35); }
.macys-head { display: flex; flex-direction: column; margin-bottom: 14px; line-height: 1.1; }
.macys-head b { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.macys-head span { font-size: 0.7rem; color: var(--graphite); padding-left: 1.1rem; }
.macys .mb { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; line-height: 1.35; font-style: italic; font-weight: 600; max-width: 86%; }
.macys .mb.bot { background: #E0182D; color: #fff; margin-left: auto; }
.macys .mb.me { background: #6B6B6B; color: #fff; }

/* rebuilt IBM Think award card */
.award { background: #fff; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; font-family: var(--display); box-shadow: 0 18px 40px -24px rgba(22,25,23,.35); }
.award-quote { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.award-quote img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.award blockquote { margin: 0; font-style: italic; font-size: 0.95rem; line-height: 1.45; }
.award cite { display: block; margin-top: 8px; font-style: normal; font-size: 0.85rem; color: var(--graphite); }
.award-foot { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; padding: 16px 22px; background: var(--paper); border-top: 1px solid var(--rule); font-size: 0.88rem; line-height: 1.45; color: var(--graphite); }
.award-foot b { color: var(--ink); font-weight: 600; }
.win { display: grid; justify-items: end; gap: 6px; text-align: right; flex: none; }
.win .pill { background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 600; }
@media (max-width: 480px) { .award-foot { flex-direction: column; align-items: flex-start; } .win { justify-items: start; text-align: left; } }
.built, .built article, .work-row { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .built { grid-template-columns: repeat(3, minmax(0, 1fr)); } .work-row { grid-template-columns: 1fr 1fr; } }

/* ---------- hero stages and artifact images ---------- */
.stage-wrap { padding: 0 0 32px; }
.stage { margin: 0; }
.stage img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 30px 60px -40px rgba(22,25,23,.6); }
.shot.art img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rule); }
.shot.art a { display: block; }
.shot.art figcaption b { color: var(--ink); font-weight: 600; }
.work-row figure.thumb { aspect-ratio: 1800 / 1140; border-radius: 12px; background: var(--ink); }
.work-row figure.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.work-row:hover figure.thumb img { transform: scale(1.025); }
@media (min-width: 860px) { .work-row figure.thumb { aspect-ratio: 1800 / 1140; } }

/* =========================================================
   ROUND 3: hiring-manager pass
   ========================================================= */
.nav-cta { color: var(--paper) !important; background: var(--ink); padding: 6px 12px; border-radius: 999px; }
.nav-cta:hover { background: var(--redline); }
@media (max-width: 520px) { .site-nav { gap: 14px; font-size: 0.9rem; } .site-nav a[href="#lead"] { display: none; } }

.hero-tight { padding: 32px 0 28px; }
@media (min-width: 960px) { .hero-tight { padding: 56px 0 36px; } }
.clients { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-family: var(--display); }
.clients span { font-size: 0.9rem; color: var(--graphite); }
.clients b { font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: -0.02em; color: #3d433f; }

/* bento of case studies */
.work-sec { padding: 8px 0 72px; }
.bento { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .3s; }
.card:hover { border-color: var(--ink); box-shadow: 0 24px 50px -30px rgba(22,25,23,.45); }
.card figure { margin: 0; aspect-ratio: 1800 / 1140; overflow: hidden; background: var(--ink); }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover figure img { transform: scale(1.03); }
.card-body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.card .who { font-family: var(--text); font-size: 0.9rem; color: var(--graphite); display: flex; gap: 10px; flex-wrap: wrap; }
.card .who b { color: var(--ink); font-weight: 600; }
.card h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.025em; }
.card-lg h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.card p { margin: 0; color: var(--graphite); font-size: 1.02rem; }
.metric { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--rule); font-family: var(--display); }
.metric b { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; color: var(--redline); line-height: 1; flex: none; }
.metric span { font-size: 0.92rem; color: var(--graphite); line-height: 1.35; }

/* leadership */
.rituals { display: grid; gap: 16px; }
.ritual { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.ritual .day { font-family: var(--display); font-size: 0.85rem; color: var(--redline); font-weight: 600; }
.ritual p { margin: 0; font-size: 1rem; color: var(--graphite); }
@media (min-width: 860px) { .rituals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lead-grid { display: grid; gap: 32px; margin-top: 32px; }
@media (min-width: 900px) { .lead-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.dlog { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 22px 24px; font-family: var(--display); }
.dlog-head { display: flex; justify-content: space-between; font-size: 0.82rem; color: #9da49e; margin-bottom: 12px; }
.dlog h3 { font-size: 1.3rem; line-height: 1.25; }
.dlog dl { margin: 18px 0 0; display: grid; gap: 10px; }
.dlog dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid #2f3431; font-size: 0.92rem; }
.dlog dt { color: #9da49e; }
.dlog dd { margin: 0; }
.lead-copy h3 { font-size: 1.3rem; margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; font-size: 1.05rem; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--redline); border-bottom: 2px solid var(--redline); transform: rotate(-45deg); }

/* about */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 72px; } }
.about-bio img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; margin-bottom: 20px; }
.about-bio h2 { margin-bottom: 16px; }
.xp-title { font-size: 1.1rem; margin-bottom: 8px; }
.xp { list-style: none; padding: 0; margin: 0; font-family: var(--display); }
.xp li { display: grid; grid-template-columns: 9rem 1fr; gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.xp li:last-child { border-bottom: 1px solid var(--rule); }
.xp b { font-weight: 600; grid-row: span 2; }
.xp small { color: var(--graphite); font-size: 0.88rem; }
.tools { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.92rem; }
.tools li { padding: 5px 12px; border: 1px solid var(--rule); border-radius: 999px; }

/* case study: the short version */
.tldr { display: grid; gap: 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--sheet); overflow: hidden; margin-top: 8px; }
.tldr > div { padding: 18px 20px; border-top: 1px solid var(--rule); }
.tldr > div:first-child { border-top: 0; }
.tldr dt { font-family: var(--display); font-size: 0.85rem; font-weight: 600; color: var(--redline); margin-bottom: 4px; }
.tldr dd { margin: 0; font-size: 1rem; line-height: 1.5; }
@media (min-width: 900px) { .tldr { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tldr > div { border-top: 0; border-left: 1px solid var(--rule); } .tldr > div:first-child { border-left: 0; } }
.case-nav { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--display); font-size: 0.88rem; margin-bottom: 18px; }
.case-nav a { text-decoration: none; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--graphite); }
.case-nav a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.case-hero .who { display: none; }
.case-hero h1 { max-width: 18ch; }
@media (max-width: 959px) {
  .hero-margin img { width: 56px; height: 56px; }
  .hero-margin .note { font-size: 0.9rem; padding-top: 0; }
  .hero .sub { margin-top: 18px; }
  .status { margin-top: 18px; }
  .hero-grid { gap: 22px; }
  .clients { margin-top: 24px; gap: 6px 18px; }
}
/* bento v2: featured case full width, two below */
@media (min-width: 900px) {
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
  .card-lg { grid-column: 1 / -1; grid-row: auto; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: auto; }
  .card-lg figure { aspect-ratio: 1800 / 1140; min-height: 0; background: var(--ink); }
  .card-lg figure img { object-fit: cover; }
  .card-lg .card-body { padding: 36px 36px; align-content: center; gap: 12px; }
}
@media (min-width: 900px) { .card-lg figure { aspect-ratio: auto; } .card-lg figure img { object-position: 30% 50%; } }
@media (max-width: 640px) { .case-nav { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scrollbar-width: none; } .case-nav::-webkit-scrollbar { display: none; } .case-nav a { flex: none; } }

/* merged work grid: Ohm featured, then pairs */
.card-ohm figure { background: #15131F; }
@media (min-width: 900px) { .card-ohm figure img { object-position: 50% 40%; } }
.also { margin: 28px 0 0; max-width: 46rem; font-size: 0.95rem; color: var(--graphite); }
.also b { color: var(--ink); font-weight: 600; }

/* live, animated scenes */
.live-frame { display: block; width: 100%; height: auto; border: 0; background: #0B1424; }
.stage .live-frame { border-radius: inherit; }

/* hero visual: portrait with the work fanned behind it */
.hero { overflow-x: clip; }
.hero-visual { position: relative; width: min(100%, 340px); margin: 28px auto 8px; padding: 0 0 0 0; }
.portrait { position: relative; z-index: 3; margin: 0; aspect-ratio: 680 / 800; border-radius: 24px; overflow: hidden; background: #2a2333; box-shadow: 0 30px 60px -28px rgba(0,0,0,.55); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 35%; }
.deck { position: absolute; inset: 0; z-index: 1; }
.deck img { position: absolute; left: 0; top: 0; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); opacity: 0;
  transform: translate(10px, 20px) scale(.9); transition: transform 1.1s cubic-bezier(.2,.7,.2,1), opacity .8s ease; }
.deck img.p0 { opacity: 1; z-index: 2; transform: translate(-6%, -34%) rotate(-6deg); }
.deck img.p1 { opacity: 1; z-index: 1; transform: translate(22%, -22%) rotate(6deg); }
.hero-visual .note { position: relative; z-index: 4; margin: -34px 0 0 -14px; max-width: 19rem; }
@media (prefers-reduced-motion: no-preference) {
  .portrait img { animation: breathe 14s ease-in-out infinite alternate; }
  @keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06) translateY(-1.5%); } }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 22rem; align-items: center; gap: 64px; }
  .hero-visual { width: 100%; margin: 90px 0 0; }
  .hero-visual .note { margin: -60px 0 0 -70px; }
}
@media (max-width: 959px) {
  .hero-visual { width: min(72%, 300px); margin-top: 72px; margin-bottom: 0; }
}
