/* Curb portfolio · Suzanne Sallaj
   Palette pulled from the Curb app icon. */

:root {
  --ink:      #16202f;
  --ink-soft: #3d4a5c;
  --muted:    #6f7a8a;
  --line:     #e2ded7;
  --paper:    #fbfaf8;
  --card:     #ffffff;
  --teal:     #2ba393;
  --teal-lt:  #4cc9b8;
  --teal-wash:#eef8f6;
  --navy:     #1b2a44;
  --amber:    #f6c14b;
  --amber-wash:#fdf6e4;
  --red:      #c0503c;

  --measure: 34rem;
  --wide:    68rem;
  --radius:  14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: var(--measure); margin-left: auto; margin-right: auto; }

section { padding: 76px 0; }
section + section { padding-top: 0; }

/* ---------- type ---------- */

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 1.95rem); }
h3 { font-size: 1.12rem; font-weight: 600; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(43,163,147,.3); }
a:hover { border-bottom-color: var(--teal); }

.eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 .9rem;
}
.eyebrow.muted { color: var(--muted); }

.lede { font-size: 1.18rem; color: var(--ink-soft); }
.small { font-size: .92rem; color: var(--muted); }

/* ---------- site header ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  background: transparent; border: 0; pointer-events: none;
}
.masthead .wordmark, .masthead nav {
  pointer-events: auto;
  background: rgba(251,250,248,.94); border-radius: 999px; padding: 6px 14px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

.masthead.wrap { max-width: none; padding: 16px max(28px, calc((100% - var(--wide)) / 2)); }
.wordmark {
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  color: var(--ink); border: 0;
}
.masthead nav { display: flex; gap: 18px; font-size: .95rem; }
.masthead nav a { color: var(--ink-soft); border: 0; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--teal); }

/* ---------- hero ---------- */

.hero { padding: 88px 0 64px; }
.hero .positioning {
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  line-height: 1.32; letter-spacing: -0.022em; font-weight: 500;
  max-width: 30ch; margin: 0 0 1.5rem;
}
.hero .positioning em { font-style: normal; color: var(--teal); }

/* ---------- statement band ---------- */

.band {
  background: var(--navy); color: #f4f7fa;
  padding: 84px 0; margin: 0;
}
.band .statement {
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  line-height: 1.3; letter-spacing: -0.022em; font-weight: 500;
  max-width: 22ch; margin: 0;
}
.band .statement .hl { color: var(--amber); }
.band .eyebrow { color: var(--teal-lt); }

/* ---------- work cards ---------- */

.work-list { display: grid; gap: 18px; margin-top: 34px; }

.work-card {
  display: grid; grid-template-columns: 62px 1fr; gap: 22px;
  align-items: start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px;
  color: inherit; text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
a.work-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.work-card img { width: 62px; height: 62px; display: block; border-radius: 14px; }
.work-card h3 { margin-bottom: .3rem; }
.work-card p { font-size: .97rem; color: var(--ink-soft); margin: 0; }
.work-card .tag {
  display: inline-block; margin-top: .8rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-wash);
  padding: 4px 10px; border-radius: 99px;
}
.work-card.placeholder { opacity: .62; }
.work-card.placeholder .tag { color: var(--muted); background: #f0eeea; }

/* ---------- case study body ---------- */

.module { padding-top: 66px; }
.module > .narrow > h2 { margin-bottom: 1.1rem; }
.module .kicker {
  font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .7rem;
}

.pull {
  border-left: 3px solid var(--amber);
  padding: 4px 0 4px 22px; margin: 34px 0;
  font-size: 1.2rem; line-height: 1.5; color: var(--ink);
}

.note {
  background: var(--amber-wash); border: 1px solid #f0e2bd;
  border-radius: var(--radius); padding: 22px 24px; margin: 30px 0;
  font-size: .98rem;
}
.note strong { color: var(--ink); }

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px; margin: 34px 0;
}
.stat { border-top: 2px solid var(--teal); padding-top: 12px; }
.stat b { display: block; font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; }
.stat span { font-size: .88rem; color: var(--muted); line-height: 1.45; display: block; }

/* ---------- notification cards ---------- */

.tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 18px; margin: 34px 0 18px;
}
.notif {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 16px 17px;
  box-shadow: 0 1px 2px rgba(22,32,47,.05), 0 8px 22px rgba(22,32,47,.05);
}
.notif .app {
  display: flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 9px;
}
.notif .app img { width: 17px; height: 17px; border-radius: 4px; }
.notif .app .when { margin-left: auto; font-weight: 400; color: var(--muted); }
.notif .head { font-weight: 600; font-size: .97rem; margin-bottom: 4px; }
.notif .head::before { content: "\26A0\FE0E"; margin-right: 6px; color: var(--ink-soft); }
.notif .line { font-size: .9rem; color: var(--ink-soft); margin-bottom: 2px; }
.notif .conf { font-size: .9rem; color: var(--ink-soft); }
.notif .conf.hedged { font-style: italic; }
.notif .fine { font-size: .9rem; font-style: italic; color: var(--muted); margin-top: 3px; }
.notif .ask { font-size: .88rem; font-style: italic; color: var(--teal); margin-top: 10px; }
.tier-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 9px;
}

/* ---------- interactive demo ---------- */

.demo { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 18px; }
.seg { display: inline-flex; background: #f1efeb; border-radius: 99px; padding: 4px; gap: 3px; margin-bottom: 22px; }
.seg button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 500; color: var(--ink-soft);
  padding: 7px 16px; border-radius: 99px; transition: background .15s ease, color .15s ease;
}
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(22,32,47,.1); }
.demo .readout { margin-top: 20px; font-size: .93rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 18px; }
.demo .readout b { color: var(--ink); }

/* ---------- expandable depth ---------- */

details {
  border-top: 1px solid var(--line);
  padding: 16px 0 2px; margin-top: 26px;
}
details summary {
  cursor: pointer; list-style: none;
  font-size: .93rem; font-weight: 500; color: var(--teal);
  display: flex; align-items: center; gap: 8px;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border: 1px solid rgba(43,163,147,.4);
  border-radius: 50%; font-size: .8rem; line-height: 1;
}
details[open] summary::before { content: "\2013"; }
details .body { padding-top: 16px; font-size: .97rem; color: var(--ink-soft); }
details .body table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 6px 0 14px; }
details .body th, details .body td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
details .body th { font-weight: 600; color: var(--ink); }

/* ---------- diagram ---------- */

.figure { margin: 38px 0; }
.figure svg,
.figure img { width: 100%; height: auto; display: block; }
.figure figcaption { font-size: .87rem; color: var(--muted); margin-top: 14px; line-height: 1.55; }

/* ---------- screens ---------- */

.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; margin: 34px 0; }
.screens figure { margin: 0; }
.screens img { width: 100%; border-radius: 16px; border: 1px solid var(--line); display: block; }
.screens figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* ---------- artifacts ---------- */

.artifacts { display: grid; gap: 2px; margin-top: 28px; border-top: 1px solid var(--line); }
.artifact { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline; }
.artifact h3 { font-size: 1rem; margin-bottom: .25rem; }
.artifact p { font-size: .92rem; color: var(--muted); margin: 0; }
.artifact .len { font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 40px 0 64px; }
footer p { font-size: .92rem; color: var(--muted); }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  section { padding: 54px 0; }
  .hero { padding: 60px 0 44px; }
  .band { padding: 62px 0; }
  .work-card { grid-template-columns: 48px 1fr; gap: 16px; padding: 22px; }
  .work-card img { width: 48px; height: 48px; }
  .artifact { grid-template-columns: 1fr; gap: 4px; }
}

/* screens: notification pair, then the detail view on its own */
.screens.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 46rem; }
.screen-single { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 30px; align-items: center; margin: 40px 0; }
.screen-single figure { margin: 0; display: contents; }
.screen-single img { width: 100%; border-radius: 16px; border: 1px solid var(--line); display: block; }
.screen-single figcaption { font-size: .97rem; color: var(--ink-soft); line-height: 1.6; max-width: 30rem; }
@media (max-width: 640px) {
  .screen-single { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 20px; }
  .masthead nav { gap: 15px; font-size: .9rem; }
}

/* linked artifacts open the source document in a new tab */
a.artifact{text-decoration:none;color:inherit;border:0;transition:border-color .15s ease}
a.artifact h3{transition:color .15s ease}
a.artifact:hover h3{color:var(--teal)}
a.artifact:hover .len{color:var(--teal)}
a.artifact:focus-visible{outline:2px solid var(--teal);outline-offset:4px;border-radius:4px}

/* build log: dated chapters on a rail */
.log { margin-top: 40px; }
.chapter { display: grid; grid-template-columns: 104px 1fr; gap: 30px; padding: 0 0 44px; position: relative; }
.chapter::before { content: ""; position: absolute; left: 111px; top: 22px; bottom: -6px; width: 1px; background: var(--line); }
.chapter:last-child::before { display: none; }
.chapter .when { font-size: .82rem; color: var(--muted); text-align: right; padding-top: 2px; position: relative; }
.chapter .when::after { content: ""; position: absolute; right: -24px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--teal); }
.chapter .body { max-width: 34rem; }
.chapter h3 { font-size: 1.16rem; margin-bottom: .6rem; }
.chapter p { font-size: 1rem; }
.chapter.pivot .when::after { background: var(--teal); }
.chapter.pivot h3 { color: var(--teal); }
@media (max-width: 700px) {
  .chapter { grid-template-columns: 1fr; gap: 6px; }
  .chapter::before { display: none; }
  .chapter .when { text-align: left; font-weight: 600; color: var(--teal); }
  .chapter .when::after { display: none; }
}

/* build log v2: parts, scenes, quotes */
.part { margin: 72px 0 34px; padding-top: 28px; border-top: 2px solid var(--ink); }
.part .eyebrow { margin-bottom: .5rem; }
.part h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.part p.intro { margin-top: .9rem; color: var(--ink-soft); max-width: 40rem; font-size: 1.06rem; }
.chapter .body { max-width: 36rem; }
.chapter .body p { font-size: 1.02rem; line-height: 1.68; }
.chapter .said {
  margin: 1.4rem 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--teal);
  font-size: 1.05rem; line-height: 1.55; color: var(--ink);
}
.chapter .said cite { display: block; font-style: normal; font-size: .82rem; color: var(--muted); margin-top: .45rem; }
.chapter .fig { margin: 1.6rem 0 .4rem; }
.chapter .fig img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 12px; }
.chapter .fig figcaption { font-size: .86rem; color: var(--muted); margin-top: .6rem; }
.chapter.pivot .body h3 { font-size: 1.5rem; }
.coda { max-width: 36rem; }

