/* /portfolio only — a slower, more exploratory read. */

.pf-hero { padding-block: clamp(48px, 6vw, 104px) clamp(56px, 6vw, 112px); }
.pf-hero__grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--s-12) var(--s-16); align-items: center; }
.pf-hero__text { display: grid; gap: var(--s-6); justify-items: start; }
.pf-hero h1 { font-size: var(--text-3xl); line-height: var(--leading-tight); max-width: 17ch; }
.pf-hero__lede { font-family: var(--font-serif); font-size: var(--text-lg); line-height: 1.45; color: var(--on-forest-soft); max-width: 34ch; }
.pf-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-8); margin-top: var(--s-2); }
.pf-hero__actions .text-link { font-size: var(--text-sm); color: var(--on-forest-soft); text-decoration-color: var(--rule-dark); }
.pf-hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid var(--rule-dark); width: 100%;
  font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-forest-faint);
}
.pf-hero__facts li:first-child { color: var(--terracotta-light); }
.pf-hero__portrait { max-width: 380px; justify-self: end; width: 100%; }

@media (max-width: 767px) {
  .pf-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .pf-hero__portrait { justify-self: stretch; max-width: none; aspect-ratio: 4 / 3; }
  .pf-hero__portrait .portrait__silhouette { left: auto; right: 6%; width: 50%; }
  .pf-hero__actions { width: 100%; }
  .pf-hero__actions .btn { width: 100%; }
}

/* Point of view */
.pov { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8) var(--s-16); align-items: start; }
.pov__title { font-size: var(--text-3xl); line-height: var(--leading-tight); max-width: 11ch; }
.pov__body { display: grid; gap: var(--s-5); font-size: var(--text-md); color: var(--ink-soft); max-width: 44ch; padding-top: var(--s-3); }
.pov__body strong { color: var(--ink); font-weight: 600; }

.bigger { margin-top: var(--s-20); padding-top: var(--s-10); border-top: 1px solid var(--rule); display: grid; gap: var(--s-6); }
.bigger__intro { font-size: var(--text-sm); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-faint); }
.bigger__list { display: flex; flex-wrap: wrap; gap: 0 0.4em; font-family: var(--font-serif); font-size: var(--text-2xl); line-height: 1.2; max-width: 22ch; }
.bigger__list { max-width: 30ch; }
.bigger__outro { font-size: var(--text-md); color: var(--ink-soft); max-width: 52ch; }

@media (max-width: 900px) {
  .pov { grid-template-columns: minmax(0, 1fr); }
  .bigger { margin-top: var(--s-12); }
  .bigger__list { display: grid; gap: var(--s-1); }
}

/* Selected work */
.cases { display: grid; gap: var(--s-6); }
.case { background: var(--paper-bright); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-8); }
.case--empty { background: transparent; border-style: dashed; border-color: var(--rule-strong); }
.case--empty dd { color: var(--ink-faint); }
.case__head { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-2) var(--s-5); align-items: baseline; padding-bottom: var(--s-6); border-bottom: 1px solid var(--rule); }
.case__num { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-label); color: var(--terracotta-ink); font-variant-numeric: tabular-nums; }
.case__title { font-size: var(--text-xl); line-height: 1.15; }
.case__head .status, .case__head .ph-tag { align-self: center; }
.case__grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case__grid > div { padding: var(--s-6) var(--s-5) 0 0; position: relative; }
.case__grid > div + div { padding-left: var(--s-5); border-left: 1px solid var(--rule); }
.case__grid > div + div::before { /* quiet arrow between steps */
  content: "→"; position: absolute; left: -0.55em; top: var(--s-6); font-size: var(--text-xs); color: var(--terracotta-ink);
  background: var(--paper-bright); line-height: 1.3;
}
.case--empty .case__grid > div + div::before { background: var(--paper-2); }
.case__grid dt { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-faint); margin-bottom: var(--s-2); }
.case__grid dd { margin: 0; font-size: var(--text-sm); line-height: 1.55; }
.case__grid div:last-child dd { font-family: var(--font-serif); font-size: var(--text-md); line-height: 1.4; }
.case__grid .ph-tag { margin-right: var(--s-1); vertical-align: 1px; }

