/* ============================================================
   Sub-page styles — Work index + Case studies
   Builds on portfolio.css tokens. Display = Bebas (from :root).
   ============================================================ */

/* ---------- Page header ---------- */
.page-head {
  padding-top: clamp(128px, 17vh, 184px);
  padding-bottom: clamp(40px, 6vh, 72px);
}
.page-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 9rem);
  line-height: 0.96;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  margin: 14px 0 0;
}
.page-head__sub {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Work index list ---------- */
.work-list {
  border-top: 1px solid var(--ink);
  margin-bottom: clamp(60px, 10vh, 120px);
}
.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 40px;
  gap: clamp(16px, 4vw, 56px);
  align-items: start;
  padding: clamp(26px, 4vw, 44px) 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background var(--dur, 0.3s) var(--ease);
}
a.work-row { color: inherit; }
a.work-row:hover { background: #fff; }
.work-row__num {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 12px;
}
.work-row__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  margin: 0;
  transition: color 0.2s var(--ease);
}
a.work-row:hover .work-row__title { color: var(--accent); }
.work-row__hook {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 46ch;
}
.work-row__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 6px;
}
.meta-pair { min-width: 0; }
.meta-pair dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}
.meta-pair dd { margin: 0; font-size: 0.98rem; color: var(--ink); }
.work-row__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.work-row__arrow {
  align-self: center;
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.2s var(--ease);
}
a.work-row:hover .work-row__arrow { transform: translateX(5px); color: var(--accent); }

.work-row--soon { opacity: 0.62; }
.work-row--soon .work-row__title { color: var(--muted); }

@media (max-width: 760px) {
  .work-row { grid-template-columns: 1fr; gap: 18px; }
  .work-row__arrow { display: none; }
  .work-row__meta { flex-direction: row; flex-wrap: wrap; gap: 22px; }
}

/* ---------- Case study ---------- */
.cs-head { padding-top: clamp(122px, 16vh, 172px); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: clamp(28px, 5vh, 48px);
  transition: gap 0.25s var(--ease), color 0.2s var(--ease);
}
.back-link:hover { gap: 12px; color: var(--ink); }
.cs-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  margin: 16px 0 0;
}
.cs-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.cs-meta .sep { color: var(--border); }
.cs-meta strong { color: var(--ink); font-weight: 600; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f7d27;
  background: var(--bl-green-light, #D7F5C3);
  border-radius: var(--radius-pill, 999px);
  padding: 5px 12px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Section rhythm */
.cs-section { padding-block: clamp(48px, 8vh, 96px); }
.cs-section + .cs-section { padding-top: 0; }
.cs-label {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 600;
}
.cs-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.0;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  margin: 0 0 28px;
  max-width: 20ch;
}
.cs-prose { max-width: 66ch; }
.cs-prose p {
  margin: 0 0 22px;
  font-size: 1.1875rem;
  line-height: 1.72;
  color: var(--ink);
}
.cs-prose p:last-child { margin-bottom: 0; }
.cs-prose .lead {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cs-prose strong { font-weight: 600; }
.cs-prose em { font-style: italic; color: var(--accent); }

/* Figures */
.cs-fig { margin: clamp(40px, 6vh, 72px) 0 0; }
.cs-fig + .cs-fig { margin-top: clamp(28px, 4vh, 48px); }
.cs-figcap {
  margin: 18px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}
.cs-figcap strong { color: var(--ink); font-weight: 600; }

/* Browser chrome (product UI shots) */
.browser {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg, 0 24px 60px -28px rgba(20,20,18,0.28));
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #ECEAE4;
  border-bottom: 1px solid var(--border);
}
.browser__dots { display: flex; gap: 7px; }
.browser__dots span { width: 11px; height: 11px; border-radius: 50%; background: #CFCCC3; display: block; }
.browser__url {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill, 999px);
  padding: 5px 16px;
  flex: 1;
  max-width: 420px;
}
.browser img { display: block; width: 100%; height: auto; }

/* Plain artifact frame (design boards, spreads) */
.artifact {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md, 0 14px 40px -24px rgba(20,20,18,0.22));
}
.artifact img { display: block; width: 100%; height: auto; }
.artifact--pad { padding: clamp(16px, 3vw, 36px); background: var(--bg-alt); }