/* ---- case galleries (Pyx, Pinnacol, InspireME, Nala) ---- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 34px 0; }
.gallery.three { grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.gallery figcaption { font-size: .84rem; color: var(--muted); margin-top: 9px; line-height: 1.5; }
.gallery.pad img { padding: 14px; box-sizing: border-box; }
.figure img { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.figure.plain img { border: 0; background: transparent; }
.proto-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 34px 0; }
.proto { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 18px; }
.proto .eyebrow { margin-bottom: .7rem; }
.proto iframe { width: 100%; height: 720px; border: 0; border-radius: 10px; background: #f1efeb; }
.proto p { font-size: .9rem; color: var(--ink-soft); margin: 12px 0 0; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 30px 0 0; }
.roles div { border-top: 2px solid var(--teal); padding-top: 12px; }
.roles b { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.roles p { font-size: .92rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.facts { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .95rem; }
.facts td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts td:first-child { color: var(--ink-soft); width: 38%; padding-right: 18px; }
@media (max-width: 720px) {
  .gallery, .gallery.three, .proto-row, .roles { grid-template-columns: 1fr; }
  .proto iframe { height: 620px; }
}

.module .narrow h3 { margin-bottom: .8rem; font-size: 1.3rem; }

/* ---- consistent image frames, reels, results ---- */
.frame { margin: 30px 0 0; }
.frame .box {
  aspect-ratio: 16 / 10; width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; position: relative; display: block; cursor: zoom-in;
}
.frame .box img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: contain; display: block; padding: 12px; box-sizing: border-box;
}
/* a diagram or portrait shot: no letterbox, sized and aligned to the text column */
.frame.fit { max-width: 46rem; margin-left: 0; }
.frame.fit .box { aspect-ratio: auto; padding: 0; }
.frame.fit .box img { position: static; width: 100%; height: auto; padding: 0; }
.frame .box.scroll { overflow-y: auto; cursor: default; }
.frame .box.scroll img { position: static; height: auto; padding: 0; }
.frame .vwrap { position: relative; }
.frame .vbar {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  border-radius: 999px; background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(226,222,215,.9);
  opacity: 0; transition: opacity .18s ease; pointer-events: none;
}
.frame .vwrap:hover .vbar,
.frame .vwrap:focus-within .vbar { opacity: 1; pointer-events: auto; }
.frame .vbar .vplay {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex: 0 0 auto; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink);
}
.frame .vbar .vplay:hover { color: var(--teal); border-color: var(--teal); }
.frame .vbar .vtrack { flex: 1; height: 4px; border-radius: 2px; background: rgba(22,32,47,.18); cursor: pointer; position: relative; }
.frame .vbar .vtrack i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--teal); }
.frame .vbar .vtime { font-size: .76rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.frame video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.frame figcaption { font-size: .87rem; color: var(--muted); margin-top: 12px; line-height: 1.55; }
.frame figcaption b { color: var(--ink-soft); font-weight: 600; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 0; }
.trio .frame { margin: 0; }
.trio .frame .box { aspect-ratio: 4 / 5; }
.trio .frame .box img { padding: 8px; }

.reel { position: relative; margin: 30px 0 0; }
.reel .track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.reel .track::-webkit-scrollbar { display: none; }
.reel .track > .frame { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.reel .bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.reel .bar button {
  font: inherit; font-size: .85rem; color: var(--ink-soft); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.reel .bar button:hover { border-color: var(--teal); color: var(--teal); }
.reel .bar .count { font-size: .82rem; color: var(--muted); margin-left: auto; letter-spacing: .04em; }

.result { background: var(--navy); color: #f4f7fa; padding: 64px 0 72px; margin: 60px 0 0; }
.result .eyebrow { color: var(--teal-lt); }
.result .lead { font-size: 1.25rem; line-height: 1.45; max-width: 30ch; margin: 0 0 6px; font-weight: 500; letter-spacing: -0.01em; }
.result .grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: center; }
.result .phone { background: #fff; border-radius: 22px; padding: 0; box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden; max-width: 360px; }
.result .phone { position: relative; }
.result .phone .loading-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6f7a8a; font-size: .92rem; pointer-events: none; }
.result .phone.loaded .loading-label { display: none; }
.result .phone iframe { width: 100%; height: auto; aspect-ratio: 9 / 16; border: 0; border-radius: 22px; display: block; background: #fff; }
.result .look { color: #c5d0de; font-size: .95rem; line-height: 1.6; margin-top: 18px; }
.result .look b { color: #fff; font-weight: 600; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(16,22,34,.92); }
dialog.lightbox img { max-width: 96vw; max-height: 92vh; display: block; border-radius: 8px; background: #fff; cursor: zoom-out; }

@media (max-width: 860px) {
  .result .grid { grid-template-columns: 1fr; }
  .result .phone { max-width: 420px; }
}
@media (max-width: 720px) {
  .trio { grid-template-columns: 1fr; }
  .trio .frame .box { aspect-ratio: 16 / 10; }
  .result .phone iframe { height: auto; }
}

.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 30px 0 0; }
.quotes figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.quotes img { width: 100%; height: auto; display: block; }
@media (max-width: 720px) { .quotes { grid-template-columns: 1fr; } }

.result .shot { background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.result .shot img { width: 100%; height: auto; display: block; border-radius: 8px; }
/* a tall screenshot inside a result band scrolls in place */
.result .shot.scroll { position: relative; max-height: 560px; overflow-y: auto; padding: 8px; }
.result .shot.scroll img { max-height: none; object-fit: fill; }
.result .shot .popout {
  position: sticky; top: 6px; float: right; z-index: 2; margin: 0 0 -34px 0;
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 8px; background: rgba(255,255,255,.94); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(22,32,47,.14);
}
.result .shot .popout:hover { color: var(--teal); border-color: var(--teal); }
.result .shot.scroll img { border-radius: 8px; }

.result .grid.wide { grid-template-columns: minmax(0, 1fr) 360px; }

/* ---- resume landing page ---- */
.resume { --side-w: 280px; display: grid; grid-template-columns: var(--side-w) 18px minmax(0, 1fr); gap: 0 28px; padding-top: 56px; padding-bottom: 8px; align-items: start; }
.resume .vgrip {
  position: sticky; top: 92px; height: calc(100vh - 120px); width: 18px; cursor: col-resize;
  display: flex; align-items: center; justify-content: center;
}
.resume .vgrip span { display: block; width: 4px; height: 46px; border-radius: 2px; background: var(--line); transition: background .15s, height .15s; }
.resume .vgrip:hover span, .resume .vgrip:focus-visible span, body.resizing .resume .vgrip span { background: var(--teal); height: 72px; }
.resume .vgrip:focus-visible { outline: none; }
body.resizing { cursor: col-resize; user-select: none; }
.resume .side {
  position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow-y: auto;
  padding-right: 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}

.resume .side::-webkit-scrollbar { width: 6px; }
.resume .side::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.resume .side h1 { font-size: 1.9rem; letter-spacing: -0.025em; margin-bottom: .5rem; }
.resume .side .title { color: var(--ink-soft); line-height: 1.45; margin: 0 0 1.2rem; font-size: .98rem; }
.resume .side h2 { font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--teal); margin: 1.8rem 0 .6rem; }
.resume .side ul { list-style: none; margin: 0; padding: 0; }
.resume .side li { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; padding: 4px 0; border-bottom: 1px solid var(--line); }
.resume .side .contact li { border: 0; padding: 2px 0; }
.resume .side .contact a { font-size: .92rem; }
.rs { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.rs:last-child { border-bottom: 0; }
.rs > h2 { font-size: 1.45rem; margin-bottom: 1rem; }
.rs h3.sub { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 .2rem; }
.job { padding: 26px 0 8px; }
.job + .job { border-top: 1px dashed var(--line); }
.job-head { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; flex-wrap: wrap; }
.job-head h3 { font-size: 1.15rem; }
.job-head .org { color: var(--ink-soft); margin: .25rem 0 0; font-size: .95rem; }
.job-head .dates { color: var(--muted); font-size: .88rem; letter-spacing: .03em; margin: 0; white-space: nowrap; }
.job .summary { margin-top: .9rem; color: var(--ink); }
.bullets { margin: .8rem 0 0; padding-left: 1.1rem; }
.bullets li { font-size: .95rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: .5rem; }
.bullets li b { color: var(--ink); font-weight: 600; }
.job .work-card.compact { margin-top: 22px; }
.rs.ai { background: var(--teal-wash); border: 1px solid #cfe9e4; border-radius: var(--radius); padding: 30px 30px 26px; }
.rs.ai .eyebrow { margin-bottom: .5rem; }
.rs.ai > p { color: var(--ink-soft); }
.rs.ai .work-list { margin-top: 22px; }
.rs .facts td:last-child { color: var(--muted); text-align: right; white-space: nowrap; }
@media (max-width: 900px) {
  .resume { grid-template-columns: 1fr; gap: 28px; }
  .resume .side { position: static; max-height: none; }
  .resume .vgrip { display: none; }
  .rs.ai { padding: 22px 20px; }
}

/* ---- certificate rows ---- */
.certs { display: grid; gap: 10px; margin: .6rem 0 .4rem; }
.cert {
  display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 12px 12px;
}
.cert .thumb {
  display: block; width: 124px; height: 70px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
}
.cert .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; cursor: zoom-in; }
.cert .thumb.empty { background: repeating-linear-gradient(135deg, #f4f2ee 0 6px, #faf8f5 6px 12px); }
.cert b { display: block; font-weight: 600; font-size: .98rem; }
.cert span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.cert .when { color: var(--muted); font-size: .86rem; white-space: nowrap; letter-spacing: .03em; }
@media (max-width: 560px) { .cert { grid-template-columns: 96px minmax(0,1fr); } .cert .thumb { width: 96px; height: 54px; } .cert .when { grid-column: 2; } }

.rs[id] { scroll-margin-top: 90px; }
html { scroll-behavior: smooth; }

/* ---- home masthead without wordmark, competencies grid, skill chips ---- */
.masthead.home { justify-content: flex-end; }
.resume .side ul.comp { display: grid; grid-template-columns: 1fr; gap: 5px 14px; margin: .2rem 0 0; }
@media (min-width: 901px) { .resume[style*='--side-w: 3'] .side ul.comp, .resume[style*='--side-w: 4'] .side ul.comp, .resume[style*='--side-w: 5'] .side ul.comp { grid-template-columns: 1fr 1fr; } }
.resume .side ul.comp li { border: 0; padding: 0 0 0 12px; position: relative; font-size: .86rem; line-height: 1.4; }
.resume .side ul.comp li::before { content: ""; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.resume .side .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .2rem; }
.resume .side .chips span {
  font-size: .8rem; line-height: 1; padding: 6px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft); white-space: nowrap;
}
.quotes.single { grid-template-columns: 1fr; max-width: 820px; }

.rec { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px 18px; }
.rec p { font-size: .97rem; line-height: 1.6; color: var(--ink); margin: 0 0 .8rem; }
.rec footer { font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; line-height: 1.5; }
.rec footer b { color: var(--ink); font-weight: 600; }

.cert .thumb.logo { display: block; position: relative; background: #fff; }
.cert .thumb.logo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center center; padding: 8px 10px; box-sizing: border-box; cursor: default; }

.cert.noimg { grid-template-columns: minmax(0, 1fr) auto; padding-left: 16px; }

/* ---- tools list (Pinnacol) ---- */
.tools { display: grid; gap: 0; margin-top: .6rem; max-width: 900px; }
.tool { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 22px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tool:last-child { border-bottom: 0; }
.tool .logo, .tool .shot { display: block; position: relative; width: 124px; height: 70px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tool .logo img, .tool .shot img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.tool .logo img { object-fit: contain; object-position: center; padding: 12px 16px; box-sizing: border-box; }
.tool .shot img { object-fit: cover; object-position: left top; cursor: zoom-in; }
.tool b { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .3rem; }
.tool p { margin: 0; font-size: .93rem; color: var(--ink-soft); line-height: 1.55; }
h3.sub { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 .2rem; }
@media (max-width: 560px) { .tool { grid-template-columns: 1fr; gap: 10px; } }

/* ---- collapsible highlights ---- */
.highlights { max-width: 900px; margin-top: 34px; }
.highlights .kicker { font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
details.hl { border-top: 1px solid var(--line); }
details.hl:last-of-type { border-bottom: 1px solid var(--line); }
.hl summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; position: relative; }
.hl summary::-webkit-details-marker { display: none; }
.hl summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.hl[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.hl summary:hover { color: var(--teal); }
.hl p { margin: 0 0 18px; font-size: .95rem; color: var(--ink-soft); line-height: 1.6; max-width: 62ch; }

/* ---- the deliverables flipbook (Pyx) ---- */
.flipbook { --pw: 470px; --ph: 640px; position: relative; margin: 34px auto 0; width: calc(var(--pw) * 2); max-width: 100%; height: var(--ph); perspective: 2600px; transition: transform .8s cubic-bezier(.4,0,.2,1); }
.flipbook .stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.flipbook .stage::before {  /* the book block: closed spine shadow and stacked page edges */
  content: ""; position: absolute; left: 50%; top: 6px; width: var(--pw); height: calc(100% - 6px); border-radius: 0 14px 14px 0;
  background: repeating-linear-gradient(90deg, #f3f1ed 0 2px, #e2ded7 2px 3px); opacity: 0; transition: opacity .4s;
}
.flipbook.open .stage::before { opacity: 1; }
.flipbook .sheet {
  position: absolute; left: 50%; top: 0; width: var(--pw); height: var(--ph);
  transform-origin: left center; transform-style: preserve-3d;
  transition: transform .85s cubic-bezier(.4,0,.2,1);
}
.flipbook .sheet.flipped { transform: rotateY(-180deg); }
.flipbook .face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(22,32,47,.12);
}
.flipbook .face.front { border-radius: 0 14px 14px 0; }
.flipbook .face.back { transform: rotateY(180deg); border-radius: 14px 0 0 14px; }
.flipbook .face.front::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 26px; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.04) 50%, rgba(255,255,255,0)); pointer-events: none; z-index: 2; }
.flipbook .face.back::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 26px; background: linear-gradient(270deg, rgba(0,0,0,.18), rgba(0,0,0,.04) 50%, rgba(255,255,255,0)); pointer-events: none; z-index: 2; }
.flipbook .inner { position: absolute; inset: 0; overflow-y: auto; padding: 40px 34px 36px 42px; scrollbar-width: thin; }
.flipbook .face.back .inner { padding: 40px 42px 36px 34px; }
.flipbook .folio { position: absolute; top: 14px; right: 18px; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); z-index: 3; }
.flipbook .face.back .folio { right: auto; left: 18px; }
.flipbook .inner .narrow { max-width: none; margin: 0; }
.flipbook .inner .kicker { margin-top: 4px; }
.flipbook .inner h2 { font-size: 1.45rem; margin-bottom: .8rem; }
.flipbook .inner h3 { font-size: 1.25rem; margin-bottom: .8rem; }
.flipbook .inner p { font-size: .93rem; line-height: 1.6; }
.flipbook .inner .narrow + .narrow { margin-top: 26px; }
.flipbook .inner .frame { margin-top: 22px; }
.flipbook .inner .frame .box { aspect-ratio: 4 / 3; }
/* covers */
.flipbook .cover-face { background: var(--navy); color: #f4f7fa; border-color: var(--navy); }
.flipbook .cover-face .inner { display: flex; flex-direction: column; justify-content: center; }
.flipbook .cover-face .eyebrow { color: var(--teal-lt); }
.flipbook .cover-face h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); letter-spacing: -0.025em; margin: 0 0 1rem; max-width: 12ch; }
.flipbook .cover-face .blurb { color: #c5d0de; font-size: .98rem; line-height: 1.6; margin: 0 0 1.4rem; }
.flipbook .cover-face .hint { color: #8fa0b8; font-size: .85rem; margin: 1rem 0 0; }
.flipbook .cover-face::before, .flipbook .cover-face::after { display: none; }
.flipbook .cover-face.front { box-shadow: inset 8px 0 14px -8px rgba(0,0,0,.6), 0 24px 50px rgba(22,32,47,.35); }
.flipbook .cover-face.back-cover { box-shadow: inset -8px 0 14px -8px rgba(0,0,0,.6), 0 24px 50px rgba(22,32,47,.35); }
/* results pages */
.flipbook .face.dark { background: var(--navy); color: #f4f7fa; border-color: var(--navy); }
.flipbook .face.dark .folio { color: #8fa0b8; }
.flipbook .face.dark .grid { display: block; }
.flipbook .face.dark .eyebrow { color: var(--teal-lt); }
.flipbook .face.dark .lead { font-size: 1.1rem; line-height: 1.45; margin: 0 0 6px; font-weight: 500; }
.flipbook .face.dark .look { color: #c5d0de; font-size: .9rem; line-height: 1.6; margin: 12px 0 18px; }
.flipbook .face.dark .look b { color: #fff; }
.flipbook .face.dark .phone { background: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.flipbook .face.dark .phone iframe { width: 100%; height: 620px; border: 0; border-radius: 12px; display: block; background: #f1efeb; }
/* toc */
.flipbook .toc { margin: .6rem 0 1.2rem; padding-left: 1.3rem; }
.flipbook .toc li { margin-bottom: .55rem; font-size: .95rem; line-height: 1.4; }
.flipbook .toc li b { font-weight: 600; }
.flipbook .toc li span { display: block; font-size: .82rem; color: var(--muted); }
/* buttons */
.flipbook button.open, .flipbook button.ghost, .book-nav button { font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; border-radius: 999px; padding: 11px 20px; }
.flipbook button.open { background: var(--amber); color: #1b2a44; border: 0; align-self: flex-start; }
.flipbook button.open:hover { filter: brightness(1.05); }
.flipbook button.ghost { background: transparent; color: #f4f7fa; border: 1px solid rgba(255,255,255,.35); align-self: flex-start; margin-top: 10px; }
/* closed states slide so the single visible cover sits centered */
.flipbook.closed { transform: translateX(calc(var(--pw) * -0.5)); }
.flipbook.closed-back { transform: translateX(calc(var(--pw) * 0.5)); }
/* arrows */
.flipbook .arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 60; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.96); color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer;
  box-shadow: 0 8px 20px rgba(22,32,47,.15); display: grid; place-items: center; padding: 0 0 4px;
}
.flipbook .arrow:hover { border-color: var(--teal); color: var(--teal); }
.flipbook .arrow.left { left: -26px; } .flipbook .arrow.right { right: -26px; }
.flipbook .arrow[hidden] { display: none; }
.book-nav { display: flex; align-items: center; gap: 10px; margin: 16px auto 0; width: calc(470px * 2); max-width: 100%; }
.book-nav button { background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.book-nav button:hover { border-color: var(--teal); color: var(--teal); }
.book-nav .pos { font-size: .84rem; color: var(--muted); letter-spacing: .03em; }
.book-nav .close { margin-left: auto; }
@media (max-width: 1040px) { .flipbook { --pw: min(470px, 46vw); --ph: 600px; } .flipbook .arrow.left { left: 0; } .flipbook .arrow.right { right: 0; } }
@media (max-width: 720px) {
  .flipbook { --pw: 100%; --ph: auto; width: 100%; height: auto; perspective: none; transform: none !important; }
  .flipbook .stage { position: static; } .flipbook .stage::before { display: none; }
  .flipbook .sheet { position: static; width: auto; height: auto; transform: none !important; }
  .flipbook .face { position: static; transform: none; border-radius: 12px; margin-bottom: 16px; backface-visibility: visible; }
  .flipbook .inner { position: static; padding: 26px 20px; }
  .flipbook .face::before { display: none; }
  .flipbook .arrow { display: none !important; }
}

/* ---- vintage treatment for the flipbook ---- */
.flipbook { --paper: #f3e9d2; --paper-deep: #e6d7b5; --ink-old: #2b2118; --ink-old-soft: #4a3b2c; --leather: #4b2a1e; --leather-deep: #2e1710; --gilt: #c9a24a; }
.flipbook .face { font-family: "EB Garamond", Georgia, "Times New Roman", serif; color: var(--ink-old); border-color: #cbb891; }
.flipbook .face.paper {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%),
    radial-gradient(ellipse at 0% 100%, rgba(120,80,30,.16), rgba(120,80,30,0) 55%),
    radial-gradient(ellipse at 100% 0%, rgba(120,80,30,.14), rgba(120,80,30,0) 55%),
    linear-gradient(180deg, var(--paper), var(--paper-deep));
  box-shadow: inset 0 0 60px rgba(90,60,20,.18), 0 18px 40px rgba(40,25,10,.22);
}
.flipbook .face.paper::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.35  0 0 0 0 0.2  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.flipbook .face.paper.front::before { background: linear-gradient(90deg, rgba(60,35,10,.35), rgba(60,35,10,.08) 55%, rgba(255,255,255,0)); }
.flipbook .face.paper.back::before { background: linear-gradient(270deg, rgba(60,35,10,.35), rgba(60,35,10,.08) 55%, rgba(255,255,255,0)); }
.flipbook .inner { position: absolute; z-index: 1; }
.flipbook .inner h2, .flipbook .inner h3 { font-family: inherit; font-weight: 500; letter-spacing: 0; color: var(--ink-old); }
.flipbook .inner h2 { font-size: 1.75rem; }
.flipbook .inner h3 { font-size: 1.4rem; }
.flipbook .inner p { font-size: 1.02rem; line-height: 1.55; color: var(--ink-old-soft); }
.flipbook .inner .kicker, .flipbook .folio, .flipbook .inner .eyebrow { font-family: inherit; font-variant: small-caps; letter-spacing: .14em; text-transform: lowercase; font-size: .95rem; color: #8a6a3a; }
.flipbook .inner .frame .box { border-color: #cbb891; background: #fbf6ea; box-shadow: 0 2px 0 rgba(90,60,20,.12); }
.flipbook .inner .frame .vwrap { position: relative; }
.frame .vwrap .vsound {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(22,32,47,.18);
}
.frame .vwrap .vsound:hover { color: var(--teal); border-color: var(--teal); }
.frame video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.frame figcaption { color: #6b5638; font-style: italic; }
.flipbook .toc li span, .flipbook .inner .small { color: #8a6a3a; }
/* page-edge block in warm paper tones */
.flipbook .stage::before { background: repeating-linear-gradient(90deg, #efe3c6 0 2px, #cdb98f 2px 3px); box-shadow: 0 18px 40px rgba(40,25,10,.22); }
/* leather covers with gilt lettering */
.flipbook .cover-face {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.10), rgba(255,255,255,0) 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0,0,0,.35), rgba(0,0,0,0) 55%),
    linear-gradient(160deg, var(--leather), var(--leather-deep));
  border-color: var(--leather-deep); color: #f1e4c4;
}
.flipbook .cover-face::after {
  content: ""; position: absolute; inset: 14px; border: 1.5px solid rgba(201,162,74,.55); border-radius: 0 8px 8px 0; pointer-events: none;
  box-shadow: inset 0 0 0 5px rgba(201,162,74,.12);
}
.flipbook .cover-face.back-cover::after { border-radius: 8px 0 0 8px; }
.flipbook .cover-face .eyebrow { color: var(--gilt); }
.flipbook .cover-face h2 { color: var(--gilt); font-weight: 500; text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.flipbook .cover-face .blurb { color: #e3d3b0; }
.flipbook .cover-face .hint { color: #b79b6c; font-style: italic; }
.flipbook button.open { background: var(--gilt); color: #2e1710; }
.flipbook button.ghost { color: #f1e4c4; border-color: rgba(201,162,74,.6); }
/* results pages: dark sepia instead of navy */
.flipbook .face.dark { background: linear-gradient(160deg, #3a2a1e, #241811); border-color: #241811; color: #f1e4c4; box-shadow: inset 0 0 60px rgba(0,0,0,.35), 0 18px 40px rgba(40,25,10,.22); }
.flipbook .face.dark .folio, .flipbook .face.dark .eyebrow { color: var(--gilt); }
.flipbook .face.dark .lead { color: #f1e4c4; }
.flipbook .face.dark .look { color: #cdbb98; }
.flipbook .face.dark .look b { color: #f1e4c4; }
.flipbook .face.dark .phone { background: #f3e9d2; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
/* arrows in the same palette */
.flipbook .arrow { background: #f3e9d2; border-color: #cbb891; color: #4b2a1e; font-family: Georgia, serif; }
.flipbook .arrow:hover { border-color: var(--gilt); color: var(--gilt); }

/* ---- flipbook: swap faces at the midpoint of the turn so the hidden side never bleeds through ---- */
.flipbook .face { transition: visibility 0s linear .42s; }
.flipbook .sheet.flipped .face.front { visibility: hidden; }
.flipbook .sheet:not(.flipped) .face.back { visibility: hidden; }
.flipbook .face .inner { transform: translateZ(0); }
.flipbook .folio { z-index: 4; }
@media (max-width: 720px) { .flipbook .face { visibility: visible !important; } }

/* ---- flipbook: centered heading, readable palette, side button, page fans ---- */
#deliverables .book-head { margin: 0 auto; text-align: center; }
#deliverables .book-head .kicker { text-align: center; }
.flipbook { --paper: #f6eed8; --paper-deep: #ecdfc0; --ink-old: #1f170f; --ink-old-soft: #33281c; }
.flipbook .inner p { color: var(--ink-old-soft); font-size: 1.06rem; line-height: 1.6; font-weight: 500; }
.flipbook .inner h2, .flipbook .inner h3 { font-weight: 600; }
.flipbook .inner .kicker, .flipbook .folio, .flipbook .inner .eyebrow { color: #6d4f22; font-weight: 600; }
.flipbook .face.paper::after { opacity: .16; }
.flipbook .face.paper { box-shadow: inset 0 0 40px rgba(90,60,20,.10), 0 18px 40px rgba(40,25,10,.22); }
.flipbook .toc li { color: var(--ink-old); }
.flipbook .toc li span, .flipbook .inner .small { color: #6d4f22; }
.flipbook .inner .frame .vwrap { position: relative; }
.frame .vwrap .vsound {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(22,32,47,.18);
}
.frame .vwrap .vsound:hover { color: var(--teal); border-color: var(--teal); }
.frame video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.frame figcaption { color: #4a3620; }
.flipbook .face.dark { color: #f8f0dc; }
.flipbook .face.dark .lead { color: #fff7e6; font-weight: 600; }
.flipbook .face.dark .look { color: #e6d7b8; font-weight: 500; }
.flipbook .cover-face .blurb { color: #f1e4c4; font-size: 1.05rem; font-weight: 500; }
.flipbook .cover-face .hint { color: #d3bd8f; }
/* open button beside the closed book */
.flipbook .open-aside {
  position: absolute; top: 50%; left: calc(50% + var(--pw) + 28px); transform: translateY(-50%); z-index: 70;
  font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  background: var(--gilt); color: #2e1710; border: 0; border-radius: 999px; padding: 14px 22px;
  box-shadow: 0 10px 24px rgba(40,25,10,.25); display: none; align-items: center; gap: 8px;
}
.flipbook .open-aside span { font-size: 1.4rem; line-height: 1; }
.flipbook .open-aside:hover { filter: brightness(1.06); }
.flipbook.closed .open-aside { display: inline-flex; }
/* page fans: layered edges peeking from behind both pages when open */
.flipbook .fan { position: absolute; top: 0; height: 100%; width: var(--pw); pointer-events: none; opacity: 0; transition: opacity .5s .3s; }
.flipbook .fan-left { right: 50%; }
.flipbook .fan-right { left: 50%; }
.flipbook .fan i {
  position: absolute; top: 0; bottom: 0; width: 100%; background: linear-gradient(180deg, #f1e6cb, #dccb9f);
  border: 1px solid #c9b688; box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset;
}
.flipbook .fan-right i { border-radius: 0 12px 12px 0; transform-origin: left center; left: 0; }
.flipbook .fan-left i { border-radius: 12px 0 0 12px; transform-origin: right center; right: 0; }
.flipbook .fan i:nth-child(1) { transform: translate(0, 4px) rotate(0.35deg) scaleY(.995); }
.flipbook .fan i:nth-child(2) { transform: translate(0, 8px) rotate(0.8deg) scaleY(.99); }
.flipbook .fan i:nth-child(3) { transform: translate(0, 12px) rotate(1.3deg) scaleY(.985); }
.flipbook .fan i:nth-child(4) { transform: translate(0, 16px) rotate(1.9deg) scaleY(.98); }
.flipbook .fan i:nth-child(5) { transform: translate(0, 20px) rotate(2.6deg) scaleY(.975); }
.flipbook .fan-left i:nth-child(1) { transform: translate(0, 4px) rotate(-0.35deg) scaleY(.995); }
.flipbook .fan-left i:nth-child(2) { transform: translate(0, 8px) rotate(-0.8deg) scaleY(.99); }
.flipbook .fan-left i:nth-child(3) { transform: translate(0, 12px) rotate(-1.3deg) scaleY(.985); }
.flipbook .fan-left i:nth-child(4) { transform: translate(0, 16px) rotate(-1.9deg) scaleY(.98); }
.flipbook .fan-left i:nth-child(5) { transform: translate(0, 20px) rotate(-2.6deg) scaleY(.975); }
.flipbook.open .fan { opacity: 1; }
.flipbook .stage::before { display: none; }
.flipbook .sheet { z-index: 10; }
/* a soft shadow that sweeps across the turning page */
.flipbook .face::after { transition: opacity .4s; }
.flipbook .sheet { transition: transform .9s cubic-bezier(.45,.05,.2,1); }
@media (max-width: 1040px) { .flipbook .open-aside { left: auto; right: -8px; top: auto; bottom: -70px; transform: none; } }
@media (max-width: 720px) { .flipbook .open-aside, .flipbook .fan { display: none !important; } }
.flipbook .cover-face .eyebrow, .flipbook .cover-face .inner .eyebrow, .flipbook .face.dark .inner .eyebrow, .flipbook .face.dark .folio { color: var(--gilt); }

/* ---- flipbook v3: static pages plus a single turning leaf (no persistent 3D stack) ---- */
.flipbook.js .sheet { position: static; transform: none !important; transition: none; z-index: auto; }
.flipbook.js .face { display: none; position: absolute; top: 0; width: var(--pw); height: var(--ph); transform: none; visibility: visible; transition: none; backface-visibility: visible; }
.flipbook.js .face.show-right { display: block; left: 50%; z-index: 20; }
.flipbook.js .face.show-left { display: block; right: 50%; z-index: 20; }
.flipbook.js .face.turning-out { visibility: hidden; }
.flipbook.js .face.back.show-left { transform: none; }
.flipbook .turn { position: absolute; top: 0; width: var(--pw); height: var(--ph); z-index: 40; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.45,.05,.2,1); }
.flipbook .turn.to-left { left: 50%; transform-origin: left center; }
.flipbook .turn.to-right { right: 50%; transform-origin: right center; }
.flipbook .turn.to-left.go { transform: rotateY(-180deg); }
.flipbook .turn.to-right.go { transform: rotateY(180deg); }
.flipbook .turn .face { display: block; position: absolute; inset: 0; width: 100%; height: 100%; transform: none; }
.flipbook .turn .turn-b { display: none; }
.flipbook .turn.half .turn-a { display: none; }
.flipbook .turn.half .turn-b { display: block; }
/* the incoming side is seen mirrored during the second half, so pre-flip it */
.flipbook .turn.to-left .turn-b, .flipbook .turn.to-right .turn-b { transform: rotateY(180deg); }
.flipbook .turn .iframe-ph { width: 100%; height: 620px; border-radius: 12px; background: #e9dfc6; }
/* rounded corners follow the side the face sits on */
.flipbook.js .face.show-right, .flipbook .turn.to-left .turn-a, .flipbook .turn.to-right .turn-b { border-radius: 0 14px 14px 0; }
.flipbook.js .face.show-left, .flipbook .turn.to-left .turn-b, .flipbook .turn.to-right .turn-a { border-radius: 14px 0 0 14px; }
/* a moving shadow on the turning leaf */
.flipbook .turn::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.28)); opacity: 0; transition: opacity .45s; border-radius: inherit; }
.flipbook .turn.go::after { opacity: 1; }
.flipbook .turn.half::after { opacity: 0; }
/* jump fade for open and close */
.flipbook .stage { transition: opacity .3s; }
.flipbook.jump .stage { opacity: 0; }
@media (max-width: 720px) {
  .flipbook.js .face { display: block !important; position: static; width: auto; height: auto; }
  .flipbook .turn { display: none !important; }
}
.flipbook.js .sheet { height: 0; overflow: visible; }
.flipbook.js .face { position: absolute !important; }
.flipbook.js .sheet { position: absolute !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; transform: none !important; transform-style: flat; pointer-events: none; }
.flipbook.js .face { pointer-events: auto; }
.flipbook.js .face.show-left, .flipbook.js .face.show-right { visibility: visible !important; }
.flipbook.js .face.turning-out { visibility: hidden !important; }

/* ---- book title, prototype pages, nav spacing ---- */
#deliverables .book-head .book-title { font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: clamp(2.2rem, 4.5vw, 3.2rem); letter-spacing: -0.01em; }
#deliverables .book-head p { color: var(--muted); }
.flipbook .face.proto .inner { display: flex; flex-direction: column; }
.flipbook .face.proto .proto-wrap { flex: 1; display: flex; align-items: flex-start; justify-content: center; margin-top: 10px; }
.flipbook .face.proto .phone { width: 100%; max-width: 330px; }
.flipbook .face.proto .phone iframe { height: 520px; }
.flipbook .face.dark .lead { font-size: 1.15rem; }
.book-nav { margin-top: 48px; position: relative; z-index: 5; }
@media (max-width: 1040px) { .book-nav { margin-top: 96px; } }

/* ---- flipbook: corporate palette (supersedes the vintage treatment) ---- */
.flipbook { --paper: #ffffff; --paper-deep: #f5f3ee; --ink-old: var(--ink); --ink-old-soft: var(--ink-soft); --leather: #22345a; --leather-deep: #14203a; --gilt: var(--amber); }
.flipbook .face { font-family: inherit; color: var(--ink); border-color: var(--line); }
.flipbook .face.paper { background: linear-gradient(180deg, #ffffff, #f7f5f0); box-shadow: 0 18px 40px rgba(22,32,47,.12); }
.flipbook .face.paper::after { display: none; }
.flipbook .face.paper.front::before { background: linear-gradient(90deg, rgba(22,32,47,.16), rgba(22,32,47,.03) 55%, rgba(255,255,255,0)); }
.flipbook .face.paper.back::before { background: linear-gradient(270deg, rgba(22,32,47,.16), rgba(22,32,47,.03) 55%, rgba(255,255,255,0)); }
.flipbook .inner h2, .flipbook .inner h3 { font-family: inherit; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.flipbook .inner h2 { font-size: 1.5rem; }
.flipbook .inner h3 { font-size: 1.25rem; }
.flipbook .inner p { font-family: inherit; font-size: .97rem; line-height: 1.6; font-weight: 400; color: var(--ink-soft); }
.flipbook .inner .kicker, .flipbook .folio, .flipbook .inner .eyebrow { font-family: inherit; font-variant: normal; text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 600; color: var(--teal); }
.flipbook .folio { color: var(--muted); }
.flipbook .inner .frame .box { border-color: var(--line); background: #fff; box-shadow: none; }
.flipbook .inner .frame .vwrap { position: relative; }
.frame .vwrap .vsound {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(22,32,47,.18);
}
.frame .vwrap .vsound:hover { color: var(--teal); border-color: var(--teal); }
.frame video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.frame figcaption { color: var(--muted); font-style: normal; }
.flipbook .toc li { color: var(--ink); }
.flipbook .toc li span, .flipbook .inner .small { color: var(--muted); }
.flipbook .inner .preface { font-size: .95rem; color: var(--ink-soft); border-left: 3px solid var(--amber); padding-left: 14px; margin: 0 0 1.4rem; }
.flipbook .stage::before { display: none; }
.flipbook .fan i { background: linear-gradient(180deg, #f6f4ef, #e6e2da); border-color: var(--line); box-shadow: none; }
/* covers */
.flipbook .cover-face { background: radial-gradient(ellipse at 30% 15%, rgba(255,255,255,.08), rgba(255,255,255,0) 50%), linear-gradient(160deg, #22345a, #14203a); border-color: #14203a; color: #f4f7fa; }
.flipbook .cover-face::after { inset: 16px; border: 1px solid rgba(76,201,184,.45); box-shadow: inset 0 0 0 4px rgba(76,201,184,.08); }
.flipbook .cover-face .inner { padding: 40px 36px; }
.flipbook .cover-art { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.flipbook .cover-art .eyebrow { color: var(--teal-lt); margin: 0; }
.flipbook .cover-art h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); line-height: 1.08; letter-spacing: -0.025em; color: #ffffff; margin: 0; max-width: none; font-weight: 600; }
.flipbook .cover-art .rule { display: block; width: 56px; height: 3px; background: var(--amber); border-radius: 2px; margin: 6px 0 2px; }
.flipbook .cover-art .sub { color: #c5d0de; font-size: .98rem; max-width: 26ch; margin: 0; }
.flipbook .cover-art .author { position: absolute; bottom: 44px; left: 0; right: 0; text-align: center; color: #e6edf5; font-size: .95rem; letter-spacing: .04em; margin: 0; }
.flipbook .cover-art button.open { align-self: center; margin-top: 10px; }
.flipbook .cover-art button.ghost { align-self: center; margin-top: 0; }
.flipbook .cover-face.front { box-shadow: inset 8px 0 14px -8px rgba(0,0,0,.55), 0 24px 50px rgba(22,32,47,.35); }
.flipbook button.open { background: var(--amber); color: #1b2a44; }
.flipbook button.ghost { color: #f4f7fa; border-color: rgba(255,255,255,.35); }
.flipbook .open-aside { background: var(--amber); color: #1b2a44; box-shadow: 0 10px 24px rgba(22,32,47,.22); }
/* results pages */
.flipbook .face.dark { background: linear-gradient(160deg, #22345a, #14203a); border-color: #14203a; color: #f4f7fa; box-shadow: 0 18px 40px rgba(22,32,47,.22); }
.flipbook .face.dark .folio, .flipbook .face.dark .inner .eyebrow { color: var(--teal-lt); }
.flipbook .face.dark .lead { color: #ffffff; font-weight: 500; }
.flipbook .face.dark .look { color: #c5d0de; font-weight: 400; }
.flipbook .face.dark .look b { color: #fff; }
.flipbook .face.dark .phone { background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.flipbook .turn .iframe-ph { background: #e9edf3; }
/* arrows */
.flipbook .arrow { background: #fff; border-color: var(--line); color: var(--ink); font-family: inherit; }
.flipbook .arrow:hover { border-color: var(--teal); color: var(--teal); }
#deliverables .book-head h2 { font-family: inherit; font-weight: 600; font-size: 1.85rem; letter-spacing: -0.02em; }

/* ---- prototype pages: no inner scroll, fixed-height phone, loading label ---- */
.flipbook .face.proto .inner { overflow: hidden; padding-bottom: 28px; }
.flipbook .face.proto .proto-wrap { margin-top: 12px; align-items: stretch; }
.flipbook .face.proto .phone { position: relative; width: 100%; max-width: 340px; display: flex; flex-direction: column; }
.flipbook .face.proto .phone iframe { height: calc(var(--ph) - 150px); flex: 1; }
.flipbook .phone .loading {
  position: absolute; inset: 10px; border-radius: 12px; display: grid; place-items: center; text-align: center;
  background: #eef1f6; color: var(--ink-soft); font-size: .9rem; letter-spacing: .02em; padding: 20px; z-index: 2;
}
.flipbook .phone .loading::after { content: ""; display: block; width: 40%; height: 3px; margin: 14px auto 0; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--teal-lt)); animation: loadbar 1.4s ease-in-out infinite; }
@keyframes loadbar { 0% { transform: translateX(-70%); opacity: .4; } 50% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(70%); opacity: .4; } }
.flipbook .phone.loaded .loading { display: none; }
.flipbook .turn .phone .loading { display: none; }

.book-nav[hidden] { display: none !important; }

/* ---- outcomes: highlights presented as results ---- */
.outcomes { margin-top: 40px; background: linear-gradient(160deg, #22345a, #14203a); color: #f4f7fa; border-radius: var(--radius); padding: 34px 36px 30px; max-width: 980px; box-shadow: 0 24px 50px rgba(22,32,47,.18); }
.oc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.14); }
.oc-head .eyebrow { color: var(--teal-lt); margin-bottom: .4rem; }
.oc-head h3 { font-size: 1.5rem; letter-spacing: -0.02em; color: #fff; }
.oc-stat { text-align: right; max-width: 30ch; }
.oc-stat b { display: block; font-size: 2.2rem; line-height: 1; letter-spacing: -0.03em; color: var(--amber); }
.oc-stat span { display: block; font-size: .86rem; color: #c5d0de; margin-top: 6px; line-height: 1.45; }
.oc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.oc { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: 12px; padding: 18px 18px 16px; position: relative; }
.oc:hover { background: rgba(255,255,255,.09); border-color: rgba(76,201,184,.45); }
.oc .n { font-size: .72rem; letter-spacing: .13em; color: var(--teal-lt); font-weight: 600; }
.oc b { display: block; font-size: 1.02rem; line-height: 1.35; margin: 6px 0 8px; color: #fff; letter-spacing: -0.01em; }
.oc p { margin: 0; font-size: .9rem; line-height: 1.55; color: #c5d0de; }
@media (max-width: 720px) { .outcomes { padding: 24px 20px; } .oc-grid { grid-template-columns: 1fr; } .oc-stat { text-align: left; } }

.band-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.band-split .band-side { border-left: 1px solid rgba(255,255,255,.18); padding-left: 40px; }
.band-split .band-side .statement { max-width: 16ch; }
@media (max-width: 800px) { .band-split { grid-template-columns: 1fr; gap: 28px; } .band-split .band-side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; } }

/* ---- tabbed outcomes ---- */
.oc-tabs { display: flex; gap: 6px; margin-top: 2px; }
.oc-tabs button {
  font: inherit; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; cursor: pointer;
  background: transparent; border: 0; color: rgba(255,255,255,.55); padding: 6px 12px 8px; border-radius: 10px; position: relative;
}
.oc-tabs button:hover { color: #fff; }
.oc-tabs button[aria-selected="true"] { color: #fff; background: rgba(255,255,255,.08); }
.oc-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--amber); border-radius: 1px; }
.outcomes [hidden] { display: none !important; }
@media (max-width: 720px) { .oc-tabs { flex-wrap: wrap; } .oc-tabs button { font-size: 1.05rem; } }

.result a.shot { display: block; border: 0; cursor: zoom-in; }
.result a.shot img { max-height: 520px; object-fit: cover; object-position: top; }

/* ---- Pinnacol review pass: toc row, pairs, light outcomes, tips ---- */
.toc-row { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 980px; }
.toc-row a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink); border-bottom-width: 1px; text-decoration: none; transition: border-color .15s, transform .15s; }
.toc-row a:hover { border-color: var(--teal); transform: translateY(-2px); }
.toc-row b { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.toc-row span { display: block; font-size: .8rem; color: var(--teal); margin-top: 6px; letter-spacing: .02em; }
@media (max-width: 900px) { .toc-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .toc-row { grid-template-columns: 1fr; } }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.pair .frame { margin: 0; }
@media (max-width: 720px) { .pair { grid-template-columns: 1fr; } }

/* results panels: light, so the navy result bands stay the hero moments */
.outcomes { background: var(--teal-wash); color: var(--ink); border: 1px solid #cfe9e4; box-shadow: none; }
.oc-head { border-bottom-color: rgba(43,163,147,.25); }
.oc-head .eyebrow { color: var(--teal); }
.oc-head h3 { color: var(--ink); }
.oc-stat b { color: #b8860b; }
.oc-stat span { color: var(--ink-soft); }
.oc { background: #fff; border-color: var(--line); }
.oc:hover { background: #fff; border-color: var(--teal); }
.oc .n { color: var(--teal); }
.oc b { color: var(--ink); }
.oc p { color: var(--ink-soft); }
.oc-tabs button { color: var(--muted); }
.oc-tabs button:hover { color: var(--ink); }
.oc-tabs button[aria-selected="true"] { color: var(--ink); background: rgba(43,163,147,.10); }

.result .tip { display: block; margin-top: 10px; color: var(--teal-lt); font-size: .86rem; }
.result a.shot img { max-height: 520px; object-fit: cover; object-position: top; }
.result a.shot img[src$=".svg"] { object-fit: contain; background: #fff; }

/* ---- left section rail (Pinnacol) ---- */
.rail { display: none; }
@media (min-width: 1100px) {
  body.has-rail .wrap:not(.masthead) { padding-left: 240px; }
  body.has-rail .resume { padding-left: 240px; }
  .rail {
    display: block; position: fixed; top: 120px; left: max(28px, calc((100vw - var(--wide)) / 2 + 28px)); width: 180px; z-index: 40;
  }
  .rail-title { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
  .rail a { display: block; font-size: .9rem; color: var(--ink-soft); padding: 7px 0 7px 14px; border-left: 2px solid var(--line); border-bottom: 0; line-height: 1.35; }
  .rail a:hover { color: var(--teal); }
  .rail a.is-active { color: var(--ink); border-left-color: var(--teal); font-weight: 600; }
  body.has-rail .toc-row { display: none; }
  body.has-rail .result .wrap { padding-left: 240px; }
  /* a result band nested inside an already-indented section must not take the rail gutter twice */
  body.has-rail .wrap .result .wrap { padding-left: 28px; }
}
@media (min-width: 1100px) {
  .rail { opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .25s; }
  .rail.show { opacity: 1; transform: none; pointer-events: auto; }
}
@media (min-width: 1100px) {
  .rail.on-dark .rail-title { color: #8fa0b8; }
  .rail.on-dark a { color: #c5d0de; border-left-color: rgba(255,255,255,.22); }
  .rail.on-dark a:hover { color: #fff; }
  .rail.on-dark a.is-active { color: #fff; border-left-color: var(--teal-lt); }
}
/* book fits whatever width the content column has (rail pages narrow it) */
.flipbook { --pw: 50%; width: min(940px, 100%); }
@media (max-width: 1040px) { .flipbook { --pw: 50%; } }
.book-nav { width: min(940px, 100%); }

/* ---- Pyx review pass ---- */
.hero-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; max-width: 52rem; }
.hero-strip img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
/* project break: a visible seam between one project and the next on multi-project pages */
.pbreak { display: flex; align-items: center; gap: 22px; margin: 120px auto 0; padding-top: 34px; border-top: 1px solid var(--line); }
.pbreak b { display: flex; align-items: baseline; gap: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.pbreak b span { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--teal); line-height: 1; }
.pbreak i { flex: 1; height: 2px; background: var(--teal); opacity: .28; }
.pbreak + .module { padding-top: 30px; }
.result .big-stat { text-align: right; }
.result .big-stat b { display: block; font-size: clamp(3rem, 7vw, 5.5rem); line-height: .95; letter-spacing: -0.04em; color: var(--amber); }
.result .big-stat span { display: block; color: #c5d0de; font-size: .95rem; margin-top: 10px; max-width: 24ch; margin-left: auto; }
.flipbook .toc .live { color: #b8860b; font-weight: 600; }
.flipbook .toc .live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-right: 6px; vertical-align: middle; }
@media (max-width: 720px) { .hero-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; } .hero-strip img { height: 90px; } .result .big-stat { text-align: left; } .result .big-stat span { margin-left: 0; } }

/* ---- ask about me ---- */
.rs.ask { padding-bottom: 18px; margin-bottom: 22px; }
.ask-panel + .rs { padding-top: 0; }
.rs.ask .eyebrow { margin-bottom: .6rem; }
.ask-sub { margin: -.2rem 0 .9rem; color: var(--ink-soft); font-size: .95rem; }
.ask-form { display: flex; gap: 8px; }
.ask-form input { flex: 1; font: inherit; font-size: 1rem; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.ask-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43,163,147,.15); }
.ask-form button { font: inherit; font-weight: 600; padding: 0 20px; border-radius: 12px; border: 0; background: var(--teal); color: #fff; cursor: pointer; }
.ask-form button:hover { background: #23887b; }
.ask-form button:disabled { opacity: .6; cursor: default; }
.ask-note { margin: 8px 0 0; }
.ask-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; margin-bottom: 30px; }
.ask-panel .ask-head { display: flex; justify-content: space-between; align-items: center; }
.ask-panel .ask-head .eyebrow { margin: 0; }
.ask-panel .ask-close { font: inherit; font-size: 1.3rem; line-height: 1; background: transparent; border: 0; color: var(--muted); cursor: pointer; }
.ask-panel .ask-q { font-weight: 600; margin: 8px 0 12px; }
.ask-panel .ask-out { font-size: .95rem; line-height: 1.6; color: var(--ink-soft); white-space: pre-wrap; }
.ask-panel .ask-out.err { color: #8a5a1a; }
.ask-panel[hidden] { display: none; }
@media (min-width: 1100px) {
  .resume.asked { max-width: calc(var(--wide) + 330px); }
  .resume.asked .body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 32px; align-items: start; }
  .resume.asked .body > * { grid-column: 1; min-width: 0; }
  .resume.asked .body > .ask-panel { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 92px; margin: 0; max-height: calc(100vh - 120px); overflow-y: auto; }
}

/* ---- at a glance (case summary) ---- */
.glance { padding-top: 0; padding-bottom: 40px; }
.glance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; max-width: 62rem; }
.glance-grid .eyebrow { display: block; margin-bottom: .45rem; }
.glance-grid p { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 900px) { .glance-grid { grid-template-columns: 1fr 1fr; gap: 18px 24px; } }
@media (max-width: 560px) { .glance-grid { grid-template-columns: 1fr; } }

/* ---- read more folds ---- */
details.more { margin: .2rem 0 0; }
details.more > summary { list-style: none; cursor: pointer; color: var(--teal); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--teal); font-size: .9rem; line-height: 1; }
details.more[open] > summary::before { content: "\2212"; }
details.more[open] > summary { margin-bottom: .6rem; }
details.more > p:first-of-type { margin-top: .4rem; }

/* ---- outcomes, brief mode ---- */
.oc-toggle { margin: 18px 0 -6px; }
.oc-toggle button { font: inherit; font-size: .84rem; font-weight: 600; color: var(--teal); background: transparent; border: 1px solid #b9dcd6; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.oc-toggle button:hover { border-color: var(--teal); }
.outcomes.brief .oc p { display: none; }
.outcomes.brief.open .oc p { display: block; }
.outcomes.brief .oc b { margin-bottom: 0; }
.outcomes.brief.open .oc b { margin-bottom: 8px; }

/* ---- flagship screens ---- */
.showcase { display: grid; gap: 56px; margin-top: 36px; }
.sc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; margin: 0; }
.sc .cap { position: sticky; top: 96px; }
.sc .cap .n { font-size: .72rem; letter-spacing: .13em; color: var(--teal); font-weight: 600; }
.sc .cap h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 6px 0 8px; }
.sc .cap p { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--ink-soft); }
.sc .shot-lg { margin: 0; }
.sc .shot-lg a { display: block; }
.sc .shot-lg img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 22px 48px rgba(22,32,47,.10); background: #fff; }
.sc.narrow-shot .shot-lg { max-width: 520px; }
/* a screenshot cropped mid-scroll: fade the cut edge so it reads as "continues" rather than sliced */
.sc .shot-lg.fade img { -webkit-mask-image: linear-gradient(180deg, #000 72%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(180deg, #000 72%, rgba(0,0,0,0) 100%); border-bottom: 0; box-shadow: none; }

.sc .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; }
.sc .duo img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
@media (max-width: 860px) { .sc { grid-template-columns: 1fr; gap: 14px; } .sc .cap { position: static; } }

/* ---- selected work tiles (home) ---- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 6px; }
a.tile { display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s; }
a.tile:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 18px 40px rgba(22,32,47,.10); }
a.tile .pic { aspect-ratio: 16 / 10; background: #f1efeb; overflow: hidden; position: relative; }
a.tile .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
a.tile .txt { padding: 14px 16px 16px; }
a.tile .txt .eyebrow { margin-bottom: .3rem; }
a.tile .txt b { display: block; font-size: 1.02rem; letter-spacing: -0.01em; }
a.tile .txt span { display: block; font-size: .88rem; color: var(--ink-soft); line-height: 1.45; margin-top: 4px; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }

/* ---- earlier roles fold (home) ---- */
details.earlier > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-size: .95rem; color: var(--ink-soft); margin-top: 8px; }
details.earlier > summary::-webkit-details-marker { display: none; }
details.earlier > summary b { color: var(--ink); font-weight: 600; margin-right: 8px; }
details.earlier > summary::after { content: "Show"; color: var(--teal); font-weight: 600; font-size: .88rem; flex: none; }
details.earlier[open] > summary::after { content: "Hide"; }
details.earlier[open] > summary { margin-bottom: 8px; }

/* ---- project status block ---- */
.status { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 22px 24px; max-width: 62rem; margin-top: 8px; }
.status .st-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.status .st-head b { font-size: 1.05rem; }
.status .st-head .when { font-size: .84rem; color: var(--muted); }
.status .live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.status .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(43,163,147,.18); }
.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.st-grid h4 { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.st-grid ul { list-style: none; margin: 0; padding: 0; }
.st-grid li { font-size: .9rem; line-height: 1.45; color: var(--ink-soft); padding: 4px 0 4px 16px; position: relative; border-top: 1px solid var(--line); }
.st-grid li::before { position: absolute; left: 0; top: 5px; font-weight: 700; }
.st-grid .ok li::before { content: "\2713"; color: var(--teal); }
.st-grid .no li::before { content: "\00B7"; color: var(--muted); font-size: 1.4rem; line-height: .9; }
.st-grid .next li::before { content: "\2192"; color: var(--amber); }
@media (max-width: 760px) { .st-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ---- placeholders for material not made yet ---- */
.ph { border: 2px dashed #c9c3b8; border-radius: var(--radius); background: repeating-linear-gradient(135deg, #f6f4f0 0 12px, #fbfaf8 12px 24px); display: grid; place-items: center; text-align: center; padding: 28px; color: var(--ink-soft); }
.ph.video { aspect-ratio: 16 / 9; }
.ph.phone { aspect-ratio: 9 / 16; max-width: 300px; }
.ph b { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.ph p { margin: 0; font-size: .9rem; line-height: 1.5; max-width: 34ch; }

/* ---- reading path (Curb hub) ---- */
.path { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: p; display: grid; gap: 10px; max-width: 62rem; }
.path li { counter-increment: p; }
.path a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: center; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; transition: border-color .15s, transform .15s; }
.path a:hover { border-color: var(--teal); transform: translateY(-2px); }
.path a::before { content: counter(p, decimal-leading-zero); font-size: .8rem; letter-spacing: .1em; font-weight: 600; color: var(--teal); }
.path a b { display: block; font-size: 1.05rem; letter-spacing: -0.01em; }
.path a span { display: block; font-size: .9rem; color: var(--ink-soft); line-height: 1.45; margin-top: 3px; }
.path a .min { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.path li.first a { border-color: var(--teal); box-shadow: 0 14px 34px rgba(22,32,47,.08); }

/* ---- principles list ---- */
.principles { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 62rem; }
.principles li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.principles li b { display: block; font-size: 1rem; margin-bottom: 4px; }
.principles li p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; } }

/* ---- feature card (home, agentic section) ---- */
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.feature h3 { font-size: 1.3rem; letter-spacing: -0.015em; margin: 4px 0 8px; }
.feature p { font-size: .97rem; color: var(--ink-soft); margin: 0 0 10px; }
.feature .st-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.feature .st-line span { font-size: .78rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-soft); }
.feature .st-line span.on { border-color: #b9dcd6; color: var(--teal); background: var(--teal-wash); }
.feature .cta { font-weight: 600; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }
details.log-fold > summary { margin: 14px 0 8px; }
details.log-fold[open] > summary { margin-bottom: 0; }

/* ---- coverage atlas card ---- */
a.atlas { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 62rem; margin-top: 22px; transition: transform .15s, box-shadow .15s; }
a.atlas:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: 0 22px 48px rgba(22,32,47,.10); }
a.atlas img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; min-height: 260px; border-right: 1px solid var(--line); }
a.atlas .atlas-txt { padding: 24px 26px; color: var(--ink); display: flex; flex-direction: column; justify-content: center; }
a.atlas .atlas-txt .eyebrow { margin-bottom: .4rem; }
a.atlas .atlas-txt b { font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 8px; }
a.atlas .atlas-txt span { font-size: .92rem; line-height: 1.5; color: var(--ink-soft); }
a.atlas .atlas-txt .cta { margin-top: 14px; color: var(--teal); font-weight: 600; }
@media (max-width: 760px) { a.atlas { grid-template-columns: 1fr; } a.atlas img { min-height: 200px; } }

/* ---- fleet infrastructure (walkers) ---- */
.fleet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; max-width: 62rem; }
.fp { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.fp.lead { grid-column: 1 / -1; background: var(--teal-wash); border-color: #cfe9e4; }
.fp.lead b { font-size: 1.1rem; }
.fp b { display: block; font-size: 1rem; margin-bottom: 5px; }
.fp p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 860px) { .fleet-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fleet-grid { grid-template-columns: 1fr; } }
.fleet-diagram { margin: 34px 0 0; max-width: 62rem; }
.fleet-diagram svg { width: 100%; height: auto; display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.fleet-diagram figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.msgs { display: grid; gap: 16px; margin-top: 22px; max-width: 62rem; }
.msg { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 16px 20px 14px; }
.msg.reply { border-left-color: var(--navy); margin-left: 48px; }
.msg .from { margin: 0 0 8px; font-size: .8rem; letter-spacing: .04em; color: var(--ink); font-weight: 600; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.msg .from span { color: var(--muted); font-weight: 400; }
.msg .from em { font-style: normal; font-weight: 400; color: var(--muted); font-family: inherit; margin-left: 8px; }
.msg p { margin: 0 0 8px; font-size: .93rem; line-height: 1.55; color: var(--ink-soft); }
.msg p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .msg.reply { margin-left: 16px; } }
/* ---- rulebook excerpts (walkers) ---- */
.rule-ex { max-width: 62rem; margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px 16px; }
.rule-ex-title { margin: 0 0 10px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.rule-ex ol { margin: 0; padding-left: 22px; }
.rule-ex li { font-size: .93rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: 8px; }
.rule-ex li:last-child { margin-bottom: 0; }
.rule-ex li b { color: var(--ink); }
.rule-ex .s { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .78rem; color: var(--red); background: #fbeeea; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.rule-ex pre { margin: 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8rem; line-height: 1.55; color: var(--ink-soft); white-space: pre-wrap; }

/* ---- teaching timeline (walkers, day one) ---- */
.teach { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; max-width: 62rem; counter-reset: t; }
.teach li { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; counter-increment: t; }
.teach .shot { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #f1efeb; border: 1px solid var(--line); position: relative; }
.teach .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.teach .t { margin: 0 0 4px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.teach .t::before { content: counter(t, decimal-leading-zero) "  "; color: var(--muted); }
.teach .q { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--ink-soft); padding-right: 8px; }
@media (max-width: 720px) { .teach li { grid-template-columns: 1fr; } }
.teach .shot.multi { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; aspect-ratio: 16 / 10; }
.teach .shot.multi a { position: relative; border-radius: 6px; overflow: hidden; background: #e9e6e0; }
.teach .shot.multi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teach .shot.multi.two { grid-template-columns: 1fr 1fr; }

dialog.lightbox { overflow: visible; }
dialog.lightbox .lb-close { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(16,22,34,.7); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; }
dialog.lightbox .lb-close:hover { background: rgba(255,255,255,.18); }
.teach .shot.doc { display: block; padding: 12px 14px; background: #f6f4f0; overflow: hidden; }
.teach .shot.doc pre { margin: 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .68rem; line-height: 1.45; color: var(--ink-soft); white-space: pre-wrap; }
.teach .shot.doc { aspect-ratio: auto; min-height: 120px; align-self: stretch; display: flex; align-items: center; }
.teach li:has(.shot.doc) { align-items: stretch; }
.teach .docq { margin: 10px 0 0; padding: 10px 12px; background: #f6f4f0; border-radius: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .68rem; line-height: 1.45; color: var(--ink-soft); white-space: pre-wrap; }
details.cards-fold { margin-top: 18px; }
details.cards-fold > summary { font-size: .95rem; }
details.cards-fold[open] > summary { margin-bottom: 14px; }

/* ---- Curb intro on the Walkers page ---- */
.curb-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; max-width: 62rem; }
.curb-intro p { font-size: 1rem; line-height: 1.6; margin: 0 0 12px; color: var(--ink-soft); }
.curb-intro p:last-child { margin-bottom: 0; }
.curb-intro .eyebrow { margin-bottom: .6rem; }
.curb-intro figure { margin: 0; }
.curb-intro img { display: block; width: 100%; max-width: 300px; margin: 0 auto; border-radius: 16px; border: 1px solid var(--line); }
.curb-intro figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; line-height: 1.5; text-align: center; }
@media (max-width: 760px) { .curb-intro { grid-template-columns: 1fr; } }

/* ---- framework chapter (walkers) ---- */
.ftag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--navy); background: #e7ebf3; vertical-align: middle; }
.fw-list { display: grid; gap: 16px; margin-top: 26px; max-width: 62rem; }
.fw { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px 18px; }
.fw h3 { font-size: 1.1rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.fw p { margin: 0 0 8px; font-size: .93rem; line-height: 1.55; color: var(--ink-soft); }
.fw p:last-child { margin-bottom: 0; }
.fw p b { color: var(--ink); }
.fw p.gap { margin-top: 10px; padding: 8px 12px; border-left: 3px solid var(--amber); background: var(--amber-wash); border-radius: 0 8px 8px 0; color: var(--ink); font-size: .9rem; }
.fw-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: .9rem; }
.fw-table th { text-align: left; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.fw-table td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.fw-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.fw-table td:last-child { white-space: nowrap; color: var(--teal); font-weight: 600; }
@media (max-width: 640px) { .fw-table td:first-child, .fw-table td:last-child { white-space: normal; } }

/* ---- clickable message hotspots on session screenshots ---- */
.hotshot .hs { position: relative; }
.hotshot .hs > a { display: block; }
.hotshot .hs img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.hot { position: absolute; border: 2px solid var(--teal); border-radius: 8px; background: rgba(43,163,147,.06); box-shadow: 0 0 0 4px rgba(43,163,147,.16); cursor: pointer; padding: 0; animation: hotpulse 2.4s ease-in-out infinite; }
.hot span { margin: 6px; font: 600 .74rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif; letter-spacing: .04em; color: #fff; background: var(--teal); border-radius: 999px; padding: 5px 9px; }
.hot:hover { background: rgba(43,163,147,.16); animation: none; }
@keyframes hotpulse { 0%,100% { box-shadow: 0 0 0 4px rgba(43,163,147,.16); } 50% { box-shadow: 0 0 0 8px rgba(43,163,147,.06); } }
.hotshot.frame .hs { aspect-ratio: auto; }
dialog.msgpop { border: 0; padding: 0; background: transparent; max-width: min(760px, 94vw); }
dialog.msgpop::backdrop { background: rgba(16,22,34,.72); }
dialog.msgpop .msgpop-card { position: relative; }
dialog.msgpop .msg { box-shadow: 0 30px 70px rgba(16,22,34,.35); margin: 0; }
dialog.msgpop .msg.reply { margin-left: 0; }
dialog.msgpop .lb-close { position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }

/* ---- stacked full-width session screenshots ---- */
.stack { display: grid; gap: 34px; margin-top: 8px; max-width: 62rem; }
.stack .frame { margin: 0; }
.stack .hotshot .hs img { border-radius: 14px; }
.stack figcaption { font-size: .95rem; margin-top: 12px; }

a.feature { text-decoration: none; color: inherit; cursor: pointer; }
a.feature:hover { border-color: var(--teal); box-shadow: 0 18px 40px rgba(22,32,47,.10); transform: translateY(-2px); transition: transform .15s, box-shadow .15s, border-color .15s; }
a.feature .cta { color: var(--teal); }

.status-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; max-width: 62rem; }
.status-line .live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); white-space: nowrap; }
.status-line .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(43,163,147,.18); }
.status-line p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---- home lead + collapsible sidebar ---- */
.rs.lead { padding-bottom: 26px; margin-bottom: 26px; }
.rs.lead .positioning { font-size: 1.55rem; line-height: 1.3; letter-spacing: -0.02em; margin: 0; max-width: none; text-wrap: balance; }
.rs.lead .positioning em { font-style: normal; color: var(--teal); }
.side-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.side-fold > summary::-webkit-details-marker { display: none; }
.side-fold > summary::after { content: "+"; color: var(--teal); font-weight: 600; margin-top: 1.8rem; }
.side-fold[open] > summary::after { content: "\2212"; }
.side-fold > summary h2 { margin-bottom: .6rem; }
/* ---- frameworks brief (walkers top) ---- */
.fw-brief { border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); background: var(--card); padding: 16px 20px; max-width: 62rem; }
.fw-brief .eyebrow { margin-bottom: .4rem; color: var(--navy); }
.fw-brief p:last-child { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
/* ---- sidebar: one line for scroll and drag ---- */
.resume .side::-webkit-scrollbar { width: 4px; }
.resume .side::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.resume .side::-webkit-scrollbar-track { background: transparent; }
.resume .vgrip { transform: translateX(-37px); }
.resume .vgrip span { width: 4px; border-radius: 2px; }
/* ---- room above the footer on every page ---- */
footer { margin-top: 96px; }
main.body > section:last-of-type, .wrap.module:last-of-type { padding-bottom: 24px; }
footer.wrap { margin-top: 96px; }
/* home page: the last section and the footer sit closer together */
.resume .rs:last-child { padding-bottom: 0; margin-bottom: 0; }
.resume + footer.wrap { margin-top: 36px; }

.resume .vgrip { transform: translateX(-39px); }

/* Curb demo: portrait phone recording */
.frame.demo-video video { border-radius: 18px; }
.feature .feature-video { display: block; justify-self: center; width: 100%; max-width: 230px; height: auto; aspect-ratio: 888 / 1920; border-radius: 18px; border: 1px solid var(--line); background: #000; object-fit: cover; }

/* Curb demo: video beside the evidence */
.demo-pair { display: grid; grid-template-columns: 19rem minmax(0, 32rem); gap: 36px; align-items: start; }
.demo-pair .frame.demo-video { max-width: none; margin: 0; }
.demo-evidence .eyebrow { margin: 0 0 8px; }
.demo-evidence .ev-sign { display: grid; grid-template-columns: 11rem 1fr; gap: 18px; align-items: end; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.demo-evidence .ev-sign img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
.demo-evidence .ev-quote { margin: 0; font-size: 1.05rem; line-height: 1.45; color: var(--ink); font-weight: 600; }
.demo-evidence .ev-rows { margin: 0 0 24px; }
.demo-evidence .ev-rows > div { display: grid; grid-template-columns: 5.5rem 1fr; column-gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.demo-evidence .ev-rows > div:last-child { border-bottom: 1px solid var(--line); }
.demo-evidence .ev-rows dt { font-size: .82rem; color: var(--muted); padding-top: 2px; }
.demo-evidence .ev-rows dd { margin: 0; grid-column: 2; font-size: .95rem; color: var(--ink); }
.demo-evidence .ev-rows dd.ok, .demo-evidence .ev-rows dd.na { font-size: .82rem; margin-top: 3px; }
.demo-evidence .ev-rows dd.ok { color: var(--teal); }
.demo-evidence .ev-rows dd.ok::before { content: "✓ "; font-weight: 700; }
.demo-evidence .ev-rows dd.na { color: var(--muted); }
.demo-evidence .ev-steps { margin: 0; padding: 0; list-style: none; counter-reset: ev; }
.demo-evidence .ev-steps li { counter-increment: ev; position: relative; padding: 0 0 12px 34px; font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }
.demo-evidence .ev-steps li::before { content: counter(ev); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-wash); color: var(--teal); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 860px) {
  .demo-pair { grid-template-columns: 1fr; gap: 28px; }
  .demo-pair .frame.demo-video { max-width: 20rem; }
}
.demo-evidence .ev-zoom { display: block; }
.demo-evidence .ev-full { display: inline-block; margin-top: 8px; font-size: .85rem; }
@media (max-width: 520px) { .demo-evidence .ev-sign { grid-template-columns: 7.5rem 1fr; } }

/* ---------- blog: byline, tags, end of post, Writing page ---------- */
.avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.post-meta { display: flex; align-items: center; gap: 12px; margin: 1.1rem 0 0; }
.post-meta p { margin: 0; line-height: 1.4; }
.post-meta .by { font-size: .95rem; color: var(--ink); font-weight: 600; }
.post-meta .by a { color: inherit; border: 0; }
.post-meta .when { font-size: .88rem; color: var(--muted); }
.post-tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags li, .post-tags a { font-size: .78rem; color: var(--ink-soft); }
.post-tags li { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; background: var(--card); }
.post-tags a { border: 0; }
.post-tags a:hover { color: var(--teal); }

.post-end { display: grid; gap: 22px; padding-block: 40px 8px; }
.post-end > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; max-width: 44rem; }
.post-end .eyebrow { margin: 0 0 10px; }
.series-box ol, .series-list { list-style: none; margin: 0; padding: 0; }
.series-box li, .series-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.series-box li:first-child, .series-list li:first-child { border-top: 0; }
.series-box .n, .series-list .n { color: var(--teal); font-weight: 700; font-size: .85rem; }
.series-box .m, .series-list .m { color: var(--muted); font-size: .82rem; }
.series-box li[aria-current] { color: var(--ink); font-weight: 600; }
.series-box li em { font-style: normal; font-weight: 400; font-size: .78rem; color: var(--teal); margin-left: 6px; }
.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.series-nav a { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .92rem; color: var(--ink); }
.series-nav a:hover { border-color: var(--teal); }
.series-nav a small { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 2px; }
.series-nav .next { grid-column: 2; text-align: right; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share button { font: inherit; font-size: .88rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.share button:hover { border-color: var(--teal); color: var(--teal); }
.author-box { display: flex; gap: 14px; align-items: flex-start; }
.author-box .avatar { width: 48px; height: 48px; font-size: .9rem; }
.author-box p { margin: 0 0 4px; font-size: .95rem; color: var(--ink-soft); }
.author-box .name { color: var(--ink); font-weight: 600; }
.author-box .links { font-size: .88rem; margin-top: 6px; }
@media (max-width: 560px) {
  .series-nav { grid-template-columns: 1fr; }
  .series-nav .next { grid-column: 1; }
}

.writing-hero h1 { max-width: 22ch; }
.writing-hero .lede { max-width: 46ch; margin-top: 1rem; }
.writing-list > *, .writing-series > * { max-width: 46rem; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tag-filter button { font: inherit; font-size: .85rem; background: transparent; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; cursor: pointer; }
.tag-filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.post-card { padding: 22px 0; border-top: 1px solid var(--line); }
.post-card .when { margin: 0 0 6px; font-size: .85rem; color: var(--muted); }
.post-card .series { color: var(--teal); }
.post-card h2 { font-size: 1.35rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.post-card h2 a { color: var(--ink); border: 0; }
.post-card h2 a:hover { color: var(--teal); }
.post-card > p { margin: 0; color: var(--ink-soft); }
.writing-list .empty { color: var(--muted); }
.writing-series { padding-block: 26px 40px; }
.writing-series h2 { margin: 0 0 6px; }
.series-list { max-width: 40rem; margin-top: 12px; }
@media (max-width: 760px) {
  .masthead nav { overflow-x: auto; max-width: 100%; white-space: nowrap; scrollbar-width: none; }
  .masthead nav::-webkit-scrollbar { display: none; }
}
.writing-hero { padding-inline: 28px; }
@media (max-width: 420px) { .writing-hero { padding-inline: 20px; } }