@media (max-width: 900px) {
  .case { padding: var(--s-6) var(--s-5); }
  .case__head { grid-template-columns: auto 1fr; }
  .case__head .status, .case__head .ph-tag { grid-column: 1 / -1; justify-self: start; }
  .case__grid { grid-template-columns: minmax(0, 1fr); }
  .case__grid > div, .case__grid > div + div { padding: var(--s-4) 0 0 0; border-left: 0; }
  .case__grid > div + div::before { display: none; }
}

/* ---------- Hero proof strip ---------- */
.proof-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6);
  margin: var(--s-8) 0 0; padding-top: var(--s-6); border-top: 1px solid var(--rule-dark); width: 100%;
}
.proof-strip dt { font-family: var(--font-serif); font-size: var(--text-xl); line-height: 1; color: var(--on-forest); }
.proof-strip dd { margin: var(--s-2) 0 0; font-size: var(--text-sm); line-height: 1.45; color: var(--on-forest-soft); max-width: 22ch; }
.proof-strip div:first-child dt { color: var(--terracotta-light); }
@media (max-width: 560px) {
  .proof-strip { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .proof-strip dt { white-space: nowrap; }
  .proof-strip div { display: grid; grid-template-columns: 5.5rem 1fr; align-items: baseline; gap: var(--s-3); }
  .proof-strip dd { margin: 0; max-width: none; }
}

/* ---------- Growth check ---------- */
.stage { transition: border-color var(--dur-base) ease, background-color var(--dur-base) ease; }
.stage.is-leak { border-top-color: var(--terracotta); background: linear-gradient(180deg, rgba(168, 79, 49, 0.08), transparent 70%); }
.stage.is-leak .stage__name { color: var(--terracotta-ink); }
.stage.is-leak .stage__num::after { content: " · leaking here"; letter-spacing: 0.06em; text-transform: uppercase; }

.check {
  margin-top: var(--s-12); padding: clamp(24px, 4vw, 48px);
  background: var(--paper-bright); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: var(--s-8) var(--s-16);
  scroll-margin-top: 24px;
}
.check__head { display: grid; gap: var(--s-4); align-content: start; }
.check__title { font-size: var(--text-2xl); line-height: var(--leading-tight); }
.check__intro { color: var(--ink-soft); max-width: 36ch; }
.check__form { display: grid; }
.check__q { margin: 0; padding: var(--s-5) 0; border: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; gap: var(--s-3) var(--s-6); align-items: center; }
.check__q:first-child { border-top: 0; padding-top: 0; }
.check__q legend { float: left; padding: 0; font-size: var(--text-base); line-height: 1.45; }
.check__n { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-label); color: var(--terracotta-ink); margin-right: var(--s-2); }
.check__opts { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; }
.check__opts label { position: relative; cursor: pointer; }
.check__opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.check__opts span {
  display: grid; place-items: center; min-height: 44px; min-width: 6.5rem; padding: 0 var(--s-4);
  font-size: var(--text-sm); font-weight: 600; white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.check__opts label + label span { border-left: 1px solid var(--rule-strong); }
.check__opts label:hover span { background: var(--paper-2); }
.check__opts input:checked + span { background: var(--forest); color: var(--on-forest); }
.check__opts input[value="no"]:checked + span { background: var(--terracotta); color: var(--paper-bright); }
.check__opts input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -4px; }

.check__result {
  grid-column: 1 / -1; display: grid; gap: var(--s-3); padding: var(--s-6) var(--s-8);
  background: var(--forest); color: var(--on-forest); border-radius: var(--radius);
}
.check__result .label { color: var(--terracotta-light); }
.check__stage { font-family: var(--font-serif); font-size: var(--text-2xl); line-height: 1.05; }
.check__text { color: var(--on-forest-soft); max-width: 58ch; }
.check__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-2); }
.check__reset { background: none; border: 0; padding: var(--s-2) 0; color: var(--on-forest-soft); cursor: pointer; font-size: var(--text-sm); text-decoration-color: var(--rule-dark); }

@media (max-width: 900px) {
  .check { grid-template-columns: minmax(0, 1fr); }
  .stage.is-leak { padding-left: var(--s-3); }
}
@media (max-width: 560px) {
  .check__q { grid-template-columns: minmax(0, 1fr); }
  .check__opts { width: 100%; }
  .check__opts label { flex: 1; }
  .check__opts span { min-width: 0; min-height: 48px; }
  .check__result { padding: var(--s-5); }
  .check__actions .btn { width: 100%; }
}