/* Closing / next */
.cs-next {
  border-top: 1px solid var(--ink);
  margin-top: clamp(60px, 9vh, 110px);
  padding-top: clamp(36px, 5vh, 56px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.cs-next__label { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); transition: color 0.2s var(--ease); }
a.cs-next__label:hover { color: var(--accent); }
.cs-next__link {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: var(--display-transform);
  letter-spacing: var(--display-tracking);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: gap 0.25s var(--ease), color 0.2s var(--ease);
}
.cs-next__link:hover { gap: 18px; color: var(--accent); }

/* ============================================================
   Image placeholder system (shown until real file is dropped in)
   Works inside .browser and .artifact frames.
   ============================================================ */
.browser.is-empty { background: #fff; }
.browser.is-empty .browser__bar { opacity: 1; }
.artifact.is-empty { box-shadow: none; background: transparent; }
.browser.is-empty img, .artifact.is-empty img { display: none; }
.frame-ph { display: none; }
.is-empty .frame-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  aspect-ratio: 16 / 10;
  padding: 24px;
  border: 1.5px dashed #C7C5BD;
  background:
    repeating-linear-gradient(-45deg, transparent 0 11px, rgba(0,0,0,0.018) 11px 12px),
    #F7F6F2;
}
.artifact.is-empty .frame-ph { border-radius: 10px; }
.frame-ph__tag {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.frame-ph__file {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9rem; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 12px; word-break: break-all;
}
.frame-ph__hint { font-size: 0.78rem; color: var(--muted); }

/* ============================================================
   Before-state grid (3 product surfaces side by side)
   ============================================================ */
.before-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(40px, 6vh, 64px);
}
.before-grid .artifact img { filter: grayscale(0.3) saturate(0.78); }
.before-item__label {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.before-item__label strong { color: var(--ink); font-weight: 600; display: block; font-size: 0.95rem; margin-bottom: 2px; }
@media (max-width: 720px) {
  .before-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* After-grid: same layout, full-color (used for the redesign's tool panels) */
.after-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(40px, 6vh, 64px);
}
@media (max-width: 720px) {
  .after-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   Live prototype embed
   ============================================================ */
.proto-embed {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1f2528 0%, #14181a 70%);
  box-shadow: var(--shadow-lg, 0 24px 60px -28px rgba(20,20,18,0.4));
}
.proto-embed__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.proto-embed__tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--fs-eyebrow); letter-spacing: 0.1em; text-transform: uppercase;
  color: #cfd3d4;
}
.proto-embed__tag .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #5fd07a;
  box-shadow: 0 0 0 0 rgba(95,208,122,0.6);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(95,208,122,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(95,208,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(95,208,122,0); }
}
.proto-embed__open {
  font-size: 0.82rem; font-weight: 600; color: #cfd3d4;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s var(--ease);
}
.proto-embed__open:hover { color: #fff; }
.proto-embed iframe {
  display: block;
  width: 100%;
  height: 940px;
  border: 0;
  background: transparent;
}
@media (max-width: 520px) {
  .proto-embed iframe { height: 860px; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* Intro: portrait + opening statement */
.about-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(48px, 8vh, 88px);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 820px) {
  .about-lead { grid-template-columns: 1fr; gap: 32px; }
}
.about-portrait {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg, 0 24px 60px -30px rgba(20,20,18,0.3));
  aspect-ratio: 1 / 1;
}
.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}
.about-portrait__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill, 999px);
  padding: 6px 13px;
}
.about-portrait__tag .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #5C9A2E;
}
.about-lead__body { padding-top: 4px; }
.about-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  margin: 0 0 28px;
  max-width: 16ch;
}
.about-statement em { font-style: var(--display-em-style); color: var(--accent); }

/* Principles — "how I work" */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: clamp(36px, 5vh, 56px);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }
.principle {
  background: var(--bg);
  padding: clamp(24px, 3.4vw, 38px);
}
.principle__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.principle__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.04;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  margin: 16px 0 12px;
}
.principle__body { margin: 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.6; }
.principle__body strong { color: var(--ink); font-weight: 600; }

/* Experience timeline */
.timeline {
  margin-top: clamp(36px, 5vh, 56px);
  border-top: 1px solid var(--ink);
}
.tl-row {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr);
  gap: clamp(16px, 4vw, 56px);
  align-items: start;
  padding: clamp(24px, 3.4vw, 38px) 4px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 640px) { .tl-row { grid-template-columns: 1fr; gap: 10px; } }
.tl-row__period {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 6px;
}
.tl-row__role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.0;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  margin: 0;
}
.tl-row__org { color: var(--accent); }
.tl-row__desc { margin: 12px 0 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.6; max-width: 54ch; }
.tl-row__desc strong { color: var(--ink); font-weight: 600; }
.tl-row__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }

/* Skills & tools */
.skill-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(36px, 5vh, 56px);
}
@media (max-width: 720px) { .skill-cols { grid-template-columns: 1fr; gap: 28px; } }
.skill-group__label {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 26%, transparent);
  padding: 8px 13px;
  border-radius: 8px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.chip:hover {
  background: color-mix(in oklch, var(--accent) 14%, transparent);
  transform: translateY(-1px);
}
/* Tools: solid ink chips for contrast against the accent skill chips */
.chip--solid {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}
.chip--solid:hover { background: #000; }

/* Beyond work — text + photo */
.about-beyond {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(8px, 2vh, 20px);
}
@media (max-width: 820px) {
  .about-beyond { grid-template-columns: 1fr; gap: 28px; }
}
.about-photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg, 0 24px 60px -30px rgba(20,20,18,0.3));
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.about-photo figcaption {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.about-photo figcaption strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   State grid (connection-state model)
   ============================================================ */
.state-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(40px, 6vh, 64px);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.state-item {
  background: var(--bg);
  padding: clamp(22px, 3vw, 32px);
}
.state-item__dot {
  display: inline-block;
  width: 10px; height: 10px; border-radius: 50%;
  margin-bottom: 14px;
}
.state-item__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  margin: 0 0 10px;
}
.state-item__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}
@media (max-width: 760px) {
  .state-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AI PRODUCT LIFECYCLE (process case study)
   ============================================================ */

/* ---- Hero loop: 6-node overview stepper ---- */
.pdlc-loop {
  margin-top: clamp(36px, 6vh, 64px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  padding: clamp(30px, 4vw, 48px) clamp(22px, 3vw, 40px) clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-md, 0 14px 40px -24px rgba(20,20,18,0.22));
}
.pdlc-loop__row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
/* connector line behind the dots, spanning first→last dot centers (8.33%) */
.pdlc-loop__row::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 8.33%;
  right: 8.33%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.pdlc-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 6px;
}
.pdlc-node__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
}
.pdlc-node--ai .pdlc-node__num {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.pdlc-node__label {
  margin-top: 13px;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 600;
  max-width: 14ch;
}
.pdlc-node__tool {
  margin-top: 6px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pdlc-node--ai .pdlc-node__tool { color: var(--accent); }
.pdlc-loop__foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.pdlc-loop__foot .loop-mark { color: var(--accent); font-size: 1.05rem; line-height: 1; }
@media (max-width: 760px) {
  .pdlc-loop__row { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .pdlc-loop__row::before { display: none; }
}
@media (max-width: 440px) {
  .pdlc-loop__row { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Detailed steps ---- */
.pdlc-steps {
  margin-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid var(--ink);
}
.pdlc-step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: clamp(14px, 3vw, 40px);
  align-items: start;
  padding: clamp(24px, 3.4vw, 38px) 4px;
  border-bottom: 1px solid var(--border);
}
.pdlc-step__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 0.86;
  letter-spacing: var(--display-tracking);
  color: var(--border);
}
.pdlc-step--ai .pdlc-step__num { color: color-mix(in oklch, var(--accent) 42%, var(--border)); }
.pdlc-step__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.04;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  margin: 0 0 11px;
}
.pdlc-step__desc {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.62;
  max-width: 58ch;
}
.pdlc-step__desc strong { color: var(--ink); font-weight: 600; }
.pdlc-step__desc .claude { color: var(--accent); font-weight: 600; }
.pdlc-step__driver {
  justify-self: end;
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill, 999px);
  padding: 6px 13px;
  margin-top: 4px;
}
.pdlc-step--ai .pdlc-step__driver {
  color: var(--accent);
  border-color: color-mix(in oklch, var(--accent) 32%, transparent);
  background: color-mix(in oklch, var(--accent) 7%, transparent);
}
@media (max-width: 720px) {
  .pdlc-step { grid-template-columns: 52px 1fr; gap: 14px 18px; }
  .pdlc-step__driver { grid-column: 2; justify-self: start; margin-top: 14px; }
}

/* ---- Outcome stat callout ---- */
.pdlc-stat {
  margin-top: clamp(40px, 6vh, 64px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--bg);
  padding: clamp(28px, 4vw, 46px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}
.pdlc-stat__big {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.92;
  text-transform: var(--display-transform);
  letter-spacing: var(--display-tracking);
  color: var(--ink);
}
.pdlc-stat__big em { display: block; color: var(--accent); font-style: var(--display-em-style); }
.pdlc-stat__body { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.62; max-width: 50ch; }
.pdlc-stat__body strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .pdlc-stat { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   PASSWORD GATE (private case studies)
   ============================================================ */
.is-gated { overflow: hidden; }
.is-gated body { overflow: hidden; }
.gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.gate__card {
  width: 100%;
  max-width: 420px;
  text-align: left;
}
.gate__eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.gate__eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.gate__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 3.5rem);
  line-height: 1.0;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  margin: 0 0 18px;
}
.gate__sub {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 38ch;
}
.gate__form { display: flex; flex-wrap: wrap; gap: 10px; }
.gate__input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 16px;
  letter-spacing: 0.04em;
}
.gate__input::placeholder { color: var(--muted); letter-spacing: 0; }
.gate__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.gate__btn {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background 0.2s var(--ease), gap 0.2s var(--ease);
}
.gate__btn:hover { background: #000; gap: 13px; }
.gate__err {
  margin: 16px 0 0;
  color: var(--accent);
  font-size: 0.92rem;
}
.gate__back {
  display: inline-block;
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.gate__back:hover { color: var(--ink); }
.gate--shake { animation: gateShake 0.4s var(--ease); }
@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .gate--shake { animation: none; }
}

/* ============================================================
   Lightbox (thumbnail grids — click to inspect)
   ============================================================ */
.artifact--zoom { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 4vmin;
  background: rgba(17, 17, 16, 0.93);
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100% - 40px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.lightbox__hint {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 244, 240, 0.6);
}
