/* Site look: warm cream, one bold friendly sans (Plus Jakarta Sans) for everything,
   playful doodle colors (orange / pink / green), and a pink highlighter swipe for accents.
   Caveat is used only for the handwritten "Currently" note. */
:root {
  --bg: #fbf8f2;
  --paper: #fffdf9;
  --ink: #1c1b1a;
  --soft: #6a655d;
  --line: #ddd5c6;
  --orange: #e8572a;
  --pink: #e9a6d8;
  --green: #2f9a6a;
  --accent: #c8461f;        /* deeper orange for text, numbers and links */
  --pink-50: #fbeae4;       /* soft tint for chips and automated steps */
  --sans: "Plus Jakarta Sans", "Helvetica Neue", sans-serif;
  --script: "Plus Jakarta Sans", sans-serif;
  --hand: "Caveat", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.script { font-family: var(--script); color: var(--accent); font-weight: 400; letter-spacing: 0; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(20px, 4vw, 56px); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px);
}
.wordmark { font-family: var(--script); font-size: 30px; line-height: 1; text-decoration: none; color: var(--accent); }
.topbar nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.topbar nav a { font-size: 15px; text-decoration: none; }
.topbar nav a:hover { color: var(--accent); }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 34px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent);
  font-family: var(--sans); font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.pill:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.pill.solid { background: var(--accent); color: #fff; }
.pill.solid:hover { background: #9c3459; }

/* ---------- section titles ---------- */
.section-title { font-weight: 300; font-size: clamp(40px, 6vw, 76px); line-height: 1.05; text-align: center; margin: 0 0 28px; letter-spacing: -.01em; }
.section-title .script { font-size: 1.25em; line-height: .8; }

/* ---------- hero (Portfolio card) ---------- */
.hero { max-width: 1200px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 56px) 80px; }
.hero-title { font-weight: 400; font-size: clamp(84px, 19vw, 270px); line-height: .82; letter-spacing: -.01em; text-align: center; margin: 0; }
.hero-stage { position: relative; display: grid; grid-template-columns: 1fr 1.3fr 1fr; grid-template-rows: auto 1fr auto; column-gap: 24px; min-height: clamp(340px, 34vw, 440px); }
.hero-photo {
  grid-column: 2; grid-row: 1 / 4; justify-self: center; align-self: start; position: relative; z-index: 1;
  width: 100%; max-width: 360px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%;
  border-radius: 999px 999px 16px 16px; border: 6px solid var(--paper);
  box-shadow: 0 24px 40px -24px #5a3a3080;
  margin-top: clamp(20px, 2.5vw, 36px);
}
.script-name .im { display: block; font-family: var(--sans); color: var(--ink); font-size: clamp(18px, 1.7vw, 24px); line-height: 1; margin-bottom: 6px; }
.script-name { grid-column: 1; grid-row: 1; font-family: var(--script); color: var(--accent); font-size: clamp(52px, 6vw, 88px); line-height: 1; margin: 14px 0 0; }
.hero-role { grid-column: 3; grid-row: 1; font-size: clamp(17px, 1.6vw, 22px); text-align: right; margin: 26px 0 0; }
.hero-blurb { grid-column: 1; grid-row: 3; font-size: 16px; line-height: 1.55; margin: 0 0 10px; max-width: 300px; }
.hero-year { grid-column: 3; grid-row: 3; font-size: 22px; text-align: right; margin: 0 0 10px; }

/* ---------- experience: magazine ---------- */
.experience { padding: 90px 20px 100px; }
.tabbar { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; max-width: 1000px; margin: 0 auto 40px; }
.tabbar button {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: transparent; color: var(--accent);
  font-family: var(--sans); font-size: 13.5px; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s;
}
.tabbar button:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.tabbar button[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.book-stage { max-width: 1040px; margin: 0 auto; }
.book { position: relative; display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 1.6; perspective: 2600px; }
/* soft shadow under the open book + page block edges */
.book::before { content: ""; position: absolute; inset: 3% 1% -3%; z-index: -2; background: #6b4a3d; filter: blur(22px); opacity: .22; border-radius: 40%; }
.book::after { content: ""; position: absolute; inset: 4px -5px -5px; z-index: -1; border-radius: 3px;
  background: linear-gradient(90deg, #e3d8ca, #f1e9de 3%, #f1e9de 97%, #e3d8ca); }

.page { position: relative; padding: 26px 26px 34px; overflow: hidden; font-size: 11.5px; line-height: 1.5; color: #4b4646;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* gutter shading: pages curve into the spine */
.page::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18%; pointer-events: none; }
.page-left, .leaf.fwd .leaf-back, .leaf.back .leaf-front { border-radius: 4px 0 0 4px; }
.page-right, .leaf.fwd .leaf-front, .leaf.back .leaf-back { border-radius: 0 4px 4px 0; }
.page-left::after, .leaf.fwd .leaf-back::after, .leaf.back .leaf-front::after { right: 0; background: linear-gradient(270deg, #0000001f, #00000008 35%, transparent); }
.page-right::after, .leaf.fwd .leaf-front::after, .leaf.back .leaf-back::after { left: 0; background: linear-gradient(90deg, #0000001f, #00000008 35%, transparent); }
.book.fade .page { opacity: 0; }
.book .page { transition: opacity .18s; }

.leaf { position: absolute; top: 0; bottom: 0; width: 50%; display: none; transform-style: preserve-3d; z-index: 5; }
.leaf.fwd { left: 50%; transform-origin: left center; }
.leaf.back { left: 0; transform-origin: right center; }
.leaf.turn { display: block; }
.leaf.fwd.turn { animation: turnFwd .8s cubic-bezier(.45,.05,.35,1) forwards; }
.leaf.back.turn { animation: turnBack .8s cubic-bezier(.45,.05,.35,1) forwards; }
.leaf > .page { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf-back { transform: rotateY(180deg); }
@keyframes turnFwd { to { transform: rotateY(-180deg); } }
@keyframes turnBack { to { transform: rotateY(180deg); } }

/* magazine typography */
.page { font-size: 12.5px; display: flex; flex-direction: column; }
.spread-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.head-name { flex: 1; min-width: 0; }
.head-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 11.5px; text-align: right; }
.head-meta span { display: inline-flex; gap: 8px; align-items: baseline; }
.head-meta b { font-weight: 600; color: var(--soft); text-transform: uppercase; letter-spacing: .08em; font-size: 9.5px; }
.head-meta a { color: var(--accent); }
.logo { height: 52px; width: auto; max-width: 92px; object-fit: contain; flex: 0 0 auto; }
.mono-logo { width: 52px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-family: var(--script); font-size: 30px; color: var(--accent); }
.mag-h { font-style: italic; font-weight: 600; color: var(--accent); font-size: 28px; line-height: 1.05; margin: 0; }
.mag-role { font-style: italic; font-size: 14px; color: var(--ink); margin: 4px 0 0; }
.kicker { font-style: italic; font-weight: 600; font-size: 15px; color: var(--accent); margin: 0 0 6px; }
.lead { font-size: 14.5px; line-height: 1.65; margin: 0 0 22px; color: var(--ink); }
.muted-lead { color: var(--soft); font-style: italic; }
.page h5 { font-style: italic; font-weight: 600; font-size: 14px; color: var(--accent); margin: 0 0 4px; line-height: 1.2; }
.page p { margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.chips span { padding: 3px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink); font-size: 12px; }
.points { list-style: none; margin: 0 0 18px; padding: 0; }
.left-foot { margin-top: auto; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 9px 0; border-top: 1px solid var(--line); }
.points li:first-child { border-top: 0; padding-top: 0; }
.points .pt-n { font-size: 11px; color: var(--accent); font-weight: 600; padding-top: 2px; }
.points p { margin: 0; font-size: 12.5px; line-height: 1.55; }
.points b { font-weight: 600; color: var(--ink); }
.points .metric { font-weight: 600; color: var(--accent); }
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px 18px; }
.stat { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.stat .num { font-weight: 300; font-size: 42px; line-height: 1; color: var(--accent); letter-spacing: -.01em; }
.stat .lbl { font-size: 12px; line-height: 1.45; color: var(--soft); }
.spread-photo { margin: 0 0 16px; }
.spread-photo.fill { flex: 1; min-height: 120px; margin: 18px 0 8px; display: flex; flex-direction: column; }
.spread-photo.fill img { flex: 1; min-height: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: center bottom; border-radius: 0; }
.spread-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.spread-photo figcaption { font-size: 10.5px; font-style: italic; color: var(--soft); margin-top: 6px; text-align: center; }
/* photo collage (right page) */
.collage { flex: 1; min-height: 160px; display: grid; gap: 8px; margin-top: 8px; }
.collage figure { position: relative; margin: 0; overflow: hidden; border-radius: 3px; background: #efeee8; }
.collage img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.collage figcaption { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 92%, transparent); font-size: 10px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collage.n1 { grid-template-columns: 1fr; }
.collage.n2 { grid-template-columns: 1fr 1fr; }
.collage.n3 { grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; }
.collage.n3 figure:first-child { grid-row: span 2; }
.collage.n4 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1.5fr 1fr; }
.collage.n4 figure:first-child { grid-column: span 3; }
/* why / highlights / process */
.why { margin: 0 0 16px; padding: 4px 0 4px 14px; border-left: 2px solid var(--accent); }
.why p { margin: 0 0 4px; font-style: italic; font-size: 17px; line-height: 1.35; color: var(--ink); }
.why span { font-size: 11.5px; color: var(--soft); }
.highlights { list-style: none; margin: 0 0 12px; padding: 0; }
.highlights li { font-size: 12px; line-height: 1.5; padding: 7px 0; border-top: 1px solid var(--line); }
.highlights li:first-child { border-top: 0; padding-top: 0; }
.highlights b { color: var(--accent); font-weight: 600; }
.proc .wf-steps li { min-height: 78px; padding: 8px; }
.proc .wf-label { font-size: 11px; }
/* workflow map */
.wf { margin: 0 0 18px; }
.wf-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.wf-top .kicker { margin: 0; }
.wf-view { display: none; }
.wf[data-mode="before"] .wf-view[data-view="before"], .wf[data-mode="now"] .wf-view[data-view="now"] { display: block; animation: rise .3s ease both; }
.wf-note { font-size: 11px; font-style: italic; color: var(--accent); margin: 8px 0 0; }
.wf-toggle { display: inline-flex; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 999px; padding: 2px; }
.wf-toggle button { border: 0; background: transparent; font-family: var(--sans); font-size: 11px; padding: 3px 10px; border-radius: 999px; color: var(--accent); cursor: pointer; }
.wf-toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.wf-intro { font-size: 12.5px; line-height: 1.55; color: var(--soft); margin: 0 0 14px; }
.wf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 10px 18px; }
.wf-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 104px; padding: 9px 10px; border-radius: 8px; border: 1px dashed #cdbfb8; transition: background .3s, border-color .3s; }
.wf-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); color: #b9aca6; font-size: 13px; }
.wf-n { font-size: 11px; color: var(--soft); }
.wf-label { font-size: 12px; line-height: 1.35; color: var(--ink); }
.wf-tag { margin-top: auto; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
li.auto .wf-tag { color: var(--accent); }
.wf-steps li.auto { border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.wf[data-mode="now"] li.auto .wf[data-mode="now"] li.auto .two-col { column-count: 2; column-gap: 16px; }
.pnum { position: absolute; bottom: 12px; left: 26px; font-size: 10px; color: #a3a09a; }
.pnum.r { left: auto; right: 26px; }

.book-controls { max-width: 1040px; margin: 34px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.book-controls > .pill:first-child { justify-self: start; }
.page-count { color: var(--soft); font-size: 15px; }
.page-count b { color: var(--accent); font-weight: 600; }
.arrows { justify-self: end; display: flex; gap: 8px; }

/* ---------- off the clock: covers ---------- */
.personal { padding: 90px 20px 100px; }
.version-tag { text-align: center; margin: -8px 0 40px; }
.version-tag span { display: inline-block; padding: 2px 14px; font-size: 26px; font-weight: 400; background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.cover-board { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: repeat(7, 1fr); gap: 34px 22px; padding: 10px 10px 0; }
.cover {
  position: relative; margin: 0; aspect-ratio: 2/3; background: #fff; padding: 5px; box-shadow: 0 10px 18px -10px #4a2e2766, 0 2px 4px #0000001a;
  transform: translateY(var(--dy)) rotate(var(--rot)); transition: transform .25s;
}
.cover:hover { transform: translateY(calc(var(--dy) - 10px)) rotate(0) scale(1.06); z-index: 2; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.type-cover { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 10px 8px; background: #2f4f6f; color: #fff; text-align: center; }
.type-cover b { font-weight: 600; font-size: 13px; line-height: 1.2; }
.type-cover i { font-size: 10px; }
.pin { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 80%, #fff); color: #fff; font-size: 11px; display: grid; place-items: center; z-index: 1; }
.cover-list { max-width: 900px; margin: 46px auto 0; text-align: justify; font-size: 15px; line-height: 1.6; }

/* ---------- contact / id card ---------- */
.contact { padding: 90px 24px 110px; }
.id-card {
  position: relative; max-width: 620px; margin: 0 auto; display: grid; grid-template-columns: 170px 1fr; gap: 28px;
  padding: 28px 28px 72px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 30px 50px -32px #5a3a3066; transform: rotate(-1deg); transition: transform .3s;
}
.id-card:hover { transform: rotate(0); }
.id-photo { aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.id-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.id-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin: 0 0 4px; }
.id-name { font-family: var(--script); color: var(--accent); font-size: 52px; line-height: 1.1; margin: 0 0 4px; }
.id-role { font-size: 15px; margin: 0 0 2px; }
.id-line { margin: 0 0 18px; color: var(--soft); font-size: 14px; }
.id-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.barcode { position: absolute; left: 28px; right: 28px; bottom: 22px; height: 32px; opacity: .8;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 12px, transparent 12px 14px); }

.footer { display: flex; justify-content: space-between; padding: 24px clamp(20px, 4vw, 56px); border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.footer a { text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) { .cover-board { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 860px) {
  .tabbar { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding: 2px 0; }
  .tabbar button { flex: 0 0 auto; }
  .book { grid-template-columns: 1fr; aspect-ratio: auto; }
  .book::after { display: none; }
  .page { overflow: visible; padding: 24px 20px 40px; font-size: 13px; }
  .page::after { display: none; }
  .page-left { border-radius: 4px 4px 0 0; border-bottom: 1px dashed var(--line); }
  .page-right { border-radius: 0 0 4px 4px; }
  .leaf { display: none !important; }
}
@media (max-width: 700px) {
  .hero-stage { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; }
  .hero-photo { grid-column: 1 / -1; grid-row: 2; max-width: 300px; margin-top: 20px; }
  .script-name { grid-column: 1 / -1; text-align: center; }
  .hero-role { grid-column: 1 / -1; text-align: center; margin-top: 6px; }
  .hero-blurb { grid-column: 1 / -1; grid-row: 3; text-align: center; max-width: none; }
  .hero-year { display: none; }
  .stats { grid-auto-flow: row; }
  .wf-steps { grid-template-columns: 1fr 1fr; }
  .spread-photo.fill img { height: auto; }
  .collage { min-height: 360px; }
  .wf-steps li::after { display: none; }
  .spread-photo.fill img { aspect-ratio: 4 / 3; }
  .two-col { column-count: 1; }
  .cover-board { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
  .book-controls { grid-template-columns: auto 1fr; gap: 10px; }
  .book-controls > .pill:first-child { display: none; }
  .id-card { grid-template-columns: 1fr; text-align: center; }
  .id-photo { width: 150px; margin: 0 auto; }
  .id-actions { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- book preview pages ---------- */
.page .lead { font-size: 15px; line-height: 1.65; }
.page .points p { font-size: 13.5px; }
.preview-photo { flex: 1; min-height: 0; margin: 0 0 12px; position: relative; border-radius: 4px; overflow: hidden; }
.preview-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.preview-photo figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 92%, transparent); font-size: 11px; }
.inside { font-size: 13px; color: var(--soft); margin: 0 0 6px; }
.inside b { color: var(--ink); font-weight: 600; }
.open-btn { font-size: 14px; height: 38px; padding: 0 20px; }

/* ---------- detail page ---------- */
body.detail-open { overflow: hidden; }
.detail { position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: var(--bg); animation: rise .3s ease both; }
.detail[hidden] { display: none; }
.d-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.d-nav, .d-close { border: 0; background: none; font-family: var(--sans); font-size: 13px; color: var(--soft); cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.d-nav:hover { color: var(--accent); }
.d-count { font-size: 12px; color: var(--soft); letter-spacing: .08em; }
.d-close { margin-left: auto; border: 1px solid var(--accent); color: var(--accent); padding: 6px 14px; border-radius: 999px; }
.d-close:hover { background: var(--accent); color: #fff; }
.d-wrap { max-width: 920px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 32px) 80px; display: flex; flex-direction: column; gap: 22px; }
.d-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.d-id { display: flex; align-items: center; gap: 18px; }
.d-logo { height: 64px; width: auto; max-width: 120px; object-fit: contain; }
.d-name { font-weight: 300; font-size: clamp(40px, 6vw, 68px); line-height: 1; margin: 0 0 10px; letter-spacing: -.01em; }
.d-role { display: inline-block; padding: 4px 14px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size: 14px; font-weight: 500; }
.d-facts { margin: 0; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 6px; min-width: 260px; }
.d-facts div { display: grid; grid-template-columns: 56px 1fr; gap: 10px; font-size: 14px; }
.d-facts dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); padding-top: 3px; }
.d-facts dd { margin: 0; }
.d-facts a { color: var(--accent); }
.d-hero { margin: 0; border-radius: 16px; overflow: hidden; position: relative; background: #efeee8; }
.d-hero img { display: block; width: 100%; max-height: 520px; object-fit: cover; object-position: 50% 40%; }
.d-hero figcaption, .d-gallery figcaption { font-size: 13px; color: var(--soft); padding: 10px 4px 0; background: var(--bg); }
.d-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.d-title { font-weight: 300; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; margin: 0 0 16px; }
.d-title .script { font-size: 1.25em; }
.d-lead { font-size: 17px; line-height: 1.65; margin: 0 0 18px; }
.d-card .points li { padding: 12px 0; }
.d-card .points p { font-size: 15.5px; line-height: 1.6; }
.d-card .points .pt-n { font-size: 13px; padding-top: 3px; }
.d-why { margin: 0; padding-left: 18px; border-left: 2px solid var(--accent); }
.d-why p { margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 26px); font-style: italic; font-weight: 300; line-height: 1.35; }
.d-why span { font-size: 14px; color: var(--soft); }
.d-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.d-highlights div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.d-highlights h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--accent); }
.d-highlights p { margin: 0; font-size: 14px; line-height: 1.55; }
.d-card .wf-intro { font-size: 15px; }
.d-card .wf-label { font-size: 14px; }
.d-card .wf-steps li { min-height: 110px; padding: 12px; }
.d-card .wf-tag { font-size: 10.5px; }
.d-card .kicker { font-size: 17px; }
.d-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.d-gallery figure { margin: 0; }
.d-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.d-gallery figcaption { background: none; }
.d-split { display: grid; grid-template-columns: 1fr; }
.d-chips { margin-bottom: 10px; }
.d-chips h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); font-weight: 600; margin: 0 0 8px; }
.d-chips .chips span { font-size: 14px; padding: 4px 14px; }
.d-next { display: flex; justify-content: flex-end; }
@media (max-width: 700px) {
  .d-bar .d-nav { display: none; }
  .d-facts { min-width: 0; width: 100%; }
  .d-card .wf-steps { grid-template-columns: 1fr 1fr; }
  .d-card .wf-steps li::after { display: none; }
}
@media (max-width: 860px) {
  .book { grid-template-columns: minmax(0, 1fr); }
  .spread-head { flex-wrap: wrap; }
  .head-meta { width: 100%; align-items: flex-start; text-align: left; }
  .preview-photo { flex: none; aspect-ratio: 4 / 3; }
}
.wordmark { white-space: nowrap; }
@media (max-width: 600px) { .wordmark { font-size: 24px; } .topbar nav { gap: 14px; } }

/* events we ran (detail page) */
.d-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.d-events article { display: flex; flex-direction: column; }
.d-events img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.d-events h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--accent); }
.d-events p { margin: 0; font-size: 14px; line-height: 1.55; }

/* ---------- layout switch ---------- */
body.layout-cards .tabbar, body.layout-cards .book-stage, body.layout-cards .book-controls { display: none; }
body.layout-book .cards { display: none; }

/* ---------- article cards ---------- */
.cards { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease; }
.card:hover, .card:focus-visible { transform: translateY(-4px); box-shadow: 0 22px 40px -26px #5a3a3080; outline: none; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: #efeee8; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 20px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.card-title { display: flex; align-items: center; gap: 12px; }
.card-logo { height: 34px; width: auto; max-width: 72px; object-fit: contain; }
.card-title h3 { margin: 0; font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; }
.card-role { margin: 6px 0 14px; font-size: 14.5px; color: var(--soft); }
.card-headline { margin: 0 0 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 500; color: var(--accent); }
.card-read { margin-top: auto; align-self: flex-start; font-size: 14px; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .hero-stage { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 0; }
  .script-name { order: 1; margin-top: 10px; }
  .hero-role { order: 2; text-align: center; margin: 8px 0 0; }
  .hero-photo { order: 3; margin-top: 20px; width: 80%; align-self: center; }
  .hero-blurb { order: 4; margin-top: 20px; }
  .topbar nav a { font-size: 13.5px; }
  .topbar nav { gap: 12px; }
  .wordmark { font-size: 22px; }
}

/* ---------- off the clock: overlapping pile of covers ---------- */
.pile-sub { text-align: center; color: var(--soft); margin: -10px 0 40px; font-size: 15px; }
.cover-pile { max-width: 1100px; margin: 0 auto; padding: 10px 30px 30px; display: flex; flex-wrap: wrap; justify-content: center; }
.pile-book { position: relative; margin: 0 -14px -26px; width: 158px; aspect-ratio: 2 / 3; z-index: var(--z);
  transform: translateY(var(--dy)) rotate(var(--rot)); transition: transform .25s ease, box-shadow .25s ease; cursor: default; }
.pile-book img, .pile-book .type-cover { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px;
  box-shadow: 0 1px 0 #fff8 inset, 0 14px 22px -12px #3a2a2499, 0 2px 4px #0002; }
.pile-book::after { content: ""; position: absolute; inset: 0; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, #0000001f 0, #0000 6%, #ffffff14 9%, #0000 14%); }
.pile-book:hover, .pile-book:focus-visible { z-index: 20; transform: translateY(calc(var(--dy) - 14px)) rotate(0) scale(1.08); outline: none; }
.pile-book figcaption { position: absolute; left: 50%; bottom: -12px; transform: translate(-50%, 100%); width: max-content; max-width: 200px;
  padding: 6px 10px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font-size: 12px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 8px 16px -10px #0005; }
.pile-book figcaption b { display: block; font-weight: 600; }
.pile-book figcaption span { color: var(--soft); font-style: italic; }
.pile-book:hover figcaption, .pile-book:focus-visible figcaption { opacity: 1; }
@media (max-width: 700px) { .pile-book { width: 108px; margin: 0 -10px -18px; } .cover-pile { padding: 0 16px 30px; } }

/* ---------- workflow v2: before (slow chain) vs now (timeline) ---------- */
.wf-v2 .wf-steps.slow li { border-style: dashed; background: transparent; min-height: 96px; }
.wf-v2 .wf-steps.slow li:not(:nth-child(3n))::after { content: "⋯"; letter-spacing: 1px; }
.wf-v2 .wf-steps.slow .wf-tag { color: var(--soft); }
.wf-note.muted { color: var(--soft); }
.tl { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 18px; position: relative; }
.tl::before { content: ""; position: absolute; left: 6px; right: 6px; top: 11px; height: 2px; background: linear-gradient(90deg, var(--line), var(--accent)); }
.tl-stage { position: relative; display: flex; flex-direction: column; gap: 10px; }
.tl-time { position: relative; align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink); z-index: 1; }
.tl-stage.auto .tl-time { border-color: var(--accent); color: var(--accent); }
.tl-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper); flex: 1; }
.tl-stage.auto .tl-card { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--paper)); }
.tl-card h5 { margin: 4px 0 8px; font-size: 15px; font-weight: 600; font-style: normal; color: var(--ink); }
.tl-card ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }
.tl-card .wf-tag { font-size: 10px; }
.tl-stage.auto .wf-tag { color: var(--accent); }
.benefits { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.benefits span { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
@media (max-width: 700px) {
  .tl { grid-template-columns: 1fr; }
  .tl::before { left: 11px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--line), var(--accent)); }
}
.wf-v2 .wf-steps.slow li:nth-child(3n)::after { display: none; }
@media (max-width: 700px) { .wf-v2 .wf-steps.slow { grid-template-columns: 1fr 1fr; } .wf-v2 .wf-steps.slow li::after { display: none; } }

/* Before view: clearer manual steps */
.wf-v2 .wf-steps.slow li { border: 1px solid #d9ccc6; border-style: solid; background: var(--paper); min-height: 92px; }
.wf-v2 .wf-steps.slow .wf-n { color: var(--ink); font-weight: 600; }
.wf-v2 .wf-steps.slow .wf-label { font-size: 14.5px; color: var(--ink); font-weight: 500; }
.wf-v2 .wf-steps.slow li:not(:nth-child(3n))::after { content: "→"; letter-spacing: 0; color: #a3a09a; }
.manual-tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: #5c5356; color: #fff !important; font-size: 10.5px; letter-spacing: .08em; }

/* ---------- workflow v3: Before and Now share one timeline style ---------- */
.tl { display: grid; gap: 22px 18px; }
.tl::before { display: none; }
.tl-now { grid-template-columns: 1fr 1.4fr 1fr; }
.tl-before { grid-template-columns: repeat(3, 1fr); }
.tl-stage::before { content: ""; position: absolute; top: 11px; left: 0; right: -18px; height: 2px; background: var(--line); }
.tl-now .tl-stage.auto::before { background: var(--accent); }
.tl-stage:last-child::before, .tl-before .tl-stage:nth-child(3n)::before { right: 0; }
.tl-card { position: relative; }
.tl-card h5 { margin: 10px 0 6px; }
.tl-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tl-tag.manual { background: #5c5356; color: #fff; }
.tl-tag.person { border: 1px solid var(--ink); color: var(--ink); }
.tl-tag.auto { background: var(--accent); color: #fff; }
.tl-stage.manual .tl-card { background: var(--paper); border-color: var(--line); }
.tl-stage.manual .tl-time { color: var(--ink); }
.tl-before .tl-card { min-height: 96px; }
@media (max-width: 700px) {
  .tl-now, .tl-before { grid-template-columns: 1fr; }
  .tl-stage::before { top: 12px; bottom: -22px; left: 11px; right: auto; width: 2px; height: auto; }
  .tl-stage:last-child::before { display: none; }
}
/* Before uses the same neutral style as the "Person" card in Now */
.tl-tag.manual { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.tl-stage.manual .tl-card { background: var(--paper); border-color: var(--line); }
/* Keep the example-project card the same size in Before and Now:
   both views sit in the same grid cell; only the active one is visible. */
.wf-v2 { display: grid; grid-template-areas: "top" "intro" "views"; }
.wf-v2 > .wf-top { grid-area: top; }
.wf-v2 > .wf-intro { grid-area: intro; }
.wf-v2 > .wf-view { grid-area: views; display: block; visibility: hidden; }
.wf-v2[data-mode="before"] > .wf-view[data-view="before"],
.wf-v2[data-mode="now"] > .wf-view[data-view="now"] { visibility: visible; }

/* ---------- events we ran: big alternating rows ---------- */
.d-events { display: flex; flex-direction: column; gap: 30px; grid-template-columns: none; }
.d-events article { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: center; }
.d-events article:nth-child(even) .ev-img { order: 2; }
.ev-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; margin: 0; display: block; }
.ev-n { display: inline-block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: 8px; }
.d-events h4 { font-size: 22px; line-height: 1.2; margin: 0 0 10px; }
.d-events p { font-size: 15.5px; line-height: 1.65; }
@media (max-width: 700px) { .d-events article { grid-template-columns: 1fr; gap: 14px; } .d-events article:nth-child(even) .ev-img { order: 0; } }

/* ---------- site-wide polish for the new look ---------- */
.hero-title { font-weight: 300; letter-spacing: -.03em; }
.section-title { font-weight: 300; letter-spacing: -.02em; }
.d-name, .card-title h3 { font-weight: 400; letter-spacing: -.01em; }
.d-title { font-weight: 300; }
.topbar { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.d-bar { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.d-role { background: var(--pink); color: #fff; font-weight: 500; }
.chips span { background: var(--pink-50); color: var(--ink); }
.card, .d-card, .id-card { border-color: var(--line); }
.card-headline, .metric, .points .pt-n { color: var(--accent); }
.wf-toggle { border-color: var(--pink); }
.wf-toggle button[aria-pressed="true"] { background: var(--pink); color: #fff; }
.tl-tag.auto { background: var(--pink); }
.tl-stage.auto .tl-card { border-color: var(--pink); background: var(--pink-50); }
.tl-stage.auto .tl-time { border-color: var(--pink); color: var(--accent); }
.tl-now .tl-stage.auto::before { background: var(--pink); }
.benefits span { background: var(--pink-50); color: var(--accent); }
.d-why { border-left-color: var(--pink); }
.pill.solid { background: var(--accent); border-color: var(--accent); }
.pill { border-color: var(--accent); color: var(--accent); }
.pill.solid { color: #fff; }

/* ---------- buildtolaunch keeps its own pixel touches ---------- */
.dotgrid { background-image: none; }
.theme-b2l { --btl-blue: oklch(0.55 0.22 274); --btl-heading: oklch(0.3 0.04 275); --btl-sun: oklch(84% 0.14 78); --btl-leaf: oklch(78% 0.15 150); --btl-blush: oklch(80% 0.11 20); }
.theme-b2l .b2l-name { font-family: "Pixelify Sans", var(--sans); font-weight: 700; letter-spacing: 0; }
.theme-b2l .b2l-name em { font-style: normal; color: var(--btl-blue); }
.theme-b2l .d-card { position: relative; }
.theme-b2l .deco { position: absolute; top: 22px; right: 26px; }
.sprite { display: inline-block; image-rendering: pixelated; }


/* ======================================================================
   New look (applied site-wide)
   ====================================================================== */
body { font-family: var(--sans); background: var(--bg); color: var(--ink); }
.script { font-family: var(--sans); color: inherit; font-weight: inherit; }
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: .08em; height: .32em; background: var(--pink); opacity: .6; z-index: -1; border-radius: 3px; transform: rotate(-1deg); }

/* nav */
.topbar { max-width: 1240px; margin: 0 auto; padding: 22px clamp(20px, 4vw, 40px); gap: 40px; justify-content: flex-start; background: color-mix(in srgb, var(--bg) 92%, transparent); }
.topbar .mark { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); flex: 0 0 auto; }
.topbar .mark img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.topbar nav { gap: 34px; }
.topbar nav a { font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 16.5px; color: var(--ink); }
.topbar nav a:hover, .topbar .social a:hover { color: var(--accent); }
.topbar .social { margin-left: auto; display: flex; gap: 18px; font-weight: 600; font-size: 14px; }
.topbar .social a { text-decoration: none; }

/* hero */
.hero { max-width: 1240px; margin: 0 auto; padding: 50px clamp(20px, 4vw, 40px) 50px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; }
.hero h1 { font-weight: 700; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 30px; }
.wavy > span { display: inline-block; }
.wavy > span:nth-child(odd) { transform: translateY(-4px) rotate(-3deg); }
.wavy > span:nth-child(even) { transform: translateY(3px) rotate(3deg); }
.btn-outline { display: inline-flex; align-items: center; gap: 12px; padding: 13px 28px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 16.5px; text-decoration: none; transition: background .2s, color .2s; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.hero-art { position: relative; justify-self: center; width: min(430px, 100%); aspect-ratio: 4 / 5; }
.hero-art .blob { position: absolute; inset: 0; border-radius: 48% 52% 46% 54% / 40% 42% 58% 60%; overflow: hidden; border: 2.5px solid var(--ink); }
.hero-art .blob img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.doodle { position: absolute; z-index: 1; }
.d1 { top: -54px; left: -44px; width: 104px; }
.d2 { top: 50%; left: -54px; width: 70px; transform: rotate(-70deg); }
.d3 { bottom: -74px; right: -78px; width: 130px; }
.note { position: absolute; z-index: 2; top: 10px; right: -46px; width: 170px; padding: 16px 14px 12px; background: var(--paper); border: 1.5px solid var(--ink); transform: rotate(3deg); text-align: center; box-shadow: 3px 3px 0 var(--ink); }
.note b { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 10px; letter-spacing: .14em; padding: 2px 10px; }
.note p { margin: 4px 0 0; font-family: var(--hand); font-size: 22px; line-height: 1.1; }

/* logo strip */
.logos { max-width: 1240px; margin: 0 auto; padding: 10px clamp(20px, 4vw, 40px) 30px; }
.eyebrow { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin: 0 0 14px; font-weight: 600; }
.strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: #8a847a; text-decoration: none; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s, color .2s; }
.strip a:hover { filter: none; opacity: 1; color: var(--ink); }
.strip img { height: 30px; width: auto; max-width: 90px; object-fit: contain; border-radius: 5px; }

/* section titles, cards, books, contact */
.section-title { font-weight: 700; letter-spacing: -.025em; font-size: clamp(36px, 4.6vw, 54px); }
.section-title .hl, .d-title .hl { font-size: 1em; }
.card { background: var(--paper); border-radius: 22px; }
.card-title h3 { font-weight: 700; letter-spacing: -.01em; }
.card-kicker, .card-role { font-weight: 500; }
.card-headline { color: var(--accent); font-weight: 600; }
.card-read { color: var(--ink); font-weight: 600; }
.pile-sub { font-weight: 500; }
.id-card { background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.id-name { font-family: var(--sans); font-weight: 700; font-size: 34px; color: var(--ink); letter-spacing: -.02em; }
.pill { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.pill.solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.solid:hover { background: var(--accent); border-color: var(--accent); }
.footer { font-weight: 500; }

/* detail pages */
.detail { background: var(--bg); font-family: var(--sans); }
.d-bar { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.d-name { font-weight: 700; letter-spacing: -.025em; }
.d-title { font-weight: 700; letter-spacing: -.02em; }
.d-card { background: var(--paper); border-radius: 22px; }
.d-facts { background: var(--paper); }
.d-role { background: var(--ink); color: #fff; font-weight: 600; }
.d-lead { font-weight: 400; }
.points b { font-weight: 700; }
.metric, .points .pt-n { color: var(--accent); font-weight: 700; }
.chips span { background: var(--pink-50); color: var(--ink); font-weight: 500; }
.kicker { font-family: var(--sans); font-style: normal; font-weight: 700; color: var(--accent); }
.d-why { border-left-color: var(--orange); }
.d-why p { font-style: normal; font-weight: 600; }
.d-events h4 { font-weight: 700; color: var(--ink); }
.ev-n { font-weight: 600; color: var(--accent); }
.wf-toggle { border-color: var(--ink); }
.wf-toggle button { color: var(--ink); font-weight: 600; }
.wf-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tl-tag.auto { background: var(--orange); }
.tl-stage.auto .tl-card { border-color: var(--orange); background: var(--pink-50); }
.tl-stage.auto .tl-time { border-color: var(--orange); color: var(--accent); }
.tl-now .tl-stage.auto::before { background: var(--orange); }
.tl-card h5 { font-weight: 700; }
.benefits span { background: var(--pink-50); color: var(--accent); font-weight: 600; }
.wf-note { color: var(--accent); }
.d-close { border-color: var(--ink); color: var(--ink); }
.d-close:hover { background: var(--ink); color: #fff; }
.d-facts a, .d-nav:hover { color: var(--accent); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 50px; }
  .hero-art { width: min(340px, 82%); }
  .note { right: -14px; top: -28px; width: 150px; }
  .strip { flex-wrap: wrap; justify-content: center; }
  .topbar { gap: 18px; }
  .topbar nav { gap: 16px; }
  .topbar .social { display: none; }
}

/* ---------- round 2 tweaks ---------- */
/* highlight: a soft butter-yellow highlighter instead of pink */
.hl::after { background: #f6d860; opacity: .7; }
/* hero photo: rounded rectangle print instead of a blob */
.hero-art .frame { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); transform: rotate(-1.5deg); background: #efe9dd; }
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
/* logo strip: logos only */
.strip { justify-content: space-around; padding: 26px 10px; }
.strip a, .strip span { display: inline-flex; align-items: center; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s, transform .2s; }
.strip a:hover, .strip span:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.strip img { height: 46px; width: auto; max-width: 160px; object-fit: contain; border-radius: 6px; }
/* events: every photo big, text under it */

/* Events: three side by side, so each photo stays a comfortable size */
.d-events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.d-events article { display: block; }
.d-events article:nth-child(even) .ev-img { order: 0; }
.ev-img img { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; margin-bottom: 12px; }
.d-events h4 { font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
.d-events p { font-size: 14.5px; line-height: 1.6; }
@media (max-width: 760px) { .d-events { grid-template-columns: 1fr; gap: 28px; } }

/* ===== unslop pass ===== */
/* 1. Labels: sentence case, readable size, no wide tracking */
.eyebrow, .card-kicker, .d-facts dt, .d-chips h4, .id-label, .tl-tag, .wf-tag, .tl-card .wf-tag, .d-card .wf-tag, .head-meta b, .note b {
  text-transform: none; letter-spacing: .01em;
}
.eyebrow { font-size: 15px; font-weight: 600; color: var(--soft); }
.card-kicker { font-size: 14px; }
.d-facts dt { font-size: 13px; }
.d-chips h4 { font-size: 14px; }
.id-label { font-size: 13px; }
.tl-tag, .tl-card .wf-tag, .d-card .wf-tag { font-size: 12px; }
.note b { font-size: 12px; font-weight: 600; letter-spacing: .02em; }

/* 3. One shadow language: crisp ink offset on the hero frame, note and ID card only */
.card, .card:hover, .card:focus-visible { box-shadow: none; }
.cover, .pile-book { box-shadow: 0 1px 2px #0000001f, 0 4px 10px -6px #0000002e; }

/* 4. Quiet hovers: border/colour, no lifting or zooming */
.card { transition: border-color .2s ease; }
.card:hover, .card:focus-visible { transform: none; border-color: var(--ink); }
.card:hover .card-img img { transform: none; }
.pile-book:hover, .pile-book:focus-visible { transform: translateY(var(--dy)) rotate(0); }
.cover:hover { transform: translateY(var(--dy)) rotate(0); }
.strip a:hover, .strip span:hover { transform: none; }
.id-card:hover { transform: rotate(-1deg); }

/* 8. Logos that come with their own box sit a bit smaller so they don't outweigh the rest */
.strip .boxed img { height: 38px; border-radius: 8px; }

/* ===== Contact: ticket pass ===== */
.ticket { position: relative; max-width: 700px; margin: 0 auto; display: grid; grid-template-columns: 1fr 120px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-1deg); overflow: hidden; }
/* perforation notches + dashed tear line */
.ticket::before, .ticket::after { content: ""; position: absolute; right: 106px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--ink); z-index: 2; }
.ticket::before { top: -15px; } .ticket::after { bottom: -15px; }
.t-main { display: grid; grid-template-columns: 150px 1fr; gap: 26px; padding: 26px; align-items: center; }
.t-photo { aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--ink); }
.t-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.t-name { margin: 0 0 4px; font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.t-role { margin: 0 0 16px; font-size: 16px; color: var(--soft); }
.t-meta { margin: 0 0 20px; padding: 12px 0 0; border-top: 1.5px dashed var(--line); }
.t-meta dt { font-size: 13px; color: var(--soft); margin: 0; }
.t-meta dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; }
.t-stub { border-left: 2px dashed var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 26px 0; background: #f6d860; }
.t-stub span { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.t-code { width: 44px; height: 90px; opacity: .85;
  background: repeating-linear-gradient(0deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 12px, transparent 12px 14px); }
@media (max-width: 620px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .t-main { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .t-photo { width: 140px; }
  .t-stub { border-left: 0; border-top: 2px dashed var(--ink); flex-direction: row; padding: 14px 24px; }
  .t-stub span { writing-mode: horizontal-tb; transform: none; }
  .t-code { width: 90px; height: 30px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 12px, transparent 12px 14px); }
}

/* Events: stacked rows, photo medium-size beside the text */
.d-events { display: flex; flex-direction: column; gap: 32px; }
.d-events article { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.ev-img img { aspect-ratio: 3 / 2; border-radius: 14px; margin: 0; }
.d-events h4 { font-size: 20px; margin-bottom: 8px; }
.d-events p { font-size: 15.5px; line-height: 1.65; }
@media (max-width: 760px) { .d-events article { grid-template-columns: 1fr; gap: 14px; } }
.d-events article:nth-child(2) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.d-events article:nth-child(2) .ev-img { order: 2; }
@media (max-width: 760px) { .d-events article:nth-child(2) { grid-template-columns: 1fr; } .d-events article:nth-child(2) .ev-img { order: 0; } }

/* Process steps with a short detail line */
.wf-detail { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.proc .wf-label { font-size: 15px; font-weight: 700; }
/* What I learned */
.d-learn { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.d-learn li { border: 1.5px solid var(--line); border-radius: 14px; padding: 18px; background: var(--bg); }
.d-learn h4 { margin: 8px 0 6px; font-size: 17px; font-weight: 700; }
.d-learn p { margin: 0; font-size: 14.5px; line-height: 1.6; }
@media (max-width: 760px) { .d-learn { grid-template-columns: 1fr; } }

/* Example project: narrowing funnel */
.funnel { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: fn; }
.funnel li { position: relative; display: flex; flex-direction: column; padding: 16px 14px 14px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); }
.funnel li:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--soft); background: var(--paper); line-height: 1; }
.funnel li:last-child { background: #fdf3c8; box-shadow: 4px 4px 0 var(--ink); }
.fn-icon { font-size: 22px; line-height: 1; }
.fn-stat { margin-top: 10px; font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--orange); }
.fn-title { margin-top: 8px; font-size: 16px; font-weight: 700; line-height: 1.25; }
.fn-cap { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--soft); flex: 1; }
.fn-bar { display: block; margin-top: 14px; height: 6px; width: var(--w); border-radius: 99px; background: var(--orange); opacity: .85; }
@media (max-width: 860px) { .funnel { grid-template-columns: 1fr; } .funnel li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -12px; transform: translateX(-50%); } }

/* What I learned: story cards */
.d-learn { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.d-learn li { display: flex; flex-direction: column; padding: 20px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--paper); }
.d-learn li:nth-child(1) { background: #fdeee6; }
.d-learn li:nth-child(2) { background: #fdf6d8; }
.d-learn li:nth-child(3) { background: #e9f4ec; }
.ln-emoji { margin: 0; font-size: 30px; line-height: 1; display: flex; align-items: center; gap: 8px; }
.ln-arrow { font-size: 16px; color: var(--soft); }
.d-learn h4 { margin: 14px 0 8px; font-size: 18px; line-height: 1.25; }
.ln-story { margin: 0; font-size: 14.5px; line-height: 1.6; flex: 1; }
.ln-take { margin: 16px 0 0; padding-top: 12px; border-top: 1.5px dashed #0000002a; font-weight: 700; font-size: 15px; line-height: 1.4; }

/* Emerson example project: same timeline pieces as Midi, laid out top to bottom */
.tl-proc { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.tl-proc .tl-stage { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; }
.tl-proc .tl-stage::before { top: 14px; bottom: -28px; left: 34px; right: auto; width: 2px; height: auto; }
.tl-proc .tl-stage:last-child::before { display: none; }
.tl-proc .tl-time { margin-top: 2px; }
.tl-proc .tl-card h5 { font-size: 17px; }
.tl-proc .tl-card ul { font-size: 14.5px; }
.tl-proc .tl-stage.auto .tl-card { box-shadow: 4px 4px 0 var(--ink); border-color: var(--ink); }
/* Learnings: simpler */
.d-learn li { padding: 20px; }
.d-learn .ln-emoji { font-size: 26px; line-height: 1; }
.d-learn h4 { margin: 12px 0 8px; }
.d-learn .ln-story { font-size: 15px; }

/* Emerson example project: two rows (3 + 2) instead of one long column */
.tl-proc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.tl-proc .tl-stage { display: flex; flex-direction: column; gap: 10px; }
.tl-proc .tl-stage::before { top: 11px; bottom: auto; left: 0; right: -18px; width: auto; height: 2px; }
.tl-proc .tl-stage:nth-child(3n)::before, .tl-proc .tl-stage:last-child::before { right: 0; display: block; }
.tl-proc .tl-time { margin-top: 0; }
.tl-proc .tl-stage:last-child { grid-column: span 2; }
.tl-proc .tl-card h5 { font-size: 16px; margin-bottom: 0; }
.tl-proc .tl-card ul { margin-top: 8px; }
.wf-year { display: inline-block; margin-left: 8px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--soft); vertical-align: middle; }
@media (max-width: 760px) { .tl-proc { grid-template-columns: 1fr; } .tl-proc .tl-stage:last-child { grid-column: auto; } .tl-proc .tl-stage::before { display: none; } }
.tl-proc { align-items: start; }
.tl-proc .tl-card { flex: none; min-height: 112px; }
.tl-proc .tl-card { width: 100%; box-sizing: border-box; }
/* Learnings: same quiet surface as the rest of the page */
.d-learn li, .d-learn li:nth-child(1), .d-learn li:nth-child(2), .d-learn li:nth-child(3) { background: var(--bg); border: 1px solid var(--line); }

/* Detail header: keep When/Where/Site on the right, even with a long company name */
@media (min-width: 761px) {
  .d-head { flex-wrap: nowrap; align-items: center; }
  .d-id { min-width: 0; }
  .d-name { font-size: clamp(36px, 4.6vw, 60px); }
  .d-facts { flex-shrink: 0; min-width: 240px; }
}
/* Long company names: smaller and balanced, so they stay on two lines */
.d-name.long { font-size: clamp(32px, 3.8vw, 46px); text-wrap: balance; max-width: 15ch; }
.d-head:has(.d-name.long) .d-logo { height: 78px; max-width: 180px; }
/* Book pile: lighter overlap so every title stays readable */
.pile-book { margin: 0 -8px -22px; }
@media (max-width: 700px) { .pile-book { margin: 0 -6px -14px; } }
.pile-book { margin: 0 -8px -8px; }
/* New hero photo framing */
.hero-art .frame img { object-position: 50% 38%; }
/* "Why it matters" as my own words, not a quote */
.d-why { border-left: 0; padding-left: 0; }
.d-why p { font-style: normal; font-weight: 700; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.35; margin-bottom: 10px; }
.d-why span { display: block; font-size: 16px; line-height: 1.65; color: var(--ink); }
.hero-art .frame img { object-position: 50% 40%; }
.hero-art .frame img { object-position: 50% 38%; }
.hero-art .frame img { object-position: 50% 40%; }

/* ===== Contact: postcard ===== */
.postcard { position: relative; max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--ink); transform: rotate(-1deg); }
.pc-msg { padding: 34px 30px 28px 34px; border-right: 1.5px solid var(--line); }
.pc-hand { font-family: var(--hand); font-size: 25px; line-height: 1.3; margin: 0 0 12px; color: var(--ink); }
.pc-hand a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.pc-sign { margin-top: 18px; font-size: 32px; }
.pc-sign::before { content: "— "; }
.pc-side { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 22px; }
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pc-postmark { width: 92px; height: 92px; border: 2px solid #b9b2a5; border-radius: 50%; display: grid; place-content: center; text-align: center;
  color: #8d867a; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-14deg); margin-top: 10px; line-height: 1.3; }
.pc-postmark b { font-size: 15px; }
.pc-stamp { width: 104px; aspect-ratio: 4 / 5; padding: 6px; background: #fff;
  -webkit-mask: radial-gradient(circle 4px at 4px 4px, #0000 98%, #000) -4px -4px / 12px 12px; mask: radial-gradient(circle 4px at 4px 4px, #0000 98%, #000) -4px -4px / 12px 12px;
  filter: drop-shadow(0 1px 1px #0003); transform: rotate(3deg); }
.pc-stamp img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.pc-lines p { margin: 0; padding: 9px 2px 5px; border-bottom: 1.5px solid var(--line); font-size: 15px; }
.pc-lines p:first-child { font-weight: 700; font-size: 18px; }
.pc-lines p:nth-child(2) { color: var(--soft); }
.pc-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.pc-link:hover { color: var(--accent); }
@media (max-width: 680px) {
  .postcard { grid-template-columns: 1fr; transform: none; }
  .pc-msg { border-right: 0; border-bottom: 1.5px solid var(--line); padding: 26px 22px 18px; }
  .pc-hand { font-size: 22px; }
}
.pc-stamp { padding: 7px; -webkit-mask: radial-gradient(circle 4px, #0000 95%, #000) -6px -6px / 12px 12px, linear-gradient(#000 0 0) content-box;
  mask: radial-gradient(circle 4px, #0000 95%, #000) -6px -6px / 12px 12px, linear-gradient(#000 0 0) content-box;
  -webkit-mask-composite: source-over; mask-composite: add; }

/* ===== Contact: simple card ===== */
.hello-card { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; padding: 26px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); transform: rotate(-1deg); }
.hc-photo { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--ink); }
.hc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
.hc-name { margin: 0 0 4px; font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.hc-role { margin: 0 0 16px; font-size: 16px; color: var(--soft); }
.hc-meta { margin: 0 0 20px; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.hc-meta dt { font-size: 13px; color: var(--soft); }
.hc-meta dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; }
@media (max-width: 620px) { .hello-card { grid-template-columns: 1fr; text-align: center; justify-items: center; transform: none; } .hc-photo { width: 150px; } }

/* Top-left: name instead of a photo icon */
.topbar .mark-text { width: auto; height: auto; border-radius: 0; border: 0; overflow: visible; font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
/* Original, uncropped photo: frame it with object-position only */
.hero-art .frame img { object-position: 52% 72%; }
.hc-photo img { object-position: 52% 70%; }
/* Frame closer on you (display zoom only; the photo file is untouched) */
.hero-art .frame img { transform: scale(1.45); transform-origin: 52% 80%; }
.hc-photo img { transform: scale(1.6); transform-origin: 52% 75%; }
.hc-photo img { object-position: 52% 80%; transform-origin: 53% 85%; }
/* Center you horizontally in both photos */
.hero-art .frame img { object-position: 57% 80%; transform-origin: 50% 80%; }
.hc-photo img { object-position: 57% 80%; transform-origin: 50% 85%; }
/* Location with a pin */
.hc-loc { display: flex; align-items: center; gap: 6px; margin: 0 0 20px; padding-top: 12px; border-top: 1.5px dashed var(--line); font-size: 16px; font-weight: 600; }
.hc-loc svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
@media (max-width: 620px) { .hc-loc { justify-content: center; } }