/* ---------- Case lesson line ---------- */
.case__lesson {
  margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px dashed var(--rule-strong);
  display: grid; grid-template-columns: 11rem 1fr; gap: var(--s-4);
  font-family: var(--font-serif); font-size: var(--text-md); line-height: 1.45;
}
.case__lesson span { font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--terracotta-ink); padding-top: 0.3em; }
@media (max-width: 760px) { .case__lesson { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); } }
@media (max-width: 900px) { .stage.is-leak .stage__num::after { content: none; } .stage.is-leak .stage__name::after { content: "  ← leaking here"; font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; } }

/* =====================================================================
   SHORT MOBILE VERSION (phones only). Desktop is untouched.
   Order: hero → point of view → growth check → proof → video → process → fit → WhatsApp
   ===================================================================== */
.case__toggle {
  margin-top: var(--s-3); padding: var(--s-2) 0; min-height: 44px; background: none; border: 0; cursor: pointer;
  font-size: var(--text-sm); font-weight: 600; color: var(--terracotta-ink);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}

@media (max-width: 767px) {
  .home { --section-y: 52px; }
  .home main { display: flex; flex-direction: column; }
  .home #system { order: 1; }
  .home #work { order: 2; }
  .home #video { order: 3; }
  .home #process { order: 4; }
  .home #fit { order: 5; }
  .home #talk { order: 6; }
  .home .chapter { margin-bottom: var(--s-5); }
  .home .chapter__num { display: none; }
  .home .section-head { margin-bottom: var(--s-6); gap: var(--s-3); }
  .home .section-head h2 { font-size: var(--text-xl); }

  /* Hero: tighter, proof in one row, small photo */
  .home .pf-hero { padding-block: 32px 40px; }
  .home .pf-hero__grid { gap: var(--s-8); }
  .home .pf-hero__text { gap: var(--s-5); }
  .home .pf-hero__actions .text-link { display: none; }
  .home .proof-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-5); }
  .home .proof-strip div { display: block; }
  .home .proof-strip dt { font-size: 1.6rem; }
  .home .proof-strip dd { margin-top: var(--s-1); font-size: var(--text-xs); }
  .home .pf-hero__portrait { aspect-ratio: 16 / 9; }
  .home .pf-hero__portrait img { object-position: 64% 40%; }

  /* Point of view: headline + two lines */
  .home #point-of-view { padding-bottom: 0; }
  .home #point-of-view .chapter { display: none; }
  .home .pov { gap: var(--s-4); }
  .home .pov__title { font-size: var(--text-2xl); max-width: none; }
  .home .pov__short { font-size: var(--text-md); color: var(--ink-soft); }

  /* Growth check stands alone */
  .home #system { border-top: 0 !important; padding-top: 40px; }
  .home #system .chapter { display: none; }
  .home .check { margin-top: 0; padding: var(--s-6) var(--s-5); gap: var(--s-6); }
  .home .check__title { font-size: var(--text-xl); }
  .home .check__q { padding: var(--s-4) 0; }

  /* Proof: one line per project, full story on tap */
  .home .cases { gap: var(--s-3); }
  .home .case { padding: var(--s-5); }
  .home .case__head { padding-bottom: 0; border-bottom: 0; }
  .home .case__title { font-size: var(--text-lg); }
  .home .case__short { margin-top: var(--s-3); font-size: var(--text-base); color: var(--ink-soft); line-height: 1.5; }
  .js .home .case:not(.is-open) .case__grid,
  .js .home .case:not(.is-open) .case__lesson { display: none; }
  .home .case.is-open .case__grid { margin-top: var(--s-3); border-top: 1px solid var(--rule); }

  /* Video: compact card */
  .home #video .section-head h2 { font-size: var(--text-lg); }

  /* Process: one line */
  .home .process-line { font-family: var(--font-serif); font-size: var(--text-lg); line-height: 1.5; }
  .home .process-line i { font-style: normal; color: var(--terracotta-ink); margin-inline: 0.15em; }

  /* Fit: only the filter */
  .home .fit__col--not { padding: var(--s-5); }
  .home .fit__col--not h3 { font-size: var(--text-lg); margin-bottom: var(--s-4); }

  /* Final CTA */
  .home .cta__main h2 { font-size: var(--text-2xl); }
  .home .cta__preview { display: none; }
}
